@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function resolve(string $className): RepositoryInterface |
16 | 16 | { |
17 | - if (! class_exists($className)) { |
|
17 | + if (!class_exists($className)) { |
|
18 | 18 | $exception = new CouldNotResolve(); |
19 | 19 | $exception->setRepositoryCode($className); |
20 | 20 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | try { |
30 | 30 | $resolved = $this->container->get($className); |
31 | 31 | |
32 | - if (! ($resolved instanceof RepositoryInterface)) { |
|
32 | + if (!($resolved instanceof RepositoryInterface)) { |
|
33 | 33 | $class = get_class($resolved); |
34 | 34 | |
35 | 35 | $message = $class . ' does not implements RepositoryInterface. Refer to documentation'; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $this->resolver = $resolver; |
42 | 42 | $this->bindings = $bindings; |
43 | 43 | |
44 | - if (! empty($fixtureResolverClass) && class_exists($fixtureResolverClass)) { |
|
44 | + if (!empty($fixtureResolverClass) && class_exists($fixtureResolverClass)) { |
|
45 | 45 | $this->fixtureResolverClass = $fixtureResolverClass; |
46 | 46 | } else { |
47 | 47 | $this->fixtureResolverClass = ArrayFixtureResolver::class; |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | if (empty($this->resolved[$code])) { |
178 | 178 | $resolved = $solid(); |
179 | 179 | |
180 | - if (! ($resolved instanceof RepositoryInterface)) { |
|
180 | + if (!($resolved instanceof RepositoryInterface)) { |
|
181 | 181 | $exception = new CouldNotResolve(); |
182 | 182 | $exception->setRepositoryCode($code); |
183 | 183 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('repo_params')) { |
|
3 | +if (!function_exists('repo_params')) { |
|
4 | 4 | function repo_params() |
5 | 5 | { |
6 | 6 | return new \Prozorov\Repositories\Parameter(); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | { |
63 | 63 | $data = $this->getRaw((new Query())->where($filter)); |
64 | 64 | |
65 | - return ! empty($data); |
|
65 | + return !empty($data); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | { |
134 | 134 | $data = $this->data; |
135 | 135 | |
136 | - if (! empty($query->getWhere())) { |
|
136 | + if (!empty($query->getWhere())) { |
|
137 | 137 | foreach ($query->getWhere() as $key => $value) { |
138 | 138 | $data = $this->data->where($key, $value); |
139 | 139 | } |
@@ -196,7 +196,7 @@ |
||
196 | 196 | */ |
197 | 197 | protected function getMeta(Query $query): ?array |
198 | 198 | { |
199 | - if (! $query->isWithMeta()) { |
|
199 | + if (!$query->isWithMeta()) { |
|
200 | 200 | return null; |
201 | 201 | } |
202 | 202 |