YetiForceCompany/YetiForceCRM

View on GitHub
app/Installer/Composer.php

Summary

Maintainability
C
1 day
Test Coverage
F
0%

install accesses the super-global variable $_SERVER.
Open

    public static function install(\Composer\Script\Event $event): void
    {
        $rootDir = realpath(__DIR__ . '/../../');
        if (!\defined('ROOT_DIRECTORY')) {
            \define('ROOT_DIRECTORY', $rootDir);
Severity: Minor
Found in app/Installer/Composer.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

Function clear has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
Open

    public static function clear(): void
    {
        if ('TEST' === getenv('INSTALL_MODE')) {
            return;
        }
Severity: Minor
Found in app/Installer/Composer.php - About 4 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function install has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
Open

    public static function install(\Composer\Script\Event $event): void
    {
        $rootDir = realpath(__DIR__ . '/../../');
        if (!\defined('ROOT_DIRECTORY')) {
            \define('ROOT_DIRECTORY', $rootDir);
Severity: Minor
Found in app/Installer/Composer.php - About 3 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method install has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function install(\Composer\Script\Event $event): void
    {
        $rootDir = realpath(__DIR__ . '/../../');
        if (!\defined('ROOT_DIRECTORY')) {
            \define('ROOT_DIRECTORY', $rootDir);
Severity: Minor
Found in app/Installer/Composer.php - About 1 hr to fix

    Method clear has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function clear(): void
        {
            if ('TEST' === getenv('INSTALL_MODE')) {
                return;
            }
    Severity: Minor
    Found in app/Installer/Composer.php - About 1 hr to fix

      The method clear() has an NPath complexity of 572. The configured NPath complexity threshold is 200.
      Open

          public static function clear(): void
          {
              if ('TEST' === getenv('INSTALL_MODE')) {
                  return;
              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      NPathComplexity

      Since: 0.1

      The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

      Example

      class Foo {
          function bar() {
              // lots of complicated code
          }
      }

      Source https://phpmd.org/rules/codesize.html#npathcomplexity

      The method clear() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10.
      Open

          public static function clear(): void
          {
              if ('TEST' === getenv('INSTALL_MODE')) {
                  return;
              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      CyclomaticComplexity

      Since: 0.1

      Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

      Example

      // Cyclomatic Complexity = 11
      class Foo {
      1   public function example() {
      2       if ($a == $b) {
      3           if ($a1 == $b1) {
                      fiddle();
      4           } elseif ($a2 == $b2) {
                      fiddle();
                  } else {
                      fiddle();
                  }
      5       } elseif ($c == $d) {
      6           while ($c == $d) {
                      fiddle();
                  }
      7        } elseif ($e == $f) {
      8           for ($n = 0; $n < $h; $n++) {
                      fiddle();
                  }
              } else {
                  switch ($z) {
      9               case 1:
                          fiddle();
                          break;
      10              case 2:
                          fiddle();
                          break;
      11              case 3:
                          fiddle();
                          break;
                      default:
                          fiddle();
                          break;
                  }
              }
          }
      }

      Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

      The method install() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
      Open

          public static function install(\Composer\Script\Event $event): void
          {
              $rootDir = realpath(__DIR__ . '/../../');
              if (!\defined('ROOT_DIRECTORY')) {
                  \define('ROOT_DIRECTORY', $rootDir);
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      CyclomaticComplexity

      Since: 0.1

      Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

      Example

      // Cyclomatic Complexity = 11
      class Foo {
      1   public function example() {
      2       if ($a == $b) {
      3           if ($a1 == $b1) {
                      fiddle();
      4           } elseif ($a2 == $b2) {
                      fiddle();
                  } else {
                      fiddle();
                  }
      5       } elseif ($c == $d) {
      6           while ($c == $d) {
                      fiddle();
                  }
      7        } elseif ($e == $f) {
      8           for ($n = 0; $n < $h; $n++) {
                      fiddle();
                  }
              } else {
                  switch ($z) {
      9               case 1:
                          fiddle();
                          break;
      10              case 2:
                          fiddle();
                          break;
      11              case 3:
                          fiddle();
                          break;
                      default:
                          fiddle();
                          break;
                  }
              }
          }
      }

      Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

      Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed.
      Open

          public static function install(\Composer\Script\Event $event): void
      Severity: Critical
      Found in app/Installer/Composer.php by sonar-php

      Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

      See

      Refactor this function to reduce its Cognitive Complexity from 34 to the 15 allowed.
      Open

          public static function clear(): void
      Severity: Critical
      Found in app/Installer/Composer.php by sonar-php

      Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

      See

      Missing class import via use statement (line '253', column '18').
      Open

              $objects = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($rootDir), \RecursiveIteratorIterator::SELF_FIRST);
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '181', column '48').
      Open

                  foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($src, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST) as $item) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '274', column '20').
      Open

                              foreach (new \DirectoryIterator($level2->getPathname()) as $level3) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '272', column '18').
      Open

                      foreach (new \DirectoryIterator($level1->getPathname()) as $level2) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '181', column '17').
      Open

                  foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($src, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST) as $item) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '270', column '16').
      Open

              foreach (new \DirectoryIterator($rootDir) as $level1) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '253', column '49').
      Open

              $objects = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($rootDir), \RecursiveIteratorIterator::SELF_FIRST);
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Avoid using static access to class '\App\Json' in method 'parseCreditsVue'.
      Open

                  \App\Json::save($rootDir . 'app_data' . \DIRECTORY_SEPARATOR . 'libraries.json', $dataEncode);
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      StaticAccess

      Since: 1.4.0

      Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

      Example

      class Foo
      {
          public function bar()
          {
              Bar::baz();
          }
      }

      Source https://phpmd.org/rules/cleancode.html#staticaccess

      Avoid using static access to class 'App\Installer\Credits' in method 'parseCreditsVue'.
      Open

              $dataEncode = Credits::getYarnLibraries($dirLibraries . '.yarn-integrity', $dirLibraries);
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      StaticAccess

      Since: 1.4.0

      Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

      Example

      class Foo
      {
          public function bar()
          {
              Bar::baz();
          }
      }

      Source https://phpmd.org/rules/cleancode.html#staticaccess

      The method parseCreditsVue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

              } else {
                  echo str_repeat('+', 50) . PHP_EOL;
                  echo 'The problem occured when generating app_data/libraries.json file!!!' . PHP_EOL;
                  echo 'It is required to run yarn first and then the composer.' . PHP_EOL;
                  echo 'Example: https://github.com/YetiForceCompany/YetiForceCRM/blob/developer/tests/setup/dependency.sh' . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

      Source https://phpmd.org/rules/cleancode.html#elseexpression

      Avoid using static access to class '\vtlib\Functions' in method 'clear'.
      Open

                                      \vtlib\Functions::recurseDelete($level3->getPathname(), true);
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      StaticAccess

      Since: 1.4.0

      Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

      Example

      class Foo
      {
          public function bar()
          {
              Bar::baz();
          }
      }

      Source https://phpmd.org/rules/cleancode.html#staticaccess

      Avoid using static access to class '\vtlib\Functions' in method 'customCopy'.
      Open

                  $i = \vtlib\Functions::recurseCopy($src, $dest);
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      StaticAccess

      Since: 1.4.0

      Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

      Example

      class Foo
      {
          public function bar()
          {
              Bar::baz();
          }
      }

      Source https://phpmd.org/rules/cleancode.html#staticaccess

      Avoid using static access to class '\vtlib\Functions' in method 'clear'.
      Open

                  \vtlib\Functions::recurseDelete($delete, true);
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      StaticAccess

      Since: 1.4.0

      Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

      Example

      class Foo
      {
          public function bar()
          {
              Bar::baz();
          }
      }

      Source https://phpmd.org/rules/cleancode.html#staticaccess

      Define a constant instead of duplicating this literal "/../../" 3 times.
      Open

              $rootDir = realpath(__DIR__ . '/../../');
      Severity: Critical
      Found in app/Installer/Composer.php by sonar-php

      Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

      On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

      Noncompliant Code Example

      With the default threshold of 3:

      function run() {
        prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
        execute('action1');
        release('action1');
      }
      

      Compliant Solution

      ACTION_1 = 'action1';
      
      function run() {
        prepare(ACTION_1);
        execute(ACTION_1);
        release(ACTION_1);
      }
      

      Exceptions

      To prevent generating some false-positives, literals having less than 5 characters are excluded.

      Assigning array{yetiforce/csrf-magic:'move',maximebf/debugbar:'move',yetiforce/yetiforcepdf/lib/Fonts:'copy',ckeditor/ckeditor:'move'} to property but \App\Installer\Composer::$publicPackage is \App\Installer\atring[]
      Open

          public static $publicPackage = [
      Severity: Minor
      Found in app/Installer/Composer.php by phan

      Call to method getComposer from undeclared class \Composer\Script\Event
      Open

              $event->getComposer();
      Severity: Critical
      Found in app/Installer/Composer.php by phan

      Parameter $event has undeclared type \Composer\Script\Event
      Open

          public static function install(\Composer\Script\Event $event): void
      Severity: Minor
      Found in app/Installer/Composer.php by phan

      Property \App\Installer\Composer::$publicPackage has undeclared type \App\Installer\atring[] (Did you mean string)
      Open

          public static $publicPackage = [
      Severity: Minor
      Found in app/Installer/Composer.php by phan

      Avoid variables with short names like $i. Configured minimum length is 3.
      Open

                  $i = \vtlib\Functions::recurseCopy($src, $dest);
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

      Source https://phpmd.org/rules/naming.html#shortvariable

      Avoid variables with short names like $i. Configured minimum length is 3.
      Open

                  $i = 0;
      Severity: Minor
      Found in app/Installer/Composer.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

      Source https://phpmd.org/rules/naming.html#shortvariable

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'ckeditor/ckeditor' => 'move',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.editorconfig',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'security.md',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'maintenance',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'sonar-project.properties',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'changelog.htm',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'bin',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'symfony/console' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              if (!\defined('ROOT_DIRECTORY')) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if (!is_dir($publicDir . $item->getPath())) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if ('move' === $method) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              \rename($item->getRealPath(), $publicDir . $item->getPathname());
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * List of public packages.
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public static $clearFiles = [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.php_cs.dist',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'upgrade.md',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'whatsnew',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'cldr-version.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'smarty_3.1_notes.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'phpoffice/phpspreadsheet' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'bin',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  $src = 'vendor' . \DIRECTORY_SEPARATOR . $package;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @var array
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.gitignore',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'smarty_2_bc_notes.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @var array
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'sabre/http' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @var array
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              static::clear();
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'phpunit.xml.dist',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'js-test',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'migrations',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'phorum',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'inheritance_release_notes.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'new_features.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.coveralls.yml',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'views',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'smarty_3.0_bc_notes.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'test-settings.sample.php',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'install.fr.utf8',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'phpdoc.ini',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'drupal_test.sh',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              foreach (static::$publicPackage as $package => $method) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'tests',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'readme.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public static $clearVendorFiles = [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'yii',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $rootDir = realpath(__DIR__ . '/../../');
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              if (isset($_SERVER['SENSIOLABS_EXECUTION_NAME'])) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Line exceeds 120 characters; contains 133 characters
      Open

                      if ($item->isFile() && \in_array($item->getExtension(), $types) && !file_exists($publicDir . $item->getPathname())) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'yetiforce/yetiforcepdf/lib/Fonts' => 'copy',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.dependabot',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.travis.yml',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'readme.md',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'demo',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'release2-tag.php',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'crowdin.yml',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          ];
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'changes.md',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'news',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'composer_release_notes.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'debug',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'bin',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'bin',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public static $copyDirectories = [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param \Composer\Script\Event $event
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $event->getComposer();
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  return;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $list = '';
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              if ($dataEncode) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Line exceeds 120 characters; contains 133 characters
      Open

              $objects = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($rootDir), \RecursiveIteratorIterator::SELF_FIRST);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              foreach ($objects as $object) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      foreach (new \DirectoryIterator($level1->getPathname()) as $level2) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if ($level2->isDir() && !$level2->isDot()) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @var atring[]
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public static $publicPackage = [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.styleci.yml',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.scrutinizer.yml',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'phpunit.xml',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'get_oauth_token.php',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'release1-update.php',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'makefile',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'twig/twig' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  $i = 0;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Line exceeds 120 characters; contains 182 characters
      Open

                  foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($src, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST) as $item) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if (!is_writable($publicDir . $item->getPath())) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $dirLibraries = $rootDir . 'public_html' . \DIRECTORY_SEPARATOR . 'src' . \DIRECTORY_SEPARATOR . 'node_modules' . \DIRECTORY_SEPARATOR;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  echo 'The problem occured when generating app_data/libraries.json file!!!' . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              echo "Copy to public_html: $list" . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $list = '';
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                                  }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'yetiforce/csrf-magic' => 'move',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'docs',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'extras',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'tutorial',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'change_log.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'sabre/dav' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  echo 'It is required to run yarn first and then the composer.' . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              echo "Copy custom directories: $list" . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  if ('.' === $object->getFilename() || '..' === $object->getFilename()) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Line exceeds 120 characters; contains 160 characters
      Open

                  if ((\in_array(strtolower($object->getFilename()), self::$clearFiles)) && (is_dir($object->getPathname()) || file_exists($object->getPathname()))) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      $deleted[] = $object->getPathname();
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              foreach ($deleted as $delete) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                                      \vtlib\Functions::recurseDelete($level3->getPathname(), true);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.github',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.git',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.gitkeep',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'mkdocs.yml',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'changelog.md',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'wysiwyg',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '_translationstatus.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'test-settings.travis.php',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $types = ['js', 'css', 'woff', 'woff2', 'ttf', 'png', 'gif', 'jpg', 'json', 'svg'];
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Parse credits vue.
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  echo 'Generated file app_data/libraries.json | ' . \count($dataEncode) . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  echo 'Example: https://github.com/YetiForceCompany/YetiForceCRM/blob/developer/tests/setup/dependency.sh' . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  if ($level1->isDir() && !$level1->isDot()) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          ];
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.gitattributes',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'build.xml',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'contributing.md',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'examples',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'todo',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'metadata-version.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'news.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Clear vendor files.
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'sabre/xml' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'sonata-project/google-authenticator' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public static function install(\Composer\Script\Event $event): void
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              \copy($item->getRealPath(), $publicDir . $item->getPathname());
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              foreach (static::$copyDirectories as $src => $dest) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $rootDir = realpath(__DIR__ . '/../../') . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $deleted = array_unique($deleted);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'sample',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'modx.txt',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'FAQ.htm',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'sabre/vobject' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'bin',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  $list .= PHP_EOL . "{$package}[{$method}]: $i";
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  \vtlib\Functions::recurseDelete($delete, true);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'maximebf/debugbar' => 'move',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          ];
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'ezyang/htmlpurifier' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'resources',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'doc',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Copy directories.
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          ];
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $publicDir = $rootDir . \DIRECTORY_SEPARATOR . 'public_html' . \DIRECTORY_SEPARATOR;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      if ($item->isFile() && \in_array($item->getExtension(), $types) && !file_exists($publicDir . $item->getPathname())) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              mkdir($publicDir . $item->getPath(), 0755, true);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              self::customCopy();
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  \App\Json::save($rootDir . 'app_data' . \DIRECTORY_SEPARATOR . 'libraries.json', $dataEncode);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  echo 'Example: https://github.com/YetiForceCompany/YetiForceCRM/blob/developer/tests/setup/dependency.sh' . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public static function customCopy(): void
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      mkdir(ROOT_DIRECTORY . \DIRECTORY_SEPARATOR . $dest, 0755, true);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  $i = \vtlib\Functions::recurseCopy($src, $dest);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $deleted = [];
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              arsort($deleted);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              foreach (new \DirectoryIterator($rootDir) as $level1) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Line exceeds 120 characters; contains 270 characters
      Open

                                  if (isset(self::$clearVendorFiles[$level1->getFileName() . '/' . $level2->getFilename()]) && !$level3->isDot() && \in_array(strtolower($level3->getFilename()), self::$clearVendorFiles[$level1->getFileName() . '/' . $level2->getFilename()])) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * List of redundant files.
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.npm',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'changelog.phpexcel.md',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'doc',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'samples',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'test',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'jquery.min.js',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'whitesource.config.json',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'illuminate/support' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'sabre/event' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'yetiforce/yii2' => [
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Post update and post install function.
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  \define('ROOT_DIRECTORY', $rootDir);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              echo str_repeat('=', 50) . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              continue;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          } elseif ('copy' === $method) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              echo str_repeat('-', 50) . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Custom copy.
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                                  if (isset(self::$clearVendorFiles[$level1->getFileName() . '/' . $level2->getFilename()]) && !$level3->isDot() && \in_array(strtolower($level3->getFilename()), self::$clearVendorFiles[$level1->getFileName() . '/' . $level2->getFilename()])) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              echo str_repeat('=', 50) . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Line exceeds 120 characters; contains 143 characters
      Open

              $dirLibraries = $rootDir . 'public_html' . \DIRECTORY_SEPARATOR . 'src' . \DIRECTORY_SEPARATOR . 'node_modules' . \DIRECTORY_SEPARATOR;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  if ((\in_array(strtolower($object->getFilename()), self::$clearFiles)) && (is_dir($object->getPathname()) || file_exists($object->getPathname()))) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          ++$i;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $dataEncode = Credits::getYarnLibraries($dirLibraries . '.yarn-integrity', $dirLibraries);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              } else {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  $list .= PHP_EOL . "{$src}  >>>  {$dest} | Files: $i";
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Delete redundant files.
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              if ('TEST' === getenv('INSTALL_MODE')) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              echo str_repeat('-', 50) . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              self::parseCreditsVue();
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  echo str_repeat('+', 50) . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'install',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'readme',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              '.sami.php',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'plugins',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  'bin',
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              ],
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($src, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST) as $item) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public static function parseCreditsVue(): void
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      continue;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  ++$deletedCount;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              echo str_repeat('-', 50) . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $rootDir = realpath(__DIR__ . '/../../') . \DIRECTORY_SEPARATOR;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              echo "Cleaned files: $deletedCount" . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  if (!file_exists(ROOT_DIRECTORY . \DIRECTORY_SEPARATOR . $dest)) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public static function clear(): void
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  return;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $objects = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($rootDir), \RecursiveIteratorIterator::SELF_FIRST);
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              foreach (new \DirectoryIterator($level2->getPathname()) as $level3) {
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  echo str_repeat('+', 50) . PHP_EOL;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $deletedCount = 0;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                                      ++$deletedCount;
      Severity: Minor
      Found in app/Installer/Composer.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status