Completed
Push — sf2.7 ( 18de34...b252b6 )
by Laurent
18:26
created
src/AppBundle/Controller/Settings/Divers/SubFamilyLogController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
     }
187 187
 
188 188
     /**
189
-     * @param QueryBuilder $qb
189
+     * @param \Doctrine\ORM\QueryBuilder $qb
190 190
      * @param string       $name
191 191
      */
192 192
     protected function addQueryBuilderSort(\Doctrine\ORM\QueryBuilder $qb, $name)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     protected function setOrder($name, $field, $type = 'ASC')
173 173
     {
174
-        $this->getRequest()->getSession()->set('sort.' . $name, array('field' => $field, 'type' => $type));
174
+        $this->getRequest()->getSession()->set('sort.'.$name, array('field' => $field, 'type' => $type));
175 175
     }
176 176
 
177 177
     /**
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $session = $this->getRequest()->getSession();
184 184
 
185
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
185
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
186 186
     }
187 187
 
188 188
     /**
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     {
194 194
         $alias = current($qb->getDQLPart('from'))->getAlias();
195 195
         if (is_array($order = $this->getOrder($name))) {
196
-            $qb->orderBy($alias . '.' . $order['field'], $order['type']);
196
+            $qb->orderBy($alias.'.'.$order['field'], $order['type']);
197 197
         }
198 198
     }
199 199
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/UserController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
      * @param  string        $name   route/entity name
217 217
      * @param  string        $route  route name, if different from entity name
218 218
      * @param  array         $params possible route parameters
219
-     * @return Response
219
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse|null
220 220
      */
221 221
     protected function saveFilter(FormInterface $form, $name, $route = null, array $params = null)
222 222
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     protected function setOrder($name, $field, $type = 'ASC')
185 185
     {
186
-        $this->getRequest()->getSession()->set('sort.' . $name, array('field' => $field, 'type' => $type));
186
+        $this->getRequest()->getSession()->set('sort.'.$name, array('field' => $field, 'type' => $type));
187 187
     }
188 188
 
189 189
     /**
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     {
195 195
         $session = $this->getRequest()->getSession();
196 196
 
197
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
197
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
198 198
     }
199 199
 
200 200
     /**
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     {
206 206
         $alias = current($qb->getDQLPart('from'))->getAlias();
207 207
         if (is_array($order = $this->getOrder($name))) {
208
-            $qb->orderBy($alias . '.' . $order['field'], $order['type']);
208
+            $qb->orderBy($alias.'.'.$order['field'], $order['type']);
209 209
         }
210 210
     }
211 211
 
@@ -223,11 +223,11 @@  discard block
 block discarded – undo
223 223
         $request = $this->getRequest();
224 224
         $url = $this->generateUrl($route ?: $name, is_null($params) ? array() : $params);
225 225
         if ($request->query->has('submit-filter') && $form->handleRequest($request)->isValid()) {
226
-            $request->getSession()->set('filter.' . $name, $request->query->get($form->getName()));
226
+            $request->getSession()->set('filter.'.$name, $request->query->get($form->getName()));
227 227
 
228 228
             return $this->redirect($url);
229 229
         } elseif ($request->query->has('reset-filter')) {
230
-            $request->getSession()->set('filter.' . $name, null);
230
+            $request->getSession()->set('filter.'.$name, null);
231 231
 
232 232
             return $this->redirect($url);
233 233
         }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     protected function getFilter($name)
264 264
     {
265
-        return $this->getRequest()->getSession()->get('filter.' . $name);
265
+        return $this->getRequest()->getSession()->get('filter.'.$name);
266 266
     }
267 267
 
268 268
     /**
Please login to merge, or discard this patch.
src/AppBundle/Entity/Article.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
     /**
333 333
      * Get supplier.
334 334
      *
335
-     * @return Supplier
335
+     * @return string
336 336
      */
337 337
     public function getSupplier()
338 338
     {
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
     /**
357 357
      * Get unit_storage.
358 358
      *
359
-     * @return UnitStorage
359
+     * @return string
360 360
      */
361 361
     public function getUnitStorage()
362 362
     {
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     /**
394 394
      * Get zone_storages.
395 395
      *
396
-     * @return \Doctrine\Common\Collections\Collection
396
+     * @return string
397 397
      */
398 398
     public function getZoneStorages()
399 399
     {
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
     /**
418 418
      * Get family_log.
419 419
      *
420
-     * @return FamilyLog
420
+     * @return string
421 421
      */
422 422
     public function getFamilyLog()
423 423
     {
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
     /**
442 442
      * Get sub_family_log.
443 443
      *
444
-     * @return SubFamilyLog
444
+     * @return string
445 445
      */
446 446
     public function getSubFamilyLog()
447 447
     {
Please login to merge, or discard this patch.
src/AppBundle/Entity/Settings.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     /**
130 130
      * Set first_inventory.
131 131
      *
132
-     * @param datetime $firstInventory Date du premier inventaire
132
+     * @param \DateTime $firstInventory Date du premier inventaire
133 133
      *
134 134
      * @return Settings
135 135
      */
Please login to merge, or discard this patch.
src/AppBundle/Entity/SubFamilyLog.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
     /**
167 167
      * Get familylogs
168 168
      *
169
-     * @return \AppBundle\Entity\FamilyLog 
169
+     * @return string 
170 170
      */
171 171
     public function getFamilylogs()
172 172
     {
Please login to merge, or discard this patch.
src/AppBundle/Entity/Supplier.php 1 patch
Doc Comments   +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
      * Get family_log.
152 152
      *
153
-     * @return FamilyLog
153
+     * @return string
154 154
      */
155 155
     public function getFamilyLog()
156 156
     {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     /**
175 175
      * Get sub_family_log.
176 176
      *
177
-     * @return SubFamilyLog
177
+     * @return string
178 178
      */
179 179
     public function getSubFamilyLog()
180 180
     {
Please login to merge, or discard this patch.
src/AppBundle/Tests/Controller/UserControllerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,8 +94,8 @@
 block discarded – undo
94 94
     }
95 95
 
96 96
 /**
97
-     * @depends testCreate
98
-     */
97
+ * @depends testCreate
98
+ */
99 99
 
100 100
     public function testSort() {
101 101
         $client = static::createClient();
Please login to merge, or discard this patch.
src/AppBundle/Menu/RequestVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             // URL's completely match
24 24
             return true;
25 25
         } else if (
26
-            $item->getUri() !== $request->getBaseUrl() . '/' &&
26
+            $item->getUri() !== $request->getBaseUrl().'/' &&
27 27
             substr($request->getRequestUri(), 0, strlen($item->getUri()))
28 28
             === $item->getUri()) {
29 29
             // URL isn't just "/" and the first part of the URL match
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/UserFilterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
                 'class' => 'AppBundle\Entity\Group',
23 23
                 'expanded' => true,
24 24
                 'multiple' => true,
25
-                'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
25
+                'apply_filter' => function(QueryInterface $filterQuery, $field, $values) {
26 26
                     $query = $filterQuery->getQueryBuilder();
27 27
                     $query->leftJoin($field, 'm');
28 28
                     // Filter results using orWhere matching ID
Please login to merge, or discard this patch.