Completed
Branch feature/pre-split (7b42f5)
by Anton
03:44
created
source/Spiral/Database/Drivers/MySQL/QueryCompiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $statement = '';
55 55
         if (!empty($limit) || !empty($offset)) {
56 56
             //When limit is not provided but offset does we can replace limit value with PHP_INT_MAX
57
-            $statement = 'LIMIT ' . ($limit ?: '18446744073709551615') . ' ';
57
+            $statement = 'LIMIT '.($limit ?: '18446744073709551615').' ';
58 58
         }
59 59
 
60 60
         if (!empty($offset)) {
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLite/QueryCompiler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
                     $selectColumns[] = "? AS {$this->quote($column)}";
36 36
                 }
37 37
 
38
-                $statement[] = 'SELECT ' . implode(', ', $selectColumns);
38
+                $statement[] = 'SELECT '.implode(', ', $selectColumns);
39 39
             } else {
40
-                $statement[] = 'UNION SELECT ' . trim(str_repeat('?, ', count($columns)), ', ');
40
+                $statement[] = 'UNION SELECT '.trim(str_repeat('?, ', count($columns)), ', ');
41 41
             }
42 42
         }
43 43
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $statement = '';
59 59
 
60 60
         if (!empty($limit) || !empty($offset)) {
61
-            $statement = 'LIMIT ' . ($limit ?: '-1') . ' ';
61
+            $statement = 'LIMIT '.($limit ?: '-1').' ';
62 62
         }
63 63
 
64 64
         if (!empty($offset)) {
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/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.
Excluded/old-orm/Entities/Relation.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@
 block discarded – undo
330 330
      * Perform iterator on pre-loaded data. Use relation selector to iterate thought custom relation
331 331
      * query.
332 332
      *
333
-     * @return RecordEntity|RecordEntity[]|RecordIterator
333
+     * @return null|EntityInterface
334 334
      */
335 335
     public function getIterator()
336 336
     {
Please login to merge, or discard this patch.
Excluded/old-orm/Entities/Relations/ManyToMany.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      * Method will not affect state of pre-loaded data! Use reset() method to do that.
100 100
      *
101 101
      * @see sync()
102
-     * @param mixed $outer
102
+     * @param \Spiral\ORM\RecordInterface $outer
103 103
      * @param array $pivotData
104 104
      */
105 105
     public function link($outer, array $pivotData = [])
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
         //this type of relation
217 217
         $loader = new ManyToManyLoader($this->orm, '', $this->definition);
218 218
         $selector = $loader->createSelector($this->parentRole())->where(
219
-            $loader->pivotAlias() . '.' . $this->definition[RecordEntity::THOUGHT_INNER_KEY],
219
+            $loader->pivotAlias().'.'.$this->definition[RecordEntity::THOUGHT_INNER_KEY],
220 220
             $this->parentKey()
221 221
         );
222 222
 
Please login to merge, or discard this patch.