Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
Install/test/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@
 block discarded – undo
68 68
 
69 69
     public function testWritingConfigFileWorks()
70 70
     {
71
-        $dir = sys_get_temp_dir() . '/YawikConfigCreator-' . uniqid();
71
+        $dir = sys_get_temp_dir().'/YawikConfigCreator-'.uniqid();
72 72
 
73 73
         mkdir($dir);
74
-        mkdir($dir . '/config');
75
-        mkdir($dir . '/config/autoload');
74
+        mkdir($dir.'/config');
75
+        mkdir($dir.'/config/autoload');
76 76
 
77 77
         chdir($dir);
78 78
 
Please login to merge, or discard this patch.
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/InstallTest/Form/InstallationTest.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
     public function testInit()
35 35
     {
36 36
         $target = $this->getMockBuilder('\Install\Form\Installation')
37
-                       ->setMethods(array('add', 'setName', 'setAttributes'))
38
-                       ->disableOriginalConstructor()
39
-                       ->getMock();
37
+                        ->setMethods(array('add', 'setName', 'setAttributes'))
38
+                        ->disableOriginalConstructor()
39
+                        ->getMock();
40 40
 
41 41
         $add1 = array(
42 42
             'type'       => 'Text',
@@ -74,19 +74,19 @@  discard block
 block discarded – undo
74 74
         );
75 75
 
76 76
         $target->expects($this->exactly(4))
77
-               ->method('add')
78
-               ->withConsecutive(
79
-                   array($add1),
80
-                   array($add2),
81
-                   array($add3),
82
-                   array($add4)
83
-               )->will($this->returnSelf());
77
+                ->method('add')
78
+                ->withConsecutive(
79
+                    array($add1),
80
+                    array($add2),
81
+                    array($add3),
82
+                    array($add4)
83
+                )->will($this->returnSelf());
84 84
 
85 85
         $target->expects($this->once())->method('setName')->with('installation');
86 86
         $target->expects($this->once())->method('setAttributes')->with(
87 87
             array(
88
-                                                                           'method' => 'post',
89
-                                                                       )
88
+                                                                            'method' => 'post',
89
+                                                                        )
90 90
         );
91 91
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Install\Form\Installation */
92 92
         $target->init();
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 ),
104 104
                 'validators'        => array(
105 105
                     array('name' => MongoDbConnectionString::class,
106
-                          'break_chain_on_failure' => true),
106
+                            'break_chain_on_failure' => true),
107 107
                     array('name' => MongoDbConnection::class),
108 108
                 ),
109 109
             ),
Please login to merge, or discard this patch.
module/Install/test/TestConfig.php 2 patches
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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     //     ),
65 65
     // )
66 66
 
67
-   // Initial configuration with which to seed the ServiceManager.
68
-   // Should be compatible with Laminas\ServiceManager\Config.
69
-   // 'service_manager' => array(),
67
+    // Initial configuration with which to seed the ServiceManager.
68
+    // Should be compatible with Laminas\ServiceManager\Config.
69
+    // 'service_manager' => array(),
70 70
 );
71 71
\ No newline at end of file
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.
Factory/Controller/Plugin/InvitationHandlerFactoryTest.php 2 patches
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.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $target = new InvitationHandlerFactory();
47 47
 
48 48
         $tokenGenerator = $this->getMockBuilder('\Auth\Service\UserUniqueTokenGenerator')
49
-                               ->disableOriginalConstructor()->getMock();
49
+                                ->disableOriginalConstructor()->getMock();
50 50
 
51 51
         $userRepository = $this->getMockBuilder('\Auth\Repository\User')->disableOriginalConstructor()->getMock();
52 52
 
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
         $translator = new \Laminas\I18n\Translator\Translator();
57 57
     
58 58
         $mailer = $this->getMockBuilder('\Core\Controller\Plugin\Mailer')
59
-                       ->disableOriginalConstructor()
60
-                       ->getMock()
59
+                        ->disableOriginalConstructor()
60
+                        ->getMock()
61 61
         ;
62 62
         
63 63
         $pluginManager = $this->getMockBuilder(PluginManager::class)
@@ -78,14 +78,14 @@  discard block
 block discarded – undo
78 78
 
79 79
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')->disableOriginalConstructor()->getMock();
80 80
         $services->expects($this->exactly(5))
81
-                 ->method('get')
82
-                 ->will($this->returnValueMap(array(
83
-                     array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
84
-                     array('translator', $translator),
85
-                     array('repositories', $repositories),
86
-                     array('Auth/UserTokenGenerator', $tokenGenerator),
87
-                     array('ControllerPluginManager',$pluginManager),
88
-                 )));
81
+                    ->method('get')
82
+                    ->will($this->returnValueMap(array(
83
+                        array('ValidatorManager', $validators),   // get ha signature ($name, $usePeeringManagers = true)
84
+                        array('translator', $translator),
85
+                        array('repositories', $repositories),
86
+                        array('Auth/UserTokenGenerator', $tokenGenerator),
87
+                        array('ControllerPluginManager',$pluginManager),
88
+                    )));
89 89
 
90 90
         /*
91 91
          * test start here
Please login to merge, or discard this patch.