Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function find($sourceName) |
||
23 | { |
||
24 | $result = array(); |
||
25 | |||
26 | /** |
||
27 | * @var Configuration $configuration |
||
28 | */ |
||
29 | foreach ($this->configurations as $configuration) { |
||
30 | |||
31 | if ($configuration->getSource() == $sourceName) { |
||
32 | $result[] = $configuration; |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return $result; |
||
37 | } |
||
38 | |||
49 |