Completed
Pull Request — develop (#521)
by
unknown
15:37
created
module/Install/src/Factory/Controller/LazyControllerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     
34 34
     public function canCreate(ContainerInterface $container, $requestedName)
35 35
     {
36
-        list($module, ) = explode('\\', __NAMESPACE__, 2);
37
-        return strstr($requestedName, $module . '\Controller') !== false;
36
+        list($module,) = explode('\\', __NAMESPACE__, 2);
37
+        return strstr($requestedName, $module.'\Controller') !== false;
38 38
     }
39 39
     
40 40
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
Please login to merge, or discard this patch.
module/Install/src/Controller/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
         parent::attachDefaultListeners();
163 163
     
164 164
         $events = $this->getEventManager();
165
-        $events->attach(MvcEvent::EVENT_DISPATCH, array( $this, 'preDispatch' ), 100);
165
+        $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 100);
166 166
     }
167 167
 
168 168
     /**
Please login to merge, or discard this patch.
module/Core/config/module.config.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 use Zend\I18n\Translator\Resources;
26 26
 use Zend\Mvc\MvcEvent;
27 27
 
28
-$doctrineConfig = include __DIR__ . '/doctrine.config.php';
28
+$doctrineConfig = include __DIR__.'/doctrine.config.php';
29 29
 
30 30
 
31 31
 return array(
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     'doctrine' => $doctrineConfig,
34 34
 
35 35
     'options' => [
36
-        'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ],
36
+        'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'],
37 37
     ],
38 38
     
39 39
     'Core' => array(
@@ -277,19 +277,19 @@  discard block
 block discarded – undo
277 277
             'modules/Core/jsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory',
278 278
             'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory',
279 279
             'Core/Options' => 'Core\Factory\ModuleOptionsFactory',
280
-            'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'],
281
-            'DefaultListeners' => ['Core\Listener\DefaultListener','factory'],
282
-            'templateProviderStrategy'   => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'],
283
-            'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'],
280
+            'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'],
281
+            'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'],
282
+            'templateProviderStrategy'   => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'],
283
+            'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'],
284 284
             'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory',
285 285
             'Core/Locale' => 'Core\I18n\LocaleFactory',
286 286
             \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class,
287 287
             \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class,
288 288
             'Imagine' => \Core\Factory\Service\ImagineFactory::class,
289
-            'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'],
290
-            'Tracy' => [Tracy::class,'factory'],
289
+            'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'],
290
+            'Tracy' => [Tracy::class, 'factory'],
291 291
             Service\EntityEraser\DefaultEntityLoaderListener::class => Service\EntityEraser\DefaultEntityLoaderListenerFactory::class,
292
-            ClearCacheService::class => [ClearCacheService::class,'factory']
292
+            ClearCacheService::class => [ClearCacheService::class, 'factory']
293 293
         ),
294 294
         'abstract_factories' => array(
295 295
             'Core\Factory\OptionsAbstractFactory',
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         'translation_file_patterns' => array(
313 313
             [
314 314
                 'type' => 'gettext',
315
-                'base_dir' => __DIR__ . '/../language',
315
+                'base_dir' => __DIR__.'/../language',
316 316
                 'pattern' => '%s.mo',
317 317
             ],
318 318
             [
@@ -357,9 +357,9 @@  discard block
 block discarded – undo
357 357
             'Core/File'    => FileControllerFactory::class,
358 358
             'Core/Content' => LazyControllerFactory::class,
359 359
             Controller\Console\PurgeController::class => Controller\Console\PurgeControllerFactory::class,
360
-            AssetsInstallController::class => [AssetsInstallController::class,'factory'],
361
-            SubsplitController::class => [SubsplitController::class,'factory'],
362
-            ClearCacheController::class => [ClearCacheController::class,'factory'],
360
+            AssetsInstallController::class => [AssetsInstallController::class, 'factory'],
361
+            SubsplitController::class => [SubsplitController::class, 'factory'],
362
+            ClearCacheController::class => [ClearCacheController::class, 'factory'],
363 363
 
364 364
         ],
365 365
     ),
@@ -372,9 +372,9 @@  discard block
 block discarded – undo
372 372
             'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory',
373 373
             'listquery' => 'Core\Controller\Plugin\ListQuery::factory',
374 374
             'mail' => 'Core\Controller\Plugin\Mail::factory',
375
-            'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'],
376
-            'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'],
377
-            'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'],
375
+            'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'],
376
+            'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'],
377
+            'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'],
378 378
             Controller\Plugin\EntityEraser::class => Controller\Plugin\EntityEraserFactory::class,
379 379
         ),
380 380
         'invokables' => array(
@@ -405,32 +405,32 @@  discard block
 block discarded – undo
405 405
         'exception_template' => 'error/index',
406 406
         // Map template to files. Speeds up the lookup through the template stack.
407 407
         'template_map' => array(
408
-            'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml',
409
-            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
410
-            'error/404' => __DIR__ . '/../view/error/404.phtml',
411
-            'error/403' => __DIR__ . '/../view/error/403.phtml',
412
-            'error/index' => __DIR__ . '/../view/error/index.phtml',
413
-            'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml',
414
-            'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml',
415
-            'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml',
416
-            'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml',
417
-            'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml',
418
-            'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml',
419
-            'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml',
420
-            'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml',
421
-            'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml',
422
-            'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml',
423
-            'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml',
424
-            'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml',
425
-            'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml',
426
-            'mail/header' =>  __DIR__ . '/../view/mail/header.phtml',
427
-            'mail/footer' =>  __DIR__ . '/../view/mail/footer.phtml',
428
-            'mail/footer.en' =>  __DIR__ . '/../view/mail/footer.en.phtml',
408
+            'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml',
409
+            'layout/layout' => __DIR__.'/../view/layout/layout.phtml',
410
+            'error/404' => __DIR__.'/../view/error/404.phtml',
411
+            'error/403' => __DIR__.'/../view/error/403.phtml',
412
+            'error/index' => __DIR__.'/../view/error/index.phtml',
413
+            'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml',
414
+            'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml',
415
+            'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml',
416
+            'core/notifications' => __DIR__.'/../view/partial/notifications.phtml',
417
+            'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml',
418
+            'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml',
419
+            'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml',
420
+            'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml',
421
+            'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml',
422
+            'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml',
423
+            'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml',
424
+            'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml',
425
+            'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml',
426
+            'mail/header' =>  __DIR__.'/../view/mail/header.phtml',
427
+            'mail/footer' =>  __DIR__.'/../view/mail/footer.phtml',
428
+            'mail/footer.en' =>  __DIR__.'/../view/mail/footer.en.phtml',
429 429
             //'startpage' => __DIR__ . '/../view/layout/startpage.phtml',
430 430
         ),
431 431
         // Where to look for view templates not mapped above
432 432
         'template_path_stack' => array(
433
-            __DIR__ . '/../view',
433
+            __DIR__.'/../view',
434 434
         ),
435 435
     ),
436 436
     'view_helpers' => array(
Please login to merge, or discard this patch.
module/Organizations/src/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function getConfig()
29 29
     {
30
-        return ModuleConfigLoader::load(__DIR__ . '/../config');
30
+        return ModuleConfigLoader::load(__DIR__.'/../config');
31 31
     }
32 32
 
33 33
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $createJobListener->attachShared($sharedManager);
42 42
 
43 43
         if ($e->getRequest() instanceof \Zend\Http\Request) {
44
-            $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $event) {
44
+            $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function(MvcEvent $event) {
45 45
                 $serviceManager = $event->getApplication()
46 46
                     ->getServiceManager();
47 47
                 $options = $serviceManager->get('Organizations/ImageFileCacheOptions');
Please login to merge, or discard this patch.
module/Core/src/View/Helper/ContactLink.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                        : $email;
51 51
             
52 52
             $attributesStr = $attributes
53
-                       ? (' ' . $this->createAttributesString($attributes))
53
+                       ? (' '.$this->createAttributesString($attributes))
54 54
                        : '';
55 55
             
56 56
             return sprintf('<a%s href="mailto:%s">%s</a>', $attributesStr, $email, $label);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $attr       = array();
70 70
         
71 71
         foreach ($attributes as $name => $value) {
72
-            $attr[] = $escape($name) . (strlen($value) ? ('="' . $escapeAttr($value) . '"') : '');
72
+            $attr[] = $escape($name).(strlen($value) ? ('="'.$escapeAttr($value).'"') : '');
73 73
         }
74 74
         
75 75
         return implode(' ', $attr);
Please login to merge, or discard this patch.
module/Jobs/test/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
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';
5
+require_once __DIR__.'/../../../test/Bootstrap.php';
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/JobEventManagerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
         $services->expects($this->once())->method('get')->with('EventManager')->willReturn($eventManager);
54 54
 
55
-        $events = $target->__invoke($services,'irrelevant');
55
+        $events = $target->__invoke($services, 'irrelevant');
56 56
 
57 57
         $this->assertSame($eventManager, $events);
58 58
         $this->assertAttributeInstanceOf($expectedEventClass, 'eventPrototype', $events);
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Auth/Dependency/ListListenerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
             ->willReturn($repositories);
45 45
         
46 46
         $listListenerFactory = new ListListenerFactory();
47
-        $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator,'irrelevant'));
47
+        $this->assertInstanceOf(ListListener::class, $listListenerFactory->__invoke($serviceLocator, 'irrelevant'));
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/ModuleOptionsFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $factory = new ModuleOptionsFactory;
40 40
         $defaultOption = new ModuleOptions(array());
41 41
 
42
-        $object = $factory->__invoke($serviceManager,'irrelevant');
42
+        $object = $factory->__invoke($serviceManager, 'irrelevant');
43 43
 
44 44
         $this->assertInstanceOf('Jobs\Options\ModuleOptions', $object);
45 45
 
Please login to merge, or discard this patch.