Completed
Pull Request — master (#524)
by Mathias
11:33
created
module/Applications/test/ApplicationsTest/Entity/CommentTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     public function testSetGetMessage()
59 59
     {
60
-        $message="this message";
60
+        $message = "this message";
61 61
         $this->target->setMessage($message);
62 62
         $this->assertEquals($this->target->getMessage(), $message);
63 63
     }
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
     public function testPreUpdate()
92 92
     {
93 93
         $this->target->preUpdate();
94
-        $this->assertInstanceOf("\DateTime",$this->target->getDateModified());
94
+        $this->assertInstanceOf("\DateTime", $this->target->getDateModified());
95 95
     }
96 96
 
97 97
     public function testPrePersist()
98 98
     {
99 99
         $this->target->prePersist();
100
-        $this->assertInstanceOf("\DateTime",$this->target->getDateCreated());
100
+        $this->assertInstanceOf("\DateTime", $this->target->getDateCreated());
101 101
     }
102 102
 }
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/Paginator/JobSelectPaginatorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     private $repository;
40 40
 
41
-    private $inheritance = [ Paginator::class ];
41
+    private $inheritance = [Paginator::class];
42 42
 
43 43
     private function getTargetArgs()
44 44
     {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $qb->expects($this->once())->method('field')->with('title')->will($this->returnSelf());
61 61
         $qb->expects($this->once())->method('equals')->with(
62 62
             $this->callback(function($value) use ($q) {
63
-                return $value instanceOf \MongoRegex && (String) $value == '/' . $q . '/i';
63
+                return $value instanceOf \MongoRegex && (String) $value == '/'.$q.'/i';
64 64
             })
65 65
         );
66 66
         $cursor = $this->getMockBuilder(\Doctrine\ODM\MongoDB\Cursor::class)->disableOriginalConstructor()->getMock();
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.
module/Applications/test/TestConfig.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     //     ),
61 61
     // )
62 62
 
63
-   // Initial configuration with which to seed the ServiceManager.
64
-   // Should be compatible with Zend\ServiceManager\Config.
65
-   // 'service_manager' => array(),
63
+    // Initial configuration with which to seed the ServiceManager.
64
+    // Should be compatible with Zend\ServiceManager\Config.
65
+    // 'service_manager' => array(),
66 66
 );
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 
4 4
 return array(
5 5
     // This should be an array of module namespaces used in the application.
6
-    'modules' => array_merge($commonModules,array(
7
-        'Core', 'Auth', 'Jobs', 'Organizations',  'Applications', 'Cv', 'Settings'
6
+    'modules' => array_merge($commonModules, array(
7
+        'Core', 'Auth', 'Jobs', 'Organizations', 'Applications', 'Cv', 'Settings'
8 8
     )),
9 9
 
10 10
     // These are various options for the listeners attached to the ModuleManager
Please login to merge, or discard this patch.