@@ -10,9 +10,9 @@ |
||
10 | 10 | |
11 | 11 | class ModelManager implements ModelManagerContract |
12 | 12 | { |
13 | - /** |
|
14 | - * @var Application |
|
15 | - */ |
|
13 | + /** |
|
14 | + * @var Application |
|
15 | + */ |
|
16 | 16 | private $app; |
17 | 17 | |
18 | 18 | /** |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | { |
35 | 35 | $modelInstance = $this->app->make($modelName); |
36 | 36 | |
37 | - if (! $modelInstance instanceof EloquentModel) { |
|
37 | + if (!$modelInstance instanceof EloquentModel) { |
|
38 | 38 | $message = "Target [$modelName] is not an Illuminate\Database\Eloquent\Model instance."; |
39 | 39 | |
40 | 40 | throw new \Exception($message); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | if ($modelInstance instanceof HasCustomRepository) { |
56 | 56 | $repository = $this->app->make($modelInstance->repository(), $args); |
57 | 57 | |
58 | - if (! $repository instanceof Repository) { |
|
58 | + if (!$repository instanceof Repository) { |
|
59 | 59 | $message = "The [$modelName] custom repository must extend ANavallaSuiza\Laravel\Database\Repository\Eloquent\Repository."; |
60 | 60 | |
61 | 61 | throw new \Exception($message); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $columns = $this->getTableColumns(); |
47 | 47 | |
48 | - if (! array_key_exists($name, $columns)) { |
|
48 | + if (!array_key_exists($name, $columns)) { |
|
49 | 49 | throw new \Exception("Column ".$name." not found on ".$this->model->getTable()); |
50 | 50 | } |
51 | 51 |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | $this->refresh(); |
101 | 101 | |
102 | - if (! $result) { |
|
102 | + if (!$result) { |
|
103 | 103 | throw new RepositoryException("There was an error updating the model"); |
104 | 104 | } |
105 | 105 | |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | protected function refresh() |
222 | 222 | { |
223 | - if (! $this->model instanceof EloquentModel) { |
|
223 | + if (!$this->model instanceof EloquentModel) { |
|
224 | 224 | $this->model = $this->model->getModel(); |
225 | 225 | } |
226 | 226 |