Completed
Push — Recipes ( 630f49...c8afb0 )
by Laurent
12:15 queued 03:48
created
src/Repository/Settings/SupplierRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             ->where($query->expr()->neq('s.name', ':idname'))
71 71
             ->andWhere('s.familyLog = :flname')
72 72
             ->andWhere('s.active = true')
73
-            ->setParameters(['idname' => $supplier->getName(), 'flname' => $supplier->getFamilyLog(),])
73
+            ->setParameters(['idname' => $supplier->getName(), 'flname' => $supplier->getFamilyLog(), ])
74 74
             ->orderBy('s.name', 'ASC');
75 75
 
76 76
         return $query;
Please login to merge, or discard this patch.
src/Controller/AbstractAppController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
      * @param string                                    $entityName  Name of Entity
236 236
      * @param string                                    $prefixRoute Prefix of Route
237 237
      *
238
-     * @return array
238
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse
239 239
      */
240 240
     public function abstractDeleteWithArticlesAction($entity, Request $request, $entityName, $prefixRoute)
241 241
     {
Please login to merge, or discard this patch.
src/Controller/Orders/AbstractOrdersController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * Displays a form to edit an existing item entity.
49 49
      *
50
-     * @param Object $entity      Entity
50
+     * @param Orders $entity      Entity
51 51
      * @param string $prefixRoute Prefix of Route
52 52
      * @param string $typePath    Path of FormType
53 53
      * @return array
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * Edits an existing item entity.
71 71
      *
72
-     * @param Object                                    $entity      Entity
72
+     * @param Orders                                    $entity      Entity
73 73
      * @param \Symfony\Component\HttpFoundation\Request $request     Request in progress
74 74
      * @param string                                    $prefixRoute Prefix of Route
75 75
      * @param string                                    $typePath    Path of FormType
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         return $this->createForm(
41 41
             OrdersType::class,
42 42
             $orders,
43
-            ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'POST',]
43
+            ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'POST', ]
44 44
         );
45 45
     }
46 46
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $this->addRolesAction($editForm, $entity);
64 64
         }
65 65
 
66
-        return [$prefixRoute => $entity, 'edit_form' => $editForm->createView(),];
66
+        return [$prefixRoute => $entity, 'edit_form' => $editForm->createView(), ];
67 67
     }
68 68
 
69 69
     /**
@@ -117,22 +117,22 @@  discard block
 block discarded – undo
117 117
      */
118 118
     protected function abstractPrintAction(Orders $orders, $from)
119 119
     {
120
-        $file = $from . '-' . $orders->getId() . '.pdf';
120
+        $file = $from.'-'.$orders->getId().'.pdf';
121 121
         $company = $this->getDoctrine()->getManager()->getRepository('App:Settings\Company')->find(1);
122 122
         // Create and save the PDF file to print
123 123
         $html = $this->renderView(
124
-            'App:Orders/' . $from . ':print.pdf.twig',
124
+            'App:Orders/'.$from.':print.pdf.twig',
125 125
             ['articles' => $orders->getArticles(), 'orders' => $orders, 'company' => $company, ]
126 126
         );
127 127
         return new Response(
128 128
             $this->get('knp_snappy.pdf')->getOutputFromHtml(
129 129
                 $html,
130
-                $this->get('app.helper.controller')->getArray((string)date('d/m/y - H:i:s'), '')
130
+                $this->get('app.helper.controller')->getArray((string) date('d/m/y - H:i:s'), '')
131 131
             ),
132 132
             200,
133 133
             array(
134 134
                 'Content-Type' => 'application/pdf',
135
-                'Content-Disposition' => 'attachment; filename="' . $file . '"'
135
+                'Content-Disposition' => 'attachment; filename="'.$file.'"'
136 136
             )
137 137
         );
138 138
     }
Please login to merge, or discard this patch.
src/Controller/Orders/InvoicesController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
      * @Method("GET")
104 104
      * @Template()
105 105
      *
106
-     * @param \App\Entity\Orders $orders Order item to print
106
+     * @param Orders $orders Order item to print
107 107
      * @return \Symfony\Component\HttpFoundation\Response
108 108
      */
109 109
     public function printAction(Orders $orders)
Please login to merge, or discard this patch.
src/Controller/Settings/ArticleController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @Method("GET")
159 159
      * @Template()
160 160
      *
161
-     * @param \App\Entity\Supplier $supplier Supplier articles to reassign
161
+     * @param Supplier $supplier Supplier articles to reassign
162 162
      * @return array
163 163
      */
164 164
     public function reassignAction(Supplier $supplier)
@@ -189,8 +189,8 @@  discard block
 block discarded – undo
189 189
      * @Template("settings\article/reassign.html.twig")
190 190
      *
191 191
      * @param \Symfony\Component\HttpFoundation\Request $request  Form request
192
-     * @param \App\Entity\Supplier                      $supplier Supplier to desactivate
193
-     * @return array
192
+     * @param Supplier                      $supplier Supplier to desactivate
193
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse
194 194
      */
195 195
     public function changeAction(Request $request, Supplier $supplier)
196 196
     {
Please login to merge, or discard this patch.
src/Controller/Stocks/AbstractInventoryController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * Get the Inventory edit type
34 34
      *
35
-     * @param \App\Controller\Stocks\Inventory $inventory Inventaire à éditer
35
+     * @param Inventory $inventory Inventaire à éditer
36 36
      * @return array
37 37
      */
38 38
     protected function getInvetoryEditType(Inventory $inventory)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
             $typeClass,
51 51
             $inventory,
52 52
             ['action' => $this->generateUrl('inventory_update', ['id' => $inventory->getId()]),
53
-            'method' => 'PUT',]
53
+            'method' => 'PUT', ]
54 54
         );
55 55
         $deleteForm = $this->createDeleteForm($inventory->getId(), 'inventory_delete');
56 56
 
57 57
         $return = ['editForm' => $editForm, 'inventory' => $inventory, 'zoneStorages' => $zoneStorages,
58 58
             'edit_form'   => $editForm->createView(),
59
-            'delete_form' => $deleteForm->createView(),];
59
+            'delete_form' => $deleteForm->createView(), ];
60 60
         return $return;
61 61
     }
62 62
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         return $this->createForm(
73 73
             InventoryType::class,
74 74
             $inventory,
75
-            ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'PUT',]
75
+            ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'PUT', ]
76 76
         );
77 77
     }
78 78
     
Please login to merge, or discard this patch.
src/Entity/Orders/Orders.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     /**
159 159
      * Get amount
160 160
      *
161
-     * @return string
161
+     * @return double
162 162
      */
163 163
     public function getAmount()
164 164
     {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * Get tva
183 183
      *
184
-     * @return string
184
+     * @return double
185 185
      */
186 186
     public function getTva()
187 187
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function setAmount($amount)
152 152
     {
153
-        $this->amount = (double)$amount;
153
+        $this->amount = (double) $amount;
154 154
 
155 155
         return $this;
156 156
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      */
174 174
     public function setTva($tva)
175 175
     {
176
-        $this->tva = (double)$tva;
176
+        $this->tva = (double) $tva;
177 177
 
178 178
         return $this;
179 179
     }
Please login to merge, or discard this patch.
src/Entity/Settings/Diverse/FamilyLog.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
     /**
161 161
      * Get parent.
162 162
      *
163
-     * @return \App\Entity\Settings\Diverse\FamilyLog|null
163
+     * @return integer
164 164
      */
165 165
     public function getParent()
166 166
     {
Please login to merge, or discard this patch.
src/Controller/Orders/DeliveriesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $etm = $this->getDoctrine()->getManager();
43 43
         $item = $this->container->getParameter('knp_paginator.page_range');
44 44
         $qbd = $etm->getRepository('App:Orders\Orders')->createQueryBuilder('o');
45
-        $qbd->where('o.delivdate <= ' . date('Y-m-d'));
45
+        $qbd->where('o.delivdate <= '.date('Y-m-d'));
46 46
         $qbd->andWhere('o.status = 1');
47 47
         
48 48
         $paginator = $this->get('knp_paginator')->paginate($qbd, $request->query->get('page', 1), $item);
Please login to merge, or discard this patch.