Passed
Push — master ( 6292f6...e5b7ab )
by Mathias
10:49 queued 04:59
created
module/Install/test/InstallTest/Controller/Plugin/UserCreatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $dm = $this->createMock(DocumentManager::class);
55 55
 
56 56
         $this->target = new UserCreator($credentialFilter, $dm);
57
-        $this->credentialFilter= $credentialFilter;
57
+        $this->credentialFilter = $credentialFilter;
58 58
         $this->documentManager = $dm;
59 59
     }
60 60
 
Please login to merge, or discard this patch.
module/Install/test/InstallTest/Validator/MongoDbConnectionStringTest.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
     public function invalidConnectionStringProvider()
47 47
     {
48 48
         return [
49
-            [ 'noconnstr' ],
50
-            [ 'mongodb://user name:pass@server' ],
51
-            [ 'mongodb://server/db.with.dot' ],
49
+            ['noconnstr'],
50
+            ['mongodb://user name:pass@server'],
51
+            ['mongodb://server/db.with.dot'],
52 52
         ];
53 53
     }
54 54
 
@@ -59,26 +59,26 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $target = new MongoDbConnectionString();
61 61
 
62
-        $this->assertFalse($target->isValid($connStr), 'Failed with: ' . $connStr);
62
+        $this->assertFalse($target->isValid($connStr), 'Failed with: '.$connStr);
63 63
     }
64 64
 
65 65
     public function validConnectionStringsProvider()
66 66
     {
67 67
         return [
68
-            [ 'mongodb://server' ],
69
-            [ 'mongodb://server/database' ],
70
-            [ 'mongodb://server:1234' ],
71
-            [ 'mongodb://server:1234/database' ],
72
-            [ 'mongodb://user@server' ],
73
-            [ 'mongodb://user@server:1234' ],
74
-            [ 'mongodb://user@server/database' ],
75
-            [ 'mongodb://user@server:1234/database' ],
76
-            [ 'mongodb://user:pass@server' ],
77
-            [ 'mongodb://user:pass@server/database' ],
78
-            [ 'mongodb://user:pass@server:1234' ],
79
-            [ 'mongodb://user:pass@server:1234/database' ],
80
-            [ 'mongodb://server:23432/dbName?option=value' ],
81
-            [ 'mongodb://name:[email protected]:27017,cluster0-shard-00-01-nvwmc.mongodb.net:27017,cluster0-shard-00-02-nvwmc.mongodb.net:27017/?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin' ],
68
+            ['mongodb://server'],
69
+            ['mongodb://server/database'],
70
+            ['mongodb://server:1234'],
71
+            ['mongodb://server:1234/database'],
72
+            ['mongodb://user@server'],
73
+            ['mongodb://user@server:1234'],
74
+            ['mongodb://user@server/database'],
75
+            ['mongodb://user@server:1234/database'],
76
+            ['mongodb://user:pass@server'],
77
+            ['mongodb://user:pass@server/database'],
78
+            ['mongodb://user:pass@server:1234'],
79
+            ['mongodb://user:pass@server:1234/database'],
80
+            ['mongodb://server:23432/dbName?option=value'],
81
+            ['mongodb://name:[email protected]:27017,cluster0-shard-00-01-nvwmc.mongodb.net:27017,cluster0-shard-00-02-nvwmc.mongodb.net:27017/?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin'],
82 82
         ];
83 83
     }
84 84
 
@@ -91,6 +91,6 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $target = new MongoDbConnectionString();
93 93
 
94
-        $this->assertTrue($target->isValid($connStr), 'Failed with: "' . $connStr . '"');
94
+        $this->assertTrue($target->isValid($connStr), 'Failed with: "'.$connStr.'"');
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
module/Install/test/TestConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
     // This should be an array of module namespaces used in the application.
6 6
 
7 7
 use PHPUnit\Framework\TestCase;
8
-    'modules' => array_merge($commonModules,array(
8
+    'modules' => array_merge($commonModules, array(
9 9
         'Install',
10 10
     )),
11 11
 
Please login to merge, or discard this patch.
test/OrganizationsTest/Exception/MissingParentOrganizationExceptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,5 +29,5 @@
 block discarded – undo
29 29
 
30 30
     private $target = MissingParentOrganizationException::class;
31 31
 
32
-    private $inheritance = [ ExceptionInterface::class ];
32
+    private $inheritance = [ExceptionInterface::class];
33 33
 }
Please login to merge, or discard this patch.
Organizations/test/OrganizationsTest/Repository/Filter/ListJobQueryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $builder->expects($this->once())
47 47
             ->method('in')
48
-            ->with([Status::ACTIVE,Status::PUBLISH])
48
+            ->with([Status::ACTIVE, Status::PUBLISH])
49 49
             ->willReturn($builder)
50 50
         ;
51 51
         $builder->expects($this->exactly(2))
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         ;
59 59
 
60 60
 
61
-        $params=['organization_id' =>$organization->getId()];
61
+        $params = ['organization_id' =>$organization->getId()];
62 62
         $target->createQuery($params, $builder);
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
test/OrganizationsTest/Repository/Filter/PaginationQueryFactoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
         $container->expects($this->any())
37 37
             ->method('get')
38 38
             ->willReturnMap([
39
-                ['Core/RepositoryService',$container],
40
-                ['Jobs/Job',$jobRepository],
41
-                ['AuthenticationService',$auth]
39
+                ['Core/RepositoryService', $container],
40
+                ['Jobs/Job', $jobRepository],
41
+                ['AuthenticationService', $auth]
42 42
             ])
43 43
         ;
44 44
 
Please login to merge, or discard this patch.
test/OrganizationsTest/Controller/Plugin/InvitationHandlerTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
                                              ->disableOriginalConstructor()->getMock();
66 66
         }
67 67
         if (in_array('mailerPlugin', $mocks)) {
68
-            $this->mailerPluginMock   = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
68
+            $this->mailerPluginMock = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
69 69
                                          ->disableOriginalConstructor()->getMock();
70 70
         }
71 71
 
72 72
         if ($inject) {
73 73
             foreach ($mocks as $key) {
74
-                $setter = 'set' . $key;
75
-                $this->target->$setter($this->{$key . 'Mock'});
74
+                $setter = 'set'.$key;
75
+                $this->target->$setter($this->{$key.'Mock'});
76 76
             }
77 77
         }
78 78
     }
@@ -107,9 +107,9 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $this->setupMocks($mockKey);
109 109
 
110
-        $setter = 'set' . ucfirst($mockKey);
111
-        $getter = 'get' . ucfirst($mockKey);
112
-        $value  = $this->{$mockKey . 'Mock'};
110
+        $setter = 'set'.ucfirst($mockKey);
111
+        $getter = 'get'.ucfirst($mockKey);
112
+        $value  = $this->{$mockKey.'Mock'};
113 113
 
114 114
         $this->assertSame($this->target, $this->target->$setter($value), 'Fluent interface broken!');
115 115
         $this->assertSame($value, $this->target->$getter());
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function testGetterThrowExceptionIfDependencyMissing($getterName)
125 125
     {
126
-        $getter = "get" . $getterName;
126
+        $getter = "get".$getterName;
127 127
 
128 128
         $this->target->$getter();
129 129
     }
Please login to merge, or discard this patch.
Factory/Controller/Plugin/InvitationHandlerFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,11 +80,11 @@
 block discarded – undo
80 80
         $services->expects($this->exactly(5))
81 81
                  ->method('get')
82 82
                  ->will($this->returnValueMap(array(
83
-                     array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
83
+                     array('ValidatorManager', $validators), // get ha signature ($name, $usePeeringManagers = true)
84 84
                      array('translator', $translator),
85 85
                      array('repositories', $repositories),
86 86
                      array('Auth/UserTokenGenerator', $tokenGenerator),
87
-                     array('ControllerPluginManager',$pluginManager),
87
+                     array('ControllerPluginManager', $pluginManager),
88 88
                  )));
89 89
 
90 90
         /*
Please login to merge, or discard this patch.
Factory/Controller/Plugin/AcceptInvitationHandlerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                  ->method('get')
63 63
                  ->will($this->returnValueMap(
64 64
                      array(
65
-                        array('repositories',$repositories),
65
+                        array('repositories', $repositories),
66 66
                         array('AuthenticationService', $auth)
67 67
                     )
68 68
                  ))
Please login to merge, or discard this patch.