Completed
Push — master ( 97351b...ccece0 )
by Adrian
04:00
created
src/Manager/Eloquent/ModelManager.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Dbal/Eloquent/AbstractionLayer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Repository/Eloquent/Repository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.