MainAero/yii2-gtm-widget

View on GitHub

Showing 62 of 62 total issues

Multi-line function call not indented correctly; expected 12 spaces but found 10
Open

          $this->widget->widget()
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      $session = Yii::$app->getSession();
Severity: Minor
Found in src/widget/GTM.php by phpcodesniffer

Multi-line function call not indented correctly; expected 12 spaces but found 10
Open

          ),
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 14
Open

              ]
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Multi-line function call not indented correctly; expected 8 spaces but found 6
Open

      );
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Multi-line function call not indented correctly; expected 12 spaces but found 10
Open

          $this->renderer->renderPhpFile(
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Multi-line function call not indented correctly; expected 14 spaces but found 12
Open

            [
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Opening brace should be on a new line
Open

    private function runPush() : String {
Severity: Minor
Found in src/widget/GTM.php by phpcodesniffer

Multi-line function call not indented correctly; expected 14 spaces but found 12
Open

            ]
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      $dataLayerPushItems = $session->get(self::SESSION_KEY) ?? [];
Severity: Minor
Found in src/widget/GTM.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      return parent::get($id, $throwException);

Multi-line function call not indented correctly; expected 12 spaces but found 10
Open

          $this->renderer->renderPhpFile(
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Multi-line function call not indented correctly; expected 12 spaces but found 10
Open

          ]
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      if (empty($dataLayerPushItems))
Severity: Minor
Found in src/widget/GTM.php by phpcodesniffer

Multi-line function call not indented correctly; expected 14 spaces but found 12
Open

            'src/widget/views/script.php',
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        $this->renderer->renderPhpFile(
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Multi-line function call not indented correctly; expected 12 spaces but found 10
Open

          ]
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      ];
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 14
Open

              'src/widget/views/script.php',
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 6
Open

      ];
Severity: Minor
Found in tests/widget/GTMTest.php by phpcodesniffer
Severity
Category
Status
Source
Language