| Conditions | 5 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | public function inbound($request, Context $ctx) |
||
| 33 | { |
||
| 34 | /** |
||
| 35 | * @var Request $http |
||
| 36 | */ |
||
| 37 | $http = $ctx->get(ServerWrapper::REQUESTING); |
||
| 38 | |||
| 39 | if ($dat = $http->getHeaderLine(ContextPacking::HTTP_HEADER)) { |
||
| 40 | if ($attachments = json_decode(base64_decode($dat), true)) { |
||
| 41 | foreach ($attachments as $key => $val) { |
||
| 42 | in_array($key, $this->keys) && $ctx->set($key, $val); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | return $request; |
||
| 48 | } |
||
| 60 |