| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function findAllMenuapplicazione() |
||
| 10 | { |
||
| 11 | $em = $this->getEntityManager(); |
||
|
|
|||
| 12 | $menus = array(); |
||
| 13 | if ($em->getRepository('CoreBundle:Menuapplicazione')) { |
||
| 14 | $results = $em->getRepository('CoreBundle:Menuapplicazione')->findBy([], ['nome' => 'ASC']); |
||
| 15 | |||
| 16 | $menus = array("" => null); |
||
| 17 | foreach ($results as $bu) { |
||
| 18 | $menus[$bu->getNome()] = $bu->getId(); |
||
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 22 | return $menus; |
||
| 23 | } |
||
| 25 |
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.