@@ -107,7 +107,7 @@ |
||
107 | 107 | |
108 | 108 | $wf = new WorkflowSettings(); |
109 | 109 | $wf->setAcceptApplicationByDepartmentManager($flag('acceptApplication')) |
110 | - ->setAssignDepartmentManagersToJobs($flag('assignManagers')); |
|
110 | + ->setAssignDepartmentManagersToJobs($flag('assignManagers')); |
|
111 | 111 | |
112 | 112 | $org->expects($this->once())->method('getWorkflowSettings')->willReturn($wf); |
113 | 113 |
@@ -94,7 +94,7 @@ |
||
94 | 94 | |
95 | 95 | private function createOrganization(array $spec) |
96 | 96 | { |
97 | - $flag = function ($key) use ($spec) { |
|
97 | + $flag = function($key) use ($spec) { |
|
98 | 98 | return isset($spec[$key]) && $spec[$key]; |
99 | 99 | }; |
100 | 100 | $org = $this |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | /** @var array $testConfig */ |
4 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
4 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
5 | 5 | |
6 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
6 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
@@ -52,8 +52,8 @@ |
||
52 | 52 | |
53 | 53 | |
54 | 54 | $this->serviceMock = $this->getMockBuilder('Auth\Service\Register') |
55 | - ->disableOriginalConstructor() |
|
56 | - ->getMock(); |
|
55 | + ->disableOriginalConstructor() |
|
56 | + ->getMock(); |
|
57 | 57 | |
58 | 58 | |
59 | 59 | $this->paramsMock = $this->getMockBuilder('Zend\Mvc\Controller\Plugin\Params') |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | { |
135 | 135 | $postData = array( |
136 | 136 | 'name' => uniqid('name'), |
137 | - 'email' => uniqid('email') . '@' . uniqid('host') . '.com.pl' |
|
137 | + 'email' => uniqid('email').'@'.uniqid('host').'.com.pl' |
|
138 | 138 | ); |
139 | 139 | |
140 | 140 | $request = new Request(); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | { |
182 | 182 | $postData = array( |
183 | 183 | 'name' => uniqid('name'), |
184 | - 'email' => uniqid('email') . '@' . uniqid('host') . '.com.pl' |
|
184 | + 'email' => uniqid('email').'@'.uniqid('host').'.com.pl' |
|
185 | 185 | ); |
186 | 186 | |
187 | 187 | $request = new Request(); |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | { |
229 | 229 | $postData = array( |
230 | 230 | 'name' => uniqid('name'), |
231 | - 'email' => uniqid('email') . '@' . uniqid('host') . '.com.pl' |
|
231 | + 'email' => uniqid('email').'@'.uniqid('host').'.com.pl' |
|
232 | 232 | ); |
233 | 233 | |
234 | 234 | $request = new Request(); |
@@ -242,10 +242,10 @@ |
||
242 | 242 | public function provideGetDisplayNameTestData() |
243 | 243 | { |
244 | 244 | return array( |
245 | - array(null, null, "[email protected]", "[email protected]"), |
|
245 | + array(null, null, "[email protected]", "[email protected]"), |
|
246 | 246 | array(" Carsten ", " Bleek ", "[email protected]", "Carsten Bleek"), |
247 | - array(null, " Bleek ", "[email protected]", "Bleek"), |
|
248 | - array(" Carsten ", null, "[email protected]", "[email protected]"), |
|
247 | + array(null, " Bleek ", "[email protected]", "Bleek"), |
|
248 | + array(" Carsten ", null, "[email protected]", "[email protected]"), |
|
249 | 249 | ); |
250 | 250 | } |
251 | 251 |
@@ -83,9 +83,9 @@ |
||
83 | 83 | */ |
84 | 84 | public function testGetId() |
85 | 85 | { |
86 | - $this->assertEquals('token:' . $this->target->getToken(), $this->target->getId()); |
|
86 | + $this->assertEquals('token:'.$this->target->getToken(), $this->target->getId()); |
|
87 | 87 | |
88 | - $id=uniqid(); |
|
88 | + $id = uniqid(); |
|
89 | 89 | $this->target->setId($id); |
90 | 90 | $this->assertEquals($id, $this->target->getId()); |
91 | 91 | } |
@@ -63,10 +63,10 @@ discard block |
||
63 | 63 | public function provideRoleTestData() |
64 | 64 | { |
65 | 65 | return array( |
66 | - array(null, User::ROLE_USER), |
|
67 | - array(User::ROLE_ADMIN, User::ROLE_ADMIN), |
|
66 | + array(null, User::ROLE_USER), |
|
67 | + array(User::ROLE_ADMIN, User::ROLE_ADMIN), |
|
68 | 68 | array(User::ROLE_RECRUITER, User::ROLE_RECRUITER), |
69 | - array(User::ROLE_USER, User::ROLE_USER), |
|
69 | + array(User::ROLE_USER, User::ROLE_USER), |
|
70 | 70 | ); |
71 | 71 | } |
72 | 72 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | public function provideInfoTestData() |
85 | 85 | { |
86 | 86 | return array( |
87 | - array(new Info(), new Info()), |
|
87 | + array(new Info(), new Info()), |
|
88 | 88 | ); |
89 | 89 | } |
90 | 90 | /** |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | public function provideTokenTestData() |
177 | 177 | { |
178 | 178 | return array( |
179 | - array(new Token(), new Token()), |
|
179 | + array(new Token(), new Token()), |
|
180 | 180 | ); |
181 | 181 | } |
182 | 182 | } |
@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | |
61 | 61 | public function provideSessionTestData() |
62 | 62 | { |
63 | - $data = ["a"=>"b","c"=>[1,2,3,4]]; |
|
64 | - $serialized=serialize($data); |
|
63 | + $data = ["a"=>"b", "c"=>[1, 2, 3, 4]]; |
|
64 | + $serialized = serialize($data); |
|
65 | 65 | |
66 | 66 | return [ |
67 | 67 | [$data, $data], |
@@ -91,9 +91,9 @@ discard block |
||
91 | 91 | $timezone = new \DateTimeZone(getenv('TIMEZONE')); |
92 | 92 | $date = "2015-01-12 12:11:06"; |
93 | 93 | return [ |
94 | - [null, new \DateTime('now', $timezone)], |
|
94 | + [null, new \DateTime('now', $timezone)], |
|
95 | 95 | [new \DateTime($date), new \DateTime($date, $timezone)], |
96 | - [$date, new \DateTime($date, $timezone)], |
|
96 | + [$date, new \DateTime($date, $timezone)], |
|
97 | 97 | ]; |
98 | 98 | } |
99 | 99 | /** |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | 'imgDir' => 'public/captcha', |
93 | 93 | 'imgUrl' => '/captcha' |
94 | 94 | ]; |
95 | - $target=$this->options; |
|
95 | + $target = $this->options; |
|
96 | 96 | $target->setImage($params); |
97 | 97 | |
98 | 98 | $this->assertSame($target->getImage(), $params); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | public function testSetGetReCaptcha() |
106 | 106 | { |
107 | 107 | $params = new ReCaptcha(); |
108 | - $target=$this->options; |
|
108 | + $target = $this->options; |
|
109 | 109 | $target->setReCaptcha($params); |
110 | 110 | $this->assertSame($target->getReCaptcha(), $params); |
111 | 111 | } |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | |
41 | 41 | $events = $this->getMockBuilder('\Zend\EventManager\EventManager')->disableOriginalConstructor()->getMock(); |
42 | 42 | $events->expects($this->once()) |
43 | - ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ]) |
|
44 | - ->willReturn('worked'); |
|
43 | + ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ]) |
|
44 | + ->willReturn('worked'); |
|
45 | 45 | |
46 | 46 | $this->assertSame($target, $target->attach($events), 'Fluent interface broken'); |
47 | 47 | $this->assertAttributeEquals(['worked'], 'listeners', $target); |
@@ -50,15 +50,15 @@ discard block |
||
50 | 50 | public function provideTestData() |
51 | 51 | { |
52 | 52 | return [ |
53 | - [ true, true, true, true ], |
|
54 | - [ false, true, true, false ], |
|
55 | - [ true, false, true, false ], |
|
56 | - [ true, true, false, false ], |
|
57 | - [ false, false, true, false ], |
|
58 | - [ false, true, false, false ], |
|
59 | - [ true, false, false, false ], |
|
60 | - [ false, false, false, false ], |
|
61 | - ]; |
|
53 | + [ true, true, true, true ], |
|
54 | + [ false, true, true, false ], |
|
55 | + [ true, false, true, false ], |
|
56 | + [ true, true, false, false ], |
|
57 | + [ false, false, true, false ], |
|
58 | + [ false, true, false, false ], |
|
59 | + [ true, false, false, false ], |
|
60 | + [ false, false, false, false ], |
|
61 | + ]; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | $event = $this->getMockBuilder('\Zend\Mvc\MvcEvent')->disableOriginalConstructor()->getMock(); |
79 | 79 | |
80 | 80 | $event->expects($this->once()) |
81 | - ->method('getParam')->with('exception') |
|
82 | - ->willReturn($exception); |
|
81 | + ->method('getParam')->with('exception') |
|
82 | + ->willReturn($exception); |
|
83 | 83 | |
84 | 84 | if ($useValidModel) { |
85 | 85 | $model = $this->getMockBuilder('\Zend\View\Model\ViewModel')->disableOriginalConstructor()->getMock(); |
@@ -89,16 +89,16 @@ discard block |
||
89 | 89 | $model->expects($this->never())->method('setTemplate'); |
90 | 90 | } |
91 | 91 | $event->expects($this->once()) |
92 | - ->method('getError') |
|
93 | - ->willReturn($useValidError ? Application::ERROR_EXCEPTION : 'NotMatchError'); |
|
92 | + ->method('getError') |
|
93 | + ->willReturn($useValidError ? Application::ERROR_EXCEPTION : 'NotMatchError'); |
|
94 | 94 | } else { |
95 | 95 | $model = 'not a view model instance'; |
96 | 96 | $event->expects($this->never())->method('getError'); |
97 | 97 | } |
98 | 98 | |
99 | 99 | $event->expects($this->once()) |
100 | - ->method('getResult') |
|
101 | - ->willReturn($model); |
|
100 | + ->method('getResult') |
|
101 | + ->willReturn($model); |
|
102 | 102 | |
103 | 103 | $target->onDispatchError($event); |
104 | 104 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | $events = $this->getMockBuilder('\Zend\EventManager\EventManager')->disableOriginalConstructor()->getMock(); |
42 | 42 | $events->expects($this->once()) |
43 | - ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ]) |
|
43 | + ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [$target, 'onDispatchError']) |
|
44 | 44 | ->willReturn('worked'); |
45 | 45 | |
46 | 46 | $this->assertSame($target, $target->attach($events), 'Fluent interface broken'); |
@@ -50,14 +50,14 @@ discard block |
||
50 | 50 | public function provideTestData() |
51 | 51 | { |
52 | 52 | return [ |
53 | - [ true, true, true, true ], |
|
54 | - [ false, true, true, false ], |
|
55 | - [ true, false, true, false ], |
|
56 | - [ true, true, false, false ], |
|
57 | - [ false, false, true, false ], |
|
58 | - [ false, true, false, false ], |
|
59 | - [ true, false, false, false ], |
|
60 | - [ false, false, false, false ], |
|
53 | + [true, true, true, true], |
|
54 | + [false, true, true, false], |
|
55 | + [true, false, true, false], |
|
56 | + [true, true, false, false], |
|
57 | + [false, false, true, false], |
|
58 | + [false, true, false, false], |
|
59 | + [true, false, false, false], |
|
60 | + [false, false, false, false], |
|
61 | 61 | ]; |
62 | 62 | } |
63 | 63 |