Completed
Pull Request — develop (#346)
by ANTHONIUS
06:57
created
module/Core/src/Core/Controller/Plugin/CreatePaginatorService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@
 block discarded – undo
61 61
         $paginatorManager = $this->serviceManager->get('Core/PaginatorService');
62 62
         $paginator = $paginatorManager->get($paginatorName);
63 63
         if (!isset($paginator) || !$paginator instanceof ZendPaginator) {
64
-            throw new \RuntimeException('Could not create paginator ' . $paginatorName);
64
+            throw new \RuntimeException('Could not create paginator '.$paginatorName);
65 65
         }
66 66
         $adapter = $paginator->getAdapter();
67 67
         if (!isset($adapter) || !$adapter instanceof AdapterInterface) {
68
-            throw new \RuntimeException('Paginator ' . $paginatorName . ' has no Adapter');
68
+            throw new \RuntimeException('Paginator '.$paginatorName.' has no Adapter');
69 69
         }
70 70
 
71 71
         $params     = $usePostParams
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/DeferredListenerAggregate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     public function __call($method, $args)
215 215
     {
216 216
         if (0 !== strpos($method, 'do')) {
217
-            throw new \BadMethodCallException('Unknown method "' . $method . '"');
217
+            throw new \BadMethodCallException('Unknown method "'.$method.'"');
218 218
         }
219 219
 
220 220
         $name = substr($method, 2);
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         }
249 249
 
250 250
         if ($method && method_exists($listener, $method)) {
251
-            return call_user_func_array([ $listener, $method ], $args);
251
+            return call_user_func_array([$listener, $method], $args);
252 252
         }
253 253
 
254 254
         if (is_callable($listener)) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 
258 258
         throw new \UnexpectedValueException(sprintf(
259 259
             'Deferred listener %s%s is not callable.',
260
-            get_class($listener), $method ? ' has no method "' . $method . '" and ' : ''
260
+            get_class($listener), $method ? ' has no method "'.$method.'" and ' : ''
261 261
         ));
262 262
     }
263 263
     
Please login to merge, or discard this patch.
module/Core/src/Core/Paginator/PaginatorServiceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array();
33 33
         $config      = new PaginatorServiceConfig($configArray);
34 34
 
35
-        $service   = new PaginatorService($serviceLocator, $config);
35
+        $service = new PaginatorService($serviceLocator, $config);
36 36
 
37 37
         return $service;
38 38
     }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/Plugin/LoginFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function __construct(LoginFilterService $loginFilter)
33 33
     {
34
-        $this->loginFilter = $loginFilter;;
34
+        $this->loginFilter = $loginFilter; ;
35 35
     }
36 36
 
37 37
     /**
Please login to merge, or discard this patch.
Settings/Entity/Hydrator/Strategy/DisableElementsCapableFormSettings.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 filterArrayStrings($array, $search, $replace)
58 58
     {
59 59
         $return = array();
60
-        foreach ((array)$array as $key => $value) {
60
+        foreach ((array) $array as $key => $value) {
61 61
             $key = str_replace($search, $replace, $key);
62 62
             $value = is_array($value)
63 63
                 ? $this->filterArrayStrings($value, $search, $replace)
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/ContactImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function getUri()
35 35
     {
36
-        return "/file/Cv.ContactImage/" . $this->id . "/" .urlencode($this->name);
36
+        return "/file/Cv.ContactImage/".$this->id."/".urlencode($this->name);
37 37
     }
38 38
     
39 39
     /**
Please login to merge, or discard this patch.
module/Applications/config/module.config.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                 * for multiple paths.
24 24
                 * example https://github.com/doctrine/DoctrineORMModule
25 25
                 */
26
-               'paths' => array( __DIR__ . '/../src/Applications/Entity')
26
+               'paths' => array(__DIR__.'/../src/Applications/Entity')
27 27
             ),
28 28
         ),
29 29
         'eventmanager' => array(
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         'translation_file_patterns' => array(
139 139
             array(
140 140
                 'type' => 'gettext',
141
-                'base_dir' => __DIR__ . '/../language',
141
+                'base_dir' => __DIR__.'/../language',
142 142
                 'pattern' => '%s.mo',
143 143
             ),
144 144
         ),
@@ -146,16 +146,16 @@  discard block
 block discarded – undo
146 146
     // Configure the view service manager
147 147
     'view_manager' => array(
148 148
         'template_path_stack' => array(
149
-            'Applications' => __DIR__ . '/../view',
149
+            'Applications' => __DIR__.'/../view',
150 150
         ),
151 151
         'template_map' => array(
152
-            'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml',
153
-            'layout/apply' => __DIR__ . '/../view/layout/layout.phtml',
154
-            'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml',
155
-            'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml',
156
-            'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml',
157
-            'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
158
-            'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
152
+            'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml',
153
+            'layout/apply' => __DIR__.'/../view/layout/layout.phtml',
154
+            'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml',
155
+            'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml',
156
+            'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml',
157
+            'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml',
158
+            'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml',
159 159
         )
160 160
     ),
161 161
     'view_helpers' => array(
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Container.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
         $formAction = $formInstance->getAttribute('action');
322 322
 
323 323
         if (empty($formAction)) {
324
-            $formInstance->setAttribute('action', '?form=' . $formName);
324
+            $formInstance->setAttribute('action', '?form='.$formName);
325 325
         }
326 326
 
327 327
         if (isset($form['label'])) {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
                 $spec->setParent($this);
387 387
             }
388 388
 
389
-            $spec = [ '__instance__' => $spec, 'name' => $key, 'entity' => '*' ];
389
+            $spec = ['__instance__' => $spec, 'name' => $key, 'entity' => '*'];
390 390
         }
391 391
 
392 392
         if (!is_array($spec)) {
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
         }
506 506
         $this->activeForms = array_filter(
507 507
             $this->activeForms,
508
-            function ($item) use ($key) {
508
+            function($item) use ($key) {
509 509
                 return !in_array($item, $key);
510 510
             }
511 511
         );
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
      * @throws \InvalidArgumentException
520 520
      * @return Container
521 521
      */
522
-    public function setEntity($entity, $key='*')
522
+    public function setEntity($entity, $key = '*')
523 523
     {
524 524
         if (!$entity instanceof EntityInterface)
525 525
         {
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
      *
543 543
      * @return \Core\Entity\EntityInterface
544 544
      */
545
-    public function getEntity($key='*')
545
+    public function getEntity($key = '*')
546 546
     {
547 547
         return isset($this->entities[$key]) ? $this->entities[$key] : null;
548 548
     }
@@ -745,10 +745,10 @@  discard block
 block discarded – undo
745 745
         $actualKey = $this->getActiveFormActual();
746 746
         if (isset($actualKey)) {
747 747
             $forms = array_keys($this->forms);
748
-            $formsFlip =  array_flip($forms);
748
+            $formsFlip = array_flip($forms);
749 749
             $index = $formsFlip[$actualKey];
750 750
             if (0 < $index) {
751
-                $key = $forms[$index-1];
751
+                $key = $forms[$index - 1];
752 752
             }
753 753
         }
754 754
         return $key;
@@ -765,10 +765,10 @@  discard block
 block discarded – undo
765 765
         $actualKey = $this->getActiveFormActual();
766 766
         if (isset($actualKey)) {
767 767
             $forms = array_keys($this->forms);
768
-            $formsFlip =  array_flip($forms);
768
+            $formsFlip = array_flip($forms);
769 769
             $index = $formsFlip[$actualKey];
770 770
             if ($index < count($forms) - 1) {
771
-                $key = $forms[$index+1];
771
+                $key = $forms[$index + 1];
772 772
             }
773 773
         }
774 774
         return $key;
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
      */
783 783
     public function formatAction($name)
784 784
     {
785
-        return sprintf('%s%s', $this->hasParent() ? $this->getName() . '.' : '', $name);
785
+        return sprintf('%s%s', $this->hasParent() ? $this->getName().'.' : '', $name);
786 786
     }
787 787
 
788 788
     /**
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
     public function getActionFor($key)
793 793
     {
794 794
         if (isset($this->forms[$key])) {
795
-            return '?form=' . $this->formatAction($this->forms[$key]['name']);
795
+            return '?form='.$this->formatAction($this->forms[$key]['name']);
796 796
         }
797 797
     }
798 798
 }
799 799
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/src/Core/Form/CollectionContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,12 +80,12 @@
 block discarded – undo
80 80
             $collection[] = $this->newEntry;
81 81
             $form = $this->buildForm($key, $this->newEntry);
82 82
             $eventManager = $form->getEventManager();
83
-			$eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) {
83
+			$eventManager->attach(CoreForm::EVENT_IS_VALID, function(Event $event) use ($collection) {
84 84
                 if (!$event->getParam('isValid')) {
85 85
                     $collection->removeElement($this->newEntry);
86 86
                 }
87 87
             });
88
-			$eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) {
88
+			$eventManager->attach(CoreForm::EVENT_PREPARE, function(Event $event) use ($collection) {
89 89
                 $this->setupForm($event->getTarget(), $collection->indexOf($this->newEntry));
90 90
             });
91 91
             
Please login to merge, or discard this patch.