Completed
Push — master ( 2f2a87...25acd6 )
by Alessandro
01:48
created
src/Expression.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function __construct()
17 17
     {
18
-        $this->queryPartial = [];
18
+        $this->queryPartial = [ ];
19 19
     }
20 20
 
21 21
     /**
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $this->prepareOperator('$and');
29 29
 
30
-        $this->queryPartial['$and'] = array_merge(
31
-            $this->queryPartial['$and'],
30
+        $this->queryPartial[ '$and' ] = array_merge(
31
+            $this->queryPartial[ '$and' ],
32 32
             array_map(
33
-                function ($expression) {
33
+                function($expression) {
34 34
                     return $expression instanceof Expression ? $expression->getQueryPartial() : $expression;
35 35
                 },
36 36
                 func_get_args()
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $this->prepareOperator('$or');
51 51
 
52
-        $this->queryPartial['$or'] = array_merge(
53
-            $this->queryPartial['$or'],
52
+        $this->queryPartial[ '$or' ] = array_merge(
53
+            $this->queryPartial[ '$or' ],
54 54
             array_map(
55
-                function ($expression) {
55
+                function($expression) {
56 56
                     return $expression instanceof Expression ? $expression->getQueryPartial() : $expression;
57 57
                 },
58 58
                 func_get_args()
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
      */
76 76
     private function prepareOperator(string $operator)
77 77
     {
78
-        if (!isset($this->queryPartial[$operator])) {
79
-            $this->queryPartial[$operator] = [];
78
+        if (!isset($this->queryPartial[ $operator ])) {
79
+            $this->queryPartial[ $operator ] = [ ];
80 80
         }
81 81
     }
82 82
 }
Please login to merge, or discard this patch.