| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 1 | public function decorate(ClassLoader $classLoader) |
|
| 26 | { |
||
| 27 | 1 | $standards = $this->standardFinder->getStandards(); |
|
| 28 | |||
| 29 | 1 | foreach ($standards as $stadardName => $standardRuleset) { |
|
| 30 | 1 | if ($this->isDefaultStandard($stadardName)) { |
|
| 31 | 1 | continue; |
|
| 32 | } |
||
| 33 | |||
| 34 | 1 | $standardNamespace = $this->detectStandardNamespaceFromStandardName($stadardName); |
|
| 35 | 1 | $standardDir = dirname($standardRuleset); |
|
| 36 | |||
| 37 | 1 | $classLoader->addPsr4( |
|
| 38 | 1 | $standardNamespace . '\\', |
|
| 39 | 1 | $standardDir . DIRECTORY_SEPARATOR . $standardNamespace |
|
| 40 | ); |
||
| 41 | } |
||
| 42 | 1 | } |
|
| 43 | |||
| 57 |