| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | 32 | public function __construct(Container $container, Security $security) |
|
| 11 | { |
||
| 12 | 32 | parent::__construct($container, $security); |
|
| 13 | |||
| 14 | 32 | if ($_SERVER['REQUEST_METHOD'] === "PUT") { |
|
| 15 | 6 | parse_str(file_get_contents('php://input'), $put); |
|
| 16 | 6 | $_POST = []; |
|
| 17 | } |
||
| 18 | |||
| 19 | 32 | $put = $put ?? []; |
|
| 20 | 32 | $this->registerGlobal($put); |
|
| 21 | 32 | } |
|
| 22 | } |
||
| 23 |