Completed
Branch develop (1aa521)
by Anton
04:49
created
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.
source/Spiral/ODM/Document.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -292,7 +292,7 @@
 block discarded – undo
292 292
     protected function interpolateQuery(array $query)
293 293
     {
294 294
         $fields = $this->fields;
295
-        array_walk_recursive($query, function (&$value) use ($fields) {
295
+        array_walk_recursive($query, function(&$value) use ($fields) {
296 296
             if (strpos($value, 'self::') === 0) {
297 297
                 $value = $this->dotGet(substr($value, 6));
298 298
             }
Please login to merge, or discard this patch.
source/Spiral/Database/Builders/Prototypes/AbstractSelect.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
      */
345 345
     private function whereWrapper()
346 346
     {
347
-        return function ($parameter) {
347
+        return function($parameter) {
348 348
             if ($parameter instanceof FragmentInterface) {
349 349
                 //We are only not creating bindings for plan fragments
350 350
                 if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) {
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             }
354 354
 
355 355
             //Wrapping all values with ParameterInterface
356
-            $parameter = new Parameter($parameter, Parameter::DETECT_TYPE);;
356
+            $parameter = new Parameter($parameter, Parameter::DETECT_TYPE); ;
357 357
 
358 358
             //Let's store to sent to driver when needed
359 359
             $this->whereParameters[] = $parameter;
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/ODM/Entities/DocumentSelector.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/Stempler/Exporters/AttributesExporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         if (preg_match_all('/ node:attributes(?:=\"([^\'"]+)\")?/i', $this->content, $matches)) {
25 25
             //We have to sort from longest to shortest
26
-            uasort($matches[0], function ($replaceA, $replaceB) {
26
+            uasort($matches[0], function($replaceA, $replaceB) {
27 27
                 return strlen($replaceB) - strlen($replaceA);
28 28
             });
29 29
 
Please login to merge, or discard this patch.