Passed
Pull Request — master (#355)
by Def
02:14
created
src/Schema/Quoter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function getTableNameParts(string $name): array
32 32
     {
33 33
         $parts = array_slice(explode('.', $name), -2, 2);
34
-        return array_map(function ($part) {
34
+        return array_map(function($part) {
35 35
             return $this->unquoteSimpleTableName($part);
36 36
         }, $parts);
37 37
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         return preg_replace_callback(
96 96
             '/({{(%?[\w\-. ]+%?)}}|\\[\\[([\w\-. ]+)]])/',
97
-            function ($matches) {
97
+            function($matches) {
98 98
                 if (isset($matches[3])) {
99 99
                     return $this->quoteColumnName($matches[3]);
100 100
                 }
Please login to merge, or discard this patch.
src/TestSupport/TestSchemaTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -356,14 +356,14 @@
 block discarded – undo
356 356
 
357 357
         $db->createCommand('delete from {{quoter}}')->execute();
358 358
 
359
-        for($symbol1 = 1; $symbol1 <= 127; $symbol1++) {
360
-            for($symbol2 = 1; $symbol2 <= 127; $symbol2++) {
359
+        for ($symbol1 = 1; $symbol1 <= 127; $symbol1++) {
360
+            for ($symbol2 = 1; $symbol2 <= 127; $symbol2++) {
361 361
                 $quotedName = $quoter->quoteValue('test_' . $symbol1 . '_' . $symbol2);
362
-                $testString = str_replace(['{1}', '{2}',], [chr($symbol1), chr($symbol2)], $template);
362
+                $testString = str_replace(['{1}', '{2}', ], [chr($symbol1), chr($symbol2)], $template);
363 363
 
364 364
                 $quoteValue = $quoter->quoteValue($testString);
365 365
 
366
-                $db->createCommand('insert into {{quoter}}([[name]], [[description]]) values('. $quotedName . ', ' . $quoteValue . ')')->execute();
366
+                $db->createCommand('insert into {{quoter}}([[name]], [[description]]) values(' . $quotedName . ', ' . $quoteValue . ')')->execute();
367 367
                 $result = $db->createCommand('select * from {{quoter}} where [[name]]=' . $quotedName)->queryOne();
368 368
                 $this->assertEquals($testString, $result['description']);
369 369
             }
Please login to merge, or discard this patch.