Completed
Push — master ( da1891...eebb53 )
by Anton
03:32
created
source/Spiral/Database/Drivers/SQLServer/SQLServerDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      */
85 85
     public function identifier($identifier)
86 86
     {
87
-        return $identifier == '*' ? '*' : '[' . str_replace('[', '[[', $identifier) . ']';
87
+        return $identifier == '*' ? '*' : '['.str_replace('[', '[[', $identifier).']';
88 88
     }
89 89
 
90 90
     /**
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLServer/Schemas/ColumnSchema.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                 }
234 234
 
235 235
                 $type = "ALTER COLUMN {$this->getName(true)} varchar($enumSize)";
236
-                $operations[] = $type . ' ' . ($this->nullable ? 'NULL' : 'NOT NULL');
236
+                $operations[] = $type.' '.($this->nullable ? 'NULL' : 'NOT NULL');
237 237
             } else {
238 238
                 $type = "ALTER COLUMN {$this->getName(true)} {$this->type}";
239 239
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                     $type .= "($this->precision, $this->scale)";
246 246
                 }
247 247
 
248
-                $operations[] = $type . ' ' . ($this->nullable ? 'NULL' : 'NOT NULL');
248
+                $operations[] = $type.' '.($this->nullable ? 'NULL' : 'NOT NULL');
249 249
             }
250 250
         }
251 251
 
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 
430 430
             //We made some assumptions here...
431 431
             if (preg_match_all(
432
-                '/' . $name . '=[\']?([^\']+)[\']?/i',
432
+                '/'.$name.'=[\']?([^\']+)[\']?/i',
433 433
                 $checkConstraint['definition'],
434 434
                 $matches
435 435
             )) {
@@ -448,6 +448,6 @@  discard block
 block discarded – undo
448 448
      */
449 449
     private function generateName($type)
450 450
     {
451
-        return $this->table->getName() . '_' . $this->getName() . "_{$type}_" . uniqid();
451
+        return $this->table->getName().'_'.$this->getName()."_{$type}_".uniqid();
452 452
     }
453 453
 }
454 454
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLServer/Schemas/Commander.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         if ($column->getName() != $initial->getName()) {
67 67
             //Renaming is separate operation
68 68
             $this->run("sp_rename ?, ?, 'COLUMN'", [
69
-                $table->getName() . '.' . $initial->getName(),
69
+                $table->getName().'.'.$initial->getName(),
70 70
                 $column->getName()
71 71
             ]);
72 72
         }
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
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
                     $selectColumns[] = "? AS {$this->quote($column)}";
35 35
                 }
36 36
 
37
-                $statement[] = 'SELECT ' . join(', ', $selectColumns);
37
+                $statement[] = 'SELECT '.join(', ', $selectColumns);
38 38
             } else {
39
-                $statement[] = 'UNION SELECT ' . trim(str_repeat('?, ', count($columns)), ', ');
39
+                $statement[] = 'UNION SELECT '.trim(str_repeat('?, ', count($columns)), ', ');
40 40
             }
41 41
         }
42 42
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $statement = '';
58 58
 
59 59
         if (!empty($limit) || !empty($offset)) {
60
-            $statement = "LIMIT " . ($limit ?: '-1') . " ";
60
+            $statement = "LIMIT ".($limit ?: '-1')." ";
61 61
         }
62 62
 
63 63
         if (!empty($offset)) {
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLite/Schemas/ReferenceSchema.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
         $statement = [];
23 23
 
24 24
         $statement[] = 'FOREIGN KEY';
25
-        $statement[] = '(' . $this->table->driver()->identifier($this->column) . ')';
25
+        $statement[] = '('.$this->table->driver()->identifier($this->column).')';
26 26
 
27
-        $statement[] = 'REFERENCES ' . $this->table->driver()->identifier($this->foreignTable);
28
-        $statement[] = '(' . $this->table->driver()->identifier($this->foreignKey) . ')';
27
+        $statement[] = 'REFERENCES '.$this->table->driver()->identifier($this->foreignTable);
28
+        $statement[] = '('.$this->table->driver()->identifier($this->foreignKey).')';
29 29
 
30 30
         $statement[] = "ON DELETE {$this->deleteRule}";
31 31
         $statement[] = "ON UPDATE {$this->updateRule}";
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLite/Schemas/TableSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
     {
164 164
         //Temporary table is required to copy data over
165 165
         $temporary = clone $this;
166
-        $temporary->setName('spiral_temp_' . $this->getName() . '_' . uniqid());
166
+        $temporary->setName('spiral_temp_'.$this->getName().'_'.uniqid());
167 167
 
168 168
         //We don't need any index in temporary table
169 169
         foreach ($temporary->getIndexes() as $index) {
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLite/Schemas/ColumnSchema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             $enumValues[] = $this->table->driver()->getPDO()->quote($value);
116 116
         }
117 117
 
118
-        return "$statement CHECK ({$this->getName(true)} IN (" . join(', ', $enumValues) . "))";
118
+        return "$statement CHECK ({$this->getName(true)} IN (".join(', ', $enumValues)."))";
119 119
     }
120 120
 
121 121
     /**
@@ -167,7 +167,7 @@  discard block
 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/Injections/Parameter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     {
109 109
         if (is_array($this->value)) {
110 110
             //Array were mocked
111
-            return '(' . trim(str_repeat('?, ', count($this->value)), ', ') . ')';
111
+            return '('.trim(str_repeat('?, ', count($this->value)), ', ').')';
112 112
         }
113 113
 
114 114
         return '?';
Please login to merge, or discard this patch.
source/Spiral/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.