| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | 3 | private function getPatcherStrategy( $entityType ) { |
|
| 50 | 3 | foreach ( $this->patcherStrategies as $patcherStrategy ) { |
|
| 51 | 3 | if ( $patcherStrategy->canPatchEntityType( $entityType ) ) { |
|
| 52 | 2 | return $patcherStrategy; |
|
| 53 | } |
||
| 54 | 1 | } |
|
| 55 | |||
| 56 | 1 | throw new RuntimeException( 'Patching the provided types of entities is not supported' ); |
|
| 57 | } |
||
| 60 |