Completed
Pull Request — master (#638)
by Mathias
15:23
created
module/Applications/test/ApplicationsTest/Entity/MailHistoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function testSetGetSubject()
56 56
     {
57
-        $input="subject of the mail";
57
+        $input = "subject of the mail";
58 58
         $this->target->setSubject($input);
59 59
         $this->assertEquals($this->target->getSubject(), $input);
60 60
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function testSetGetMailText()
67 67
     {
68
-        $input="this is the mailtext";
68
+        $input = "this is the mailtext";
69 69
         $this->target->setMailText($input);
70 70
         $this->assertEquals($this->target->getMailText(), $input);
71 71
     }
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Entity/FactsTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,26 +46,26 @@
 block discarded – undo
46 46
 
47 47
     public function testSetGetExpectedSalary()
48 48
     {
49
-        $input="1000€";
49
+        $input = "1000€";
50 50
         $this->target->setExpectedSalary($input);
51 51
         $this->assertEquals($this->target->getExpectedSalary(), $input);
52 52
     }
53 53
 
54 54
     public function testSetGetWillingnessToTravel()
55 55
     {
56
-        $input="test";
56
+        $input = "test";
57 57
         $this->target->setWillingnessToTravel($input);
58 58
         $this->assertEquals($this->target->getWillingnessToTravel(), $input);
59 59
     }
60 60
     public function testSetGetEarliestStartingDate()
61 61
     {
62
-        $input="1000€";
62
+        $input = "1000€";
63 63
         $this->target->setEarliestStartingDate($input);
64 64
         $this->assertEquals($this->target->getEarliestStartingDate(), $input);
65 65
     }
66 66
     public function testSetGetDrivingLicense()
67 67
     {
68
-        $input="1000€";
68
+        $input = "1000€";
69 69
         $this->target->setDrivingLicense($input);
70 70
         $this->assertEquals($this->target->getDrivingLicense(), $input);
71 71
     }
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Entity/SubscriberTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@
 block discarded – undo
46 46
 
47 47
     public function testSetGetUri()
48 48
     {
49
-        $uri="http://test.de/test";
49
+        $uri = "http://test.de/test";
50 50
         $this->target->setUri($uri);
51 51
         $this->assertEquals($this->target->getUri(), $uri);
52 52
     }
53 53
 
54 54
     public function testSetGetName()
55 55
     {
56
-        $name="myPersonalYawik";
56
+        $name = "myPersonalYawik";
57 57
         $this->target->setName($name);
58 58
         $this->assertEquals($this->target->getName(), $name);
59 59
     }
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Entity/StatusTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
             [
62 62
                 [StatusInterface::INCOMING, StatusInterface::INCOMING],
63 63
                 [StatusInterface::ACCEPTED, StatusInterface::ACCEPTED],
64
-                [StatusInterface::CONFIRMED,StatusInterface::CONFIRMED],
65
-                [StatusInterface::INVITED,  StatusInterface::INVITED],
64
+                [StatusInterface::CONFIRMED, StatusInterface::CONFIRMED],
65
+                [StatusInterface::INVITED, StatusInterface::INVITED],
66 66
                 [StatusInterface::REJECTED, StatusInterface::REJECTED],
67 67
 
68 68
             ];
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function testGetUnknownStatus()
97 97
     {
98
-        $expected="foobar";
98
+        $expected = "foobar";
99 99
         $status = new Status("unknown status");
100 100
         $this->assertEquals($status->getOrder(), $expected);
101 101
     }
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Form/FactsFieldsetTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function testSetGetEmptySummaryText()
50 50
     {
51
-        $input="Klick here";
51
+        $input = "Klick here";
52 52
         $this->target->setEmptySummaryNotice($input);
53 53
         $this->assertSame($this->target->getEmptySummaryNotice(), $input);
54 54
     }
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
     public function providerDisableCapable()
66 66
     {
67 67
         return [
68
-            [true,true],
69
-            [false,false],
68
+            [true, true],
69
+            [false, false],
70 70
             [null, true]
71 71
         ];
72 72
     }
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
     public function providerDisableElementCapable()
84 84
     {
85 85
         return [
86
-            [true,true],
87
-            [false,false],
86
+            [true, true],
87
+            [false, false],
88 88
             [null, true]
89 89
         ];
90 90
     }
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Form/Element/JobSelectTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         ]]
47 47
     ];
48 48
 
49
-    private $inheritance = [ Select::class, HeadscriptProviderInterface::class ];
49
+    private $inheritance = [Select::class, HeadscriptProviderInterface::class];
50 50
 
51 51
     public function propertiesProvider()
52 52
     {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 'getter_method' => 'getValue',
64 64
                 'expect' => $job->getId(),
65 65
                 'value' => $job,
66
-                'post' => function () use ($job) {
66
+                'post' => function() use ($job) {
67 67
                     $this->assertEquals([0 => '', $job->getId() => $job->getTitle()], $this->target->getValueOptions());
68 68
                 }
69 69
             ]]
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Form/ApplicationsFilterTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -84,15 +84,15 @@
 block discarded – undo
84 84
         ];
85 85
 
86 86
         $add3 = ['type' => 'ToggleButton',
87
-                 'name' => 'unread',
88
-                 'options' => [
89
-                     'checked_value' => '1',
90
-                     'unchecked_value' => '0',
91
-                     'label' => 'unread',
92
-                 ],
93
-                 'attributes' => [
94
-                     'data-submit-on-change' => 'true',
95
-                 ]
87
+                    'name' => 'unread',
88
+                    'options' => [
89
+                        'checked_value' => '1',
90
+                        'unchecked_value' => '0',
91
+                        'label' => 'unread',
92
+                    ],
93
+                    'attributes' => [
94
+                        'data-submit-on-change' => 'true',
95
+                    ]
96 96
         ];
97 97
 
98 98
         /** @noinspection PhpUndefinedMethodInspection */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         '@testAddElements' => ['mock' => ['add', 'setButtonElement' => ['with' => 'unread', 'count' => 1]]],
39 39
     ];
40 40
 
41
-    private $inheritance = [ SearchForm::class ];
41
+    private $inheritance = [SearchForm::class];
42 42
 
43 43
     private $attributes = [
44 44
         'options' => [
Please login to merge, or discard this patch.
Applications/test/ApplicationsTest/Acl/ApplicationAccessAssertionTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@
 block discarded – undo
70 70
         $app  = new Application();
71 71
         $app2 = new Application();
72 72
         $app2->getPermissions()->grant($user, PermissionsInterface::PERMISSION_VIEW)
73
-                               ->grant($user2, PermissionsInterface::PERMISSION_CHANGE);
73
+                                ->grant($user2, PermissionsInterface::PERMISSION_CHANGE);
74 74
 
75 75
         $app3 = new Application();
76 76
         $app3->setIsDraft(true);
77 77
         //$app3->setUser($user);
78 78
         $app3->getPermissions()->grant($user, PermissionsInterface::PERMISSION_VIEW)
79
-                               ->grant($user2, PermissionsInterface::PERMISSION_CHANGE);
79
+                                ->grant($user2, PermissionsInterface::PERMISSION_CHANGE);
80 80
 
81 81
         return array(
82 82
             'nouser-noapp'     => array($role, $resource, null, false),
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@
 block discarded – undo
89 89
             'change-not-granted2' => array($user, $app2, 'change', false),
90 90
             'subsequentAttachmentUpload-not-granted' => array($user, $app, Application::PERMISSION_SUBSEQUENT_ATTACHMENT_UPLOAD, false),
91 91
             'subsequentAttachmentUpload-granted' => array($user, $app2, Application::PERMISSION_SUBSEQUENT_ATTACHMENT_UPLOAD, true),
92
-            'allow-draft-view' => [ $user2, $app3, 'change', true ],
93
-            'disallow-draft-view' => [ $user, $app3, 'change', false ],
92
+            'allow-draft-view' => [$user2, $app3, 'change', true],
93
+            'disallow-draft-view' => [$user, $app3, 'change', false],
94 94
 
95 95
         );
96 96
     }
Please login to merge, or discard this patch.
Organizations/test/OrganizationsTest/Controller/ProfileControllerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $pluginManager->expects($this->any())
104 104
             ->method('get')
105 105
             ->willReturnMap([
106
-                ['params',null,$params]
106
+                ['params', null, $params]
107 107
             ])
108 108
         ;
109 109
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         $plugins->expects($this->any())
127 127
             ->method('get')
128 128
             ->willReturnMap([
129
-                ['params',null,$params]
129
+                ['params', null, $params]
130 130
             ])
131 131
         ;
132 132
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $plugins->expects($this->any())
151 151
             ->method('get')
152 152
             ->willReturnMap([
153
-                ['params',null,$params]
153
+                ['params', null, $params]
154 154
             ])
155 155
         ;
156 156
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $pluginManager->expects($this->any())
183 183
             ->method('get')
184 184
             ->willReturnMap([
185
-                ['params',null,$params]
185
+                ['params', null, $params]
186 186
             ])
187 187
         ;
188 188
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         $pluginManager->expects($this->any())
218 218
             ->method('get')
219 219
             ->willReturnMap([
220
-                ['params',null,$params]
220
+                ['params', null, $params]
221 221
             ])
222 222
         ;
223 223
 
Please login to merge, or discard this patch.