Passed
Pull Request — master (#366)
by Alexander
12:30
created
src/Schema/Quoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     {
74 74
         return preg_replace_callback(
75 75
             '/({{(%?[\w\-. ]+%?)}}|\\[\\[([\w\-. ]+)]])/',
76
-            function ($matches) {
76
+            function($matches) {
77 77
                 if (isset($matches[3])) {
78 78
                     return $this->quoteColumnName($matches[3]);
79 79
                 }
Please login to merge, or discard this patch.
src/TestSupport/TestQueryTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
         );
806 806
 
807 807
         /* Connection cache */
808
-        $db->cache(function (ConnectionInterface $db) use ($query, $update) {
808
+        $db->cache(function(ConnectionInterface $db) use ($query, $update) {
809 809
             $this->assertEquals(
810 810
                 'user2',
811 811
                 $query->where(['id' => 2])->scalar(),
@@ -820,7 +820,7 @@  discard block
 block discarded – undo
820 820
                 'Query does NOT reflect DB changes when wrapped in connection caching'
821 821
             );
822 822
 
823
-            $db->noCache(function () use ($query) {
823
+            $db->noCache(function() use ($query) {
824 824
                 $this->assertEquals(
825 825
                     'user22',
826 826
                     $query->where(['id' => 2])->scalar(),
@@ -837,7 +837,7 @@  discard block
 block discarded – undo
837 837
 
838 838
         $this->queryCache->setEnable(false);
839 839
 
840
-        $db->cache(function () use ($query, $update) {
840
+        $db->cache(function() use ($query, $update) {
841 841
             $this->assertEquals(
842 842
                 'user22',
843 843
                 $query->where(['id' => 2])->scalar(),
@@ -868,7 +868,7 @@  discard block
 block discarded – undo
868 868
             'When Query has disabled cache, we get actual data'
869 869
         );
870 870
 
871
-        $db->cache(function () use ($query) {
871
+        $db->cache(function() use ($query) {
872 872
             $this->assertEquals('user1', $query->noCache()->where(['id' => 1])->scalar());
873 873
             $this->assertEquals('user11', $query->cache()->where(['id' => 1])->scalar());
874 874
         }, 10);
Please login to merge, or discard this patch.
src/TestSupport/Provider/QueryBuilderProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
                     [':qp0' => 1,
508 508
                         ':qp1' => 'foo',
509 509
                         ':qp2' => 2,
510
-                        ':qp3' => 'bar',],
510
+                        ':qp3' => 'bar', ],
511 511
                 ],
512 512
                 [
513 513
                     ['not in', ['id', 'name'], [['id' => 1, 'name' => 'foo'], ['id' => 2, 'name' => 'bar']]],
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
                     [':qp0' => 1,
516 516
                         ':qp1' => 'foo',
517 517
                         ':qp2' => 2,
518
-                        ':qp3' => 'bar',],
518
+                        ':qp3' => 'bar', ],
519 519
                 ],
520 520
                 //[['in', ['id', 'name'], (new Query())->select(['id', 'name'])->from('users')->where(['active' => 1])], 'EXISTS (SELECT 1 FROM (SELECT [[id]], [[name]] FROM [[users]] WHERE [[active]]=:qp0) AS a WHERE a.[[id]] = [[id AND a.]]name[[ = ]]name`)', [':qp0' => 1] ],
521 521
                 //[ ['not in', ['id', 'name'], (new Query())->select(['id', 'name'])->from('users')->where(['active' => 1])], 'NOT EXISTS (SELECT 1 FROM (SELECT [[id]], [[name]] FROM [[users]] WHERE [[active]]=:qp0) AS a WHERE a.[[id]] = [[id]] AND a.[[name = ]]name`)', [':qp0' => 1] ],
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 use Rector\Config\RectorConfig;
7 7
 use Rector\Set\ValueObject\LevelSetList;
8 8
 
9
-return static function (RectorConfig $rectorConfig): void {
9
+return static function(RectorConfig $rectorConfig): void {
10 10
     $rectorConfig->paths([
11 11
         __DIR__ . '/src',
12 12
         __DIR__ . '/tests',
Please login to merge, or discard this patch.