Skip to content

Commit 63c5cca

Browse files
StyleCIBotchriskacerguis
authored andcommitted
Apply fixes from StyleCI
1 parent 57b7495 commit 63c5cca

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Format.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ public function to_xml($data = null, $structure = null, $basenode = 'xml')
183183
}
184184

185185
foreach ($data as $key => $value) {
186-
187186
//change false/true to 0/1
188187
if (is_bool($value)) {
189188
$value = (int) $value;

src/RestController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ public function response($data = null, $http_code = null, $continue = false)
697697
}
698698
}
699699
ob_end_flush();
700-
// Otherwise dump the output automatically
700+
// Otherwise dump the output automatically
701701
} else {
702702
echo json_encode($data);
703703
}
@@ -866,8 +866,7 @@ protected function _detect_api_key()
866866
$this->rest->ignore_limits = false;
867867

868868
// Find the key from server or arguments
869-
if (($key = isset($this->_args[$api_key_variable]) ? $this->_args[$api_key_variable] : $this->input->server($key_name))) {
870-
869+
if ($key = isset($this->_args[$api_key_variable]) ? $this->_args[$api_key_variable] : $this->input->server($key_name)) {
871870
$this->rest->key = $key;
872871

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

0 commit comments

Comments
 (0)