@@ -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 | |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | // Label |
| 214 | - $label = $menuLink->type === 'module' ? uctrans($menuLink->label, $module) : uctrans($menuLink->label, $this->module);; |
|
| 214 | + $label = $menuLink->type === 'module' ? uctrans($menuLink->label, $module) : uctrans($menuLink->label, $this->module); ; |
|
| 215 | 215 | |
| 216 | 216 | // Icon |
| 217 | 217 | if ($menuLink->type === 'folder') { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | if ($relatedList && $relatedList->method) { |
| 159 | 159 | // Related list method |
| 160 | 160 | $method = $relatedList->method; |
| 161 | - $recordIdsMethod = $method . 'RecordIds'; |
|
| 161 | + $recordIdsMethod = $method.'RecordIds'; |
|
| 162 | 162 | |
| 163 | 163 | // Get related records ids |
| 164 | 164 | $model = new $modelClass; |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | // Add the record id itself to be filtered |
| 168 | 168 | if ($recordId && !$filteredRecordIds->contains($recordId)) { |
| 169 | - $filteredRecordIds[] = (int)$recordId; |
|
| 169 | + $filteredRecordIds[ ] = (int)$recordId; |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | // Make the query |
@@ -150,8 +150,7 @@ discard block |
||
| 150 | 150 | $total = $model->$countMethod($relatedList, $recordId); |
| 151 | 151 | $totalFiltered = $total; |
| 152 | 152 | } |
| 153 | - } |
|
| 154 | - elseif ($relatedListId && $action === 'select') { |
|
| 153 | + } elseif ($relatedListId && $action === 'select') { |
|
| 155 | 154 | // Get related list |
| 156 | 155 | $relatedList = Relatedlist::find($relatedListId); |
| 157 | 156 | |
@@ -176,8 +175,7 @@ discard block |
||
| 176 | 175 | $total = $initialQuery->whereNotIn($model->getKeyName(), $filteredRecordIds)->count(); |
| 177 | 176 | $totalFiltered = $total; |
| 178 | 177 | } |
| 179 | - } |
|
| 180 | - else { |
|
| 178 | + } else { |
|
| 181 | 179 | // Make the query |
| 182 | 180 | $records = $query->get(); |
| 183 | 181 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | {{-- Badge --}} |
| 23 | 23 | <?php |
| 24 | 24 | $relatedModule = $relatedlist->relatedModule; |
| 25 | - $countMethod = $relatedlist->method . 'Count'; |
|
| 25 | + $countMethod = $relatedlist->method.'Count'; |
|
| 26 | 26 | |
| 27 | 27 | $model = new $relatedModule->model_class; |
| 28 | 28 | $count = $model->$countMethod($relatedlist, $record->id); |