Skip to content

Commit 13d2721

Browse files
authored
Merge pull request #475 from dbarzin/dev
Dev
2 parents 5507ade + 17ba88e commit 13d2721

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

app/Exports/ControlsExport.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Maatwebsite\Excel\Concerns\WithMapping;
1010
use Maatwebsite\Excel\Concerns\WithStyles;
1111
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
12+
use Illuminate\Database\Eloquent\Builder;
1213

1314
class ControlsExport implements FromQuery, WithMapping, WithHeadings, WithStyles, WithColumnWidths
1415
{
@@ -33,10 +34,8 @@ public function headings(): array
3334
];
3435
}
3536

36-
public function styles(Worksheet $sheet)
37+
public function styles(Worksheet $_sheet)
3738
{
38-
// fix unused
39-
$sheet;
4039
// return
4140
return [
4241
// Style the first row as bold text.
@@ -70,9 +69,6 @@ public function columnWidths(): array
7069
];
7170
}
7271

73-
/**
74-
* @var control $control
75-
*/
7672
public function map($control): array
7773
{
7874
return [
@@ -104,10 +100,7 @@ public function map($control): array
104100
];
105101
}
106102

107-
/**
108-
* @return \Illuminate\Support\Collection
109-
*/
110-
public function query()
103+
public function query() : Builder
111104
{
112105
return Control::orderBy('realisation_date');
113106
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2025.07.28",
2+
"version": "2025.07.30",
33
"license": "GPL-3.0",
44
"author": "Didier Barzin",
55
"repository": "https://www.github.com/dbarzin/deming",

resources/views/controls/make.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
<div class="cell-lg-2 cell-md-3">
138138
<input type="text" data-role="spinner" name="note" data-min-value="0" data-max-value="100"
139139
value="{{ count($errors)>0 ? old('note') : $control->note }}">
140+
<!--
140141
<br><br>
141142
<input
142143
data-role="spinner"
@@ -148,6 +149,7 @@
148149
step="1"
149150
placeholder="0.00"
150151
>
152+
-->
151153

152154
</div>
153155
</div>

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.07.28
1+
2025.07.30

0 commit comments

Comments
 (0)