@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | protected $target; |
32 | 32 | |
33 | - public function setUp(){ |
|
33 | + public function setUp() { |
|
34 | 34 | $this->target = new OrganizationsContactFieldset(); |
35 | 35 | $this->target->init(); |
36 | 36 | } |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | $this->assertInstanceOf('Zend\Form\Fieldset', $this->target); |
41 | 41 | } |
42 | 42 | |
43 | - public function testNameFormFields(){ |
|
44 | - $this->assertSame($this->target->getName(),"contact"); |
|
43 | + public function testNameFormFields() { |
|
44 | + $this->assertSame($this->target->getName(), "contact"); |
|
45 | 45 | $this->assertTrue($this->target->has('fax')); |
46 | 46 | $this->assertTrue($this->target->has('phone')); |
47 | 47 | $this->assertTrue($this->target->has('city')); |
@@ -50,15 +50,15 @@ discard block |
||
50 | 50 | $this->assertTrue($this->target->has('street')); |
51 | 51 | } |
52 | 52 | |
53 | - public function testAllowObjectBinding(){ |
|
54 | - $this->assertSame($this->target->allowObjectBinding(new OrganizationContact),true); |
|
53 | + public function testAllowObjectBinding() { |
|
54 | + $this->assertSame($this->target->allowObjectBinding(new OrganizationContact), true); |
|
55 | 55 | } |
56 | 56 | |
57 | - public function testGetInputFilterSpec(){ |
|
58 | - $this->assertSame($this->target->getInputFilterSpecification(),[]); |
|
57 | + public function testGetInputFilterSpec() { |
|
58 | + $this->assertSame($this->target->getInputFilterSpecification(), []); |
|
59 | 59 | } |
60 | 60 | |
61 | - public function testGetHydrator(){ |
|
61 | + public function testGetHydrator() { |
|
62 | 62 | $this->assertEquals($this->target->getHydrator(), new EntityHydrator()); |
63 | 63 | } |
64 | 64 |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | $container->expects($this->any()) |
40 | 40 | ->method('get') |
41 | 41 | ->willReturnMap([ |
42 | - ['FilterManager',$filterManager], |
|
43 | - ['repositories',$repositories] |
|
42 | + ['FilterManager', $filterManager], |
|
43 | + ['repositories', $repositories] |
|
44 | 44 | ]) |
45 | 45 | ; |
46 | 46 | |
@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | ; |
61 | 61 | |
62 | 62 | $target = new ListJobPaginatorFactory(); |
63 | - $service = $target($container,'some-name',array()); |
|
63 | + $service = $target($container, 'some-name', array()); |
|
64 | 64 | |
65 | - $this->assertInstanceOf(Paginator::class,$service); |
|
65 | + $this->assertInstanceOf(Paginator::class, $service); |
|
66 | 66 | } |
67 | 67 | } |
@@ -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); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
3 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
4 | 4 | |
5 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
6 | 5 | \ No newline at end of file |
6 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
|
7 | 7 | \ No newline at end of file |
@@ -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 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | use Core\Service\Tracy; |
23 | 23 | use Zend\I18n\Translator\Resources; |
24 | 24 | |
25 | -$doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
|
25 | +$doctrineConfig = include __DIR__.'/doctrine.config.php'; |
|
26 | 26 | |
27 | 27 | |
28 | 28 | return array( |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | 'doctrine' => $doctrineConfig, |
31 | 31 | |
32 | 32 | 'options' => [ |
33 | - 'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ], |
|
33 | + 'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'], |
|
34 | 34 | ], |
35 | 35 | |
36 | 36 | 'Core' => array( |
@@ -265,19 +265,19 @@ discard block |
||
265 | 265 | 'modules/Core/jsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory', |
266 | 266 | 'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory', |
267 | 267 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
268 | - 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'], |
|
269 | - 'DefaultListeners' => ['Core\Listener\DefaultListener','factory'], |
|
270 | - 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'], |
|
271 | - 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'], |
|
268 | + 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'], |
|
269 | + 'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'], |
|
270 | + 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'], |
|
271 | + 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'], |
|
272 | 272 | 'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory', |
273 | 273 | 'Core/Locale' => 'Core\I18n\LocaleFactory', |
274 | 274 | \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class, |
275 | 275 | \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class, |
276 | 276 | 'Imagine' => \Core\Factory\Service\ImagineFactory::class, |
277 | - 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'], |
|
278 | - 'Tracy' => [Tracy::class,'factory'], |
|
277 | + 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'], |
|
278 | + 'Tracy' => [Tracy::class, 'factory'], |
|
279 | 279 | Service\EntityEraser\DefaultEntityLoaderListener::class => Service\EntityEraser\DefaultEntityLoaderListenerFactory::class, |
280 | - ClearCacheService::class => [ClearCacheService::class,'factory'] |
|
280 | + ClearCacheService::class => [ClearCacheService::class, 'factory'] |
|
281 | 281 | ), |
282 | 282 | 'abstract_factories' => array( |
283 | 283 | 'Core\Factory\OptionsAbstractFactory', |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | 'translation_file_patterns' => array( |
301 | 301 | [ |
302 | 302 | 'type' => 'gettext', |
303 | - 'base_dir' => __DIR__ . '/../language', |
|
303 | + 'base_dir' => __DIR__.'/../language', |
|
304 | 304 | 'pattern' => '%s.mo', |
305 | 305 | ], |
306 | 306 | [ |
@@ -345,8 +345,8 @@ discard block |
||
345 | 345 | 'Core/File' => FileControllerFactory::class, |
346 | 346 | 'Core/Content' => LazyControllerFactory::class, |
347 | 347 | Controller\Console\PurgeController::class => Controller\Console\PurgeControllerFactory::class, |
348 | - AssetsInstallController::class => [AssetsInstallController::class,'factory'], |
|
349 | - ClearCacheController::class => [ClearCacheController::class,'factory'], |
|
348 | + AssetsInstallController::class => [AssetsInstallController::class, 'factory'], |
|
349 | + ClearCacheController::class => [ClearCacheController::class, 'factory'], |
|
350 | 350 | |
351 | 351 | ], |
352 | 352 | ), |
@@ -359,9 +359,9 @@ discard block |
||
359 | 359 | 'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory', |
360 | 360 | 'listquery' => 'Core\Controller\Plugin\ListQuery::factory', |
361 | 361 | 'mail' => 'Core\Controller\Plugin\Mail::factory', |
362 | - 'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'], |
|
363 | - 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'], |
|
364 | - 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'], |
|
362 | + 'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'], |
|
363 | + 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'], |
|
364 | + 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'], |
|
365 | 365 | Controller\Plugin\EntityEraser::class => Controller\Plugin\EntityEraserFactory::class, |
366 | 366 | ), |
367 | 367 | 'invokables' => array( |
@@ -392,32 +392,32 @@ discard block |
||
392 | 392 | 'exception_template' => 'error/index', |
393 | 393 | // Map template to files. Speeds up the lookup through the template stack. |
394 | 394 | 'template_map' => array( |
395 | - 'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml', |
|
396 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
397 | - 'error/404' => __DIR__ . '/../view/error/404.phtml', |
|
398 | - 'error/403' => __DIR__ . '/../view/error/403.phtml', |
|
399 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
400 | - 'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml', |
|
401 | - 'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml', |
|
402 | - 'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml', |
|
403 | - 'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml', |
|
404 | - 'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml', |
|
405 | - 'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml', |
|
406 | - 'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml', |
|
407 | - 'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml', |
|
408 | - 'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml', |
|
409 | - 'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml', |
|
410 | - 'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml', |
|
411 | - 'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml', |
|
412 | - 'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml', |
|
413 | - 'mail/header' => __DIR__ . '/../view/mail/header.phtml', |
|
414 | - 'mail/footer' => __DIR__ . '/../view/mail/footer.phtml', |
|
415 | - 'mail/footer.en' => __DIR__ . '/../view/mail/footer.en.phtml', |
|
395 | + 'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml', |
|
396 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
397 | + 'error/404' => __DIR__.'/../view/error/404.phtml', |
|
398 | + 'error/403' => __DIR__.'/../view/error/403.phtml', |
|
399 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
400 | + 'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml', |
|
401 | + 'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml', |
|
402 | + 'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml', |
|
403 | + 'core/notifications' => __DIR__.'/../view/partial/notifications.phtml', |
|
404 | + 'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml', |
|
405 | + 'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml', |
|
406 | + 'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml', |
|
407 | + 'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml', |
|
408 | + 'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml', |
|
409 | + 'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml', |
|
410 | + 'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml', |
|
411 | + 'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml', |
|
412 | + 'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml', |
|
413 | + 'mail/header' => __DIR__.'/../view/mail/header.phtml', |
|
414 | + 'mail/footer' => __DIR__.'/../view/mail/footer.phtml', |
|
415 | + 'mail/footer.en' => __DIR__.'/../view/mail/footer.en.phtml', |
|
416 | 416 | //'startpage' => __DIR__ . '/../view/layout/startpage.phtml', |
417 | 417 | ), |
418 | 418 | // Where to look for view templates not mapped above |
419 | 419 | 'template_path_stack' => array( |
420 | - __DIR__ . '/../view', |
|
420 | + __DIR__.'/../view', |
|
421 | 421 | ), |
422 | 422 | ), |
423 | 423 | 'view_helpers' => array( |