Passed
Branch 3.0.0 (bab743)
by Joao
04:18
created
src/Store/Helpers/SqlHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                     $campos .= ", ";
80 80
                     $valores .= ", ";
81 81
                 }
82
-                $campos .= $this->fieldDeliLeft . $fieldname . $this->fieldDeliRight;
82
+                $campos .= $this->fieldDeliLeft.$fieldname.$this->fieldDeliRight;
83 83
                 $valores .= $this->getValue($fieldname, $fieldvalue, $param, $decimalpoint);
84 84
             }
85 85
             $sql = "insert into $table ($campos) values ($valores)";
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     protected function getValue($name, $valores, &$param, $decimalpoint)
105 105
     {
106
-        $paramName = "[[" . $name . "]]";
106
+        $paramName = "[[".$name."]]";
107 107
         if (!is_array($valores)) {
108 108
             $valores = array(SQLFieldType::TEXT, $valores);
109 109
         }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         if (strlen($sql) > 4) {
152 152
             $sql .= ' and ';
153 153
         }
154
-        $sql = " $fieldName " . $relation . " " . $this->getValue($fieldName, $value, $param, '.');
154
+        $sql = " $fieldName ".$relation." ".$this->getValue($fieldName, $value, $param, '.');
155 155
     }
156 156
 
157 157
     public function setFieldDelimeters($left, $right)
Please login to merge, or discard this patch.
src/Store/Helpers/DbMysqlFunctions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
     public function concat($str1, $str2 = null)
11 11
     {
12
-        return "concat(" . implode(func_get_args(), ', ') . ")";
12
+        return "concat(".implode(func_get_args(), ', ').")";
13 13
     }
14 14
 
15 15
     /**
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
26 26
         }
27 27
 
28 28
         if (stripos($sql, ' LIMIT ') === false) {
29
-            $sql = $sql . " LIMIT x, y";
29
+            $sql = $sql." LIMIT x, y";
30 30
         }
31 31
 
32 32
         return preg_replace(
33 33
             '~(\s[Ll][Ii][Mm][Ii][Tt])\s.*?,\s*.*~',
34
-            '$1 ' . $start .', ' .$qty,
34
+            '$1 '.$start.', '.$qty,
35 35
             $sql
36 36
         );
37 37
     }
Please login to merge, or discard this patch.
src/Store/Helpers/DbDblibFunctions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
         return preg_replace(
42 42
             '~(\s[Tt][Oo][Pp])\s.*?\d+\s~',
43
-            '$1 ' . $qty . ' ',
43
+            '$1 '.$qty.' ',
44 44
             $sql
45 45
         );
46 46
     }
Please login to merge, or discard this patch.
src/Store/Helpers/DbBaseFunctions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             if (isset($pattern[$value])) {
88 88
                 $formatted = $pattern[$value];
89 89
             } else {
90
-                $formatted = $delimitString . $value . $delimitString;
90
+                $formatted = $delimitString.$value.$delimitString;
91 91
             }
92 92
             $prepareString[$key] = $formatted;
93 93
         }
Please login to merge, or discard this patch.
src/Store/Helpers/DbPgsqlFunctions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@
 block discarded – undo
26 26
         }
27 27
 
28 28
         if (stripos($sql, ' LIMIT ') === false) {
29
-            $sql = $sql . " LIMIT x OFFSET y";
29
+            $sql = $sql." LIMIT x OFFSET y";
30 30
         }
31 31
 
32 32
         return preg_replace(
33 33
             '~(\s[Ll][Ii][Mm][Ii][Tt])\s.*?\s([Oo][Ff][Ff][Ss][Ee][Tt])\s.*~',
34
-            '$1 ' . $qty .' $2 ' .$start,
34
+            '$1 '.$qty.' $2 '.$start,
35 35
             $sql
36 36
         );
37 37
     }
Please login to merge, or discard this patch.
src/Store/MongoDbDriver.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         }
123 123
 
124 124
         $dataCursor = $this->mongoManager->executeQuery(
125
-            $this->database . '.' . $collection,
125
+            $this->database.'.'.$collection,
126 126
             $this->getMongoFilterArray($filter)
127 127
         );
128 128
 
@@ -167,31 +167,31 @@  discard block
 block discarded – undo
167 167
                     break;
168 168
 
169 169
                 case Relation::GREATER_THAN:
170
-                    $result[$name] = [ '$gt' => $value ];
170
+                    $result[$name] = ['$gt' => $value];
171 171
                     break;
172 172
 
173 173
                 case Relation::LESS_THAN:
174
-                    $result[$name] = [ '$lt' => $value ];
174
+                    $result[$name] = ['$lt' => $value];
175 175
                     break;
176 176
 
177 177
                 case Relation::GREATER_OR_EQUAL_THAN:
178
-                    $result[$name] = [ '$gte' => $value ];
178
+                    $result[$name] = ['$gte' => $value];
179 179
                     break;
180 180
 
181 181
                 case Relation::LESS_OR_EQUAL_THAN:
182
-                    $result[$name] = [ '$lte' => $value ];
182
+                    $result[$name] = ['$lte' => $value];
183 183
                     break;
184 184
 
185 185
                 case Relation::NOT_EQUAL:
186
-                    $result[$name] = [ '$ne' => $value ];
186
+                    $result[$name] = ['$ne' => $value];
187 187
                     break;
188 188
 
189 189
                 case Relation::STARTS_WITH:
190
-                    $result[$name] = [ '$regex' => "^$value" ];
190
+                    $result[$name] = ['$regex' => "^$value"];
191 191
                     break;
192 192
 
193 193
                 case Relation::CONTAINS:
194
-                    $result[$name] = [ '$regex' => "$value" ];
194
+                    $result[$name] = ['$regex' => "$value"];
195 195
                     break;
196 196
 
197 197
             }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 
220 220
         $bulkWrite->delete($this->getMongoFilterArray($filter));
221 221
         $this->mongoManager->executeBulkWrite(
222
-            $this->database . '.' . $collection,
222
+            $this->database.'.'.$collection,
223 223
             $bulkWrite,
224 224
             $writeConcern
225 225
         );
@@ -241,10 +241,10 @@  discard block
 block discarded – undo
241 241
             $idDocument = isset($data['_id']) ? $data['_id'] : null;
242 242
         }
243 243
 
244
-        $data['updated'] = new UTCDateTime((new \DateTime())->getTimestamp()*1000);
244
+        $data['updated'] = new UTCDateTime((new \DateTime())->getTimestamp() * 1000);
245 245
         if (empty($idDocument)) {
246 246
             $data['_id'] = $idDocument = new ObjectID();
247
-            $data['created'] = new UTCDateTime((new \DateTime())->getTimestamp()*1000);
247
+            $data['created'] = new UTCDateTime((new \DateTime())->getTimestamp() * 1000);
248 248
             $bulkWrite->insert($data);
249 249
         } else {
250 250
             $data['_id'] = $idDocument;
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         }
253 253
 
254 254
         $this->mongoManager->executeBulkWrite(
255
-            $this->database . "." . $document->getCollection(),
255
+            $this->database.".".$document->getCollection(),
256 256
             $bulkWrite,
257 257
             $writeConcern
258 258
         );
Please login to merge, or discard this patch.