Browse Source

Fix CS errors

ADmad 6 years ago
parent
commit
7ba2e7d3ce

+ 1 - 1
src/I18n/DateFormatTrait.php

@@ -451,7 +451,7 @@ trait DateFormatTrait
         return [
             'time' => $this->format('Y-m-d\TH:i:s.uP'),
             'timezone' => $this->getTimezone()->getName(),
-            'fixedNowTime' => static::hasTestNow() ? static::getTestNow()->format('Y-m-d\TH:i:s.uP') : false
+            'fixedNowTime' => static::hasTestNow() ? static::getTestNow()->format('Y-m-d\TH:i:s.uP') : false,
         ];
     }
 }

+ 6 - 6
tests/TestCase/Database/Schema/MysqlSchemaTest.php

@@ -110,11 +110,11 @@ class MysqlSchemaTest extends TestCase
             ],
             [
                 'VARCHAR(255)',
-                ['type' => 'string', 'length' => 255, 'collate' => 'utf8_general_ci']
+                ['type' => 'string', 'length' => 255, 'collate' => 'utf8_general_ci'],
             ],
             [
                 'CHAR(25)',
-                ['type' => 'string', 'length' => 25, 'fixed' => true, 'collate' => 'utf8_general_ci']
+                ['type' => 'string', 'length' => 25, 'fixed' => true, 'collate' => 'utf8_general_ci'],
             ],
             [
                 'CHAR(36)',
@@ -130,19 +130,19 @@ class MysqlSchemaTest extends TestCase
             ],
             [
                 'TEXT',
-                ['type' => 'text', 'length' => null, 'collate' => 'utf8_general_ci']
+                ['type' => 'text', 'length' => null, 'collate' => 'utf8_general_ci'],
             ],
             [
                 'TINYTEXT',
-                ['type' => 'text', 'length' => TableSchema::LENGTH_TINY, 'collate' => 'utf8_general_ci']
+                ['type' => 'text', 'length' => TableSchema::LENGTH_TINY, 'collate' => 'utf8_general_ci'],
             ],
             [
                 'MEDIUMTEXT',
-                ['type' => 'text', 'length' => TableSchema::LENGTH_MEDIUM, 'collate' => 'utf8_general_ci']
+                ['type' => 'text', 'length' => TableSchema::LENGTH_MEDIUM, 'collate' => 'utf8_general_ci'],
             ],
             [
                 'LONGTEXT',
-                ['type' => 'text', 'length' => TableSchema::LENGTH_LONG, 'collate' => 'utf8_general_ci']
+                ['type' => 'text', 'length' => TableSchema::LENGTH_LONG, 'collate' => 'utf8_general_ci'],
             ],
             [
                 'TINYBLOB',

+ 9 - 9
tests/TestCase/Database/Schema/PostgresSchemaTest.php

@@ -155,35 +155,35 @@ SQL;
             // String
             [
                 ['type' => 'VARCHAR'],
-                ['type' => 'string', 'length' => null, 'collate' => 'ja_JP.utf8']
+                ['type' => 'string', 'length' => null, 'collate' => 'ja_JP.utf8'],
             ],
             [
                 ['type' => 'VARCHAR(10)'],
-                ['type' => 'string', 'length' => 10, 'collate' => 'ja_JP.utf8']
+                ['type' => 'string', 'length' => 10, 'collate' => 'ja_JP.utf8'],
             ],
             [
                 ['type' => 'CHARACTER VARYING'],
-                ['type' => 'string', 'length' => null, 'collate' => 'ja_JP.utf8']
+                ['type' => 'string', 'length' => null, 'collate' => 'ja_JP.utf8'],
             ],
             [
                 ['type' => 'CHARACTER VARYING(10)'],
-                ['type' => 'string', 'length' => 10, 'collate' => 'ja_JP.utf8']
+                ['type' => 'string', 'length' => 10, 'collate' => 'ja_JP.utf8'],
             ],
             [
                 ['type' => 'CHARACTER VARYING(255)', 'default' => 'NULL::character varying'],
-                ['type' => 'string', 'length' => 255, 'default' => null, 'collate' => 'ja_JP.utf8']
+                ['type' => 'string', 'length' => 255, 'default' => null, 'collate' => 'ja_JP.utf8'],
             ],
             [
                 ['type' => 'CHAR(10)'],
-                ['type' => 'string', 'fixed' => true, 'length' => 10, 'collate' => 'ja_JP.utf8']
+                ['type' => 'string', 'fixed' => true, 'length' => 10, 'collate' => 'ja_JP.utf8'],
             ],
             [
                 ['type' => 'CHAR(36)'],
-                ['type' => 'string', 'fixed' => true, 'length' => 36, 'collate' => 'ja_JP.utf8']
+                ['type' => 'string', 'fixed' => true, 'length' => 36, 'collate' => 'ja_JP.utf8'],
             ],
             [
                 ['type' => 'CHARACTER(10)'],
-                ['type' => 'string', 'fixed' => true, 'length' => 10, 'collate' => 'ja_JP.utf8']
+                ['type' => 'string', 'fixed' => true, 'length' => 10, 'collate' => 'ja_JP.utf8'],
             ],
             [
                 ['type' => 'MONEY'],
@@ -201,7 +201,7 @@ SQL;
             // Text
             [
                 ['type' => 'TEXT'],
-                ['type' => 'text', 'length' => null, 'collate' => 'ja_JP.utf8']
+                ['type' => 'text', 'length' => null, 'collate' => 'ja_JP.utf8'],
             ],
             // Blob
             [

+ 8 - 8
tests/TestCase/Database/Schema/SqlserverSchemaTest.php

@@ -186,14 +186,14 @@ SQL;
                 null,
                 null,
                 null,
-                ['type' => 'string', 'length' => 255, 'collate' => 'Japanese_Unicode_CI_AI']
+                ['type' => 'string', 'length' => 255, 'collate' => 'Japanese_Unicode_CI_AI'],
             ],
             [
                 'VARCHAR',
                 10,
                 null,
                 null,
-                ['type' => 'string', 'length' => 10, 'collate' => 'Japanese_Unicode_CI_AI']
+                ['type' => 'string', 'length' => 10, 'collate' => 'Japanese_Unicode_CI_AI'],
             ],
             [
                 'NVARCHAR',
@@ -201,14 +201,14 @@ SQL;
                 null,
                 null,
                 // Sqlserver returns double lengths for unicode columns
-                ['type' => 'string', 'length' => 25, 'collate' => 'Japanese_Unicode_CI_AI']
+                ['type' => 'string', 'length' => 25, 'collate' => 'Japanese_Unicode_CI_AI'],
             ],
             [
                 'CHAR',
                 10,
                 null,
                 null,
-                ['type' => 'string', 'fixed' => true, 'length' => 10, 'collate' => 'Japanese_Unicode_CI_AI']
+                ['type' => 'string', 'fixed' => true, 'length' => 10, 'collate' => 'Japanese_Unicode_CI_AI'],
             ],
             [
                 'NCHAR',
@@ -216,7 +216,7 @@ SQL;
                 null,
                 null,
                 // SQLServer returns double length for unicode columns.
-                ['type' => 'string', 'fixed' => true, 'length' => 5, 'collate' => 'Japanese_Unicode_CI_AI']
+                ['type' => 'string', 'fixed' => true, 'length' => 5, 'collate' => 'Japanese_Unicode_CI_AI'],
             ],
             [
                 'UNIQUEIDENTIFIER',
@@ -230,7 +230,7 @@ SQL;
                 null,
                 null,
                 null,
-                ['type' => 'text', 'length' => null, 'collate' => 'Japanese_Unicode_CI_AI']
+                ['type' => 'text', 'length' => null, 'collate' => 'Japanese_Unicode_CI_AI'],
             ],
             [
                 'REAL',
@@ -244,7 +244,7 @@ SQL;
                 -1,
                 null,
                 null,
-                ['type' => 'text', 'length' => null, 'collate' => 'Japanese_Unicode_CI_AI']
+                ['type' => 'text', 'length' => null, 'collate' => 'Japanese_Unicode_CI_AI'],
             ],
             [
                 'IMAGE',
@@ -272,7 +272,7 @@ SQL;
                 -1,
                 null,
                 null,
-                ['type' => 'binary', 'length' => TableSchema::LENGTH_LONG]
+                ['type' => 'binary', 'length' => TableSchema::LENGTH_LONG],
             ],
         ];
     }

+ 1 - 1
tests/TestCase/I18n/TimeTest.php

@@ -792,7 +792,7 @@ class TimeTest extends TestCase
         $expected = [
             'time' => '2014-04-20T10:10:10.000000+00:00',
             'timezone' => 'UTC',
-            'fixedNowTime' => $class::getTestNow()->format('Y-m-d\TH:i:s.uP')
+            'fixedNowTime' => $class::getTestNow()->format('Y-m-d\TH:i:s.uP'),
         ];
         $this->assertEquals($expected, $time->__debugInfo());
     }