Completed
Branch dbal-improvement (0b9e21)
by Anton
05:00
created
source/Spiral/Database/Drivers/MySQL/Schemas/ColumnSchema.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spiral Framework.
4
- *
5
- * @license   MIT
6
- * @author    Anton Titov (Wolfy-J)
7
- */
3
+     * Spiral Framework.
4
+     *
5
+     * @license   MIT
6
+     * @author    Anton Titov (Wolfy-J)
7
+     */
8 8
 namespace Spiral\Database\Drivers\MySQL\Schemas;
9 9
 
10 10
 use Spiral\Database\DatabaseManager;
Please login to merge, or discard this 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/Database/Drivers/MySQL/Schemas/Commander.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spiral Framework.
4
- *
5
- * @license   MIT
6
- * @author    Anton Titov (Wolfy-J)
7
- */
3
+     * Spiral Framework.
4
+     *
5
+     * @license   MIT
6
+     * @author    Anton Titov (Wolfy-J)
7
+     */
8 8
 
9 9
 namespace Spiral\Database\Drivers\MySQL\Schemas;
10 10
 
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/MySQL/Schemas/IndexSchema.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spiral Framework.
4
- *
5
- * @license   MIT
6
- * @author    Anton Titov (Wolfy-J)
7
- */
3
+     * Spiral Framework.
4
+     *
5
+     * @license   MIT
6
+     * @author    Anton Titov (Wolfy-J)
7
+     */
8 8
 namespace Spiral\Database\Drivers\MySQL\Schemas;
9 9
 
10 10
 use Spiral\Database\Entities\Schemas\AbstractIndex;
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/MySQL/Schemas/ReferenceSchema.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spiral Framework.
4
- *
5
- * @license   MIT
6
- * @author    Anton Titov (Wolfy-J)
7
- */
3
+     * Spiral Framework.
4
+     *
5
+     * @license   MIT
6
+     * @author    Anton Titov (Wolfy-J)
7
+     */
8 8
 namespace Spiral\Database\Drivers\MySQL\Schemas;
9 9
 
10 10
 use Spiral\Database\Entities\Schemas\AbstractReference;
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/MySQL/Schemas/TableSchema.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spiral Framework.
4
- *
5
- * @license   MIT
6
- * @author    Anton Titov (Wolfy-J)
7
- */
3
+     * Spiral Framework.
4
+     *
5
+     * @license   MIT
6
+     * @author    Anton Titov (Wolfy-J)
7
+     */
8 8
 namespace Spiral\Database\Drivers\MySQL\Schemas;
9 9
 
10 10
 use Spiral\Database\Entities\Driver;
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/Postgres/InsertQuery.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spiral Framework.
4
- *
5
- * @license   MIT
6
- * @author    Anton Titov (Wolfy-J)
7
- */
3
+     * Spiral Framework.
4
+     *
5
+     * @license   MIT
6
+     * @author    Anton Titov (Wolfy-J)
7
+     */
8 8
 namespace Spiral\Database\Drivers\Postgres;
9 9
 
10 10
 use Spiral\Database\Drivers\Postgres\QueryCompiler as PostgresCompiler;
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/Postgres/PostgresDriver.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spiral Framework.
4
- *
5
- * @license   MIT
6
- * @author    Anton Titov (Wolfy-J)
7
- */
3
+     * Spiral Framework.
4
+     *
5
+     * @license   MIT
6
+     * @author    Anton Titov (Wolfy-J)
7
+     */
8 8
 namespace Spiral\Database\Drivers\Postgres;
9 9
 
10 10
 use Spiral\Core\ConstructorInterface;
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/Postgres/QueryCompiler.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spiral Framework.
4
- *
5
- * @license   MIT
6
- * @author    Anton Titov (Wolfy-J)
7
- */
3
+     * Spiral Framework.
4
+     *
5
+     * @license   MIT
6
+     * @author    Anton Titov (Wolfy-J)
7
+     */
8 8
 namespace Spiral\Database\Drivers\Postgres;
9 9
 
10 10
 use Spiral\Database\Entities\QueryCompiler as AbstractCompiler;
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/Postgres/Schemas/ColumnSchema.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Spiral Framework.
4
- *
5
- * @license   MIT
6
- * @author    Anton Titov (Wolfy-J)
7
- */
3
+     * Spiral Framework.
4
+     *
5
+     * @license   MIT
6
+     * @author    Anton Titov (Wolfy-J)
7
+     */
8 8
 namespace Spiral\Database\Drivers\Postgres\Schemas;
9 9
 
10 10
 use Spiral\Database\Entities\Schemas\AbstractColumn;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -399,7 +399,7 @@
 block discarded – undo
399 399
             . "WHERE conrelid = ? AND contype = 'c' AND (consrc LIKE ? OR consrc LIKE ?)";
400 400
 
401 401
         $constraints = $this->table->driver()->query(
402
-            $query, [$tableOID, '(' . $this->name . '%', '("' . $this->name . '%',]
402
+            $query, [$tableOID, '(' . $this->name . '%', '("' . $this->name . '%', ]
403 403
         );
404 404
 
405 405
         foreach ($constraints as $constraint) {
Please login to merge, or discard this patch.