Completed
Push — develop ( 31c340...db8caa )
by Mathias
08:35
created
module/Core/src/Core/Controller/Plugin/Mail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     
81 81
     public function template($template)
82 82
     {
83
-        $controller =  get_class($this->controller);
83
+        $controller = get_class($this->controller);
84 84
         $services = $this->getController()->getServiceLocator();
85 85
         
86 86
         $event = new Event();
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     unset($__vars[$key]);
129 129
                 }
130 130
             }
131
-            unset($__vars['content'],$__vars['controllerIdentifier'],$__vars['controller'],$__vars['resource'],$__vars['template'],$__vars['viewResolver']);
131
+            unset($__vars['content'], $__vars['controllerIdentifier'], $__vars['controller'], $__vars['resource'], $__vars['template'], $__vars['viewResolver']);
132 132
             $this->config = $__vars;
133 133
         }
134 134
     }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Notification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     const NAMESPACE_INFO = 'info';
22 22
     const NAMESPACE_WARNING = 'warning';
23 23
     const NAMESPACE_DANGER  = 'danger';
24
-    const NAMESPACE_SUCCESS  = 'success';
24
+    const NAMESPACE_SUCCESS = 'success';
25 25
 
26 26
     protected $namespace2priority = array(
27 27
         self::NAMESPACE_INFO => NotificationEntity::INFO,
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function setListener($listener)
61 61
     {
62
-        $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this,'createOutput'), 1);
62
+        $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this, 'createOutput'), 1);
63 63
         $this->notificationListener = $listener;
64 64
     }
65 65
     
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/PaginationParams.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     public function getList($namespace, $callback)
136 136
     {
137 137
         $session = new Container($namespace);
138
-        $params  = $session->params?:array();
138
+        $params  = $session->params ?: array();
139 139
         if (!$session->list) {
140 140
             $session->list = is_array($callback)
141 141
             ? call_user_func($callback, $session->params)
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/AbstractEntity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             return $this->$method($value);
42 42
         }
43 43
         
44
-        throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this). "'");
44
+        throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this) . "'");
45 45
     }
46 46
     
47 47
     /**
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Hydrator/EntityHydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         
34 34
         $getters = array_filter(
35 35
             get_class_methods($object),
36
-            function ($methodName) use ($object) {
36
+            function($methodName) use ($object) {
37 37
                 return "get" === substr($methodName, 0, 3)
38 38
                 && method_exists($object, 's' . substr($methodName, 1));
39 39
             }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         }
63 63
         $setters = array_filter(
64 64
             get_class_methods($object),
65
-            function ($methodName) {
65
+            function($methodName) {
66 66
                 return "set" === substr($methodName, 0, 3);
67 67
             }
68 68
         );
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Hydrator/JsonEntityHydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @param object $object
47 47
      * @return object
48 48
      */
49
-    public function hydrate (array $data, $object)
49
+    public function hydrate(array $data, $object)
50 50
     {
51 51
 
52 52
         return $object;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @return array|string
58 58
      * @throws \InvalidArgumentException
59 59
      */
60
-    public function extract ($object)
60
+    public function extract($object)
61 61
     {
62 62
         if (!$object instanceof EntityInterface) {
63 63
             throw new \InvalidArgumentException("Extract only from Entities");
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Hydrator/Strategy/FileCopyStrategy.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
         // ensures garbage removal
80 80
         register_shutdown_function(
81
-            function ($filename) {
81
+            function($filename) {
82 82
                 @unlink($filename);
83 83
             },
84 84
             $tmp
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Permissions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@
 block discarded – undo
291 291
         if ($build) {
292 292
             $this->build();
293 293
         }
294
-        $this->hasChanged= true;
294
+        $this->hasChanged = true;
295 295
         return $this;
296 296
     }
297 297
 
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Container.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $self = $this;
100 100
         $forms = array_map(
101
-            function ($key) use ($self) {
101
+            function($key) use ($self) {
102 102
                 return $self->getForm($key);
103 103
             },
104 104
             $this->activeForms
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
         }
443 443
         $this->activeForms = array_filter(
444 444
             $this->activeForms,
445
-            function ($item) use ($key) {
445
+            function($item) use ($key) {
446 446
                 return !in_array($item, $key);
447 447
             }
448 448
         );
@@ -649,10 +649,10 @@  discard block
 block discarded – undo
649 649
         $actualKey = $this->getActiveFormActual();
650 650
         if (isset($actualKey)) {
651 651
             $forms = array_keys($this->forms);
652
-            $formsFlip =  array_flip($forms);
652
+            $formsFlip = array_flip($forms);
653 653
             $index = $formsFlip[$actualKey];
654 654
             if (0 < $index) {
655
-                $key = $forms[$index-1];
655
+                $key = $forms[$index - 1];
656 656
             }
657 657
         }
658 658
         return $key;
@@ -669,10 +669,10 @@  discard block
 block discarded – undo
669 669
         $actualKey = $this->getActiveFormActual();
670 670
         if (isset($actualKey)) {
671 671
             $forms = array_keys($this->forms);
672
-            $formsFlip =  array_flip($forms);
672
+            $formsFlip = array_flip($forms);
673 673
             $index = $formsFlip[$actualKey];
674 674
             if ($index < count($forms) - 1) {
675
-                $key = $forms[$index+1];
675
+                $key = $forms[$index + 1];
676 676
             }
677 677
         }
678 678
         return $key;
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
         }
692 692
 
693 693
         //$formInstance = $this->formElementManager->get($form['type'], $options);
694
-        $formName     = (($name = $this->getName()) ? $name . '.' : '') . $form['name'];
694
+        $formName = (($name = $this->getName()) ? $name . '.' : '') . $form['name'];
695 695
         $action = '?form=' . $formName;
696 696
 
697 697
         return $action;
Please login to merge, or discard this patch.