@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $subFamId = ''; |
| 50 | 50 | $famLogId = $request->get('id'); |
| 51 | 51 | $subFamId = $request->get('id2'); |
| 52 | - if ($famLogId != '') { |
|
| 52 | + if ($famLogId != '') { |
|
| 53 | 53 | $subFamilyLogs = $etm |
| 54 | 54 | ->getRepository('GlsrGestockBundle:subFamilyLog') |
| 55 | 55 | ->getFromFamilyLog($famLogId); |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | 'glstock_art_show', |
| 115 | 115 | array('name' => $article->getName()) |
| 116 | 116 | ); |
| 117 | - $message = "L'article " . $article->getName() ." est bien ajouté"; |
|
| 117 | + $message = "L'article ".$article->getName()." est bien ajouté"; |
|
| 118 | 118 | } else { |
| 119 | 119 | $url = $this->generateUrl('glstock_art_add'); |
| 120 | 120 | $message = "L'article ".$article->getName()." n'est pas ajouté !"; |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | * and merges configuration from your app/config files. |
| 22 | 22 | * |
| 23 | 23 | * @category DependencyInjection |
| 24 | - |
|
| 25 | 24 | * @link http://symfony.com/doc/current/cookbook/bundles/extension.html |
| 26 | 25 | * #cookbook-bundles-extension-config-class |
| 27 | 26 | */ |
@@ -41,14 +41,14 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $builder->addEventListener( |
| 43 | 43 | FormEvents::PRE_SET_DATA, |
| 44 | - function (FormEvent $event) { |
|
| 44 | + function(FormEvent $event) { |
|
| 45 | 45 | $form = $event->getForm(); |
| 46 | 46 | $articles = $event->getData(); |
| 47 | 47 | |
| 48 | 48 | $formOptions = array( |
| 49 | 49 | 'class' => 'GlsrGestockBundle:Supplier', |
| 50 | 50 | 'query_builder' => |
| 51 | - function (EntityRepository $er) use ($articles) { |
|
| 51 | + function(EntityRepository $er) use ($articles) { |
|
| 52 | 52 | return $er->getSupplierForReassign($articles[0]); |
| 53 | 53 | }, |
| 54 | 54 | 'multiple' => false, |