File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 125
125
use Symplify \EasyCodingStandard \ValueObject \Option ;
126
126
127
127
return static function (ContainerConfigurator $ containerConfigurator ): void {
128
- // Import path of PSR2 rules when this package is installed as a dependency (in vendor dir)
129
- $ containerConfigurator ->import (__DIR__ . '/../../symplify/easy-coding-standard/config/set/psr2.php ' , null , 'not_found ' );
130
- // Import path of PSR2 rules when this package is used directly (during development)
131
- $ containerConfigurator ->import (__DIR__ . '/vendor/symplify/easy-coding-standard/config/set/psr2.php ' , null , 'not_found ' );
128
+ $ vendorDir = __DIR__ . '/vendor ' ; // When used directly (during development)
129
+ if (!is_dir ($ vendorDir )) {
130
+ $ vendorDir = __DIR__ . '/../.. ' ; // When installed as a dependency (in vendor dir)
131
+ }
132
+
133
+ $ containerConfigurator ->import ($ vendorDir . '/symplify/easy-coding-standard/config/set/php_cs_fixer/php-cs-fixer-psr2.php ' );
134
+ $ containerConfigurator ->import ($ vendorDir . '/symplify/easy-coding-standard/config/set/php_codesniffer/php-codesniffer-psr2.php ' );
132
135
133
136
$ services = $ containerConfigurator ->services ();
134
137
(function () use ($ services ): void {
You can’t perform that action at this time.
0 commit comments