Browse Source

Fix PHPCS.

Mark Story 11 years ago
parent
commit
8c69ebf516

+ 2 - 2
src/Database/Schema/PostgresSchema.php

@@ -235,8 +235,8 @@ class PostgresSchema extends BaseSchema
             // If there is only one column in the primary key and it is integery,
             // make it autoincrement.
             $columnDef = $table->column($columns[0]);
-            if (
-                $type === Table::CONSTRAINT_PRIMARY &&
+
+            if ($type === Table::CONSTRAINT_PRIMARY &&
                 count($columns) === 1 &&
                 in_array($columnDef['type'], ['integer', 'biginteger'])
             ) {

+ 0 - 1
tests/TestCase/Database/Schema/PostgresSchemaTest.php

@@ -372,7 +372,6 @@ SQL;
         $this->assertTrue($result->column('id')['autoIncrement'], 'id should be autoincrement');
     }
 
-
     /**
      * Test describing a table containing defaults with Postgres
      *

+ 4 - 2
tests/TestCase/ORM/TableTest.php

@@ -4063,7 +4063,8 @@ class TableTest extends TestCase
      *
      * @return void
      */
-    public function skipIfSqlite() {
+    public function skipIfSqlite()
+    {
         $this->skipIf(
             $this->connection->driver() instanceof \Cake\Database\Driver\Sqlite,
             'SQLite does not support the requrirements of this test.'
@@ -4075,7 +4076,8 @@ class TableTest extends TestCase
      *
      * @return void
      */
-    public function skipIfSqlServer() {
+    public function skipIfSqlServer()
+    {
         $this->skipIf(
             $this->connection->driver() instanceof \Cake\Database\Driver\Sqlserver,
             'SQLServer does not support the requirements of this test.'