Completed
Pull Request — develop (#359)
by Mathias
23:51
created
module/Core/src/Core/Factory/View/Helper/SocialButtonsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         /* @var $serviceLocator \Zend\View\HelperPluginManager */
36 36
         $options = $container->get('Auth/Options');
37 37
         $config = $container->get('Config');
38
-        $helper = new SocialButtons($options,$config);
38
+        $helper = new SocialButtons($options, $config);
39 39
         return $helper;
40 40
     }
41 41
 
Please login to merge, or discard this patch.
module/Core/src/Core/Factory/Form/View/Helper/FormEditorLightFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,16 +46,16 @@
 block discarded – undo
46 46
         $lang = $event->getRouteMatch()->getParam('lang');
47 47
 
48 48
         $helper = new FormEditorLight();
49
-        if(isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])){
49
+        if (isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])) {
50 50
             $helper->setOptions($config['view_helper_config']['form_editor']['light']);
51 51
         }
52 52
 
53
-        $helper->setOption('theme' ,  'modern');
54
-        $helper->setOption('selector' ,  'div.tinymce_light');
53
+        $helper->setOption('theme', 'modern');
54
+        $helper->setOption('selector', 'div.tinymce_light');
55 55
 
56
-        if (in_array($lang,['de','fr','it','es','hi','ar','ru','zh','tr'])) {
56
+        if (in_array($lang, ['de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr'])) {
57 57
             $helper->setOption('language', $lang);
58
-            $helper->setOption('language_url', $basePath('/js/tinymce-lang/') . $lang .'.js');
58
+            $helper->setOption('language_url', $basePath('/js/tinymce-lang/').$lang.'.js');
59 59
         }
60 60
         return $helper;
61 61
     }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/JobboardController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,8 @@
 block discarded – undo
79 79
         $request = $this->getRequest();
80 80
         $getParams = $request->getQuery();
81 81
         $routeParams = $this->params()->fromRoute();
82
-        if (isset($routeParams['q']) && !isset($getParams['q'])){
83
-            $getParams['q']=$routeParams['q'];
82
+        if (isset($routeParams['q']) && !isset($getParams['q'])) {
83
+            $getParams['q'] = $routeParams['q'];
84 84
         }
85 85
 
86 86
         $result = $this->pagination([
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/AttachableEntityTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     /**
79 79
      * @see AttachableEntityInterface::createAttachedEntity()
80 80
      */
81
-    public function createAttachedEntity($entityClass, $values = [], $key=null)
81
+    public function createAttachedEntity($entityClass, $values = [], $key = null)
82 82
     {
83 83
         return $this->getAttachableEntityManager()->createAttachedEntity($entityClass, $values, $key);
84 84
     }
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/Snippet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     private function fromEvent($name, $values)
91 91
     {
92
-        $event  = $this->events->getEvent($name, $this, $values);
92
+        $event = $this->events->getEvent($name, $this, $values);
93 93
         $results = $this->events->triggerEvent($event);
94 94
 
95 95
         $snippets = [];
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             $content = $item['content'];
139 139
 
140 140
             foreach ($values as $key => $val) {
141
-                $content = str_replace('%' . $key . '%', $val, $content);
141
+                $content = str_replace('%'.$key.'%', $val, $content);
142 142
             }
143 143
 
144 144
             return $content;
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/MailForgotPassword.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function __construct($options, $mailService, $coreOptions)
41 41
     {
42
-        $this->options=$options;
43
-        $this->mailService=$mailService;
42
+        $this->options = $options;
43
+        $this->mailService = $mailService;
44 44
         $this->coreOptions = $coreOptions;
45 45
     }
46 46
 
@@ -51,15 +51,15 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function __invoke(AuthEvent $e)
53 53
     {
54
-        $siteName=$this->coreOptions->getSiteName();
54
+        $siteName = $this->coreOptions->getSiteName();
55 55
 
56 56
         $user                    = $e->getUser();
57 57
         $userEmail               = $user->info->email;
58 58
         $userName                = $user->info->getDisplayName(false);
59 59
         $resetLink               = $e->getResetLink();
60 60
 
61
-        $fromEmail               =  $this->options->getFromEmail();
62
-        $fromName                =  $this->options->getFromName();
61
+        $fromEmail               = $this->options->getFromEmail();
62
+        $fromName                = $this->options->getFromName();
63 63
 
64 64
         $mail                    = $this->mailService->get('htmltemplate');
65 65
         $mail->user              = $user;
Please login to merge, or discard this patch.
module/Core/src/Core/Log/LoggerAbstractFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function canCreateServiceWithName(ServiceLocatorInterface $services, $name, $requestedName)
86 86
     {
87
-        return $this->canCreate($services,$requestedName);
87
+        return $this->canCreate($services, $requestedName);
88 88
     }
89 89
 
90 90
     /**
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function createServiceWithName(ServiceLocatorInterface $services, $name, $requestedName)
99 99
     {
100
-        return $this($services,$requestedName);
100
+        return $this($services, $requestedName);
101 101
     }
102 102
 
103 103
     /**
Please login to merge, or discard this patch.
module/Core/src/Core/Factory/EventManager/EventManagerAbstractFactory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
166 166
     {
167
-        return $this($serviceLocator,$requestedName);
167
+        return $this($serviceLocator, $requestedName);
168 168
     }
169 169
 
170 170
     /**
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         $defaults = [
184 184
             'service' => 'EventManager',
185 185
             'configure' => true,
186
-            'identifiers' => [ $name ],
186
+            'identifiers' => [$name],
187 187
             'event' => '\Zend\EventManager\Event',
188 188
             'listeners' => [],
189 189
         ];
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         foreach ($listeners as $name => $options) {
275 275
             $options = $this->normalizeListenerOptions($name, $options);
276 276
 
277
-            if ($options['lazy'] && null !== $options['attach'] ) {
277
+            if ($options['lazy'] && null !== $options['attach']) {
278 278
                 foreach ($options['attach'] as $spec) {
279 279
                     $lazyListeners[] = [
280 280
                         'service' => $options['service'],
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
             }
305 305
 
306 306
             foreach ($options['attach'] as $spec) {
307
-                $callback = $spec['method'] ? [ $listener, $spec['method'] ] : $listener;
307
+                $callback = $spec['method'] ? [$listener, $spec['method']] : $listener;
308 308
                 $eventManager->attach($spec['events'], $callback, $spec['priority']);
309 309
             }
310 310
         }
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 
376 376
         if (is_string($options)) {
377 377
             /* Only an event name is provided in config */
378
-            $normalized['attach'] = [ [ 'events' => [ $options ], 'method' => null, 'priority' => 0 ] ];
378
+            $normalized['attach'] = [['events' => [$options], 'method' => null, 'priority' => 0]];
379 379
             return $normalized;
380 380
 
381 381
         }
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
             } else if (is_string($opt)) {
405 405
                 if (null === $event) {
406 406
                     /* first string found is assumed to be the event name */
407
-                    $event = [ $opt ];
407
+                    $event = [$opt];
408 408
                 } else {
409 409
                     /* second string found must be a method name. */
410 410
                     $method = $opt;
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
             }
421 421
         }
422 422
 
423
-        $normalized['attach'] = [ [ 'events' => $event, 'method' => $method, 'priority' => $priority ] ];
423
+        $normalized['attach'] = [['events' => $event, 'method' => $method, 'priority' => $priority]];
424 424
         $normalized['lazy']   = $lazy;
425 425
 
426 426
         return $normalized;
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
     protected function normalizeEventsSpec($options)
430 430
     {
431 431
         $listenerPriority = isset($options['priority']) ? $options['priority'] : 0;
432
-        $listenerMethod   = isset($options['method'])   ? $options['method']   : '__none__';
432
+        $listenerMethod   = isset($options['method']) ? $options['method'] : '__none__';
433 433
         $events = [];
434 434
 
435 435
         foreach ($options['events'] as $event => $spec) {
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
             } else if (is_array($spec)) {
450 450
                 if (isset($spec['method'])) {
451 451
                     if (!is_array($spec['method'])) {
452
-                        $spec['method'] = [ $spec['method'] ];
452
+                        $spec['method'] = [$spec['method']];
453 453
                     }
454 454
 
455 455
                     foreach ($spec['method'] as $method => $methodPriority) {
Please login to merge, or discard this patch.
module/Core/src/Core/Factory/Paginator/RepositoryAbstractFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
         $queryBuilder->find($this->getEntityClassName($requestedName));
82 82
 
83 83
         $filterManager = $services->get('FilterManager');
84
-        $filterName    = 'PaginationQuery/' . $requestedName;
84
+        $filterName    = 'PaginationQuery/'.$requestedName;
85 85
 
86 86
         if ($filterManager->has($filterName)) {
87
-            $filter       = $filterManager->get('PaginationQuery/' . $requestedName);
87
+            $filter       = $filterManager->get('PaginationQuery/'.$requestedName);
88 88
             $queryBuilder = $filter->filter($this->options, $queryBuilder);
89 89
         }
90 90
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * @param array|null            $options
109 109
      * @return bool
110 110
      */
111
-    public function canCreate(ContainerInterface $container, $requestedName, array $options=null)
111
+    public function canCreate(ContainerInterface $container, $requestedName, array $options = null)
112 112
     {
113 113
         $class = $this->getEntityClassName($requestedName);
114 114
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
133 133
     {
134
-        return $this->canCreate($serviceLocator,$requestedName);
134
+        return $this->canCreate($serviceLocator, $requestedName);
135 135
     }
136 136
 
137 137
     /**
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
147 147
     {
148
-       return $this($serviceLocator,$requestedName);
148
+       return $this($serviceLocator, $requestedName);
149 149
     }
150 150
 
151 151
     /**
Please login to merge, or discard this patch.