Completed
Branch feature/pre-split (550332)
by Anton
06:55
created
source/Spiral/Reactor/FileDeclaration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $result = "<?php\n";
109 109
 
110 110
         if (!$this->docComment->isEmpty()) {
111
-            $result .= $this->docComment->render($indentLevel) . "\n";
111
+            $result .= $this->docComment->render($indentLevel)."\n";
112 112
         }
113 113
 
114 114
         if (!empty($this->namespace)) {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         }
117 117
 
118 118
         if (!empty($this->uses)) {
119
-            $result .= $this->renderUses($indentLevel) . "\n\n";
119
+            $result .= $this->renderUses($indentLevel)."\n\n";
120 120
         }
121 121
 
122 122
         $result .= $this->elements->render($indentLevel);
Please login to merge, or discard this patch.
source/Spiral/Database/Helpers/QueryInterpolator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,16 +120,16 @@
 block discarded – undo
120 120
                 return sprintf('%F', $parameter);
121 121
 
122 122
             case 'string':
123
-                return "'" . addcslashes($parameter, "'") . "'";
123
+                return "'".addcslashes($parameter, "'")."'";
124 124
 
125 125
             case 'object':
126 126
                 if (method_exists($parameter, '__toString')) {
127
-                    return "'" . addcslashes((string)$parameter, "'") . "'";
127
+                    return "'".addcslashes((string)$parameter, "'")."'";
128 128
                 }
129 129
 
130 130
                 if ($parameter instanceof \DateTime) {
131 131
                     //Let's process dates different way
132
-                    return "'" . $parameter->format(\DateTime::ISO8601) . "'";
132
+                    return "'".$parameter->format(\DateTime::ISO8601)."'";
133 133
                 }
134 134
         }
135 135
 
Please login to merge, or discard this patch.
Excluded/Database/Builders/Prototypes/AbstractWhere.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      * @see AbstractWhere
107 107
      * @param string|mixed $identifier Column or expression.
108 108
      * @param mixed        $variousA   Operator or value.
109
-     * @param mixed        $variousB   Value, if operator specified.
109
+     * @param Parameter        $variousB   Value, if operator specified.
110 110
      * @param mixed        $variousC   Required only in between statements.
111 111
      * @return $this
112 112
      * @throws BuilderException
Please login to merge, or discard this 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.
Excluded/Database/Builders/Traits/JoinsTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      * such methods.
233 233
      *
234 234
      * @see AbstractWhere
235
-     * @param string|mixed $joined   Joined column or expression.
235
+     * @param string $joined   Joined column or expression.
236 236
      * @param mixed        $variousA Operator or value.
237 237
      * @param mixed        $variousB Value, if operator specified.
238 238
      * @param mixed        $variousC Required only in between statements.
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      * @param string        $joiner     Boolean joiner (AND | OR).
301 301
      * @param array         $parameters Set of parameters collected from where functions.
302 302
      * @param array         $tokens     Array to aggregate compiled tokens. Reference.
303
-     * @param \Closure|null $wrapper    Callback or closure used to wrap/collect every potential
303
+     * @param callable $wrapper    Callback or closure used to wrap/collect every potential
304 304
      *                                  parameter.
305 305
      * @throws BuilderException
306 306
      */
Please login to merge, or discard this 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.
Excluded/Database/Entities/Schemas/AbstractCommander.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
      * Execute statement.
229 229
      *
230 230
      * @param string $statement
231
-     * @param array  $parameters
231
+     * @param string[]  $parameters
232 232
      * @return \PDOStatement
233 233
      */
234 234
     protected function run($statement, array $parameters = [])
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
         if (!empty($table->getPrimaryKeys())) {
286 286
             $primaryKeys = array_map([$this, 'quote'], $table->getPrimaryKeys());
287 287
 
288
-            $innerStatement[] = 'PRIMARY KEY (' . implode(', ', $primaryKeys) . ')';
288
+            $innerStatement[] = 'PRIMARY KEY ('.implode(', ', $primaryKeys).')';
289 289
         }
290 290
 
291 291
         //Constraints and foreign keys
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
             $innerStatement[] = $reference->sqlStatement();
294 294
         }
295 295
 
296
-        $statement[] = '    ' . implode(",\n    ", $innerStatement);
296
+        $statement[] = '    '.implode(",\n    ", $innerStatement);
297 297
         $statement[] = ')';
298 298
 
299 299
         return implode("\n", $statement);
Please login to merge, or discard this patch.
Excluded/Database/Entities/Schemas/AbstractTable.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,6 +161,7 @@  discard block
 block discarded – undo
161 161
      * {@inheritdoc}
162 162
      *
163 163
      * Automatically forces prefix value.
164
+     * @param string $name
164 165
      */
165 166
     public function setName($name)
166 167
     {
@@ -279,7 +280,7 @@  discard block
 block discarded – undo
279 280
      * $table->unique(['key', 'key2']);
280 281
      *
281 282
      * @param mixed $columns Column name, or array of columns.
282
-     * @return AbstractColumn|null
283
+     * @return AbstractIndex
283 284
      */
284 285
     public function unique($columns)
285 286
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
      */
165 165
     public function setName($name)
166 166
     {
167
-        parent::setName($this->prefix . $name);
167
+        parent::setName($this->prefix.$name);
168 168
     }
169 169
 
170 170
     /**
Please login to merge, or discard this patch.
Excluded/Migrations/Migration/Meta.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     /**
69 69
      * Migration status.
70 70
      *
71
-     * @return int
71
+     * @return boolean
72 72
      */
73 73
     public function getStatus()
74 74
     {
Please login to merge, or discard this patch.
Excluded/ODM/Entities/DocumentSelector.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -436,7 +436,7 @@
 block discarded – undo
436 436
      * Debug information and logging.
437 437
      *
438 438
      * @param \MongoCursor $cursor
439
-     * @param int|bool     $profiling Profiling level
439
+     * @param integer     $profiling Profiling level
440 440
      */
441 441
     protected function describeCursor(
442 442
         \MongoCursor $cursor,
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     public function __debugInfo()
329 329
     {
330 330
         return [
331
-            'collection' => $this->getDatabase() . '/' . $this->getCollection(),
331
+            'collection' => $this->getDatabase().'/'.$this->getCollection(),
332 332
             'query'      => $this->query,
333 333
             'limit'      => $this->getLimit(),
334 334
             'offset'     => $this->getOffset(),
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
      */
423 423
     private function normalizeDates(array $query)
424 424
     {
425
-        array_walk_recursive($query, function (&$value) {
425
+        array_walk_recursive($query, function(&$value) {
426 426
             if ($value instanceof \DateTime) {
427 427
                 //MongoDate is always UTC, which is good :)
428 428
                 $value = new \MongoDate($value->getTimestamp());
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
             $debug['explained'] = $cursor->explain();
472 472
         }
473 473
 
474
-        $this->logger()->debug('{db}/{collection}: ' . json_encode($debug, JSON_PRETTY_PRINT), [
474
+        $this->logger()->debug('{db}/{collection}: '.json_encode($debug, JSON_PRETTY_PRINT), [
475 475
             'db'         => $this->getDatabase(),
476 476
             'collection' => $this->getCollection(),
477 477
             'queryInfo'  => $debug,
Please login to merge, or discard this patch.
Excluded/ODM/Entities/Schemas/DocumentSchema.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     /**
69 69
      * Migration status.
70 70
      *
71
-     * @return int
71
+     * @return boolean
72 72
      */
73 73
     public function getStatus()
74 74
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@
 block discarded – undo
317 317
             if (
318 318
                 is_array($type)
319 319
                 && is_scalar($type[0])
320
-                && $filter = $this->builder->getMutators('array::' . $type[0])
320
+                && $filter = $this->builder->getMutators('array::'.$type[0])
321 321
             ) {
322 322
                 //Mutator associated to array with specified type
323 323
                 $resolved += $filter;
Please login to merge, or discard this patch.