Code Duplication    Length = 13-13 lines in 6 locations

src/ObjectRequest/ObjectRequest.php 1 location

@@ 397-409 (lines=13) @@
394
     *
395
     * @return  bool
396
     */
397
    public function unsetHeader($header) {
398
399
        if ( isset($this->headers[$header]) ) {
400
401
            unset($this->headers[$header]);
402
403
            return true;
404
405
        }
406
407
        return false;
408
409
    }
410
411
    /**
412
     * Get header component

src/ObjectResult/ObjectError.php 1 location

@@ 155-167 (lines=13) @@
152
     *
153
     * @return  bool
154
     */
155
    public function unsetHeader($header) {
156
157
        if ( isset($this->headers[$header]) ) {
158
159
            unset($this->headers[$header]);
160
161
            return true;
162
163
        }
164
165
        return false;
166
167
    }
168
169
    /**
170
     * Get header component

src/ObjectResult/ObjectRedirect.php 1 location

@@ 153-165 (lines=13) @@
150
     *
151
     * @return  bool
152
     */
153
    public function unsetHeader($header) {
154
155
        if ( isset($this->headers[$header]) ) {
156
157
            unset($this->headers[$header]);
158
159
            return true;
160
161
        }
162
163
        return false;
164
165
    }
166
167
    /**
168
     * Get header component

src/ObjectResult/ObjectSuccess.php 1 location

@@ 155-167 (lines=13) @@
152
     *
153
     * @return  bool
154
     */
155
    public function unsetHeader($header) {
156
157
        if ( isset($this->headers[$header]) ) {
158
159
            unset($this->headers[$header]);
160
161
            return true;
162
163
        }
164
165
        return false;
166
167
    }
168
169
    /**
170
     * Get header component

src/ObjectRoute/ObjectRoute.php 1 location

@@ 259-271 (lines=13) @@
256
     *
257
     * @return  bool
258
     */
259
    public function unsetHeader($header) {
260
261
        if ( isset($this->headers[$header]) ) {
262
263
            unset($this->headers[$header]);
264
265
            return true;
266
267
        }
268
269
        return false;
270
271
    }
272
273
    /**
274
     * Get header component

src/Service/Service.php 1 location

@@ 439-451 (lines=13) @@
436
     *
437
     * @return  bool
438
     */
439
    final public function unsetHeader($header) {
440
441
        if ( isset($this->headers[$header]) ) {
442
443
            unset($this->headers[$header]);
444
445
            return true;
446
447
        }
448
449
        return false;
450
451
    }
452
453
    /**
454
     * Get header component