Skip to content

Commit

Permalink
⏪ lets remove defaults and combined, they're never used
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Jan 14, 2019
1 parent 5c96aff commit d48be31
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/MetApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ abstract class MetApiController extends BaseController
protected $benchmark;

protected $query = [
'defaults' => [],
'options' => [],
'params' => [],
'combined' => [],
];

protected $errors = [];
Expand All @@ -32,9 +30,6 @@ public function __construct(Request $request) {

protected function option($name, $type, $default=false) {
$this->query['options'][$name] = $type;
if ($default !== false) {
$this->query['defaults'][$name] = $default;
}
return $this;
}

Expand Down Expand Up @@ -107,12 +102,6 @@ protected function verify($abort=true) {
}
}

$this->query['combined'] = $this->query['defaults'];

foreach ($this->query['params'] as $key=>$value) {
$this->query['combined'][$key] = $value;
}

return $this->query;

}
Expand Down

0 comments on commit d48be31

Please sign in to comment.