@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $this->repository = app(RepositoryInterface::class, [$class]); |
112 | 112 | |
113 | - if (! $this->alias) { |
|
113 | + if (!$this->alias) { |
|
114 | 114 | $this->setDefaultAlias(); |
115 | 115 | } |
116 | 116 | } |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | */ |
300 | 300 | public function can($action, Model $model) |
301 | 301 | { |
302 | - if (! $this->checkAccess) { |
|
302 | + if (!$this->checkAccess) { |
|
303 | 303 | return true; |
304 | 304 | } |
305 | 305 | |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | */ |
332 | 332 | public function hasCustomControllerClass() |
333 | 333 | { |
334 | - return ! is_null($controller = $this->getControllerClass()) and class_exists($controller); |
|
334 | + return !is_null($controller = $this->getControllerClass()) and class_exists($controller); |
|
335 | 335 | } |
336 | 336 | |
337 | 337 | /** |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | $page->setPriority($priority); |
469 | 469 | |
470 | 470 | if ($badge) { |
471 | - if (! ($badge instanceof BadgeInterface)) { |
|
471 | + if (!($badge instanceof BadgeInterface)) { |
|
472 | 472 | $badge = new Badge($badge); |
473 | 473 | } |
474 | 474 | |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | */ |
512 | 512 | public function fireEvent($event, $halt = true, Model $model = null, ...$payload) |
513 | 513 | { |
514 | - if (! isset(self::$dispatcher)) { |
|
514 | + if (!isset(self::$dispatcher)) { |
|
515 | 515 | return true; |
516 | 516 | } |
517 | 517 |
@@ -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 | } |
@@ -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 |
@@ -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 = []; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | $value = $this->getValue(); |
15 | 15 | |
16 | - if (! $this->isAllowedEmptyValue() and $this->getModel()->exists() and empty($value)) { |
|
16 | + if (!$this->isAllowedEmptyValue() and $this->getModel()->exists() and empty($value)) { |
|
17 | 17 | return; |
18 | 18 | } |
19 | 19 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $data = parent::getValidationRules(); |
29 | 29 | |
30 | - if (! $this->isAllowedEmptyValue() and $this->getModel()->exists()) { |
|
30 | + if (!$this->isAllowedEmptyValue() and $this->getModel()->exists()) { |
|
31 | 31 | foreach ($data as $field => $rules) { |
32 | 32 | foreach ($rules as $i => $rule) { |
33 | 33 | if ($rule == 'required') { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function hashWithBcrypt() |
65 | 65 | { |
66 | - return $this->mutateValue(function ($value) { |
|
66 | + return $this->mutateValue(function($value) { |
|
67 | 67 | return bcrypt($value); |
68 | 68 | }); |
69 | 69 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function hashWithMD5() |
75 | 75 | { |
76 | - return $this->mutateValue(function ($value) { |
|
76 | + return $this->mutateValue(function($value) { |
|
77 | 77 | return md5($value); |
78 | 78 | }); |
79 | 79 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function hashWithSHA1() |
85 | 85 | { |
86 | - return $this->mutateValue(function ($value) { |
|
86 | + return $this->mutateValue(function($value) { |
|
87 | 87 | return sha1($value); |
88 | 88 | }); |
89 | 89 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $this->view = $view; |
48 | 48 | |
49 | - $this->setDisplay(function ($model) { |
|
49 | + $this->setDisplay(function($model) { |
|
50 | 50 | $this->data['model'] = $model; |
51 | 51 | |
52 | 52 | return view($this->getView(), $this->data); |