Completed
Push — develop ( 1e35f6...3ea9f1 )
by Mathias
17s
created
module/Core/config/module.config.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 use Core\Service\Tracy;
22 22
 use Zend\I18n\Translator\Resources;
23 23
 
24
-$doctrineConfig = include __DIR__ . '/doctrine.config.php';
24
+$doctrineConfig = include __DIR__.'/doctrine.config.php';
25 25
 
26 26
 
27 27
 return array(
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     'doctrine' => $doctrineConfig,
30 30
 
31 31
     'options' => [
32
-        'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ],
32
+        'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'],
33 33
     ],
34 34
     
35 35
     'Core' => array(
@@ -265,17 +265,17 @@  discard block
 block discarded – undo
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 280
         ),
281 281
         'abstract_factories' => array(
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
         'translation_file_patterns' => array(
300 300
             [
301 301
                 'type' => 'gettext',
302
-                'base_dir' => __DIR__ . '/../language',
302
+                'base_dir' => __DIR__.'/../language',
303 303
                 'pattern' => '%s.mo',
304 304
             ],
305 305
             [
@@ -344,8 +344,8 @@  discard block
 block discarded – undo
344 344
             'Core/File'    => FileControllerFactory::class,
345 345
             'Core/Content' => LazyControllerFactory::class,
346 346
             Controller\Console\PurgeController::class => Controller\Console\PurgeControllerFactory::class,
347
-            AssetsInstallController::class => [AssetsInstallController::class,'factory'],
348
-            SubsplitController::class => [SubsplitController::class,'factory'],
347
+            AssetsInstallController::class => [AssetsInstallController::class, 'factory'],
348
+            SubsplitController::class => [SubsplitController::class, 'factory'],
349 349
 
350 350
         ],
351 351
     ),
@@ -358,9 +358,9 @@  discard block
 block discarded – undo
358 358
             'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory',
359 359
             'listquery' => 'Core\Controller\Plugin\ListQuery::factory',
360 360
             'mail' => 'Core\Controller\Plugin\Mail::factory',
361
-            'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'],
362
-            'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'],
363
-            'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'],
361
+            'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'],
362
+            'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'],
363
+            'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'],
364 364
             Controller\Plugin\EntityEraser::class => Controller\Plugin\EntityEraserFactory::class,
365 365
         ),
366 366
         'invokables' => array(
@@ -391,32 +391,32 @@  discard block
 block discarded – undo
391 391
         'exception_template' => 'error/index',
392 392
         // Map template to files. Speeds up the lookup through the template stack.
393 393
         'template_map' => array(
394
-            'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml',
395
-            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
396
-            'error/404' => __DIR__ . '/../view/error/404.phtml',
397
-            'error/403' => __DIR__ . '/../view/error/403.phtml',
398
-            'error/index' => __DIR__ . '/../view/error/index.phtml',
399
-            'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml',
400
-            'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml',
401
-            'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml',
402
-            'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml',
403
-            'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml',
404
-            'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml',
405
-            'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml',
406
-            'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml',
407
-            'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml',
408
-            'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml',
409
-            'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml',
410
-            'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml',
411
-            'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml',
412
-            'mail/header' =>  __DIR__ . '/../view/mail/header.phtml',
413
-            'mail/footer' =>  __DIR__ . '/../view/mail/footer.phtml',
414
-            'mail/footer.en' =>  __DIR__ . '/../view/mail/footer.en.phtml',
394
+            'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml',
395
+            'layout/layout' => __DIR__.'/../view/layout/layout.phtml',
396
+            'error/404' => __DIR__.'/../view/error/404.phtml',
397
+            'error/403' => __DIR__.'/../view/error/403.phtml',
398
+            'error/index' => __DIR__.'/../view/error/index.phtml',
399
+            'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml',
400
+            'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml',
401
+            'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml',
402
+            'core/notifications' => __DIR__.'/../view/partial/notifications.phtml',
403
+            'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml',
404
+            'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml',
405
+            'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml',
406
+            'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml',
407
+            'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml',
408
+            'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml',
409
+            'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml',
410
+            'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml',
411
+            'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml',
412
+            'mail/header' =>  __DIR__.'/../view/mail/header.phtml',
413
+            'mail/footer' =>  __DIR__.'/../view/mail/footer.phtml',
414
+            'mail/footer.en' =>  __DIR__.'/../view/mail/footer.en.phtml',
415 415
             //'startpage' => __DIR__ . '/../view/layout/startpage.phtml',
416 416
         ),
417 417
         // Where to look for view templates not mapped above
418 418
         'template_path_stack' => array(
419
-            __DIR__ . '/../view',
419
+            __DIR__.'/../view',
420 420
         ),
421 421
     ),
422 422
     'view_helpers' => array(
Please login to merge, or discard this patch.
module/Core/src/Decorator/Decorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function checkObjectType($object)
58 58
     {
59 59
         if (!$object instanceof $this->objectType) {
60
-            throw new \InvalidArgumentException('Wrapped entity must be of type ' . $this->objectType);
60
+            throw new \InvalidArgumentException('Wrapped entity must be of type '.$this->objectType);
61 61
         }
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
module/Core/src/Options/ImageSetOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      * @var array
44 44
      */
45 45
     protected $images = [
46
-        ImageSetInterface::THUMBNAIL => [100,100],
46
+        ImageSetInterface::THUMBNAIL => [100, 100],
47 47
     ];
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
module/Core/src/Options/FieldsetCustomizationOptions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                     'attributes',
134 134
                     'options',
135 135
                     'label' => 'options',
136
-                    'required' => ['key' => ['attributes','*'], 'value' => 'required', 'if' => true],
136
+                    'required' => ['key' => ['attributes', '*'], 'value' => 'required', 'if' => true],
137 137
                     'type',
138 138
                 ]
139 139
             );
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                 $value = $source[$key];
253 253
             }
254 254
 
255
-            $tmpTarget =& $target;
255
+            $tmpTarget = & $target;
256 256
             foreach ($targetKeys as $targetKey) {
257 257
                 if ('*' == $targetKey) {
258 258
                     $targetKey = $key;
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
                 if (!isset($tmpTarget[$targetKey])) {
261 261
                     $tmpTarget[$targetKey] = [];
262 262
                 }
263
-                $tmpTarget =& $tmpTarget[$targetKey];
263
+                $tmpTarget = & $tmpTarget[$targetKey];
264 264
             }
265 265
 
266 266
             $tmpTarget = $value;
Please login to merge, or discard this patch.
module/Core/src/Repository/DoctrineMongoODM/Types/TimezoneAwareDate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     public function closureToDatabase()
72 72
     {
73 73
         return '
74
-            /* CODE FROM: ' . __METHOD__ . ' */
74
+            /* CODE FROM: ' . __METHOD__.' */
75 75
             if (!$value instanceOf \DateTime) return null;
76 76
             $return = array(
77 77
                 "date" => new \MongoDate($value->getTimestamp()), 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function closureToPhp()
114 114
     {
115 115
         return '
116
-            /* CODE FROM: ' . __METHOD__ . ' */
116
+            /* CODE FROM: ' . __METHOD__.' */
117 117
             if (!is_array($value) 
118 118
                 || !isset($value["date"]) 
119 119
                 || !$value["date"] instanceOf \MongoDate
Please login to merge, or discard this patch.
src/Repository/DoctrineMongoODM/Event/GenerateSearchKeywordsListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         }
59 59
         
60 60
         
61
-        $dm         = $eventArgs->getDocumentManager();
61
+        $dm = $eventArgs->getDocumentManager();
62 62
         $uow       = $dm->getUnitOfWork();
63 63
         $changeset = $uow->getDocumentChangeset($document);
64 64
         $filter    = $this->getKeywordsFilter();
Please login to merge, or discard this patch.
Core/src/Repository/DoctrineMongoODM/Event/RepositoryEventsSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     protected function injectAttachableEntityManager(AttachableEntityInterface $entity)
93 93
     {
94
-        if (! isset($this->attachableEntityManagerPrototype)) {
94
+        if (!isset($this->attachableEntityManagerPrototype)) {
95 95
             $this->attachableEntityManagerPrototype = new AttachableEntityManager($this->services->get('repositories'));
96 96
         }
97 97
         
Please login to merge, or discard this patch.
DoctrineMongoODM/Event/AbstractUpdateFilesPermissionsSubscriber.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     public function getSubscribedEvents()
52 52
     {
53
-        return [ Events::onFlush ];
53
+        return [Events::onFlush];
54 54
     }
55 55
 
56 56
     /**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $dm = $args->getDocumentManager();
64 64
         $uow = $dm->getUnitOfWork();
65 65
 
66
-        $filter = function ($element) {
66
+        $filter = function($element) {
67 67
             return $element instanceof $this->targetDocument
68 68
                    && $element instanceof PermissionsAwareInterface
69 69
                    && $element->getPermissions()->hasChanged();
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             }
128 128
         }
129 129
 
130
-        return array_filter($files, function ($i) {
130
+        return array_filter($files, function($i) {
131 131
             return $i instanceof PermissionsAwareInterface;
132 132
         });
133 133
     }
Please login to merge, or discard this patch.
module/Core/src/Repository/DoctrineMongoODM/Event/EventArgs.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function get($key)
23 23
     {
24 24
         if (!isset($this->values[$key])) {
25
-            throw new \OutOfBoundsException('Invalid key "' . $key . '"');
25
+            throw new \OutOfBoundsException('Invalid key "'.$key.'"');
26 26
         }
27 27
         return $this->values[$key];
28 28
     }
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
     
46 46
     public function __call($method, $params)
47 47
     {
48
-        $type   = substr($method, 0, 3);
48
+        $type = substr($method, 0, 3);
49 49
         
50 50
         if ('get' == $type || 'set' == $type) {
51
-            $filter = function ($match) {
52
-                return '_' . strtolower($match[0]);
51
+            $filter = function($match) {
52
+                return '_'.strtolower($match[0]);
53 53
             };
54 54
             $key = lcfirst(substr($method, 3));
55 55
             $key = preg_replace_callback('~([A-Z])~', $filter, $key);
@@ -57,6 +57,6 @@  discard block
 block discarded – undo
57 57
             return 'get' == $type ? $this->get($key) : $this->set($key, (isset($params[0]) ? $params[0] : null));
58 58
         }
59 59
         
60
-        throw new \BadMethodCallException('Unknown method: ' . $method);
60
+        throw new \BadMethodCallException('Unknown method: '.$method);
61 61
     }
62 62
 }
Please login to merge, or discard this patch.