@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function getEditor($editorId) |
69 | 69 | { |
70 | - return $this->getFilters()->filter(function (WysiwygEditorInterface $editor) use ($editorId) { |
|
70 | + return $this->getFilters()->filter(function(WysiwygEditorInterface $editor) use ($editorId) { |
|
71 | 71 | return $editor->getId() == $editorId; |
72 | 72 | })->first(); |
73 | 73 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function loadEditor($editorId) |
86 | 86 | { |
87 | - if (! is_null($editor = $this->getEditor($editorId))) { |
|
87 | + if (!is_null($editor = $this->getEditor($editorId))) { |
|
88 | 88 | if ($editor->isUsed()) { |
89 | 89 | return true; |
90 | 90 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function applyFilter($editorId, $text) |
106 | 106 | { |
107 | - if (! is_null($editor = $this->getEditor($editorId))) { |
|
107 | + if (!is_null($editor = $this->getEditor($editorId))) { |
|
108 | 108 | return $editor->applyFilter($text); |
109 | 109 | } |
110 | 110 |
@@ -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 |
@@ -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 |
@@ -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); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $element = new Column($element); |
66 | 66 | } |
67 | 67 | |
68 | - if (! ($element instanceof ColumnInterface)) { |
|
68 | + if (!($element instanceof ColumnInterface)) { |
|
69 | 69 | throw new \Exception('Column should be instance of ColumnInterface'); |
70 | 70 | } |
71 | 71 | |
@@ -80,16 +80,16 @@ discard block |
||
80 | 80 | { |
81 | 81 | $this->setHtmlAttribute('class', 'row'); |
82 | 82 | |
83 | - $count = $this->getElements()->filter(function (ColumnInterface $column) { |
|
83 | + $count = $this->getElements()->filter(function(ColumnInterface $column) { |
|
84 | 84 | return $column->getWidth() === 0; |
85 | 85 | })->count(); |
86 | 86 | |
87 | - $width = $this->maxWidth - $this->getElements()->sum(function (ColumnInterface $column) { |
|
87 | + $width = $this->maxWidth - $this->getElements()->sum(function(ColumnInterface $column) { |
|
88 | 88 | return $column->getWidth(); |
89 | 89 | }); |
90 | 90 | |
91 | - $this->getElements()->each(function (ColumnInterface $column) use ($width, $count) { |
|
92 | - if (! $column->getWidth()) { |
|
91 | + $this->getElements()->each(function(ColumnInterface $column) use ($width, $count) { |
|
92 | + if (!$column->getWidth()) { |
|
93 | 93 | $column->setWidth(floor($width / $count)); |
94 | 94 | } |
95 | 95 | }); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function setSize($size) |
131 | 131 | { |
132 | - $this->getColumns()->each(function (ColumnInterface $column) use ($size) { |
|
132 | + $this->getColumns()->each(function(ColumnInterface $column) use ($size) { |
|
133 | 133 | $column->setSize($size); |
134 | 134 | }); |
135 | 135 | } |
@@ -60,11 +60,11 @@ |
||
60 | 60 | { |
61 | 61 | $this->content = $content; |
62 | 62 | |
63 | - if (! is_null($label)) { |
|
63 | + if (!is_null($label)) { |
|
64 | 64 | $this->setLabel($label); |
65 | 65 | } |
66 | 66 | |
67 | - if (! is_null($icon)) { |
|
67 | + if (!is_null($icon)) { |
|
68 | 68 | $this->setIcon($icon); |
69 | 69 | } |
70 | 70 | } |