Completed
Push — 5.1 ( d569a3...bb4e33 )
by Jarek
02:31
created
src/Mutable/Hooks.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function getAttribute()
17 17
     {
18
-        return function ($next, $value, $args) {
18
+        return function($next, $value, $args) {
19 19
             $key = $args->get('key');
20 20
 
21 21
             if ($this->hasGetterMutator($key)) {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function setAttribute()
35 35
     {
36
-        return function ($next, $value, $args) {
36
+        return function($next, $value, $args) {
37 37
             $key = $args->get('key');
38 38
 
39 39
             if ($this->hasSetterMutator($key)) {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function toArray()
53 53
     {
54
-        return function ($next, $attributes) {
54
+        return function($next, $attributes) {
55 55
             $attributes = $this->mutableAttributesToArray($attributes);
56 56
 
57 57
             return $next($attributes);
Please login to merge, or discard this patch.
src/Relations/Joiner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             $fk    = $relation->getForeignKey();
157 157
         } else {
158 158
             $table = $relation->getParent()->getTable();
159
-            $fk    = $table.'.'.$parent->getForeignKey();
159
+            $fk    = $table . '.' . $parent->getForeignKey();
160 160
         }
161 161
 
162 162
         $pk = $parent->getQualifiedKeyName();
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         }
194 194
 
195 195
         if ($relation instanceof HasManyThrough) {
196
-            $fk = $relation->getRelated()->getTable().'.'.$relation->getParent()->getForeignKey();
196
+            $fk = $relation->getRelated()->getTable() . '.' . $relation->getParent()->getForeignKey();
197 197
 
198 198
             return [$fk, $relation->getParent()->getQualifiedKeyName()];
199 199
         }
Please login to merge, or discard this patch.
src/Searchable/Column.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function getQualifiedName()
57 57
     {
58
-        return $this->getTable().'.'.$this->getName();
58
+        return $this->getTable() . '.' . $this->getName();
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
src/Searchable/ColumnCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function getQualifiedNames()
52 52
     {
53
-        return array_map(function ($column) {
53
+        return array_map(function($column) {
54 54
             return $column->getQualifiedName();
55 55
         }, $this->columns);
56 56
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function getTables()
64 64
     {
65
-        return array_unique(array_map(function ($column) {
65
+        return array_unique(array_map(function($column) {
66 66
             return $column->getTable();
67 67
         }, $this->columns));
68 68
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getMappings()
92 92
     {
93
-        return array_map(function ($column) {
93
+        return array_map(function($column) {
94 94
             return $column->getMapping();
95 95
         }, $this->columns);
96 96
     }
Please login to merge, or discard this patch.
src/Searchable/Parser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     {
118 118
         $token = $this->wildcard;
119 119
 
120
-        return array_map(function ($word) use ($token) {
120
+        return array_map(function($word) use ($token) {
121 121
             return preg_replace('/\*+/', '*', "{$token}{$word}{$token}");
122 122
         }, $words);
123 123
     }
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     protected function registerMutator()
41 41
     {
42
-        $this->app->singleton('eloquence.mutator', function () {
42
+        $this->app->singleton('eloquence.mutator', function() {
43 43
             return new Mutator;
44 44
         });
45 45
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     protected function registerJoiner()
55 55
     {
56
-        $this->app->singleton('eloquence.joiner', function () {
56
+        $this->app->singleton('eloquence.joiner', function() {
57 57
             return new JoinerFactory;
58 58
         });
59 59
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected function registerParser()
69 69
     {
70
-        $this->app->singleton('eloquence.parser', function () {
70
+        $this->app->singleton('eloquence.parser', function() {
71 71
             return new ParserFactory;
72 72
         });
73 73
 
Please login to merge, or discard this patch.
src/Subquery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,12 +66,12 @@
 block discarded – undo
66 66
      */
67 67
     public function getValue()
68 68
     {
69
-        $sql = '('.$this->query->toSql().')';
69
+        $sql = '(' . $this->query->toSql() . ')';
70 70
 
71 71
         if ($this->alias) {
72 72
             $alias = $this->query->getGrammar()->wrapTable($this->alias);
73 73
 
74
-            $sql .= ' as '.$alias;
74
+            $sql .= ' as ' . $alias;
75 75
         }
76 76
 
77 77
         return $sql;
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
         // We want to update each unique rule so it ignores this model's row
28 28
         // during unique check in order to avoid faulty non-unique errors
29 29
         // in accordance to the linked Laravel Validator documentation.
30
-        array_walk($rules, function (&$fieldRules, $field) use ($id, $primaryKey) {
30
+        array_walk($rules, function(&$fieldRules, $field) use ($id, $primaryKey) {
31 31
             if (is_string($fieldRules)) {
32 32
                 $fieldRules = explode('|', $fieldRules);
33 33
             }
34 34
 
35
-            array_walk($fieldRules, function (&$rule) use ($field, $id, $primaryKey) {
35
+            array_walk($fieldRules, function(&$rule) use ($field, $id, $primaryKey) {
36 36
                 if (strpos($rule, 'unique') === false) {
37 37
                     return;
38 38
                 }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 $args[2] = $id;
46 46
                 $args[3] = $primaryKey;
47 47
 
48
-                $rule = 'unique:'.implode(',', $args);
48
+                $rule = 'unique:' . implode(',', $args);
49 49
             });
50 50
         });
51 51
 
Please login to merge, or discard this patch.