@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function setPasswordAttribute($value) |
34 | 34 | { |
35 | - if (! empty($value)) { |
|
35 | + if (!empty($value)) { |
|
36 | 36 | $this->attributes['password'] = bcrypt($value); |
37 | 37 | } |
38 | 38 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function setClass($class) |
60 | 60 | { |
61 | - if (! class_exists($class)) { |
|
61 | + if (!class_exists($class)) { |
|
62 | 62 | throw new RepositoryException("Class {$class} not found."); |
63 | 63 | } |
64 | 64 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function with($with) |
107 | 107 | { |
108 | - if (! is_array($with)) { |
|
108 | + if (!is_array($with)) { |
|
109 | 109 | $with = func_get_args(); |
110 | 110 | } |
111 | 111 | |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | { |
215 | 215 | $table = $this->getModel()->getTable(); |
216 | 216 | |
217 | - $columns = Cache::remember('admin.columns.'.$table, 60, function () use ($table) { |
|
217 | + $columns = Cache::remember('admin.columns.'.$table, 60, function() use ($table) { |
|
218 | 218 | return Schema::getColumnListing($table); |
219 | 219 | }); |
220 | 220 |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | return; |
70 | 70 | } |
71 | 71 | |
72 | - if (! is_null($userClass::where('email', $email)->first())) { |
|
72 | + if (!is_null($userClass::where('email', $email)->first())) { |
|
73 | 73 | $this->error("User with same email [{$email}] exists."); |
74 | 74 | |
75 | 75 | return; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | } |
121 | 121 | |
122 | 122 | $confirm = $this->confirm("Are you sure want to delete user with id [{$id}]?", false); |
123 | - if (! $confirm) { |
|
123 | + if (!$confirm) { |
|
124 | 124 | return; |
125 | 125 | } |
126 | 126 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $this->laravel->getNamespace().'Providers\\AdminSectionsServiceProvider' |
32 | 32 | ); |
33 | 33 | |
34 | - if (! $provider) { |
|
34 | + if (!$provider) { |
|
35 | 35 | $this->error('[App\Providers\AdminSectionsServiceProvider] not found'); |
36 | 36 | |
37 | 37 | return; |
@@ -28,11 +28,11 @@ |
||
28 | 28 | */ |
29 | 29 | public function fire(Filesystem $files) |
30 | 30 | { |
31 | - if (! defined('SLEEPINGOWL_STUB_PATH')) { |
|
31 | + if (!defined('SLEEPINGOWL_STUB_PATH')) { |
|
32 | 32 | define('SLEEPINGOWL_STUB_PATH', __DIR__.'/stubs'); |
33 | 33 | } |
34 | 34 | |
35 | - if (! $this->confirmToProceed('SleepingOwl Admin')) { |
|
35 | + if (!$this->confirmToProceed('SleepingOwl Admin')) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 |
@@ -129,7 +129,7 @@ |
||
129 | 129 | */ |
130 | 130 | public function setValidationRules($validationRules) |
131 | 131 | { |
132 | - if (! is_array($validationRules)) { |
|
132 | + if (!is_array($validationRules)) { |
|
133 | 133 | $validationRules = func_get_args(); |
134 | 134 | } |
135 | 135 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | public function save() |
10 | 10 | { |
11 | 11 | $name = $this->getName(); |
12 | - if (! Request::has($name)) { |
|
12 | + if (!Request::has($name)) { |
|
13 | 13 | Request::merge([$name => 0]); |
14 | 14 | } |
15 | 15 |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $modelForOptions = app($modelForOptions); |
97 | 97 | } |
98 | 98 | |
99 | - if (! ($modelForOptions instanceof Model)) { |
|
99 | + if (!($modelForOptions instanceof Model)) { |
|
100 | 100 | throw new SelectException('Class must be instanced of Illuminate\Database\Eloquent\Model'); |
101 | 101 | } |
102 | 102 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | */ |
131 | 131 | public function getOptions() |
132 | 132 | { |
133 | - if (! is_null($this->getModelForOptions()) && ! is_null($this->getDisplay())) { |
|
133 | + if (!is_null($this->getModelForOptions()) && !is_null($this->getDisplay())) { |
|
134 | 134 | $this->loadOptions(); |
135 | 135 | } |
136 | 136 | |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function setFetchColumns($columns) |
239 | 239 | { |
240 | - if (! is_array($columns)) { |
|
240 | + if (!is_array($columns)) { |
|
241 | 241 | $columns = func_get_args(); |
242 | 242 | } |
243 | 243 | |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | */ |
299 | 299 | public function exclude($keys) |
300 | 300 | { |
301 | - if (! is_array($keys)) { |
|
301 | + if (!is_array($keys)) { |
|
302 | 302 | $keys = func_get_args(); |
303 | 303 | } |
304 | 304 | |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | } |
385 | 385 | |
386 | 386 | // call the pre load options query preparer if has be set |
387 | - if (! is_null($preparer = $this->getLoadOptionsQueryPreparer())) { |
|
387 | + if (!is_null($preparer = $this->getLoadOptionsQueryPreparer())) { |
|
388 | 388 | $options = $preparer($this, $options); |
389 | 389 | } |
390 | 390 | |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | |
402 | 402 | // iterate for all options and redefine it as |
403 | 403 | // list of KEY and TEXT pair |
404 | - $options = array_map(function ($opt) use ($key, $makeDisplay) { |
|
404 | + $options = array_map(function($opt) use ($key, $makeDisplay) { |
|
405 | 405 | // get the KEY and make the display text |
406 | 406 | return [data_get($opt, $key), $makeDisplay($opt)]; |
407 | 407 | }, $options); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function storeAsJson() |
14 | 14 | { |
15 | - $this->mutateValue(function ($value) { |
|
15 | + $this->mutateValue(function($value) { |
|
16 | 16 | return json_encode($value); |
17 | 17 | }); |
18 | 18 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function storeAsComaSeparatedValue() |
28 | 28 | { |
29 | - $this->mutateValue(function ($value) { |
|
29 | + $this->mutateValue(function($value) { |
|
30 | 30 | return implode(',', $value); |
31 | 31 | }); |
32 | 32 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $name = $this->getName(); |
39 | 39 | $value = Request::input($name, ''); |
40 | 40 | |
41 | - if (! empty($value)) { |
|
41 | + if (!empty($value)) { |
|
42 | 42 | $value = explode(',', $value); |
43 | 43 | } else { |
44 | 44 | $value = []; |