@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | Yii::$container->set( |
| 15 | 15 | 'Indigerd\Repository\Example\Domain\TableGateway\ArticleTableGateway', |
| 16 | - function () { |
|
| 16 | + function() { |
|
| 17 | 17 | return new \Indigerd\Repository\Example\Domain\TableGateway\ArticleTableGateway( |
| 18 | 18 | Yii::$app->db, |
| 19 | 19 | new \Indigerd\Repository\Query\SqlQueryFactory(), |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | Yii::$container->set( |
| 26 | 26 | 'Indigerd\Repository\Example\Domain\Repository\ArticleRepository', |
| 27 | - function () { |
|
| 27 | + function() { |
|
| 28 | 28 | return new \Indigerd\Repository\Example\Domain\Repository\ArticleRepository( |
| 29 | 29 | Yii::$container->get('Indigerd\Repository\Example\Domain\TableGateway\ArticleTableGateway'), |
| 30 | 30 | Yii::$container->get('Indigerd\Hydrator\Hydrator'), |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | int $limit = 0, |
| 28 | 28 | int $offset = 0, |
| 29 | 29 | array $with = [] |
| 30 | - ): array ; |
|
| 30 | + ): array; |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @param string $expression |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * @param array $data |
| 76 | 76 | * @return object |
| 77 | 77 | */ |
| 78 | - public function create(array $data= []): object; |
|
| 78 | + public function create(array $data = []): object; |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * @param object $entity |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | return $this->getSchema($this->collectionName)->primaryKey; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - protected function normalizeFields(array $fields =[]): array |
|
| 44 | + protected function normalizeFields(array $fields = []): array |
|
| 45 | 45 | { |
| 46 | 46 | $result = []; |
| 47 | 47 | foreach ($fields as $name=>$value) { |
@@ -167,10 +167,10 @@ |
||
| 167 | 167 | return $message; |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | - /** |
|
| 171 | - * @param array $response |
|
| 172 | - * @return array |
|
| 173 | - */ |
|
| 170 | + /** |
|
| 171 | + * @param array $response |
|
| 172 | + * @return array |
|
| 173 | + */ |
|
| 174 | 174 | public function generateHeaders(array $response): array |
| 175 | 175 | { |
| 176 | 176 | $headers = []; |
@@ -38,7 +38,6 @@ |
||
| 38 | 38 | * @param Hydrator $hydrator |
| 39 | 39 | * @param Client $client |
| 40 | 40 | * @param string $modelClass |
| 41 | - * @param string $collectionClass |
|
| 42 | 41 | * @param string $endpoint |
| 43 | 42 | */ |
| 44 | 43 | public function __construct( |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | * @param array $data |
| 144 | 144 | * @return object |
| 145 | 145 | */ |
| 146 | - public function create(array $data= []): object |
|
| 146 | + public function create(array $data = []): object |
|
| 147 | 147 | { |
| 148 | 148 | throw new \RuntimeException('Not implemented'); |
| 149 | 149 | } |