@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | public function __construct($data) |
| 41 | 41 | { |
| 42 | 42 | $this->rawData = $data; |
| 43 | - foreach($data as $field => $value) { |
|
| 43 | + foreach ($data as $field => $value) { |
|
| 44 | 44 | if (isset($value['rows'])) { |
| 45 | 45 | $this->data[$field] = new EntryCollection($value); |
| 46 | 46 | } else if (is_array($value)) { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | return $this->data[$name]; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | - throw new \InvalidArgumentException('Invalid property: ' . $name); |
|
| 108 | + throw new \InvalidArgumentException('Invalid property: '.$name); |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | public function __set($name, $value) |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | $rows = isset($data['rows']) ? $data['rows'] : []; |
| 48 | 48 | $items = []; |
| 49 | - foreach($rows as $row) { |
|
| 49 | + foreach ($rows as $row) { |
|
| 50 | 50 | $items[] = new Entry($row); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * ClientLocal constructor. |
| 42 | 42 | * |
| 43 | - * @param $connection |
|
| 43 | + * @param Connection $connection |
|
| 44 | 44 | */ |
| 45 | 45 | public function __construct($connection) |
| 46 | 46 | { |
@@ -194,6 +194,7 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | 196 | * @inheritDoc |
| 197 | + * @param string $tableName |
|
| 197 | 198 | */ |
| 198 | 199 | public function createEntry($tableName, array $data) |
| 199 | 200 | { |
@@ -205,6 +206,7 @@ discard block |
||
| 205 | 206 | |
| 206 | 207 | /** |
| 207 | 208 | * @inheritDoc |
| 209 | + * @param string $tableName |
|
| 208 | 210 | */ |
| 209 | 211 | public function updateEntry($tableName, $id, array $data) |
| 210 | 212 | { |
@@ -216,6 +218,7 @@ discard block |
||
| 216 | 218 | |
| 217 | 219 | /** |
| 218 | 220 | * @inheritDoc |
| 221 | + * @param string $tableName |
|
| 219 | 222 | */ |
| 220 | 223 | public function deleteEntry($tableName, $ids) |
| 221 | 224 | { |