Completed
Pull Request — 5.2 (#51)
by
unknown
03:17 queued 12s
created
src/Mappable/Hooks.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function queryHook()
21 21
     {
22
-        return function ($next, $query, $bag) {
22
+        return function($next, $query, $bag) {
23 23
             $method = $bag->get('method');
24 24
             $args   = $bag->get('args');
25 25
             $column = $args->get('column');
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function save()
47 47
     {
48
-        return function ($next, $value, $args) {
48
+        return function($next, $value, $args) {
49 49
             $this->saveMapped();
50 50
 
51 51
             return $next($value, $args);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function __issetHook()
63 63
     {
64
-        return function ($next, $isset, $args) {
64
+        return function($next, $isset, $args) {
65 65
             $key = $args->get('key');
66 66
 
67 67
             if (!$isset && $this->hasMapping($key)) {
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function __unsetHook()
83 83
     {
84
-        return function ($next, $value, $args) {
84
+        return function($next, $value, $args) {
85 85
             $key = $args->get('key');
86 86
 
87 87
             if ($this->hasMapping($key)) {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function getAttribute()
103 103
     {
104
-        return function ($next, $value, $args) {
104
+        return function($next, $value, $args) {
105 105
             $key = $args->get('key');
106 106
 
107 107
             if ($this->hasMapping($key)) {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function setAttribute()
123 123
     {
124
-        return function ($next, $value, $args) {
124
+        return function($next, $value, $args) {
125 125
             $key = $args->get('key');
126 126
 
127 127
             if ($this->hasMapping($key)) {
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
 
135 135
     public function __call($method, $params)
136 136
     {
137
-        if (strpos($method, '__') === 0 && method_exists($this, $method.'Hook')) {
138
-            return call_user_func_array([$this, $method.'Hook'], $params);
137
+        if (strpos($method, '__') === 0 && method_exists($this, $method . 'Hook')) {
138
+            return call_user_func_array([$this, $method . 'Hook'], $params);
139 139
         }
140 140
 
141 141
         throw new BadMethodCallException("Method [{$method}] doesn't exist on this object.");
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function toArray()
149 149
     {
150
-        return function ($next, $attributes) {
150
+        return function($next, $attributes) {
151 151
             $mappedAttributes = [];
152 152
             foreach ($attributes as $column => $value) {
153 153
                 if ($key = $this->isMapping($column)) {
Please login to merge, or discard this patch.