Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot authored and chriskacerguis committed Jul 29, 2023
1 parent 57b7495 commit 63c5cca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ public function to_xml($data = null, $structure = null, $basenode = 'xml')
}

foreach ($data as $key => $value) {

//change false/true to 0/1
if (is_bool($value)) {
$value = (int) $value;
Expand Down
5 changes: 2 additions & 3 deletions src/RestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ public function response($data = null, $http_code = null, $continue = false)
}
}
ob_end_flush();
// Otherwise dump the output automatically
// Otherwise dump the output automatically
} else {
echo json_encode($data);
}
Expand Down Expand Up @@ -866,8 +866,7 @@ protected function _detect_api_key()
$this->rest->ignore_limits = false;

// Find the key from server or arguments
if (($key = isset($this->_args[$api_key_variable]) ? $this->_args[$api_key_variable] : $this->input->server($key_name))) {

if ($key = isset($this->_args[$api_key_variable]) ? $this->_args[$api_key_variable] : $this->input->server($key_name)) {
$this->rest->key = $key;

if (!($row = $this->rest->db->where($this->config->item('rest_key_column'), $key)->get($this->config->item('rest_keys_table'))->row())) {
Expand Down

0 comments on commit 63c5cca

Please sign in to comment.