@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace SimpleCrud\Query; |
| 5 | 5 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $this->table = $table; |
| 20 | 20 | |
| 21 | 21 | $fields = array_map( |
| 22 | - function ($field) { |
|
| 22 | + function($field) { |
|
| 23 | 23 | return (string) $field; |
| 24 | 24 | }, |
| 25 | 25 | array_values($table->getFields()) |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace SimpleCrud\Query; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace SimpleCrud; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace SimpleCrud\Scheme\Traits; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace SimpleCrud\Scheme; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace SimpleCrud\Fields; |
| 5 | 5 | |
@@ -281,6 +281,9 @@ |
||
| 281 | 281 | return $this->fields[$field] ?? null; |
| 282 | 282 | } |
| 283 | 283 | |
| 284 | + /** |
|
| 285 | + * @return Table |
|
| 286 | + */ |
|
| 284 | 287 | public function getJoinTable(Table $table): ?Table |
| 285 | 288 | { |
| 286 | 289 | $name1 = $this->getName(); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace SimpleCrud; |
| 5 | 5 | |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | public function createCollection(array $rows = [], bool $fromDatabase = false): RowCollection |
| 336 | 336 | { |
| 337 | 337 | $rows = array_map( |
| 338 | - function ($data): Row { |
|
| 338 | + function($data): Row { |
|
| 339 | 339 | return is_array($data) ? $this->create($data) : $data; |
| 340 | 340 | }, |
| 341 | 341 | $rows |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace SimpleCrud; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace SimpleCrud; |
| 5 | 5 | |