Passed
Branch master (ba063a)
by Mauro
03:05
created
Category
src/Filters/SortingFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     private static function sort($results, $sortingArray)
45 45
     {
46
-        usort($results, function ($first, $second) use ($sortingArray) {
46
+        usort($results, function($first, $second) use ($sortingArray) {
47 47
             $valueA = self::getArrayElementValueFromKey($sortingArray['key'], $first);
48 48
             $valueB = self::getArrayElementValueFromKey($sortingArray['key'], $second);
49 49
 
Please login to merge, or discard this patch.
src/Filters/AbstractFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $convertedArray = [];
39 39
 
40
-        foreach ((array)$arrayElement as $key => $element) {
40
+        foreach ((array) $arrayElement as $key => $element) {
41 41
             $key = explode("\\", $key);
42 42
             $key = end($key);
43 43
             $key = explode("\000", $key);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     private static function getValueFromKeysArray($keysArray, $arrayElement)
58 58
     {
59
-        if (count($keysArray)>1) {
59
+        if (count($keysArray) > 1) {
60 60
             $key = array_shift($keysArray);
61 61
 
62 62
             return self::getValueFromKeysArray($keysArray, (array) $arrayElement[$key]);
Please login to merge, or discard this patch.
src/QueryBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
 
234 234
         foreach ($this->criteria as $criterion) {
235 235
             $results = array_filter(
236
-                (isset($results)) ? $results : $array, function ($element) use ($criterion) {
236
+                (isset($results)) ? $results : $array, function($element) use ($criterion) {
237 237
                     return CriterionFilter::filter($criterion, $element);
238 238
                 }
239 239
             );
Please login to merge, or discard this patch.