Passed
Branch master (7bcea6)
by Flavien
28:53
created
src/Controller/ControllerWorkflowFeaturesTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             return View::create(['message' => 'Element not found'], Response::HTTP_NOT_FOUND);
52 52
         }
53 53
 
54
-        $workflow = $this->get('workflow.'.$workflowName);
54
+        $workflow = $this->get('workflow.' . $workflowName);
55 55
 
56 56
         return $workflow->getEnabledTransitions($element);
57 57
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 ->find($request->get('id'));
71 71
 
72 72
         $newState = $request->get('state_name');
73
-        $workflow = $this->get('workflow.'.$workflowName);
73
+        $workflow = $this->get('workflow.' . $workflowName);
74 74
 
75 75
         $can = $this->checkIfElementCanChangeStatut($newState, $workflow, $element);
76 76
         if ($can !== false) {
Please login to merge, or discard this patch.
src/Repository/PaginationAndSortingFeaturesTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         foreach ($fields as $field) {
60 60
             if (isset($sorting[$field])) {
61 61
                 $direction = ($sorting[$field] === 'asc') ? 'asc' : 'desc';
62
-                $queryBuilder->addOrderBy('r.'.$field, $direction);
62
+                $queryBuilder->addOrderBy('r.' . $field, $direction);
63 63
             }
64 64
         }
65 65
 
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     {
78 78
         foreach ($fields as $field) {
79 79
             if (isset($searching[$field])) {
80
-                $queryBuilder->orWhere($queryBuilder->expr()->like('r.'.$field, ':'.$field));
81
-                $queryBuilder->setParameter($field, '%'.$searching[$field].'%');
80
+                $queryBuilder->orWhere($queryBuilder->expr()->like('r.' . $field, ':' . $field));
81
+                $queryBuilder->setParameter($field, '%' . $searching[$field] . '%');
82 82
             }
83 83
         }
84 84
 
Please login to merge, or discard this patch.
src/Tests/Functionnal/WebTestCase.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -182,8 +182,6 @@
 block discarded – undo
182 182
     }
183 183
 
184 184
     /**
185
-     * @param string $method
186
-     * @param string $route
187 185
      *
188 186
      * @return Client
189 187
      */
Please login to merge, or discard this patch.