Skip to content

Commit d8a71a9

Browse files
committed
A bit of cleanup.
1 parent 43d2170 commit d8a71a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Conf/CodeTable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ public function getRowByCode($code)
3636
{
3737
$found = array();
3838
$codeTable = json_decode($this->client->get($this->urlBase()));
39-
#var_dump($codeTable);
39+
4040
foreach ($codeTable->row as $row) {
4141
if ($row->code == $code) {
4242
array_push($found,$row);
4343
$count++;
4444
}
4545
}
46+
4647
return($found);
4748
}
4849

src/Conf/CodeTables.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public function get($code)
4343
*/
4444
public function getCodeTables()
4545
{
46-
$this->codeTables = json_decode($this->client->get($this->urlBase()));
47-
return($this->codeTables);
46+
return json_decode($this->client->get($this->urlBase()));
4847
}
4948

5049
/**

0 commit comments

Comments
 (0)