| Conditions | 4 |
| Paths | 6 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function testSupplierHasArticle(array $articles) |
||
|
|
|||
| 34 | { |
||
| 35 | $return = true; |
||
| 36 | |||
| 37 | // This supplier has no articles! |
||
| 38 | if (count($articles) < 1) { |
||
| 39 | $message = $this->get('translator')->trans('settings.no_articles', array(), 'gs_suppliers'); |
||
| 40 | $this->addFlash('danger', $message); |
||
| 41 | $return = false; |
||
| 42 | } |
||
| 43 | |||
| 44 | return $return; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Tests Order in progress for a supplier. |
||
| 49 | * |
||
| 50 | * @param \AppBundle\Entity\Article $articles Articles to test |
||
| 51 | * @param \Doctrine\Common\Persistence\ObjectManager $etm Named object manager |
||
| 52 | * @return boolean |
||
| 53 | */ |
||
| 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.