@@ -6,7 +6,7 @@ |
||
| 6 | 6 | <?php |
| 7 | 7 | $value = $field->uitype->getFormattedValueToDisplay($field, $record); |
| 8 | 8 | $valueParts = explode(';', $value); |
| 9 | - $fileName = $valueParts[0]; |
|
| 9 | + $fileName = $valueParts[ 0 ]; |
|
| 10 | 10 | ?> |
| 11 | 11 | @if (count($valueParts) === 2) |
| 12 | 12 | <div class="truncate"> |
@@ -95,8 +95,8 @@ |
||
| 95 | 95 | <div class="hide-on-small-only hide-on-med-only"> |
| 96 | 96 | <?php |
| 97 | 97 | $searchValue = null; |
| 98 | - if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column['name']})) { |
|
| 99 | - $searchValue = $selectedFilter->conditions->search->{$column['name']}; |
|
| 98 | + if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) { |
|
| 99 | + $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]}; |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | // If a special template exists, use it. Else use the generic template |
@@ -29,8 +29,8 @@ |
||
| 29 | 29 | <div class="search hide-on-small-only hide-on-med-only hide"> |
| 30 | 30 | <?php |
| 31 | 31 | $searchValue = null; |
| 32 | - if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column['name']})) { |
|
| 33 | - $searchValue = $selectedFilter->conditions->search->{$column['name']}; |
|
| 32 | + if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) { |
|
| 33 | + $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]}; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | // If a special template exists, use it. Else use the generic template |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | // Related model |
| 90 | 90 | $relatedModel = new $relatedList->relatedModule->model_class; |
| 91 | 91 | |
| 92 | - $relations->getCollection()->transform(function ($relation) use ($relatedModel) { |
|
| 92 | + $relations->getCollection()->transform(function($relation) use ($relatedModel) { |
|
| 93 | 93 | $record = $relatedModel::find($relation->related_record_id); |
| 94 | 94 | $record->relation_id = $relation->id; // Add relation id |
| 95 | 95 | |
@@ -87,8 +87,8 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder |
| 89 | 89 | { |
| 90 | - $query->where(function ($query) use($field, $value) { |
|
| 91 | - foreach ((array) $value as $_value) { |
|
| 90 | + $query->where(function($query) use($field, $value) { |
|
| 91 | + foreach ((array)$value as $_value) { |
|
| 92 | 92 | $formattedValue = $this->getFormattedValueToSearch($_value); |
| 93 | 93 | $query = $query->orWhere($field->column, 'like', $formattedValue); |
| 94 | 94 | } |
@@ -126,8 +126,8 @@ |
||
| 126 | 126 | */ |
| 127 | 127 | public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder |
| 128 | 128 | { |
| 129 | - $query->where(function ($query) use($field, $value) { |
|
| 130 | - foreach ((array) $value as $_value) { |
|
| 129 | + $query->where(function($query) use($field, $value) { |
|
| 130 | + foreach ((array)$value as $_value) { |
|
| 131 | 131 | $query = $query->orWhere($field->column, '=', $_value); |
| 132 | 132 | } |
| 133 | 133 | }); |
@@ -87,8 +87,8 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | public function addConditionToSearchQuery(Builder $query, Field $field, $value) : Builder |
| 89 | 89 | { |
| 90 | - $query->where(function ($query) use($field, $value) { |
|
| 91 | - foreach ((array) $value as $_value) { |
|
| 90 | + $query->where(function($query) use($field, $value) { |
|
| 91 | + foreach ((array)$value as $_value) { |
|
| 92 | 92 | $formattedValue = $this->getFormattedValueToSearch($_value); |
| 93 | 93 | $query = $query->orWhere($field->column, $formattedValue); |
| 94 | 94 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | // If the form is not valid display a notification |
| 35 | - if (! $this->isValid()) { |
|
| 35 | + if (!$this->isValid()) { |
|
| 36 | 36 | ucnotify(uctrans('notification.form.not_valid', $module), 'error'); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -58,10 +58,10 @@ discard block |
||
| 58 | 58 | // $this->callSilent('vendor:publish', ['--tag' => 'uccello-provider']); |
| 59 | 59 | |
| 60 | 60 | $this->comment('Publishing Uccello Assets...'); |
| 61 | - $this->callSilent('vendor:publish', ['--tag' => 'uccello-assets']); |
|
| 61 | + $this->callSilent('vendor:publish', [ '--tag' => 'uccello-assets' ]); |
|
| 62 | 62 | |
| 63 | 63 | $this->comment('Publishing Uccello Configuration...'); |
| 64 | - $this->callSilent('vendor:publish', ['--tag' => 'uccello-config']); |
|
| 64 | + $this->callSilent('vendor:publish', [ '--tag' => 'uccello-config' ]); |
|
| 65 | 65 | |
| 66 | 66 | |
| 67 | 67 | $this->comment('Copying User Model...'); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | $this->comment('Executing make:auth...'); |
| 88 | - $this->callSilent('make:auth', ['--force' => true]); |
|
| 88 | + $this->callSilent('make:auth', [ '--force' => true ]); |
|
| 89 | 89 | |
| 90 | 90 | $this->registerJWT(); |
| 91 | 91 | } |