| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 54 | public function testOrderInProgress(Article $articles, ObjectManager $etm) |
||
| 55 | { |
||
| 56 | $return = false; |
||
| 57 | $orders = $etm->getRepository('AppBundle:Orders')->findAll(); |
||
| 58 | // This provider already has an order in progress! |
||
| 59 | foreach ($orders as $order) { |
||
| 60 | if ($order->getSupplier() === $articles->getSupplier()) { |
||
| 61 | $return = true; |
||
| 62 | } |
||
| 63 | } |
||
| 64 | return $return; |
||
| 65 | } |
||
| 66 | } |
||
| 67 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.