Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
module/Core/test/CoreTest/Queue/Strategy/IdleSleepStrategyTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
     {
47 47
         $events = $this->prophesize(EventManagerInterface::class);
48 48
         $events->attach(AbstractWorkerEvent::EVENT_PROCESS_IDLE, [$this->target, 'onIdle'], 1)
49
-               ->willReturn('handle')
50
-               ->shouldBeCalled();
49
+                ->willReturn('handle')
50
+                ->shouldBeCalled();
51 51
 
52 52
         $this->target->attach($events->reveal());
53 53
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Queue/Controller/MongoQueueListControllerTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $queueName = 'test';
113 113
         $queue = $this->getMockBuilder(MongoQueue::class)->disableOriginalConstructor()
114
-                      ->setMethods(['listing'])->getMock();
114
+                        ->setMethods(['listing'])->getMock();
115 115
         $this->queueManager->expects($this->once())->method('get')->with($queueName)->willReturn($queue);
116 116
         $params = $this->setupParamsMock([
117 117
             ['queue', null, $queueName],
@@ -135,13 +135,13 @@  discard block
 block discarded – undo
135 135
         $date = new \DateTime();
136 136
         $date->setTimezone(new \DateTimeZone('UTC'));
137 137
         $jobs = [
138
-           [
139
-               'job' => $job,
140
-               'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
141
-               'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
142
-               'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
143
-               'tried' => 10,
144
-           ],
138
+            [
139
+                'job' => $job,
140
+                'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
141
+                'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
142
+                'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
143
+                'tried' => 10,
144
+            ],
145 145
         ];
146 146
 
147 147
         $queue->expects($this->once())->method('listing')->with(['limit' => 10, 'status' => 1])->willReturn($jobs);
Please login to merge, or discard this patch.
module/Core/config/module.config.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -76,25 +76,25 @@
 block discarded – undo
76 76
     'log' => array(
77 77
         'Core/Log' => array(
78 78
             'writers' => array(
79
-                 array(
80
-                     'name' => 'stream',
79
+                    array(
80
+                        'name' => 'stream',
81 81
                     'priority' => 1000,
82 82
                     'options' => array(
83
-                         'stream' => getcwd().'/var/log/yawik.log',
83
+                            'stream' => getcwd().'/var/log/yawik.log',
84
+                    ),
84 85
                     ),
85
-                 ),
86 86
             ),
87 87
         ),
88 88
         'Log/Core/Mail' => array(
89 89
             'writers' => array(
90
-                 array(
91
-                     'name' => 'stream',
90
+                    array(
91
+                        'name' => 'stream',
92 92
                     'priority' => 1000,
93 93
                     'options' => array(
94
-                         'stream' => getcwd().'/var/log/mails.log',
94
+                            'stream' => getcwd().'/var/log/mails.log',
95 95
                     ),
96 96
 
97
-                 ),
97
+                    ),
98 98
             ),
99 99
         ),
100 100
         'Log/Core/Queue' => array(
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Controller/AdminCategoriesControllerTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,13 +96,13 @@  discard block
 block discarded – undo
96 96
                     $professions,
97 97
                     $industries,
98 98
                     $types
99
-                                 ));
99
+                                    ));
100 100
         } else {
101 101
             $repository->expects($this->exactly(3))->method('findOneBy')
102
-                       ->withConsecutive(
103
-                           [['value' => 'professions']],
104
-                           [['value' => 'employmentTypes']],
105
-                           [['value' => 'industries']]
102
+                        ->withConsecutive(
103
+                            [['value' => 'professions']],
104
+                            [['value' => 'employmentTypes']],
105
+                            [['value' => 'industries']]
106 106
                 )->willReturn(null);
107 107
         }
108 108
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 ->with($this->isInstanceOf(Category::class));
118 118
         } elseif ($postRequest) {
119 119
             $repositories->expects($this->exactly(1))->method('store')
120
-                         ->with($this->isInstanceOf(Category::class));
120
+                            ->with($this->isInstanceOf(Category::class));
121 121
         }
122 122
 
123 123
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Listener/DeleteJobFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@
 block discarded – undo
59 59
         ;
60 60
 
61 61
         $auth->expects($this->once())
62
-             ->method('getUser')
63
-             ->will($this->returnValue($user))
62
+                ->method('getUser')
63
+                ->will($this->returnValue($user))
64 64
         ;
65 65
 
66 66
         $repository = $this->getMockBuilder(Job::class)->disableOriginalConstructor()->getMock();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Listener/MailSenderFactoryTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -45,17 +45,17 @@
 block discarded – undo
45 45
         ));
46 46
 
47 47
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
48
-                         ->disableOriginalConstructor()
49
-                         ->getMock();
48
+                            ->disableOriginalConstructor()
49
+                            ->getMock();
50 50
 
51 51
         $services->expects($this->exactly(3))
52
-                 ->method('get')
53
-                 ->withConsecutive(
54
-                     array('Core/MailService'),
55
-                     array('Jobs/Options'),
56
-                     array('Core/Options')
57
-                 )
58
-                 ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions));
52
+                    ->method('get')
53
+                    ->withConsecutive(
54
+                        array('Core/MailService'),
55
+                        array('Jobs/Options'),
56
+                        array('Core/Options')
57
+                    )
58
+                    ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions));
59 59
 
60 60
         $expectedOptions = array(
61 61
             'siteName' => $coreOptions->getSiteName(),
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Form/HiringOrganizationSelectFactoryTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -78,21 +78,21 @@
 block discarded – undo
78 78
         $this->user = $user;
79 79
 
80 80
         $auth = $this->getMockBuilder('Auth\AuthenticationService')
81
-                     ->disableOriginalConstructor()
82
-                     ->getMock();
81
+                        ->disableOriginalConstructor()
82
+                        ->getMock();
83 83
 
84 84
         $auth->expects($this->once())
85
-             ->method('getUser')
86
-             ->willReturn($user);
85
+                ->method('getUser')
86
+                ->willReturn($user);
87 87
 
88 88
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
89
-                         ->disableOriginalConstructor()
90
-                         ->getMock();
89
+                            ->disableOriginalConstructor()
90
+                            ->getMock();
91 91
 
92 92
         $services->expects($this->once())
93
-                 ->method('get')
94
-                 ->with('AuthenticationService')
95
-                 ->willReturn($auth);
93
+                    ->method('get')
94
+                    ->with('AuthenticationService')
95
+                    ->willReturn($auth);
96 96
         
97 97
         $this->services = $services;
98 98
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Form/MultipostingSelectFactoryTest.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -48,19 +48,19 @@  discard block
 block discarded – undo
48 48
         $channelOptions  = new ChannelOptions();
49 49
 
50 50
         $channelOptions->setCategory('testCat')
51
-                       ->setCurrency('€')
52
-                       ->setDescription('testDesc')
53
-                       ->setExternalkey('testExtKey')
54
-                       ->setHeadLine('testHL')
55
-                       ->setKey('testKey')
56
-                       ->setLabel('testLabel')
57
-                       ->setLinkText('testLinkTxt')
58
-                       ->setLogo('testLogo')
59
-                       ->setParams(array('test' => 'params'))
60
-                       ->setPrice('test', 1234)
61
-                       ->setPublishDuration(10)
62
-                       ->setRoute('testRoute')
63
-                       ->setTax(19);
51
+                        ->setCurrency('€')
52
+                        ->setDescription('testDesc')
53
+                        ->setExternalkey('testExtKey')
54
+                        ->setHeadLine('testHL')
55
+                        ->setKey('testKey')
56
+                        ->setLabel('testLabel')
57
+                        ->setLinkText('testLinkTxt')
58
+                        ->setLogo('testLogo')
59
+                        ->setParams(array('test' => 'params'))
60
+                        ->setPrice('test', 1234)
61
+                        ->setPublishDuration(10)
62
+                        ->setRoute('testRoute')
63
+                        ->setTax(19);
64 64
 
65 65
         $providerOptions->addChannel($channelOptions);
66 66
 
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
         );
107 107
 
108 108
         $services->expects($this->exactly(3))
109
-                 ->method('get')
110
-                 ->will($this->returnValueMap($servicesMap))
109
+                    ->method('get')
110
+                    ->will($this->returnValueMap($servicesMap))
111 111
         ;
112 112
 
113 113
         $target = new MultipostingSelectFactory();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Filter/ChannelPricesFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
         $provider=new ProviderOptions();
44 44
 
45 45
         $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
46
-                                   ->disableOriginalConstructor()
47
-                                   ->getMock();
46
+                                    ->disableOriginalConstructor()
47
+                                    ->getMock();
48 48
 
49 49
 
50 50
         $serviceManagerMock
Please login to merge, or discard this patch.