Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
remove duplicated serivces
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 21, 2022
1 parent 914e5c0 commit c529db8
Show file tree
Hide file tree
Showing 35 changed files with 11 additions and 51 deletions.
1 change: 0 additions & 1 deletion .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ jobs:
packages/easy-ci/bin/easy-ci check-active-class packages/phpstan-rules --ansi
packages/easy-ci/bin/easy-ci check-active-class packages/rule-doc-generator --ansi
packages/easy-ci/bin/easy-ci check-active-class packages/rule-doc-generator-contracts --ansi
packages/easy-ci/bin/easy-ci check-active-class packages/simple-php-doc-parser --ansi
packages/easy-ci/bin/easy-ci check-active-class packages/skipper --ansi
packages/easy-ci/bin/easy-ci check-active-class packages/smart-file-system --ansi
packages/easy-ci/bin/easy-ci check-active-class packages/symfony-static-dumper --ansi
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ You'll find all packages in [`/packages`](/packages) directory. Here is a brief

- [Easy Coding Standard](https://github.com/symplify/easy-coding-standard)
- [Coding Standard](https://github.com/symplify/coding-standard)
- [Simple PHP Doc Parser](https://github.com/symplify/simple-php-doc-parser)

## For Symfony

Expand Down
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
"packages/rule-doc-generator-contracts/src",
"packages/rule-doc-generator/src"
],
"Symplify\\SimplePhpDocParser\\": "packages/simple-php-doc-parser/src",
"Symplify\\Skipper\\": "packages/skipper/src",
"Symplify\\SmartFileSystem\\": "packages/smart-file-system/src",
"Symplify\\SymfonyStaticDumper\\": "packages/symfony-static-dumper/src",
Expand Down Expand Up @@ -164,7 +163,6 @@
"Symplify\\PackageBuilder\\Tests\\": "packages/package-builder/tests",
"Symplify\\PhpConfigPrinter\\Tests\\": "packages/php-config-printer/tests",
"Symplify\\RuleDocGenerator\\Tests\\": "packages/rule-doc-generator/tests",
"Symplify\\SimplePhpDocParser\\Tests\\": "packages/simple-php-doc-parser/tests",
"Symplify\\Skipper\\Tests\\": "packages/skipper/tests",
"Symplify\\SmartFileSystem\\Tests\\": "packages/smart-file-system/tests",
"Symplify\\SymfonyStaticDumper\\Tests\\": "packages/symfony-static-dumper/tests",
Expand Down Expand Up @@ -197,7 +195,6 @@
"symplify/phpstan-rules": "10.0.25",
"symplify/rule-doc-generator": "10.0.25",
"symplify/rule-doc-generator-contracts": "10.0.25",
"symplify/simple-php-doc-parser": "10.0.25",
"symplify/skipper": "10.0.25",
"symplify/smart-file-system": "10.0.25",
"symplify/symfony-static-dumper": "10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/amnesia/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
4 changes: 2 additions & 2 deletions packages/astral/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ Register config in your `config/config.php`:

```php
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\Astral\PhpDocParser\ValueObject\SimplePhpDocParserConfig;
use Symplify\Astral\ValueObject\AstralConfig;

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(SimplePhpDocParserConfig::FILE_PATH);
$containerConfigurator->import(AstralConfig::FILE_PATH);
};
```

Expand Down
1 change: 0 additions & 1 deletion packages/astral/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
"symplify/amnesia": "<10.0.25",
Expand Down
6 changes: 0 additions & 6 deletions packages/astral/config/services.neon
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,3 @@ services:
- Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser

- Symplify\Astral\TypeAnalyzer\ContainsTypeAnalyser

# phpstan doc parser
- PHPStan\PhpDocParser\Lexer\Lexer
- PHPStan\PhpDocParser\Parser\ConstExprParser
- PHPStan\PhpDocParser\Parser\PhpDocParser
- PHPStan\PhpDocParser\Parser\TypeParser
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Symplify\Astral\Tests\PhpDocParser\HttpKernel;

use Psr\Container\ContainerInterface;
use Symplify\Astral\PhpDocParser\ValueObject\SimplePhpDocParserConfig;
use Symplify\Astral\ValueObject\AstralConfig;
use Symplify\SymplifyKernel\HttpKernel\AbstractSymplifyKernel;

Expand Down
1 change: 0 additions & 1 deletion packages/autowire-array-parameter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
"symplify/amnesia": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/coding-standard/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"symplify/easy-coding-standard": "<10.0.25",
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
"symplify/amnesia": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/composer-json-manipulator/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/config-transformer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
"symplify/package-builder": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/easy-ci/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/easy-coding-standard/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"symplify/composer-json-manipulator": "<10.0.25",
"symplify/phpstan-rules": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
"symplify/amnesia": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/easy-parallel/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/easy-testing/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"symplify/easy-coding-standard": "<10.0.25",
"symplify/phpstan-rules": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/git-wrapper/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/latte-phpstan-compiler/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/amnesia": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/markdown-diff/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/amnesia": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/monorepo-builder/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/neon-config-dumper/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"symplify/easy-coding-standard": "<10.0.25",
"symplify/phpstan-rules": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/package-builder/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"symplify/easy-coding-standard": "<10.0.25",
"symplify/phpstan-rules": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/php-config-printer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
"symplify/package-builder": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/phpstan-extensions/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/phpstan-latte-rules/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"symplify/easy-coding-standard": "<10.0.25",
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/amnesia": "<10.0.25",
"symplify/phpstan-extensions": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/phpstan-rules/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"symplify/astral": "^10.1",
"symplify/composer-json-manipulator": "^10.1",
"symplify/package-builder": "^10.1",
"symplify/simple-php-doc-parser": "^10.1",
"symplify/smart-file-system": "^10.1",
"symplify/rule-doc-generator-contracts": "^10.1",
"webmozart/assert": "^1.10"
Expand Down
1 change: 0 additions & 1 deletion packages/rule-doc-generator-contracts/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"symplify/easy-coding-standard": "<10.0.25",
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/rule-doc-generator/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"symplify/easy-coding-standard": "<10.0.25",
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/amnesia": "<10.0.25",
"symplify/phpstan-extensions": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/skipper/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/smart-file-system/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/symfony-static-dumper/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
"symplify/amnesia": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/symplify-kernel/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
"symplify/amnesia": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/template-phpstan-compiler/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/amnesia": "<10.0.25",
Expand Down
1 change: 0 additions & 1 deletion packages/vendor-patches/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"symplify/phpstan-rules": "<10.0.25",
"symplify/easy-testing": "<10.0.25",
"symplify/rule-doc-generator-contracts": "<10.0.25",
"symplify/simple-php-doc-parser": "<10.0.25",
"symplify/php-config-printer": "<10.0.25",
"symplify/autowire-array-parameter": "<10.0.25",
"symplify/markdown-diff": "<10.0.25",
Expand Down
18 changes: 9 additions & 9 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ parameters:
message: '#Use explicit return value over magic &reference#'
paths:
- packages/package-builder/src/Reflection/PrivatesCaller.php # 40
- packages/simple-php-doc-parser/src/PhpDocNodeTraverser.php
- packages/astral/src/PhpDocParser/PhpDocNodeTraverser.php

-
message: '#Instead of container injection, use specific service#'
Expand Down Expand Up @@ -247,7 +247,7 @@ parameters:
paths:
- packages/git-wrapper/src/GitWorkingCopy.php
# traversing is complex operatoin
- packages/simple-php-doc-parser/src/PhpDocNodeTraverser.php
- packages/astral/src/PhpDocParser/PhpDocNodeTraverser.php
- packages/php-config-printer/src/NodeFactory/ArgsNodeFactory.php

-
Expand Down Expand Up @@ -345,20 +345,20 @@ parameters:

-
message: '#Use void instead of modify and return self object#'
path: packages/simple-php-doc-parser/src/PhpDocNodeTraverser.php
path: packages/astral/src/PhpDocParser/PhpDocNodeTraverser.php

-
message: '#Use explicit names over dynamic ones#'
path: packages/simple-php-doc-parser/src/PhpDocNodeTraverser.php
path: packages/astral/src/PhpDocParser/PhpDocNodeTraverser.php

-
message: '#Use separate function calls with readable variable names#'
path: packages/simple-php-doc-parser/src/PhpDocNodeTraverser.php
path: packages/astral/src/PhpDocParser/PhpDocNodeTraverser.php

-
message: '#Parameter "docContent" cannot be nullable#'
paths:
- packages/simple-php-doc-parser/src/PhpDocNodeVisitor/CallablePhpDocNodeVisitor.php
- packages/astral/src/PhpDocParser/PhpDocNodeVisitor/CallablePhpDocNodeVisitor.php

- '#\$reflectionClass with generic class ReflectionClass but does not specify its types\: T#'

Expand Down Expand Up @@ -415,8 +415,8 @@ parameters:
path: packages/*/src/ValueObject/*

-
message: '#Cognitive complexity for "Symplify\\SimplePhpDocParser\\PhpDocNodeTraverser\:\:(.*?)\(\)" is \d+, keep it under \d+#'
path: packages/simple-php-doc-parser/src/PhpDocNodeTraverser.php
message: '#Cognitive complexity for "Symplify\\Astral\\PhpDocParser\\PhpDocNodeTraverser\:\:(.*?)\(\)" is \d+, keep it under \d+#'
path: packages/astral/src/PhpDocParser/PhpDocNodeTraverser.php

# command cast of string
-
Expand All @@ -437,7 +437,7 @@ parameters:
- packages/phpstan-rules/src/Rules/AbstractSymplifyRule.php
- packages/rule-doc-generator-contracts/src/ValueObject/AbstractCodeSample.php
- packages/symplify-kernel/src/HttpKernel/AbstractSymplifyKernel.php
- packages/simple-php-doc-parser/src/PhpDocNodeVisitor/AbstractPhpDocNodeVisitor.php
- packages/astral/src/PhpDocParser/PhpDocNodeVisitor/AbstractPhpDocNodeVisitor.php
- packages/git-wrapper/src/Event/AbstractGitEvent.php
- packages/easy-coding-standard/src/Console/Command/AbstractCheckCommand.php
- packages/coding-standard/src/Fixer/AbstractSymplifyFixer.php
Expand Down

0 comments on commit c529db8

Please sign in to comment.