Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Comodojo\Dispatcher\Response\Preprocessor; |
||
31 | public function consolidate() { |
||
32 | |||
33 | // An Allow Header should be provided from DispatcherException |
||
34 | $allow = $this->response()->headers()->get('Allow'); |
||
35 | |||
36 | if ( is_null($allow) ) throw new Exception("Missing Allow header"); |
||
37 | |||
38 | parent::consolidate(); |
||
39 | |||
40 | } |
||
41 | |||
43 |