Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php namespace Comodojo\Dispatcher\Response\Preprocessor; |
||
26 | public function consolidate() { |
||
27 | |||
28 | // An Allow Header should be provided from DispatcherException |
||
29 | $allow = $this->response->getHeaders()->get('Allow'); |
||
30 | |||
31 | if (is_null($allow)) throw new Exception("Missing Allow header"); |
||
32 | |||
33 | parent::consolidate(); |
||
34 | |||
38 |