@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('resources_url')) { |
|
3 | +if (!function_exists('resources_url')) { |
|
4 | 4 | function resources_url($path) |
5 | 5 | { |
6 | 6 | return '/packages/sleepingowl/default/'.$path; |
@@ -91,7 +91,7 @@ |
||
91 | 91 | */ |
92 | 92 | public function __call($name, $arguments) |
93 | 93 | { |
94 | - if (! $this->hasAlias($name)) { |
|
94 | + if (!$this->hasAlias($name)) { |
|
95 | 95 | throw new BadMethodCallException($name); |
96 | 96 | } |
97 | 97 |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function setOperator($operator) |
56 | 56 | { |
57 | - if (! array_key_exists($operator, $this->sqlOperators)) { |
|
57 | + if (!array_key_exists($operator, $this->sqlOperators)) { |
|
58 | 58 | throw new FilterOperatorException("Operator [$operator] not found"); |
59 | 59 | } |
60 | 60 | |
@@ -117,13 +117,13 @@ discard block |
||
117 | 117 | break; |
118 | 118 | case 'whereBetween': |
119 | 119 | case 'whereNotBetween': |
120 | - if (! is_array($value)) { |
|
120 | + if (!is_array($value)) { |
|
121 | 121 | $value = explode(',', $value, 2); |
122 | 122 | } |
123 | 123 | break; |
124 | 124 | case 'whereIn': |
125 | 125 | case 'whereNotIn': |
126 | - if (! is_array($value)) { |
|
126 | + if (!is_array($value)) { |
|
127 | 127 | $value = explode(',', $value); |
128 | 128 | } |
129 | 129 | break; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function fireDisplay() |
34 | 34 | { |
35 | - if (! method_exists($this, 'onDisplay')) { |
|
35 | + if (!method_exists($this, 'onDisplay')) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function fireCreate() |
53 | 53 | { |
54 | - if (! method_exists($this, 'onCreate')) { |
|
54 | + if (!method_exists($this, 'onCreate')) { |
|
55 | 55 | return; |
56 | 56 | } |
57 | 57 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function fireEdit($id) |
80 | 80 | { |
81 | - if (! method_exists($this, 'onEdit')) { |
|
81 | + if (!method_exists($this, 'onEdit')) { |
|
82 | 82 | return; |
83 | 83 | } |
84 | 84 |
@@ -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 |