| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function loadFiles($fixtures) |
||
| 32 | { |
||
| 33 | $objects = []; |
||
| 34 | |||
| 35 | foreach ($fixtures as $fixture) { |
||
| 36 | if (!file_exists($fixture)) { |
||
| 37 | throw new \InvalidArgumentException('The file could not be found: '.$fixture); |
||
| 38 | } |
||
| 39 | |||
| 40 | $set = $this->load($fixture); |
||
| 41 | |||
| 42 | $objects = array_merge($objects, $set); |
||
| 43 | } |
||
| 44 | |||
| 45 | $this->manager->persist($objects); |
||
| 46 | |||
| 47 | return $objects; |
||
| 48 | } |
||
| 49 | } |
||
| 50 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.