Completed
Push — master ( da1891...eebb53 )
by Anton
03:32
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/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/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.
source/Spiral/Tokenizer/Prototypes/AbstractLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
      */
147 147
     protected function classReflection($class)
148 148
     {
149
-        $loader = function ($class) {
149
+        $loader = function($class) {
150 150
             throw new LocatorException("Class '{$class}' can not be loaded.");
151 151
         };
152 152
 
Please login to merge, or discard this patch.
source/Spiral/Database/Builders/Traits/JoinsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      */
319 319
     private function onWrapper()
320 320
     {
321
-        return function ($parameter) {
321
+        return function($parameter) {
322 322
             if ($parameter instanceof FragmentInterface) {
323 323
                 return $parameter;
324 324
             }
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
      */
335 335
     private function whereWrapper()
336 336
     {
337
-        return function ($parameter) {
337
+        return function($parameter) {
338 338
             if ($parameter instanceof FragmentInterface) {
339 339
                 //We are only not creating bindings for plan fragments
340 340
                 if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) {
Please login to merge, or discard this patch.
source/Spiral/Database/Builders/Prototypes/AbstractSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -419,7 +419,7 @@
 block discarded – undo
419 419
      */
420 420
     private function havingWrapper()
421 421
     {
422
-        return function ($parameter) {
422
+        return function($parameter) {
423 423
             if ($parameter instanceof FragmentInterface) {
424 424
                 //We are only not creating bindings for plan fragments
425 425
                 if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) {
Please login to merge, or discard this patch.
source/Spiral/Core/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -429,7 +429,7 @@
 block discarded – undo
429 429
         $class,
430 430
         array $parameters,
431 431
         $context = null,
432
-        \ReflectionClass &$reflection = null
432
+        \ReflectionClass & $reflection = null
433 433
     ) {
434 434
         try {
435 435
             $reflection = new \ReflectionClass($class);
Please login to merge, or discard this patch.
source/Spiral/Database/Builders/Prototypes/AbstractWhere.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -419,7 +419,7 @@
 block discarded – undo
419 419
      */
420 420
     private function havingWrapper()
421 421
     {
422
-        return function ($parameter) {
422
+        return function($parameter) {
423 423
             if ($parameter instanceof FragmentInterface) {
424 424
                 //We are only not creating bindings for plan fragments
425 425
                 if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) {
Please login to merge, or discard this patch.
source/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             $value = '';
33 33
         }
34 34
 
35
-        $replaces[$prefix . $key . $postfix] = $value;
35
+        $replaces[$prefix.$key.$postfix] = $value;
36 36
     }
37 37
 
38 38
     return strtr($string, $replaces);
Please login to merge, or discard this patch.