We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | $button = $this->buttons()->firstWhere('name', $name); |
110 | 110 | |
111 | - if (! $button) { |
|
111 | + if (!$button) { |
|
112 | 112 | abort(500, 'CRUD Button "'.$name.'" not found. Please check the button exists before you modify it.'); |
113 | 113 | } |
114 | 114 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function removeButton($name, $stack = null) |
131 | 131 | { |
132 | - $this->buttons = $this->buttons->reject(function ($button) use ($name, $stack) { |
|
132 | + $this->buttons = $this->buttons->reject(function($button) use ($name, $stack) { |
|
133 | 133 | return $stack == null ? $button->name == $name : ($button->stack == $stack) && ($button->name == $name); |
134 | 134 | }); |
135 | 135 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function removeButtons($names, $stack = null) |
142 | 142 | { |
143 | - if (! empty($names)) { |
|
143 | + if (!empty($names)) { |
|
144 | 144 | foreach ($names as $name) { |
145 | 145 | $this->removeButton($name, $stack); |
146 | 146 | } |
@@ -154,14 +154,14 @@ discard block |
||
154 | 154 | |
155 | 155 | public function removeAllButtonsFromStack($stack) |
156 | 156 | { |
157 | - $this->buttons = $this->buttons->reject(function ($button) use ($stack) { |
|
157 | + $this->buttons = $this->buttons->reject(function($button) use ($stack) { |
|
158 | 158 | return $button->stack == $stack; |
159 | 159 | }); |
160 | 160 | } |
161 | 161 | |
162 | 162 | public function removeButtonFromStack($name, $stack) |
163 | 163 | { |
164 | - $this->buttons = $this->buttons->reject(function ($button) use ($name, $stack) { |
|
164 | + $this->buttons = $this->buttons->reject(function($button) use ($name, $stack) { |
|
165 | 165 | return $button->name == $name && $button->stack == $stack; |
166 | 166 | }); |
167 | 167 | } |
@@ -3,7 +3,7 @@ |
||
3 | 3 | <?php |
4 | 4 | // if the column has been cast to Carbon or Date (using attribute casting) |
5 | 5 | // get the value as a date string |
6 | -if (isset($field['value']) && ( $field['value'] instanceof \Carbon\CarbonInterface )) { |
|
6 | +if (isset($field['value']) && ($field['value'] instanceof \Carbon\CarbonInterface)) { |
|
7 | 7 | $field['value'] = $field['value']->toDateTimeString(); |
8 | 8 | } |
9 | 9 | ?> |
@@ -3,11 +3,11 @@ |
||
3 | 3 | <?php |
4 | 4 | // if the column has been cast to Carbon or Date (using attribute casting) |
5 | 5 | // get the value as a date string |
6 | - if (isset($field['value']) && ( $field['value'] instanceof \Carbon\CarbonInterface )) { |
|
6 | + if (isset($field['value']) && ($field['value'] instanceof \Carbon\CarbonInterface)) { |
|
7 | 7 | $field['value'] = $field['value']->format('Y-m-d'); |
8 | 8 | } |
9 | 9 | |
10 | - $field_language = isset($field['date_picker_options']['language'])?$field['date_picker_options']['language']:\App::getLocale(); |
|
10 | + $field_language = isset($field['date_picker_options']['language']) ? $field['date_picker_options']['language'] : \App::getLocale(); |
|
11 | 11 | |
12 | 12 | if (!isset($field['attributes']['style'])) { |
13 | 13 | $field['attributes']['style'] = 'background-color: white!important;'; |
@@ -3,7 +3,7 @@ |
||
3 | 3 | <?php |
4 | 4 | // if the column has been cast to Carbon or Date (using attribute casting) |
5 | 5 | // get the value as a date string |
6 | -if (isset($field['value']) && ( $field['value'] instanceof \Carbon\CarbonInterface )) { |
|
6 | +if (isset($field['value']) && ($field['value'] instanceof \Carbon\CarbonInterface)) { |
|
7 | 7 | $field['value'] = $field['value']->toDateString(); |
8 | 8 | } |
9 | 9 | ?> |
@@ -3,11 +3,11 @@ |
||
3 | 3 | <?php |
4 | 4 | // if the column has been cast to Carbon or Date (using attribute casting) |
5 | 5 | // get the value as a date string |
6 | -if (isset($field['value']) && ( $field['value'] instanceof \Carbon\CarbonInterface )) { |
|
6 | +if (isset($field['value']) && ($field['value'] instanceof \Carbon\CarbonInterface)) { |
|
7 | 7 | $field['value'] = $field['value']->format('Y-m-d H:i:s'); |
8 | 8 | } |
9 | 9 | |
10 | - $field_language = isset($field['datetime_picker_options']['language'])?$field['datetime_picker_options']['language']:\App::getLocale(); |
|
10 | + $field_language = isset($field['datetime_picker_options']['language']) ? $field['datetime_picker_options']['language'] : \App::getLocale(); |
|
11 | 11 | ?> |
12 | 12 | |
13 | 13 | <div @include('crud::inc.field_wrapper_attributes') > |