@@ -7,7 +7,7 @@ |
||
7 | 7 | <?php |
8 | 8 | $value = uitype($field->uitype_id)->getFormattedValueToDisplay($field, $record); |
9 | 9 | $valueParts = explode(';', $value); |
10 | - $fileName = $valueParts[0]; |
|
10 | + $fileName = $valueParts[ 0 ]; |
|
11 | 11 | ?> |
12 | 12 | @if (count($valueParts) === 2) |
13 | 13 | <div class="truncate"> |
@@ -95,15 +95,15 @@ |
||
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 |
103 | 103 | $uitypeViewName = sprintf('uitypes.search.%s', $column[ 'uitype' ]); |
104 | 104 | $uitypeFallbackView = 'uccello::modules.default.uitypes.search.text'; |
105 | 105 | $uitypeViewToInclude = uccello()->view($column[ 'package' ], $module, $uitypeViewName, $uitypeFallbackView); |
106 | - $field = $module->fields()->where('name', $column['name'])->first(); |
|
106 | + $field = $module->fields()->where('name', $column[ 'name' ])->first(); |
|
107 | 107 | ?> |
108 | 108 | @include($uitypeViewToInclude, [ 'field' => $field ]) |
109 | 109 | </div> |
@@ -30,15 +30,15 @@ |
||
30 | 30 | <div class="search hide-on-small-only hide-on-med-only"> |
31 | 31 | <?php |
32 | 32 | $searchValue = null; |
33 | - if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column['name']})) { |
|
34 | - $searchValue = $selectedFilter->conditions->search->{$column['name']}; |
|
33 | + if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) { |
|
34 | + $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]}; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | // If a special template exists, use it. Else use the generic template |
38 | 38 | $uitypeViewName = sprintf('uitypes.search.%s', $column[ 'uitype' ]); |
39 | 39 | $uitypeFallbackView = 'uccello::modules.default.uitypes.search.text'; |
40 | 40 | $uitypeViewToInclude = uccello()->view($column[ 'package' ], $module, $uitypeViewName, $uitypeFallbackView); |
41 | - $field = $module->fields()->where('name', $column['name'])->first(); |
|
41 | + $field = $module->fields()->where('name', $column[ 'name' ])->first(); |
|
42 | 42 | ?> |
43 | 43 | @include($uitypeViewToInclude, [ 'field' => $field ]) |
44 | 44 | </div> |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | {{-- Badge --}} |
32 | 32 | <?php |
33 | - $countMethod = $relatedlist->method . 'Count'; |
|
33 | + $countMethod = $relatedlist->method.'Count'; |
|
34 | 34 | |
35 | 35 | $model = new $relatedModule->model_class; |
36 | 36 | $count = $model->$countMethod($relatedlist, $record->id); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | @foreach (uccello()->getCapabilities() as $capability) |
42 | 42 | <?php |
43 | 43 | $isApiCapability = strpos($capability->name, 'api-') !== false; |
44 | - $packagePrefix = $capability->package ? $capability->package . '::' : ''; |
|
44 | + $packagePrefix = $capability->package ? $capability->package.'::' : ''; |
|
45 | 45 | ?> |
46 | 46 | <th class="center-align @if ($isApiCapability)for-api hide @endif">{{ trans($packagePrefix . 'capability.' . $capability->name) }}</th> |
47 | 47 | @endforeach |
@@ -21,7 +21,7 @@ |
||
21 | 21 | @foreach (uccello()->getCapabilities() as $capability) |
22 | 22 | <?php |
23 | 23 | $isApiCapability = strpos($capability->name, 'api-') !== false; |
24 | - $packagePrefix = $capability->package ? $capability->package . '::' : ''; |
|
24 | + $packagePrefix = $capability->package ? $capability->package.'::' : ''; |
|
25 | 25 | ?> |
26 | 26 | <th class="center-align @if ($isApiCapability)for-api hide @endif">{{ trans($packagePrefix . 'capability.' . $capability->name) }}</th> |
27 | 27 | @endforeach |