Skip to content

Commit c5d4718

Browse files
committed
Function description cleanup.
1 parent 83628b0 commit c5d4718

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Conf/CodeTable.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,21 @@ public function __construct(Client $client, $code)
2626
}
2727

2828
/**
29-
* Return a single row referring to the code table.
29+
* Return a list of rows referring to the code of the rows in the table.
3030
*
31-
* @param $code - The code in the Table we want to pull.
31+
* @param string $code - The code of the row in the Table we want to pull.
3232
*
33-
* @return object - the row in the code table.
33+
* @return array $found - The rows in the code table that match the code passed in.
3434
*/
3535
public function getRowByCode($code)
3636
{
3737
$found = array();
3838
$codeTable = json_decode($this->client->get($this->urlBase()));
39-
4039
foreach ($codeTable->row as $row) {
4140
if ($row->code == $code) {
4241
array_push($found,$row);
4342
}
4443
}
45-
4644
return($found);
4745
}
4846

0 commit comments

Comments
 (0)