Completed
Push — 4.0 ( 0161d2...25fc97 )
by Marco
12:04
created
src/Comodojo/Dispatcher/Components/Parameters.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 
28 28
     protected $parameters = array();
29 29
 
30
-    final public function get($parameter=null, $index=null) {
30
+    final public function get($parameter = null, $index = null) {
31 31
 
32
-        if ( is_null($parameter) ) return $this->parameters;
32
+        if (is_null($parameter)) return $this->parameters;
33 33
 
34
-        else if ( array_key_exists($parameter, $this->parameters) ) {
34
+        else if (array_key_exists($parameter, $this->parameters)) {
35 35
             
36 36
             $value = $this->parameters[$parameter];
37 37
             
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
 
70 70
     final public function delete($parameter = null) {
71 71
 
72
-        if ( is_null($parameter) ) {
72
+        if (is_null($parameter)) {
73 73
 
74 74
             $this->parameters = array();
75 75
 
76 76
             return true;
77 77
 
78
-        } else if ( array_key_exists($parameter, $this->parameters) ) {
78
+        } else if (array_key_exists($parameter, $this->parameters)) {
79 79
 
80 80
             unset($this->parameters[$parameter]);
81 81
 
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Events/EventsManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function subscribe($event, $class, $method = null, $priority = 0) {
31 31
 
32
-        $callable = ( is_null($method) ) ? $class : array($class, $method);
32
+        $callable = (is_null($method)) ? $class : array($class, $method);
33 33
 
34 34
         return $this->addListener($event, $callable, $priority);
35 35
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function subscribeOnce($event, $class, $method = null, $priority = 0) {
39 39
 
40
-        $callable = ( is_null($method) ) ? $class : array($class, $method);
40
+        $callable = (is_null($method)) ? $class : array($class, $method);
41 41
 
42 42
         return $this->addOneTimeListener($event, $callable, $priority);
43 43
 
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function loadPlugins($plugins) {
47 47
 
48
-        if ( !empty($plugins) ) {
48
+        if (!empty($plugins)) {
49 49
 
50
-            foreach( $plugins as $name => $event ) {
50
+            foreach ($plugins as $name => $event) {
51 51
 
52
-                $callable = ( is_null($event['method']) ) ? $event["class"] : array($event["class"], $event["method"]);
52
+                $callable = (is_null($event['method'])) ? $event["class"] : array($event["class"], $event["method"]);
53 53
 
54 54
                 $this->addListener($event["event"], $callable, $event["priority"]);
55 55
 
Please login to merge, or discard this patch.