@@ -82,7 +82,7 @@ |
||
| 82 | 82 | * @param string $behavior Behavior to use for adapting the context. |
| 83 | 83 | * @return View |
| 84 | 84 | */ |
| 85 | - public function addToContext( string $key, $value, string $behavior ): View; |
|
| 85 | + public function addToContext(string $key, $value, string $behavior): View; |
|
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * Associate a view builder with this view. |
@@ -167,14 +167,14 @@ discard block |
||
| 167 | 167 | * @param string $behavior Behavior to use for adapting the context. |
| 168 | 168 | * @return View |
| 169 | 169 | */ |
| 170 | - public function addToContext( string $key, $value, string $behavior ): View |
|
| 170 | + public function addToContext(string $key, $value, string $behavior): View |
|
| 171 | 171 | { |
| 172 | 172 | switch ($behavior) { |
| 173 | 173 | case View::REPLACE: |
| 174 | 174 | $this->_context_[$key] = $value; |
| 175 | 175 | return $this; |
| 176 | 176 | case View::MERGE: |
| 177 | - if(array_key_exists($key, $this->_context_)) { |
|
| 177 | + if (array_key_exists($key, $this->_context_)) { |
|
| 178 | 178 | $this->_context_ = array_merge_recursive($this->_context_, [$key => $value]); |
| 179 | 179 | return $this; |
| 180 | 180 | } |
@@ -187,13 +187,13 @@ discard block |
||
| 187 | 187 | $this->_context_[$key] = $value; |
| 188 | 188 | return $this; |
| 189 | 189 | case View::REPLACE_ONLY: |
| 190 | - if (! array_key_exists($key, $this->_context_)) { |
|
| 190 | + if ( ! array_key_exists($key, $this->_context_)) { |
|
| 191 | 191 | return $this; |
| 192 | 192 | } |
| 193 | 193 | $this->_context_[$key] = $value; |
| 194 | 194 | return $this; |
| 195 | 195 | case View::MERGE_ONLY: |
| 196 | - if (! array_key_exists($key, $this->_context_)) { |
|
| 196 | + if ( ! array_key_exists($key, $this->_context_)) { |
|
| 197 | 197 | return $this; |
| 198 | 198 | } |
| 199 | 199 | $this->_context_ = array_merge_recursive($this->_context_, [$key => $value]); |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | * @param string $behavior Behavior to use for adapting the context. |
| 92 | 92 | * @return View |
| 93 | 93 | */ |
| 94 | - public function addToContext( string $key, $value, string $behavior ): View { |
|
| 94 | + public function addToContext(string $key, $value, string $behavior): View { |
|
| 95 | 95 | return $this; |
| 96 | 96 | } |
| 97 | 97 | |