| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 21 | public function byId($id) { |
||
| 22 | if (!isset($this->repository[$id])) { |
||
| 23 | list($name, $league) = explode('|', $id); |
||
|
1 ignored issue
–
show
|
|||
| 24 | $factory = $this->entityManager->factory($this->getEntityTypeName()); |
||
|
1 ignored issue
–
show
|
|||
| 25 | $this->repository[$id] = $factory->create( |
||
| 26 | (object) array('id' => $id, 'name' => $name, 'league' => (object) array('id' => $league)), |
||
| 27 | $this->getEntityTypeName() |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | return $this->repository[$id]; |
||
| 31 | } |
||
| 32 | /** |
||
| 49 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.