@@ -134,8 +134,8 @@ |
||
134 | 134 | ])->render(); |
135 | 135 | |
136 | 136 | return $pdf->loadHTML($html) |
137 | - ->setPaper('a4', 'landscape') |
|
138 | - ->download(app('scaffold.module')->url().'.pdf'); |
|
137 | + ->setPaper('a4', 'landscape') |
|
138 | + ->download(app('scaffold.module')->url().'.pdf'); |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
@@ -65,8 +65,8 @@ |
||
65 | 65 | // prevent duplicated execution |
66 | 66 | if (null === $this->query && $this->model) { |
67 | 67 | $this->initQuery() |
68 | - ->applyFilters() |
|
69 | - ->applySorting(); |
|
68 | + ->applyFilters() |
|
69 | + ->applySorting(); |
|
70 | 70 | |
71 | 71 | $this->query = $this->assembler()->getQuery(); |
72 | 72 | } |
@@ -17,13 +17,13 @@ |
||
17 | 17 | |
18 | 18 | $total = $this->createModel()->count(); |
19 | 19 | $signedLastWeek = $this->createModel() |
20 | - ->where('created_at', '>=', $weekAgo)->count(); |
|
20 | + ->where('created_at', '>=', $weekAgo)->count(); |
|
21 | 21 | $signedLastMonth = $this->createModel() |
22 | - ->where('created_at', '>=', $monthAgo)->count(); |
|
22 | + ->where('created_at', '>=', $monthAgo)->count(); |
|
23 | 23 | $signedStatistics = $this->createModel() |
24 | - ->where('created_at', '>=', $monthAgo) |
|
25 | - ->select([DB::raw('COUNT(id) AS cnt'), DB::raw('DATE(created_at) as dt')]) |
|
26 | - ->groupBy('dt')->pluck('cnt', 'dt'); |
|
24 | + ->where('created_at', '>=', $monthAgo) |
|
25 | + ->select([DB::raw('COUNT(id) AS cnt'), DB::raw('DATE(created_at) as dt')]) |
|
26 | + ->groupBy('dt')->pluck('cnt', 'dt'); |
|
27 | 27 | |
28 | 28 | return view(app('scaffold.template')->dashboard('members'), [ |
29 | 29 | 'total' => $total, |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | ); |
65 | 65 | |
66 | 66 | if ($this->translator()->has($key = $this->translationKey())) { |
67 | - $this->setTitle((string)$this->translator()->trans($key)); |
|
67 | + $this->setTitle((string) $this->translator()->trans($key)); |
|
68 | 68 | } else { |
69 | 69 | $this->setTitle(Architect::humanize($this->id)); |
70 | 70 | } |
71 | 71 | |
72 | 72 | if ($this->translator()->has($key = $this->descriptionKey())) { |
73 | - $this->setDescription((string)$this->translator()->trans($key)); |
|
73 | + $this->setDescription((string) $this->translator()->trans($key)); |
|
74 | 74 | } |
75 | 75 | } |
76 | 76 | |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | */ |
313 | 313 | public function isVisibleOnPage(string $page): bool |
314 | 314 | { |
315 | - return (bool)$this->visibility[$page] ?? false; |
|
315 | + return (bool) $this->visibility[$page] ?? false; |
|
316 | 316 | } |
317 | 317 | |
318 | 318 | /** |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | */ |
323 | 323 | public function hideOnPages($pages): self |
324 | 324 | { |
325 | - return $this->setPagesVisibility((array)$pages, false); |
|
325 | + return $this->setPagesVisibility((array) $pages, false); |
|
326 | 326 | } |
327 | 327 | |
328 | 328 | /** |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | */ |
333 | 333 | public function showOnPages($pages): self |
334 | 334 | { |
335 | - return $this->setPagesVisibility((array)$pages, true); |
|
335 | + return $this->setPagesVisibility((array) $pages, true); |
|
336 | 336 | } |
337 | 337 | |
338 | 338 | /** |