Completed
Push — v1.ns ( ab319d...410f3f )
by Timo
04:00
created
src/Message/MessageBuilder.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @access public
40 40
      * @param string $messageClass the message-class to build instances for 
41 41
      */
42
-    public function __construct($messageClass = '\PEIP\Message\GenericMessage'){
42
+    public function __construct($messageClass = '\PEIP\Message\GenericMessage') {
43 43
         $this->messageClass = $messageClass;
44 44
         $this->factory = DedicatedFactory::getfromCallable(array($messageClass, 'build'));    
45 45
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @param array $headers the headers to set
52 52
      * @return MessageBuilder $this
53 53
      */
54
-    public function copyHeaders(array $headers){
54
+    public function copyHeaders(array $headers) {
55 55
         $this->headers = array_merge($this->headers, $headers);
56 56
         return $this;       
57 57
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param array $headers the headers to set
64 64
      * @return MessageBuilder $this
65 65
      */
66
-    public function copyHeadersIfAbsent(array $headers){
66
+    public function copyHeadersIfAbsent(array $headers) {
67 67
         $this->headers = array_merge($headers, $this->headers);
68 68
         return $this;   
69 69
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * @param string $headerName the name of the header
76 76
      * @return MessageBuilder $this
77 77
      */
78
-    public function removeHeader($headerName){
78
+    public function removeHeader($headerName) {
79 79
         unset($this->headers[$headerName]);
80 80
         return $this;
81 81
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @param mixed $headerValue the value for the header
89 89
      * @return MessageBuilder $this 
90 90
      */
91
-    public function setHeader($headerName, $headerValue){
91
+    public function setHeader($headerName, $headerValue) {
92 92
         $this->headers[$headerName] = $headerValue;
93 93
         return $this;   
94 94
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param array $headers the headers to set
101 101
      * @return MessageBuilder $this 
102 102
      */
103
-    public function setHeaders(array $headers){
103
+    public function setHeaders(array $headers) {
104 104
         $this->headers = $headers;
105 105
         return $this;   
106 106
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * @access public
112 112
      * @return array the headers for the message to build 
113 113
      */
114
-    public function getHeaders(){
114
+    public function getHeaders() {
115 115
         return $this->headers;
116 116
     }  
117 117
         
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param $arguments 
123 123
      * @return 
124 124
      */
125
-    public function build(array $headers = array()){
125
+    public function build(array $headers = array()) {
126 126
         $this->copyHeaders($headers);
127 127
         return GenericBuilder::getInstance($this->messageClass)
128 128
             ->build(array($this->payload, new \ArrayObject($this->headers)));        
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      * @param mixed $payload payload for the message to build 
136 136
      * @return MessageBuilder $this 
137 137
      */
138
-    public function setContent($payload){
138
+    public function setContent($payload) {
139 139
         $this->payload = $payload;
140 140
         return $this;
141 141
     }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      * @param string $messageClass the message class to build from the builder 
149 149
      * @return MessageBuilder new instance of MessageBuilder 
150 150
      */    
151
-    public static function getInstance($messageClass = '\PEIP\Message\GenericMessage'){
151
+    public static function getInstance($messageClass = '\PEIP\Message\GenericMessage') {
152 152
         return new  MessageBuilder($messageClass);
153 153
     }
154 154
   
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @param \PEIP\INF\Message\Message $message the message to get class to build from the builder 
161 161
      * @return MessageBuilder new instance of MessageBuilder 
162 162
      */      
163
-    public static function getInstanceFromMessage(\PEIP\INF\Message\Message $message){
163
+    public static function getInstanceFromMessage(\PEIP\INF\Message\Message $message) {
164 164
         return new MessageBuilder(get_class($message));
165 165
     }
166 166
    
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * @access public
171 171
      * @param string $messageClass the message-class to build new instances for
172 172
      */
173
-    public function setMessageClass($messageClass){
173
+    public function setMessageClass($messageClass) {
174 174
         $this->messageClass = $messageClass;
175 175
     }
176 176
  
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      * @access public
181 181
      * @return string the message-class to build new instances for
182 182
      */
183
-    public function getMessageClass(){
183
+    public function getMessageClass() {
184 184
         return $this->messageClass;
185 185
     }         
186 186
 }
187 187
\ No newline at end of file
Please login to merge, or discard this patch.
src/Message/CommandMessage.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
      * @param $headers 
38 38
      * @return 
39 39
      */
40
-    public function __construct($content, ArrayAccess $headers = NULL){
41
-        if(!($content instanceof \PEIP\INF\Command\Command) && !is_callable($content)){
40
+    public function __construct($content, ArrayAccess $headers = NULL) {
41
+        if (!($content instanceof \PEIP\INF\Command\Command) && !is_callable($content)) {
42 42
             throw new \BadArgumentException('Argument 1 for CommandMessage::__construct must be callable or implment \PEIP\INF\Command\Command');
43 43
         }
44 44
         
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
      * @access public
52 52
      * @return 
53 53
      */
54
-    public function execute(){
55
-        if(is_callable($this->getContent())){
54
+    public function execute() {
55
+        if (is_callable($this->getContent())) {
56 56
             return call_user_func($this->getContent());
57
-        }else{
57
+        }else {
58 58
             return $this->getContent()->execute();
59 59
         }
60 60
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     public function execute(){
55 55
         if(is_callable($this->getContent())){
56 56
             return call_user_func($this->getContent());
57
-        }else{
57
+        } else{
58 58
             return $this->getContent()->execute();
59 59
         }
60 60
     }
Please login to merge, or discard this patch.
src/Message/CallableMessageHandler.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param $callable 
36 36
      * @return 
37 37
      */
38
-    public function __construct($callable){
38
+    public function __construct($callable) {
39 39
         $this->callable = $callable;    
40 40
         $this->examineCallabe();
41 41
     }
@@ -45,22 +45,22 @@  discard block
 block discarded – undo
45 45
      * @access protected
46 46
      * @return 
47 47
      */
48
-    protected function examineCallabe(){
49
-        if(is_callable($this->callable)){        
50
-            if(is_array($this->callable)){
51
-                list($class, $method) =  $this->callable;
48
+    protected function examineCallabe() {
49
+        if (is_callable($this->callable)) {        
50
+            if (is_array($this->callable)) {
51
+                list($class, $method) = $this->callable;
52 52
                 $static = !is_object($class);
53 53
                 $class = is_object($class) ? get_class($class) : (string)$class;
54 54
                 $reflectionClass = new \ReflectionClass($class);
55 55
                 $reflectionFunc = $reflectionClass->getMethod($method);
56
-                if($static && !$reflectionFunc->isStatic()){
56
+                if ($static && !$reflectionFunc->isStatic()) {
57 57
                     throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not an Callable: Method "'.$method.'" of class '.$class.' is not static.');                  
58 58
                 }
59
-            }else{
59
+            }else {
60 60
                 $reflectionFunc = new \ReflectionFunction($this->callable);  
61 61
             }
62 62
             $this->requiredParameters = $reflectionFunc->getNumberOfRequiredParameters();
63
-        }else{
63
+        }else {
64 64
             throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not a Callable');
65 65
         }   
66 66
     }   
@@ -73,14 +73,14 @@  discard block
 block discarded – undo
73 73
      * @param $sent 
74 74
      * @return 
75 75
      */
76
-    public function handle($message, $channel = false, $sent = false){
77
-        if(!is_object($message)){
76
+    public function handle($message, $channel = false, $sent = false) {
77
+        if (!is_object($message)) {
78 78
             throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::handle is not a Object');       
79 79
         }   
80 80
         try {
81 81
             return call_user_func_array($this->callable, array($message, $channel, $sent));
82 82
         }
83
-        catch(\Exception $e){
83
+        catch (\Exception $e) {
84 84
             throw new \RuntimeException('Unable to call Callable: '.$e->getMessage());
85 85
         }   
86 86
     }   
Please login to merge, or discard this patch.
Braces   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
                 if($static && !$reflectionFunc->isStatic()){
57 57
                     throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not an Callable: Method "'.$method.'" of class '.$class.' is not static.');                  
58 58
                 }
59
-            }else{
59
+            } else{
60 60
                 $reflectionFunc = new \ReflectionFunction($this->callable);  
61 61
             }
62 62
             $this->requiredParameters = $reflectionFunc->getNumberOfRequiredParameters();
63
-        }else{
63
+        } else{
64 64
             throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not a Callable');
65 65
         }   
66 66
     }   
@@ -79,8 +79,7 @@  discard block
 block discarded – undo
79 79
         }   
80 80
         try {
81 81
             return call_user_func_array($this->callable, array($message, $channel, $sent));
82
-        }
83
-        catch(\Exception $e){
82
+        } catch(\Exception $e){
84 83
             throw new \RuntimeException('Unable to call Callable: '.$e->getMessage());
85 84
         }   
86 85
     }   
Please login to merge, or discard this patch.
src/Message/ErrorMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @param $headers 
37 37
      * @return 
38 38
      */
39
-    public function __construct(\Exception $payload, array $headers = array()){
39
+    public function __construct(\Exception $payload, array $headers = array()) {
40 40
         $this->payload = $payload;
41 41
         $this->headers = $headers;
42 42
     }
Please login to merge, or discard this patch.
src/Data/InternalStoreAbstract.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param $key 
33 33
      * @return 
34 34
      */
35
-    protected function hasInternalValue($key){
35
+    protected function hasInternalValue($key) {
36 36
         return array_key_exists($key, $this->internalValues);
37 37
     }   
38 38
     
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param $key 
43 43
      * @return 
44 44
      */
45
-    protected function getInternalValue($key){
45
+    protected function getInternalValue($key) {
46 46
         return array_key_exists($key, $this->internalValues) ? $this->internalValues[$key] : NULL;
47 47
     }
48 48
     
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param $key 
53 53
      * @return 
54 54
      */
55
-    protected function deleteInternalValue($key){
55
+    protected function deleteInternalValue($key) {
56 56
         unset($this->internalValues[$key]);
57 57
     }   
58 58
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param $value 
64 64
      * @return 
65 65
      */
66
-    protected function setInternalValue($key, $value){
66
+    protected function setInternalValue($key, $value) {
67 67
         $this->internalValues[$key] = $value;
68 68
     }
69 69
     
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * @param $internalValues 
81 81
      * @return 
82 82
      */
83
-    protected function setInternalValues(array $internalValues){
83
+    protected function setInternalValues(array $internalValues) {
84 84
         $this->internalValues = $internalValues;        
85 85
     }
86 86
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @access protected
96 96
      * @return 
97 97
      */
98
-    protected function getInternalValues(){
98
+    protected function getInternalValues() {
99 99
         return $this->internalValues;
100 100
     }
101 101
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * @access protected
105 105
      * @return 
106 106
      */
107
-    protected function addInternalValues(){
107
+    protected function addInternalValues() {
108 108
         array_merge($this->internalValues, $internalValues);
109 109
     }   
110 110
     
Please login to merge, or discard this patch.
src/Data/Store.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param mixed $value the value to store
35 35
      * @return 
36 36
      */
37
-    public function setValue($key, $value){
37
+    public function setValue($key, $value) {
38 38
         return $this->offsetSet($key, $value);
39 39
     }
40 40
     
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param mixed $key the key to return value for 
46 46
      * @return mixed the value for the given key
47 47
      */
48
-    public function getValue($key){
48
+    public function getValue($key) {
49 49
         return $this->offsetGet($key, $value);
50 50
     }
51 51
   
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param mixed $key the key to unset value for 
57 57
      * @return 
58 58
      */
59
-    public function deleteValue($key){
59
+    public function deleteValue($key) {
60 60
         return $this->offsetUnset($key);
61 61
     }
62 62
       
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param mixed $key the key to look for a value
68 68
      * @return boolean wether a value is stored for the key
69 69
      */
70
-    public function hasValue($key){
70
+    public function hasValue($key) {
71 71
         return $this->offsetExists($key);
72 72
     }   
73 73
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param array $values key/value pairs to store
79 79
      * @return 
80 80
      */
81
-    public function setValues(array $values){
81
+    public function setValues(array $values) {
82 82
         $this->values = $values;        
83 83
     }
84 84
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @access public
89 89
      * @return array stored key/value pairs
90 90
      */
91
-    public function getValues(){
91
+    public function getValues() {
92 92
         return $this->values;
93 93
     }
94 94
    
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param $values 
101 101
      * @return 
102 102
      */
103
-    public function addValues(array $values){
103
+    public function addValues(array $values) {
104 104
         array_merge($this->values, $values);
105 105
     }   
106 106
 }
107 107
\ No newline at end of file
Please login to merge, or discard this patch.
src/Data/ParameterHolder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param string $key name of parameter
35 35
      * @return boolean wether parameter is set
36 36
      */
37
-    public function hasParameter($key){
37
+    public function hasParameter($key) {
38 38
         return array_key_exists($key, $this->parameters);
39 39
     }   
40 40
         
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param string $key name of parameter 
46 46
      * @return 
47 47
      */
48
-    public function getParameter($key){
48
+    public function getParameter($key) {
49 49
         return array_key_exists($key, $this->parameters) ? $this->parameters[$key] : NULL;
50 50
     }
51 51
         
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param string $key name of parameter 
57 57
      * @return 
58 58
      */
59
-    public function deleteParameter($key){
59
+    public function deleteParameter($key) {
60 60
         unset($this->parameters[$key]);
61 61
     }   
62 62
    
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param string $value value to set for the parameter 
69 69
      * @return 
70 70
      */
71
-    public function setParameter($key, $value){
71
+    public function setParameter($key, $value) {
72 72
         $this->parameters[$key] = $value;
73 73
     }
74 74
     
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @param array $parameters parameters as key/value pairs 
80 80
      * @return 
81 81
      */
82
-    public function setParameters(array $parameters){
82
+    public function setParameters(array $parameters) {
83 83
         $this->parameters = $parameters;        
84 84
     }
85 85
    
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @access public
90 90
      * @return array $parameters parameters as key/value pairs
91 91
      */
92
-    public function getParameters(){
92
+    public function getParameters() {
93 93
         return $this->parameters;
94 94
     }
95 95
    
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @param array $parameters parameters as key/value pairs 
102 102
      * @return 
103 103
      */
104
-    public function addParameters(array $parameters){
104
+    public function addParameters(array $parameters) {
105 105
         $this->parameters = array_merge($this->parameters, $parameters);
106 106
         array_unique($this->parameters);
107 107
     }   
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      * @param array $parameters parameters as key/value pairs 
115 115
      * @return 
116 116
      */
117
-    public function addParametersIfNot(array $parameters){
117
+    public function addParametersIfNot(array $parameters) {
118 118
         $this->parameters = array_merge($parameters, $this->parameters);
119 119
         array_unique($this->parameters);
120 120
     }   
Please login to merge, or discard this patch.
src/Data/StoreCollection.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 class StoreCollection 
26 26
     extends \PEIP\Data\InternalStoreAbstract 
27
-    implements \PEIP\INF\Data\StoreCollection{
27
+    implements \PEIP\INF\Data\StoreCollection {
28 28
 
29 29
     protected 
30 30
         $factory,
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param \PEIP\INF\Factory\DedicatedFactory $factory a factory instance to create new stores
38 38
      * @return 
39 39
      */
40
-    public function __construct(\PEIP\INF\Factory\DedicatedFactory $factory){
40
+    public function __construct(\PEIP\INF\Factory\DedicatedFactory $factory) {
41 41
         $this->factory = $factory;
42 42
     }
43 43
  
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
      * @param string $namespace the namespace to get the store for
50 50
      * @return \PEIP\INF\Data\Store a store for given namespace
51 51
      */
52
-    protected function getStoreOrCreate($namespace){
53
-        if(!$this->hasPrivateValue($namespace)){
52
+    protected function getStoreOrCreate($namespace) {
53
+        if (!$this->hasPrivateValue($namespace)) {
54 54
             $store = $this->factory->build();
55
-            if($store instanceof \PEIP\INF\Data\Store){
55
+            if ($store instanceof \PEIP\INF\Data\Store) {
56 56
                 $this->setPrivateValue($namespace, $store);
57
-            }else{
57
+            }else {
58 58
                 throw new \Exception('Could not build Instance of \PEIP\INF\Data\Store from factory.');
59 59
             }
60 60
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param array $values key/value pairs to store
70 70
      * @return 
71 71
      */
72
-    public function setValues($namespace, array $values){
72
+    public function setValues($namespace, array $values) {
73 73
         $this->getStoreOrCreate($namespace)->setValues($values);
74 74
     }
75 75
   
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param $values 
83 83
      * @return 
84 84
      */
85
-    public function addValues($namespace, array $values){
85
+    public function addValues($namespace, array $values) {
86 86
         $this->getStoreOrCreate($namespace)->addValues($values);
87 87
     }
88 88
     
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @param string $namespace the namspace to return values for  
94 94
      * @return array stored key/value pairs
95 95
      */
96
-    public function getValues($namespace){
96
+    public function getValues($namespace) {
97 97
         $this->getStoreOrCreate($namespace)->getValues();
98 98
     }
99 99
   
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * @param string $key the key to return value for 
106 106
      * @return mixed value for the given key on the given namespace
107 107
      */
108
-    public function getValue($namespace, $key){
108
+    public function getValue($namespace, $key) {
109 109
         $this->getStoreOrCreate($namespace)->getValue($key);
110 110
     }
111 111
    
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @param mixed $value the value to store 
119 119
      * @return 
120 120
      */
121
-    public function setValue($namespace, $key, $value){
121
+    public function setValue($namespace, $key, $value) {
122 122
         $this->getStoreOrCreate($namespace)->setValues($values);
123 123
     }
124 124
   
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      * @param string $key the key to look for a value 
131 131
      * @return 
132 132
      */
133
-    public function hasValue($namespace, $key){
133
+    public function hasValue($namespace, $key) {
134 134
         $this->getStoreOrCreate($namespace)->hasValue($key);
135 135
     }
136 136
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      * @param string $key the key to remove the value from
143 143
      * @return 
144 144
      */
145
-    public function deleteValue($namespace, $key){
145
+    public function deleteValue($namespace, $key) {
146 146
         $this->getStoreOrCreate($namespace)->setValues($values);
147 147
     }
148 148
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * @param \PEIP\INF\Data\Store $store the store instance to register for the namespace
155 155
      * @return 
156 156
      */
157
-    public function setStore($namespace, \PEIP\INF\Data\Store $store){
157
+    public function setStore($namespace, \PEIP\INF\Data\Store $store) {
158 158
         $this->setInternalValue($namespace, $store);    
159 159
     } 
160 160
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * @param string $namespace the namespace to return the store for 
166 166
      * @return \PEIP\INF\Data\Store store instance for given namespace (if set)
167 167
      */
168
-    public function getStore($namespace){
168
+    public function getStore($namespace) {
169 169
         $this->getInternalValue($namespace);
170 170
     }
171 171
  
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      * @param string $namespace the namespace to check for a store instance 
177 177
      * @return boolean wether a store has been registered for the given namespace
178 178
      */
179
-    public function hasStore($namespace){
179
+    public function hasStore($namespace) {
180 180
         return $this->hasInternalValue($namespace);
181 181
     }
182 182
  
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * @param string $namespace the namespace to ungegister the store for 
188 188
      * @return 
189 189
      */
190
-    public function deleteStore($namespace){
190
+    public function deleteStore($namespace) {
191 191
         return $this->deleteInternalValue($namespace);
192 192
     }    
193 193
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             $store = $this->factory->build();
55 55
             if($store instanceof \PEIP\INF\Data\Store){
56 56
                 $this->setPrivateValue($namespace, $store);
57
-            }else{
57
+            } else{
58 58
                 throw new \Exception('Could not build Instance of \PEIP\INF\Data\Store from factory.');
59 59
             }
60 60
         }
Please login to merge, or discard this patch.
src/Data/ArrayAccess.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param mixed $offset the offset  
33 33
      * @return 
34 34
      */
35
-    public function offsetExists($offset){
35
+    public function offsetExists($offset) {
36 36
         return array_key_exists($name, $this->values);
37 37
     }   
38 38
        
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param mixed $offset the offset 
44 44
      * @return 
45 45
      */
46
-    public function offsetGet($offset){
46
+    public function offsetGet($offset) {
47 47
         return array_key_exists($name, $this->values) ? $this->values[$offset] : NULL;
48 48
     }
49 49
      
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @param mixed $offset the offset 
55 55
      * @return 
56 56
      */
57
-    public function offsetUnset($offset){
57
+    public function offsetUnset($offset) {
58 58
         unset($this->values[$offset]);
59 59
     }   
60 60
   
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @param mixed $value value for the offset 
67 67
      * @return 
68 68
      */
69
-    public function offsetSet($offset, $value){
69
+    public function offsetSet($offset, $value) {
70 70
         $this->values[$offset] = $value;
71 71
     }
72 72
 
Please login to merge, or discard this patch.