alphazframework / framework

Core files of AlphaZ Framework
https://alphazframework.github.io/
MIT License
16 stars 17 forks source link

StyleCI fixes. #343

Closed Maikuolan closed 3 years ago

Maikuolan commented 3 years ago

(( php php-cs-fixer.phar fix -v /path/to/Zest/src/Console --rules=@PSR12 ))

Maikuolan commented 3 years ago

Hm.. Remaining failures seem to be the fault of some Composer dependencies.

Run composer install --no-suggest --no-progress --no-interaction
You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - phpunit/php-code-coverage is locked to version 9.2.4 and an update of this package was not requested.
    - phpunit/php-code-coverage 9.2.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 2
    - phpunit/php-file-iterator is locked to version 3.0.5 and an update of this package was not requested.
    - phpunit/php-file-iterator 3.0.5 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 3
    - phpunit/php-invoker is locked to version 3.1.1 and an update of this package was not requested.
    - phpunit/php-invoker 3.1.1 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 4
    - phpunit/php-text-template is locked to version 2.0.4 and an update of this package was not requested.
    - phpunit/php-text-template 2.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 5
    - phpunit/php-timer is locked to version 5.0.3 and an update of this package was not requested.
    - phpunit/php-timer 5.0.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 6
    - phpunit/phpunit is locked to version 9.4.3 and an update of this package was not requested.
    - phpunit/phpunit 9.4.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 7
    - sebastian/cli-parser is locked to version 1.0.1 and an update of this package was not requested.
    - sebastian/cli-parser 1.0.1 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 8
    - sebastian/code-unit is locked to version 1.0.8 and an update of this package was not requested.
    - sebastian/code-unit 1.0.8 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 9
    - sebastian/code-unit-reverse-lookup is locked to version 2.0.3 and an update of this package was not requested.
    - sebastian/code-unit-reverse-lookup 2.0.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 10
    - sebastian/comparator is locked to version 4.0.6 and an update of this package was not requested.
    - sebastian/comparator 4.0.6 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 11
    - sebastian/complexity is locked to version 2.0.2 and an update of this package was not requested.
    - sebastian/complexity 2.0.2 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 12
    - sebastian/diff is locked to version 4.0.4 and an update of this package was not requested.
    - sebastian/diff 4.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 13
    - sebastian/environment is locked to version 5.1.3 and an update of this package was not requested.
    - sebastian/environment 5.1.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 14
    - sebastian/exporter is locked to version 4.0.3 and an update of this package was not requested.
    - sebastian/exporter 4.0.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 15
    - sebastian/global-state is locked to version 5.0.2 and an update of this package was not requested.
    - sebastian/global-state 5.0.2 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 16
    - sebastian/lines-of-code is locked to version 1.0.2 and an update of this package was not requested.
    - sebastian/lines-of-code 1.0.2 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 17
    - sebastian/object-enumerator is locked to version 4.0.4 and an update of this package was not requested.
    - sebastian/object-enumerator 4.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 18
    - sebastian/object-reflector is locked to version 2.0.4 and an update of this package was not requested.
    - sebastian/object-reflector 2.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 19
    - sebastian/recursion-context is locked to version 4.0.4 and an update of this package was not requested.
    - sebastian/recursion-context 4.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 20
    - sebastian/resource-operations is locked to version 3.0.3 and an update of this package was not requested.
    - sebastian/resource-operations 3.0.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 21
    - sebastian/type is locked to version 2.3.1 and an update of this package was not requested.
    - sebastian/type 2.3.1 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 22
    - sebastian/version is locked to version 3.0.2 and an update of this package was not requested.
    - sebastian/version 3.0.2 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 23
    - sebastian/comparator 4.0.6 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
    - phpspec/prophecy 1.12.1 requires sebastian/comparator ^3.0 || ^4.0 -> satisfiable by sebastian/comparator[4.0.6].
    - phpspec/prophecy is locked to version 1.12.1 and an update of this package was not requested.

Error: Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - phpunit/php-code-coverage is locked to version 9.2.4 and an update of this package was not requested.
    - phpunit/php-code-coverage 9.2.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 2
    - phpunit/php-file-iterator is locked to version 3.0.5 and an update of this package was not requested.
    - phpunit/php-file-iterator 3.0.5 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 3
    - phpunit/php-invoker is locked to version 3.1.1 and an update of this package was not requested.
    - phpunit/php-invoker 3.1.1 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 4
    - phpunit/php-text-template is locked to version 2.0.4 and an update of this package was not requested.
    - phpunit/php-text-template 2.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 5
    - phpunit/php-timer is locked to version 5.0.3 and an update of this package was not requested.
    - phpunit/php-timer 5.0.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 6
    - phpunit/phpunit is locked to version 9.4.3 and an update of this package was not requested.
    - phpunit/phpunit 9.4.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 7
    - sebastian/cli-parser is locked to version 1.0.1 and an update of this package was not requested.
    - sebastian/cli-parser 1.0.1 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 8
    - sebastian/code-unit is locked to version 1.0.8 and an update of this package was not requested.
    - sebastian/code-unit 1.0.8 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 9
    - sebastian/code-unit-reverse-lookup is locked to version 2.0.3 and an update of this package was not requested.
    - sebastian/code-unit-reverse-lookup 2.0.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 10
    - sebastian/comparator is locked to version 4.0.6 and an update of this package was not requested.
    - sebastian/comparator 4.0.6 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 11
    - sebastian/complexity is locked to version 2.0.2 and an update of this package was not requested.
    - sebastian/complexity 2.0.2 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 12
    - sebastian/diff is locked to version 4.0.4 and an update of this package was not requested.
    - sebastian/diff 4.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 13
    - sebastian/environment is locked to version 5.1.3 and an update of this package was not requested.
    - sebastian/environment 5.1.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 14
    - sebastian/exporter is locked to version 4.0.3 and an update of this package was not requested.
    - sebastian/exporter 4.0.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 15
    - sebastian/global-state is locked to version 5.0.2 and an update of this package was not requested.
    - sebastian/global-state 5.0.2 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 16
    - sebastian/lines-of-code is locked to version 1.0.2 and an update of this package was not requested.
    - sebastian/lines-of-code 1.0.2 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 17
    - sebastian/object-enumerator is locked to version 4.0.4 and an update of this package was not requested.
    - sebastian/object-enumerator 4.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 18
    - sebastian/object-reflector is locked to version 2.0.4 and an update of this package was not requested.
    - sebastian/object-reflector 2.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 19
    - sebastian/recursion-context is locked to version 4.0.4 and an update of this package was not requested.
    - sebastian/recursion-context 4.0.4 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 20
    - sebastian/resource-operations is locked to version 3.0.3 and an update of this package was not requested.
    - sebastian/resource-operations 3.0.3 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 21
    - sebastian/type is locked to version 2.3.1 and an update of this package was not requested.
    - sebastian/type 2.3.1 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 22
    - sebastian/version is locked to version 3.0.2 and an update of this package was not requested.
    - sebastian/version 3.0.2 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
  Problem 23
    - sebastian/comparator 4.0.6 requires php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.
    - phpspec/prophecy 1.12.1 requires sebastian/comparator ^3.0 || ^4.0 -> satisfiable by sebastian/comparator[4.0.6].
    - phpspec/prophecy is locked to version 1.12.1 and an update of this package was not requested.

Error: Process completed with exit code 2.

We should ignore that problem for the moment, and deal with it in a separate pull request of its own later, I think. (Since the problem of Composer dependency requirements isn't related to StyleCI fixes). Let's first solve all other pull requests which already exist, in order to avoid merge conflicts or other related complications, and then deal with the Composer dependencies afterwards.

lablnet commented 3 years ago

@Maikuolan thanks for your PR and sorry for late response, my Github account was locked.