@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | { |
155 | 155 | $id = 'someId'; |
156 | 156 | $ext = 'ext'; |
157 | - $name = 'filename.' . $ext; |
|
157 | + $name = 'filename.'.$ext; |
|
158 | 158 | $path = sprintf('d/I/%s.%s', $id, $ext); |
159 | 159 | $resource = 'someResource'; |
160 | 160 | $image = $this->getMockBuilder(ImageEntity::class) |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | */ |
184 | 184 | public function testMatchUri($uri, $expected) |
185 | 185 | { |
186 | - $this->assertSame($expected, $this->manager->matchUri($this->options->getUriPath() . $uri)); |
|
186 | + $this->assertSame($expected, $this->manager->matchUri($this->options->getUriPath().$uri)); |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | /** |
@@ -154,7 +154,7 @@ |
||
154 | 154 | { |
155 | 155 | $baseUrl = '/base'; |
156 | 156 | $path = '/some/uri'; |
157 | - $uri = $baseUrl . $path; |
|
157 | + $uri = $baseUrl.$path; |
|
158 | 158 | $this->event->setError(Application::ERROR_ROUTER_NO_MATCH); |
159 | 159 | |
160 | 160 | $this->request->expects($this->once()) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | private $target = WriteAssertion::class; |
34 | 34 | |
35 | - private $inheritance = [ AssertionInterface::class ]; |
|
35 | + private $inheritance = [AssertionInterface::class]; |
|
36 | 36 | |
37 | 37 | public function dataProvider() |
38 | 38 | { |
@@ -45,15 +45,15 @@ discard block |
||
45 | 45 | $validResourceWPerms->setUser($validRole); |
46 | 46 | |
47 | 47 | return [ |
48 | - [ $invalidRole, $invalidResource, 'invalidPrivilege', false ], |
|
49 | - [ $validRole, $invalidResource, 'invalid', false ], |
|
50 | - [ $invalidRole, $validResourceWoPerms, 'invalid', false ], |
|
51 | - [ $invalidRole, $validResourceWPerms, 'invalid', false ], |
|
52 | - [ $invalidRole, $invalidResource, 'edit', false ], |
|
53 | - [ $validRole, $invalidResource, 'edit', false ], |
|
54 | - [ $validRole, $validResourceWPerms, 'invalid', false ], |
|
55 | - [ $validRole, $validResourceWoPerms, 'edit', false ], |
|
56 | - [ $validRole, $validResourceWPerms, 'edit', true ], |
|
48 | + [$invalidRole, $invalidResource, 'invalidPrivilege', false], |
|
49 | + [$validRole, $invalidResource, 'invalid', false], |
|
50 | + [$invalidRole, $validResourceWoPerms, 'invalid', false], |
|
51 | + [$invalidRole, $validResourceWPerms, 'invalid', false], |
|
52 | + [$invalidRole, $invalidResource, 'edit', false], |
|
53 | + [$validRole, $invalidResource, 'edit', false], |
|
54 | + [$validRole, $validResourceWPerms, 'invalid', false], |
|
55 | + [$validRole, $validResourceWoPerms, 'edit', false], |
|
56 | + [$validRole, $validResourceWPerms, 'edit', true], |
|
57 | 57 | |
58 | 58 | ]; |
59 | 59 | } |
@@ -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); |
@@ -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 |