Completed
Push — master ( c7cba4...39b3b0 )
by Anton
05:57
created
source/Spiral/Database/Drivers/MySQL/Schemas/ColumnSchema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,14 +189,14 @@
 block discarded – undo
189 189
         if ($this->abstractType() == 'enum') {
190 190
 
191 191
             //Fetching enum values
192
-            $this->enumValues = array_map(function ($value) {
192
+            $this->enumValues = array_map(function($value) {
193 193
                 return trim($value, $value[0]);
194 194
             }, explode(',', $options));
195 195
 
196 196
             return;
197 197
         }
198 198
 
199
-        $options = array_map(function ($value) {
199
+        $options = array_map(function($value) {
200 200
             return intval($value);
201 201
         }, explode(',', $options));
202 202
 
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLite/Schemas/ColumnSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
             }
168 168
         }
169 169
 
170
-        $options = array_map(function ($value) {
170
+        $options = array_map(function($value) {
171 171
             return intval($value);
172 172
         }, explode(',', $options));
173 173
 
Please login to merge, or discard this patch.
source/Spiral/Database/Entities/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@
 block discarded – undo
263 263
             $key = md5(serialize([$query, $parameters, $this->name, $this->prefix]));
264 264
         }
265 265
 
266
-        $data = $store->remember($key, $lifetime, function () use ($query, $parameters) {
266
+        $data = $store->remember($key, $lifetime, function() use ($query, $parameters) {
267 267
             return $this->query($query, $parameters)->fetchAll();
268 268
         });
269 269
 
Please login to merge, or discard this patch.
source/Spiral/ODM/Accessors/ScalarArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -374,7 +374,7 @@
 block discarded – undo
374 374
             return $this;
375 375
         }
376 376
 
377
-        $this->data = array_filter($this->data, function ($item) use ($value) {
377
+        $this->data = array_filter($this->data, function($item) use ($value) {
378 378
             return $item != $value;
379 379
         });
380 380
 
Please login to merge, or discard this patch.
source/Spiral/ODM/DocumentEntity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@
 block discarded – undo
425 425
             }
426 426
 
427 427
             if (is_array($value)) {
428
-                array_walk_recursive($value, function (&$value) {
428
+                array_walk_recursive($value, function(&$value) {
429 429
                     if ($value instanceof \MongoId) {
430 430
                         $value = (string)$value;
431 431
                     }
Please login to merge, or discard this patch.
source/Spiral/ODM/Entities/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
      */
151 151
     public function query(array $query = [])
152 152
     {
153
-        array_walk_recursive($query, function (&$value) {
153
+        array_walk_recursive($query, function(&$value) {
154 154
             if ($value instanceof \DateTime) {
155 155
                 //MongoDate is always UTC, which is good :)
156 156
                 $value = new \MongoDate($value->getTimestamp());
Please login to merge, or discard this patch.
source/Spiral/ORM/RecordEntity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,8 @@
 block discarded – undo
136 136
      *
137 137
      * @see Record::$indexes
138 138
      */
139
-    const INDEX  = 1000;            //Default index type
140
-    const UNIQUE = 2000;            //Unique index definition
139
+    const INDEX  = 1000; //Default index type
140
+    const UNIQUE = 2000; //Unique index definition
141 141
 
142 142
     /**
143 143
      * Errors in relations and acessors.
Please login to merge, or discard this patch.
source/Spiral/Tokenizer/Isolator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@
 block discarded – undo
245 245
 
246 246
             $source = preg_replace_callback(
247 247
                 $pattern['regexp'],
248
-                function ($tag) use (&$replaces, $pattern) {
248
+                function($tag) use (&$replaces, $pattern) {
249 249
                     $tag = $tag[0];
250 250
 
251 251
                     if ($key = array_search($tag, $replaces)) {
Please login to merge, or discard this patch.
source/Spiral/Tokenizer/Reflections/ReflectionArgument.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
     /**
16 16
      * Argument types.
17 17
      */
18
-    const CONSTANT   = 'constant';   //Scalar constant and not variable.
19
-    const VARIABLE   = 'variable';   //PHP variable
18
+    const CONSTANT   = 'constant'; //Scalar constant and not variable.
19
+    const VARIABLE   = 'variable'; //PHP variable
20 20
     const EXPRESSION = 'expression'; //PHP code (expression).
21
-    const STRING     = 'string';     //Simple scalar string, can be fetched using stringValue().
21
+    const STRING     = 'string'; //Simple scalar string, can be fetched using stringValue().
22 22
 
23 23
     /**
24 24
      * @var int
Please login to merge, or discard this patch.