Passed
Push — master ( 6028dd...89a59a )
by Vitaliy
02:15
created
src/Handler/PostProcess/SortHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         if (!is_array($src)) {
29 29
             $src = iterator_to_array($src);
30 30
         }
31
-        usort($src, function (RowInterface $row1, RowInterface $row2) use ($field, $desc) {
31
+        usort($src, function(RowInterface $row1, RowInterface $row2) use ($field, $desc) {
32 32
             $val1 = $row1->get($field);
33 33
             $val2 = $row2->get($field);
34 34
             if ($val1 == $val2) {
Please login to merge, or discard this patch.
src/Row/DynamicFieldsRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function getAll(RowInterface $row)
35 35
     {
36 36
         $res = [];
37
-        foreach(array_keys($this->dynamicFields) as $name) {
37
+        foreach (array_keys($this->dynamicFields) as $name) {
38 38
             $res[$name] = $this->get($name, $row);
39 39
         }
40 40
     }
Please login to merge, or discard this patch.
src/AbstractQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         foreach ($this->operations as $operation) {
63 63
             $handlers[] = $factory->makeHandler($operation);
64 64
         }
65
-        usort($handlers, function (HandlerInterface $a, HandlerInterface $b) {
65
+        usort($handlers, function(HandlerInterface $a, HandlerInterface $b) {
66 66
             $aPos = $a->getPriority();
67 67
             $bPos = $b->getPriority();
68 68
             if ($aPos == $bPos) {
Please login to merge, or discard this patch.
src/Operation/FilterOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 /**
6 6
  * DataProvider operation for filtering rows.
7 7
  */
8
-class FilterOperation implements OperationInterface{
8
+class FilterOperation implements OperationInterface {
9 9
 
10 10
     const OPERATOR_LIKE = 'like';
11 11
     const OPERATOR_STR_STARTS_WITH = 'str_starts_with';
Please login to merge, or discard this patch.
src/Row/AbstractRow.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,17 +34,17 @@
 block discarded – undo
34 34
 
35 35
     public function toArray()
36 36
     {
37
-        return array_merge((array)$this->getSrc(), $this->dynamicFieldsRegistry()->getAll($this));
37
+        return array_merge((array) $this->getSrc(), $this->dynamicFieldsRegistry()->getAll($this));
38 38
     }
39 39
 
40 40
     public function toObject()
41 41
     {
42 42
         $src = $this->getSrc();
43 43
         if (!is_object($src)) {
44
-            $src = (object)$src;
44
+            $src = (object) $src;
45 45
         }
46 46
         $dynamicFields = $this->dynamicFieldsRegistry()->getAll($this);
47
-        foreach($dynamicFields as $key => $value) {
47
+        foreach ($dynamicFields as $key => $value) {
48 48
             $src->{$key} = $value;
49 49
         }
50 50
         return $src;
Please login to merge, or discard this patch.
src/Handler/InitializeRowsHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         /** @var HydrateOperation $operation */
19 19
         $operation = $this->operation;
20 20
         $rowClass = $operation->getRowClass();
21
-        foreach($dataSource as $row) {
21
+        foreach ($dataSource as $row) {
22 22
             yield new $rowClass($operation->getDynamicFields(), $row);
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
src/DoctrineQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     protected function getCountInternal()
38 38
     {
39
-        return (int)$this
39
+        return (int) $this
40 40
             ->getDoctrineQuery()
41 41
             ->select('count(*) as row_count')
42 42
             ->execute()
Please login to merge, or discard this patch.
src/AbstractDatabaseQuery.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
         $readyQuery = null;
45 45
         $operation = new CustomOperation(
46
-            function ($query) use (&$readyQuery) {
46
+            function($query) use (&$readyQuery) {
47 47
                 $readyQuery = $query;
48 48
                 throw new ManualInterruptProcessingException;
49 49
             },
Please login to merge, or discard this patch.