Passed
Push — develop ( 86ca6f...0e6a78 )
by Mathias
22:00 queued 14:21
created
module/Jobs/test/JobsTest/Form/InputFilter/AtsModeTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,9 +146,9 @@
 block discarded – undo
146 146
     {
147 147
         /* @var $target AtsMode|\PHPUnit_Framework_MockObject_MockObject */
148 148
         $target = $this->getMockBuilder('\Jobs\Form\InputFilter\AtsMode')
149
-                       ->disableOriginalConstructor()
150
-                       ->setMethods(array('add', 'populate'))
151
-                       ->getMock();
149
+                        ->disableOriginalConstructor()
150
+                        ->setMethods(array('add', 'populate'))
151
+                        ->getMock();
152 152
 
153 153
         $add = $target->expects($this->exactly(count($expectedSpec)))
154 154
             ->method('add');
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/CategoriesContainerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         ],
35 35
     ];
36 36
 
37
-    private $inheritance = [ WizardContainer::class ];
37
+    private $inheritance = [WizardContainer::class];
38 38
 
39 39
     public function testInitialize()
40 40
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterLocationTest.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
     public function testInit()
26 26
     {
27 27
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterLocationFieldset')
28
-                       ->setMethods(array('add', 'parentInit'))
29
-                       ->disableOriginalConstructor()
30
-                       ->getMock();
28
+                        ->setMethods(array('add', 'parentInit'))
29
+                        ->disableOriginalConstructor()
30
+                        ->getMock();
31 31
 
32 32
         $add1 = [
33 33
             'name'    => 'l',
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
         ];
62 62
 
63 63
         $target->expects($this->exactly(2))
64
-               ->method('add')
65
-               ->withConsecutive(
66
-                   [$add1],
67
-                   [$add2]
68
-               )->will($this->returnSelf());
64
+                ->method('add')
65
+                ->withConsecutive(
66
+                    [$add1],
67
+                    [$add2]
68
+                )->will($this->returnSelf());
69 69
 
70 70
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
71 71
         $target->init();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 {
19 19
     public function testConstructor()
20 20
     {
21
-        $target= new ListFilterLocationFieldset();
21
+        $target = new ListFilterLocationFieldset();
22 22
         $this->assertInstanceOf('Jobs\Form\ListFilterLocationFieldset', $target);
23 23
     }
24 24
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             ),
55 55
             'attributes' => [
56 56
                 'value'            => '10', // default distance
57
-                'data-searchbox'   => -1,  // hide the search box
57
+                'data-searchbox'   => -1, // hide the search box
58 58
                 'data-allowclear'  => 'false', // allow to clear a selected value
59 59
                 'data-placeholder' => 'Distance',
60 60
             ]
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/ApplyButtonsTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     public function testInvalidDataReturnsEmptyString($data)
62 62
     {
63 63
         $helper = $this->helper;
64
-		$this->assertSame('', $helper($data));
64
+        $this->assertSame('', $helper($data));
65 65
     }
66 66
     
67 67
     public function testDefaults()
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                     }));
154 154
         
155 155
         $helper = $this->helper;
156
-		$helper($data, $options);
156
+        $helper($data, $options);
157 157
     }
158 158
     
159 159
     public function testSendImmediatelyOption()
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                     }));
174 174
         
175 175
         $helper = $this->helper;
176
-		$helper($data, $options);
176
+        $helper($data, $options);
177 177
     }
178 178
     
179 179
     public function invalidDataThrowsExceptionData()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $this->view->expects($this->once())
70 70
             ->method('partial')
71
-            ->with(dirname($this->viewModel->getTemplate()) . '/' . $this->helper->getPartial(),
71
+            ->with(dirname($this->viewModel->getTemplate()).'/'.$this->helper->getPartial(),
72 72
                     $this->callback(function(array $variables)
73 73
                     {
74 74
                         return $variables['default'] && $variables['oneClick'] === [];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         
87 87
         $this->view->expects($this->once())
88 88
             ->method('partial')
89
-            ->with(dirname($this->viewModel->getTemplate()) . '/' . $options['partial']);
89
+            ->with(dirname($this->viewModel->getTemplate()).'/'.$options['partial']);
90 90
         
91 91
         $helper = $this->helper;
92 92
         $helper($this->validData(), $options);
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/JsonLdTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
     private $target = JsonLd::class;
35 35
 
36
-    private $inheritance = [ AbstractHelper::class ];
36
+    private $inheritance = [AbstractHelper::class];
37 37
 
38 38
     public function propertiesProvider()
39 39
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/JobOrganizationNameTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     private $target = JobOrganizationName::class;
37 37
 
38
-    private $inheritance = [ AbstractHelper::class ];
38
+    private $inheritance = [AbstractHelper::class];
39 39
 
40 40
     public function invokeTestData()
41 41
     {
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
         $job4->setOrganization($org);
59 59
 
60 60
         return [
61
-            [ $job1, '', 'TestCompany' ],
62
-            [ $job2, '', 'OrgName'],
63
-            [ $job3, 'DefaultName', 'DefaultName' ],
64
-            [ $job4, '', 'Override'],
61
+            [$job1, '', 'TestCompany'],
62
+            [$job2, '', 'OrgName'],
63
+            [$job3, 'DefaultName', 'DefaultName'],
64
+            [$job4, '', 'Override'],
65 65
         ];
66 66
     }
67 67
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/AdminEditLinkTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         'args' => 'getConstructorArgs',
37 37
     ];
38 38
 
39
-    private $inheritance = [ AbstractHelper::class ];
39
+    private $inheritance = [AbstractHelper::class];
40 40
 
41 41
     private function getConstructorArgs()
42 42
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/LoadActiveOrganizationsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
         $this->paginatorMock = $paginator;
60 60
 
61
-        return [ $paginator ];
61
+        return [$paginator];
62 62
     }
63 63
 
64 64
     public function testConstruction()
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/MailSenderTest.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
             default:
59 59
                 $this->mailServiceMock = $this->getMockBuilder('\Core\Mail\MailService')->disableOriginalConstructor()->getMock();
60 60
                 $this->mailServiceMock->expects($this->atLeastOnce())
61
-                                      ->method('send')
62
-                                      ->with($this->callback(array($this, 'popMailMock')));
61
+                                        ->method('send')
62
+                                        ->with($this->callback(array($this, 'popMailMock')));
63 63
                 $this->mailServiceMock->expects($this->any())
64
-                                      ->method('get')->with('htmltemplate')
65
-                                      ->will($this->returnCallback(array($this, 'pushMailMock')));
64
+                                        ->method('get')->with('htmltemplate')
65
+                                        ->will($this->returnCallback(array($this, 'pushMailMock')));
66 66
 
67 67
 
68 68
                 $this->targetOptions = array('siteName' => 'Test', 'adminEmail' => 'test@admin');
@@ -101,27 +101,27 @@  discard block
 block discarded – undo
101 101
     public function testAttachsToAndDetachsFromJobEvents()
102 102
     {
103 103
         $events = $this->getMockBuilder('\Zend\EventManager\EventManager')
104
-                       ->disableOriginalConstructor()
105
-                       ->getMock();
104
+                        ->disableOriginalConstructor()
105
+                        ->getMock();
106 106
 
107 107
         $callback1 = [new MailSenderListenerMock(),'listen1'];
108
-	    $callback2 = [new MailSenderListenerMock(),'listen2'];
109
-	    $callback3 = [new MailSenderListenerMock(),'listen3'];
108
+        $callback2 = [new MailSenderListenerMock(),'listen2'];
109
+        $callback3 = [new MailSenderListenerMock(),'listen3'];
110 110
         $events->expects($this->exactly(3))
111
-               ->method('attach')
112
-               ->withConsecutive(
111
+                ->method('attach')
112
+                ->withConsecutive(
113 113
                     array(JobEvent::EVENT_JOB_CREATED, array($this->target, 'onJobCreated')),
114 114
                     array(JobEvent::EVENT_JOB_ACCEPTED, array($this->target, 'onJobAccepted')),
115 115
                     array(JobEvent::EVENT_JOB_REJECTED, array($this->target, 'onJobRejected'))
116
-               )
117
-               ->will($this->onConsecutiveCalls($callback1,$callback2,$callback3))
116
+                )
117
+                ->will($this->onConsecutiveCalls($callback1,$callback2,$callback3))
118 118
         ;
119 119
 
120 120
         $events->expects($this->exactly(3))
121
-               ->method('detach')
122
-               ->withConsecutive(
121
+                ->method('detach')
122
+                ->withConsecutive(
123 123
                     array($callback1), array($callback2), array($callback3)
124
-               )->willReturn(true);
124
+                )->willReturn(true);
125 125
 
126 126
         $this->target->attach($events);
127 127
         $this->assertAttributeEquals(array($callback1, $callback2, $callback3), 'listeners', $this->target);
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
 class MailSenderListenerMock
198 198
 {
199
-	public function listen1(){}
200
-	public function listen2(){}
201
-	public function listen3(){}
199
+    public function listen1(){}
200
+    public function listen2(){}
201
+    public function listen3(){}
202 202
 }
203 203
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
                        ->disableOriginalConstructor()
105 105
                        ->getMock();
106 106
 
107
-        $callback1 = [new MailSenderListenerMock(),'listen1'];
108
-	    $callback2 = [new MailSenderListenerMock(),'listen2'];
109
-	    $callback3 = [new MailSenderListenerMock(),'listen3'];
107
+        $callback1 = [new MailSenderListenerMock(), 'listen1'];
108
+	    $callback2 = [new MailSenderListenerMock(), 'listen2'];
109
+	    $callback3 = [new MailSenderListenerMock(), 'listen3'];
110 110
         $events->expects($this->exactly(3))
111 111
                ->method('attach')
112 112
                ->withConsecutive(
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                     array(JobEvent::EVENT_JOB_ACCEPTED, array($this->target, 'onJobAccepted')),
115 115
                     array(JobEvent::EVENT_JOB_REJECTED, array($this->target, 'onJobRejected'))
116 116
                )
117
-               ->will($this->onConsecutiveCalls($callback1,$callback2,$callback3))
117
+               ->will($this->onConsecutiveCalls($callback1, $callback2, $callback3))
118 118
         ;
119 119
 
120 120
         $events->expects($this->exactly(3))
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
 class MailSenderListenerMock
198 198
 {
199
-	public function listen1(){}
200
-	public function listen2(){}
201
-	public function listen3(){}
199
+	public function listen1() {}
200
+	public function listen2() {}
201
+	public function listen3() {}
202 202
 }
203 203
\ No newline at end of file
Please login to merge, or discard this patch.