Test Failed
Push — master ( 7ec6d8...dcbebe )
by Alain
02:23
created
src/View/View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/View/View/AbstractView.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -167,14 +167,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.
src/View/View/NullView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.