@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | $this->view->expects($this->once()) |
72 | 72 | ->method('partial') |
73 | 73 | ->with( |
74 | - dirname($this->viewModel->getTemplate()) . '/' . $this->helper->getPartial(), |
|
75 | - $this->callback(function (array $variables) { |
|
74 | + dirname($this->viewModel->getTemplate()).'/'.$this->helper->getPartial(), |
|
75 | + $this->callback(function(array $variables) { |
|
76 | 76 | return $variables['default'] && $variables['oneClick'] === []; |
77 | 77 | }) |
78 | 78 | ); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | $this->view->expects($this->once()) |
91 | 91 | ->method('partial') |
92 | - ->with(dirname($this->viewModel->getTemplate()) . '/' . $options['partial']); |
|
92 | + ->with(dirname($this->viewModel->getTemplate()).'/'.$options['partial']); |
|
93 | 93 | |
94 | 94 | $helper = $this->helper; |
95 | 95 | $helper($this->validData(), $options); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | ->method('partial') |
106 | 106 | ->with( |
107 | 107 | $this->anything(), |
108 | - $this->callback(function (array $variables) { |
|
108 | + $this->callback(function(array $variables) { |
|
109 | 109 | return $variables['default'] === null; |
110 | 110 | }) |
111 | 111 | ); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | ->method('partial') |
125 | 125 | ->with( |
126 | 126 | $this->anything(), |
127 | - $this->callback(function (array $variables) use ($options) { |
|
127 | + $this->callback(function(array $variables) use ($options) { |
|
128 | 128 | return $variables['default']['label'] === $options['defaultLabel']; |
129 | 129 | }) |
130 | 130 | ); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | ->method('partial') |
146 | 146 | ->with( |
147 | 147 | $this->anything(), |
148 | - $this->callback(function (array $variables) use ($options) { |
|
148 | + $this->callback(function(array $variables) use ($options) { |
|
149 | 149 | foreach ($variables['oneClick'] as $button) { |
150 | 150 | if ($button['label'] !== sprintf($options['oneClickLabel'], $button['network'])) { |
151 | 151 | return false; |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | ->method('url') |
173 | 173 | ->with( |
174 | 174 | 'lang/apply-one-click', |
175 | - $this->callback(function (array $variables) use ($options) { |
|
175 | + $this->callback(function(array $variables) use ($options) { |
|
176 | 176 | return $variables['immediately'] === $options['sendImmediately']; |
177 | 177 | }) |
178 | 178 | ); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ], |
44 | 44 | ]; |
45 | 45 | |
46 | - private $inheritance = [ FactoryInterface::class ]; |
|
46 | + private $inheritance = [FactoryInterface::class]; |
|
47 | 47 | |
48 | 48 | public function testCreateService() |
49 | 49 | { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | |
60 | 60 | public function testSetGetMessage() |
61 | 61 | { |
62 | - $message="this message"; |
|
62 | + $message = "this message"; |
|
63 | 63 | $this->target->setMessage($message); |
64 | 64 | $this->assertEquals($this->target->getMessage(), $message); |
65 | 65 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | public function testSetGetCv() |
138 | 138 | { |
139 | 139 | $cv = new Cv(); |
140 | - $education= new Education(); |
|
140 | + $education = new Education(); |
|
141 | 141 | $education->setDescription('test'); |
142 | 142 | $educations = new ArrayCollection(); |
143 | 143 | $educations->add($education); |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | */ |
319 | 319 | public function testSetGetKeywords() |
320 | 320 | { |
321 | - $input = array('Sehr',' geehrte',' Damen' ,'und' ,'Herren'); |
|
321 | + $input = array('Sehr', ' geehrte', ' Damen', 'und', 'Herren'); |
|
322 | 322 | $this->target->setKeywords($input); |
323 | 323 | $this->assertEquals($input, $this->target->getKeywords()); |
324 | 324 | $this->target->clearKeywords(); |
@@ -341,8 +341,8 @@ discard block |
||
341 | 341 | public function provideSetGetDraft() |
342 | 342 | { |
343 | 343 | return [ |
344 | - [true,true], |
|
345 | - [false,false] |
|
344 | + [true, true], |
|
345 | + [false, false] |
|
346 | 346 | ]; |
347 | 347 | } |
348 | 348 | |
@@ -372,11 +372,11 @@ discard block |
||
372 | 372 | public function providerSetGetApplicationStatus() |
373 | 373 | { |
374 | 374 | return [ |
375 | - [Status::REJECTED,new Status(Status::REJECTED)], |
|
376 | - [Status::INVITED,new Status(Status::INVITED)], |
|
377 | - [Status::INCOMING,new Status(Status::INCOMING)], |
|
378 | - [Status::CONFIRMED,new Status(Status::CONFIRMED)], |
|
379 | - [new Status(Status::CONFIRMED),new Status(Status::CONFIRMED)], |
|
375 | + [Status::REJECTED, new Status(Status::REJECTED)], |
|
376 | + [Status::INVITED, new Status(Status::INVITED)], |
|
377 | + [Status::INCOMING, new Status(Status::INCOMING)], |
|
378 | + [Status::CONFIRMED, new Status(Status::CONFIRMED)], |
|
379 | + [new Status(Status::CONFIRMED), new Status(Status::CONFIRMED)], |
|
380 | 380 | ]; |
381 | 381 | } |
382 | 382 |
@@ -66,7 +66,7 @@ |
||
66 | 66 | return [ |
67 | 67 | [1, true], |
68 | 68 | [true, true], |
69 | - [false,false], |
|
69 | + [false, false], |
|
70 | 70 | ["1", true], |
71 | 71 | ]; |
72 | 72 | } |
@@ -37,13 +37,13 @@ discard block |
||
37 | 37 | |
38 | 38 | private $target = PaginationQueryFactory::class; |
39 | 39 | |
40 | - private $inheritance = [ FactoryInterface::class ]; |
|
40 | + private $inheritance = [FactoryInterface::class]; |
|
41 | 41 | |
42 | 42 | public function provideUser() |
43 | 43 | { |
44 | 44 | return [ |
45 | - [ null ], |
|
46 | - [ new User() ], |
|
45 | + [null], |
|
46 | + [new User()], |
|
47 | 47 | ]; |
48 | 48 | } |
49 | 49 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | $services = $this->createServiceManagerMock( |
78 | - ['AuthenticationService' => $auth ] |
|
78 | + ['AuthenticationService' => $auth] |
|
79 | 79 | ); |
80 | 80 | |
81 | 81 | $paginators = $this->createPluginManagerMock([], $services); |
@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | '@testCreateServiceProxiesToInvokeAndPassServiceManager' => VCF_Mock::class, |
37 | 37 | ]; |
38 | 38 | |
39 | - private $inheritance = [ FactoryInterface::class ]; |
|
39 | + private $inheritance = [FactoryInterface::class]; |
|
40 | 40 | |
41 | 41 | public function provideCreateServiceTestData() |
42 | 42 | { |
43 | 43 | return [ |
44 | - [ 'requestedName' ], |
|
45 | - [ null ], |
|
44 | + ['requestedName'], |
|
45 | + [null], |
|
46 | 46 | ]; |
47 | 47 | } |
48 | 48 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $repositories = $this |
68 | 68 | ->createPluginManagerMock( |
69 | 69 | [ |
70 | - 'Cv/Cv' => [ 'service' => $repository, 'count_get' => 1 ] |
|
70 | + 'Cv/Cv' => ['service' => $repository, 'count_get' => 1] |
|
71 | 71 | ] |
72 | 72 | ) |
73 | 73 | ; |
@@ -106,6 +106,6 @@ discard block |
||
106 | 106 | |
107 | 107 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
108 | 108 | { |
109 | - $this->reqName = is_null($requestedName) ? ViewController::class:$requestedName; |
|
109 | + $this->reqName = is_null($requestedName) ? ViewController::class : $requestedName; |
|
110 | 110 | } |
111 | 111 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | private $target = LanguageSkillCollectionFactory::class; |
38 | 38 | |
39 | - private $inheritance = [ FactoryInterface::class ]; |
|
39 | + private $inheritance = [FactoryInterface::class]; |
|
40 | 40 | |
41 | 41 | public function testInvokation() |
42 | 42 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | private $target = EmploymentCollectionFactory::class; |
38 | 38 | |
39 | - private $inheritance = [ FactoryInterface::class ]; |
|
39 | + private $inheritance = [FactoryInterface::class]; |
|
40 | 40 | |
41 | 41 | public function testInvokation() |
42 | 42 | { |