@@ -140,7 +140,7 @@ |
||
140 | 140 | |
141 | 141 | for ($i = 0; $i < 3; $i++) { |
142 | 142 | $empUser = new User(); |
143 | - $empUser->setId('1234-' . $i); |
|
143 | + $empUser->setId('1234-'.$i); |
|
144 | 144 | $perm = new EmployeePermissions(EmployeePermissionsInterface::JOBS_VIEW); |
145 | 145 | if (2 == $i && $isOneEmployeeAllowed) { |
146 | 146 | $perm->grant(EmployeePermissionsInterface::JOBS_CREATE); |
@@ -40,12 +40,12 @@ |
||
40 | 40 | $target = new CheckJobCreatePermissionListener(); |
41 | 41 | |
42 | 42 | $events = $this->getMockBuilder('\Laminas\EventManager\SharedEventManager') |
43 | - ->disableOriginalConstructor() |
|
44 | - ->getMock(); |
|
43 | + ->disableOriginalConstructor() |
|
44 | + ->getMock(); |
|
45 | 45 | |
46 | 46 | $events->expects($this->once()) |
47 | - ->method('attach') |
|
48 | - ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission')); |
|
47 | + ->method('attach') |
|
48 | + ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission')); |
|
49 | 49 | |
50 | 50 | $target->attachShared($events); |
51 | 51 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | public function __construct($options = null) |
47 | 47 | { |
48 | 48 | // We are relative to the application dir (see public/index.php) |
49 | - $this->filePath = 'public' . $this->uriPath; |
|
49 | + $this->filePath = 'public'.$this->uriPath; |
|
50 | 50 | |
51 | 51 | parent::__construct($options); |
52 | 52 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ], |
40 | 40 | '@testCreateServiceInvokesItselfAndResetsCreationOptions' => [ |
41 | 41 | 'class' => AbstractCustomizableFieldsetFactory::class, |
42 | - 'mock' => [ '__invoke' ] |
|
42 | + 'mock' => ['__invoke'] |
|
43 | 43 | ], |
44 | 44 | '@testInvokationThrowsExceptionIfOptionsNameIsNotSpecified' => [ |
45 | 45 | 'class' => ConcreteAbstractCustomizableFieldsetFactoryWithClassName::class |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | ], |
53 | 53 | ]; |
54 | 54 | |
55 | - private $inheritance = [ FactoryInterface::class ]; |
|
55 | + private $inheritance = [FactoryInterface::class]; |
|
56 | 56 | |
57 | 57 | public function testCreationOptions() |
58 | 58 | { |
@@ -38,10 +38,10 @@ |
||
38 | 38 | */ |
39 | 39 | private $target = [ |
40 | 40 | AjaxUrlFactory::class, |
41 | - '@testCreateService' => [ 'mock' => ['__invoke']], |
|
41 | + '@testCreateService' => ['mock' => ['__invoke']], |
|
42 | 42 | ]; |
43 | 43 | |
44 | - private $inheritance = [ FactoryInterface::class ]; |
|
44 | + private $inheritance = [FactoryInterface::class]; |
|
45 | 45 | |
46 | 46 | public function testCreateService() |
47 | 47 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | ], |
43 | 43 | ]; |
44 | 44 | |
45 | - private $inheritance = [ FactoryInterface::class ]; |
|
45 | + private $inheritance = [FactoryInterface::class]; |
|
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @testdox Method createService() proxies to __invoke() |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'class' => '\Core\Controller\Plugin\SearchForm', |
40 | 40 | 'args' => 'getTargetArgs', |
41 | 41 | '@testInvokationProxiesToGet' => [ |
42 | - 'mock' => [ 'get' ], |
|
42 | + 'mock' => ['get'], |
|
43 | 43 | 'args' => false, |
44 | 44 | ], |
45 | 45 | '@testInheritance' => [ |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | ], |
48 | 48 | ]; |
49 | 49 | |
50 | - protected $inheritance = [ AbstractPlugin::class ]; |
|
50 | + protected $inheritance = [AbstractPlugin::class]; |
|
51 | 51 | |
52 | 52 | protected function getTargetArgs() |
53 | 53 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function testInvokationProxiesToGet() |
64 | 64 | { |
65 | 65 | $form = 'TestForm'; |
66 | - $options = ['test' => 'test']; |
|
66 | + $options = ['test' => 'test']; |
|
67 | 67 | |
68 | 68 | $this->target->expects($this->once())->method('get')->with($form, $options); |
69 | 69 |
@@ -126,14 +126,14 @@ |
||
126 | 126 | |
127 | 127 | $formData = ['data' => 'value']; |
128 | 128 | $hydrator = $this->getMockBuilder(HydratorInterface::class) |
129 | - ->setMethods(['hydrate', 'extract']) |
|
130 | - ->getMockForAbstractClass(); |
|
129 | + ->setMethods(['hydrate', 'extract']) |
|
130 | + ->getMockForAbstractClass(); |
|
131 | 131 | $hydrator->expects($this->once())->method('extract')->with($this->isInstanceOf(Parameters::class))->willReturn($formData); |
132 | 132 | $hydrator->expects($this->once())->method('hydrate')->with($formData, $this->isInstanceOf(Parameters::class)); |
133 | 133 | |
134 | 134 | $form = $this->getMockBuilder(Form::class) |
135 | - ->setMethods(['getHydrator', 'setData']) |
|
136 | - ->getMock(); |
|
135 | + ->setMethods(['getHydrator', 'setData']) |
|
136 | + ->getMock(); |
|
137 | 137 | $form->expects($this->once())->method('gethydrator')->willReturn($hydrator); |
138 | 138 | $form->expects($this->once())->method('setData')->with($formData); |
139 | 139 | $this->formElementManagerMock |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | $controller = $this->controller; |
66 | 66 | $installer = $this->getMockBuilder(AssetsInstaller::class) |
67 | - ->setMethods(['install','setOutput','setInput']) |
|
67 | + ->setMethods(['install', 'setOutput', 'setInput']) |
|
68 | 68 | ->getMock() |
69 | 69 | ; |
70 | 70 | $installer->expects($this->once()) |
@@ -86,9 +86,9 @@ discard block |
||
86 | 86 | public function getTestInstallMethod() |
87 | 87 | { |
88 | 88 | return [ |
89 | - ['--copy', AssetsInstaller::METHOD_COPY], |
|
90 | - ['--relative', AssetsInstaller::METHOD_RELATIVE_SYMLINK], |
|
91 | - ['--symlink', AssetsInstaller::METHOD_ABSOLUTE_SYMLINK], |
|
89 | + ['--copy', AssetsInstaller::METHOD_COPY], |
|
90 | + ['--relative', AssetsInstaller::METHOD_RELATIVE_SYMLINK], |
|
91 | + ['--symlink', AssetsInstaller::METHOD_ABSOLUTE_SYMLINK], |
|
92 | 92 | ]; |
93 | 93 | } |
94 | 94 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | ) |
188 | 188 | ); |
189 | 189 | } |
190 | - $this->assertTrue((bool)preg_match($pattern, $responseHeader->getFieldValue())); |
|
190 | + $this->assertTrue((bool) preg_match($pattern, $responseHeader->getFieldValue())); |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
@@ -213,6 +213,6 @@ discard block |
||
213 | 213 | ) |
214 | 214 | ); |
215 | 215 | } |
216 | - $this->assertFalse((bool)preg_match($pattern, $responseHeader->getFieldValue())); |
|
216 | + $this->assertFalse((bool) preg_match($pattern, $responseHeader->getFieldValue())); |
|
217 | 217 | } |
218 | 218 | } |
@@ -84,14 +84,14 @@ discard block |
||
84 | 84 | ['foo'], |
85 | 85 | [['error' => UPLOAD_ERR_NO_FILE]], |
86 | 86 | [ |
87 | - ['type' => 'pdf','error' => UPLOAD_ERR_OK], |
|
87 | + ['type' => 'pdf', 'error' => UPLOAD_ERR_OK], |
|
88 | 88 | ] |
89 | 89 | ]; |
90 | 90 | } |
91 | 91 | |
92 | 92 | private function setupImagine() |
93 | 93 | { |
94 | - $this->imageFile = __DIR__ . '/fixtures/logo.jpg'; |
|
94 | + $this->imageFile = __DIR__.'/fixtures/logo.jpg'; |
|
95 | 95 | $image = $this->getMockBuilder(ImageInterface::class) |
96 | 96 | ->getMock() |
97 | 97 | ; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $this->image->expects($this->once()) |
129 | 129 | ->method('resize') |
130 | - ->with($this->callback(function ($size) { |
|
130 | + ->with($this->callback(function($size) { |
|
131 | 131 | $this->assertInstanceOf(BoxInterface::class, $size); |
132 | 132 | $this->assertEquals(100, $size->getWidth()); |
133 | 133 | $this->assertEquals(100, $size->getHeight()); |
@@ -200,9 +200,9 @@ discard block |
||
200 | 200 | public function getTestMinMaxOptions() |
201 | 201 | { |
202 | 202 | return [ |
203 | - [ ['max-width'=>50, 'max-height'=> 50 ], 50, 50], |
|
204 | - [ ['max-width'=>80, 'max-height'=> 90 ], 80,90], |
|
205 | - [ ['min-width'=>200, 'min-height' => 120],200,120] |
|
203 | + [['max-width'=>50, 'max-height'=> 50], 50, 50], |
|
204 | + [['max-width'=>80, 'max-height'=> 90], 80, 90], |
|
205 | + [['min-width'=>200, 'min-height' => 120], 200, 120] |
|
206 | 206 | ]; |
207 | 207 | } |
208 | 208 | } |