Skip to content

Commit dff3f03

Browse files
wip
1 parent 4358153 commit dff3f03

1 file changed

Lines changed: 63 additions & 61 deletions

File tree

config/excel.php

Lines changed: 63 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use Maatwebsite\Excel\Excel;
46

57
return [
@@ -14,7 +16,7 @@
1416
| Here you can specify how big the chunk should be.
1517
|
1618
*/
17-
'chunk_size' => 1000,
19+
'chunk_size' => 1000,
1820

1921
/*
2022
|--------------------------------------------------------------------------
@@ -41,15 +43,15 @@
4143
| Configure e.g. delimiter, enclosure and line ending for CSV exports.
4244
|
4345
*/
44-
'csv' => [
45-
'delimiter' => ',',
46-
'enclosure' => '"',
47-
'line_ending' => PHP_EOL,
48-
'use_bom' => false,
46+
'csv' => [
47+
'delimiter' => ',',
48+
'enclosure' => '"',
49+
'line_ending' => PHP_EOL,
50+
'use_bom' => false,
4951
'include_separator_line' => false,
50-
'excel_compatibility' => false,
51-
'output_encoding' => '',
52-
'test_auto_detect' => true,
52+
'excel_compatibility' => false,
53+
'output_encoding' => '',
54+
'test_auto_detect' => true,
5355
],
5456

5557
/*
@@ -60,20 +62,20 @@
6062
| Configure e.g. default title, creator, subject,...
6163
|
6264
*/
63-
'properties' => [
64-
'creator' => '',
65+
'properties' => [
66+
'creator' => '',
6567
'lastModifiedBy' => '',
66-
'title' => '',
67-
'description' => '',
68-
'subject' => '',
69-
'keywords' => '',
70-
'category' => '',
71-
'manager' => '',
72-
'company' => '',
68+
'title' => '',
69+
'description' => '',
70+
'subject' => '',
71+
'keywords' => '',
72+
'category' => '',
73+
'manager' => '',
74+
'company' => '',
7375
],
7476
],
7577

76-
'imports' => [
78+
'imports' => [
7779

7880
/*
7981
|--------------------------------------------------------------------------
@@ -86,7 +88,7 @@
8688
| you can enable it by setting read_only to false.
8789
|
8890
*/
89-
'read_only' => true,
91+
'read_only' => true,
9092

9193
/*
9294
|--------------------------------------------------------------------------
@@ -110,7 +112,7 @@
110112
| Available options: none|slug|custom
111113
|
112114
*/
113-
'heading_row' => [
115+
'heading_row' => [
114116
'formatter' => 'slug',
115117
],
116118

@@ -122,12 +124,12 @@
122124
| Configure e.g. delimiter, enclosure and line ending for CSV imports.
123125
|
124126
*/
125-
'csv' => [
126-
'delimiter' => null,
127-
'enclosure' => '"',
127+
'csv' => [
128+
'delimiter' => null,
129+
'enclosure' => '"',
128130
'escape_character' => '\\',
129-
'contiguous' => false,
130-
'input_encoding' => 'UTF-8',
131+
'contiguous' => false,
132+
'input_encoding' => 'UTF-8',
131133
],
132134

133135
/*
@@ -138,16 +140,16 @@
138140
| Configure e.g. default title, creator, subject,...
139141
|
140142
*/
141-
'properties' => [
142-
'creator' => '',
143+
'properties' => [
144+
'creator' => '',
143145
'lastModifiedBy' => '',
144-
'title' => '',
145-
'description' => '',
146-
'subject' => '',
147-
'keywords' => '',
148-
'category' => '',
149-
'manager' => '',
150-
'company' => '',
146+
'title' => '',
147+
'description' => '',
148+
'subject' => '',
149+
'keywords' => '',
150+
'category' => '',
151+
'manager' => '',
152+
'company' => '',
151153
],
152154

153155
/*
@@ -158,7 +160,7 @@
158160
| Configure middleware that is executed on getting a cell value
159161
|
160162
*/
161-
'cells' => [
163+
'cells' => [
162164
'middleware' => [
163165
//\Maatwebsite\Excel\Middleware\TrimCellValue::class,
164166
//\Maatwebsite\Excel\Middleware\ConvertEmptyCellValuesToNull::class,
@@ -177,21 +179,21 @@
177179
|
178180
*/
179181
'extension_detector' => [
180-
'xlsx' => Excel::XLSX,
181-
'xlsm' => Excel::XLSX,
182-
'xltx' => Excel::XLSX,
183-
'xltm' => Excel::XLSX,
184-
'xls' => Excel::XLS,
185-
'xlt' => Excel::XLS,
186-
'ods' => Excel::ODS,
187-
'ots' => Excel::ODS,
188-
'slk' => Excel::SLK,
189-
'xml' => Excel::XML,
182+
'xlsx' => Excel::XLSX,
183+
'xlsm' => Excel::XLSX,
184+
'xltx' => Excel::XLSX,
185+
'xltm' => Excel::XLSX,
186+
'xls' => Excel::XLS,
187+
'xlt' => Excel::XLS,
188+
'ods' => Excel::ODS,
189+
'ots' => Excel::ODS,
190+
'slk' => Excel::SLK,
191+
'xml' => Excel::XML,
190192
'gnumeric' => Excel::GNUMERIC,
191-
'htm' => Excel::HTML,
192-
'html' => Excel::HTML,
193-
'csv' => Excel::CSV,
194-
'tsv' => Excel::TSV,
193+
'htm' => Excel::HTML,
194+
'html' => Excel::HTML,
195+
'csv' => Excel::CSV,
196+
'tsv' => Excel::TSV,
195197

196198
/*
197199
|--------------------------------------------------------------------------
@@ -202,7 +204,7 @@
202204
| Available options: Excel::MPDF | Excel::TCPDF | Excel::DOMPDF
203205
|
204206
*/
205-
'pdf' => Excel::DOMPDF,
207+
'pdf' => Excel::DOMPDF,
206208
],
207209

208210
/*
@@ -222,11 +224,11 @@
222224
| [x] PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder::class
223225
|
224226
*/
225-
'value_binder' => [
227+
'value_binder' => [
226228
'default' => Maatwebsite\Excel\DefaultValueBinder::class,
227229
],
228230

229-
'cache' => [
231+
'cache' => [
230232
/*
231233
|--------------------------------------------------------------------------
232234
| Default cell caching driver
@@ -243,7 +245,7 @@
243245
| Drivers: memory|illuminate|batch
244246
|
245247
*/
246-
'driver' => 'memory',
248+
'driver' => 'memory',
247249

248250
/*
249251
|--------------------------------------------------------------------------
@@ -255,7 +257,7 @@
255257
| Here you can tweak the memory limit to your liking.
256258
|
257259
*/
258-
'batch' => [
260+
'batch' => [
259261
'memory_limit' => 60000,
260262
],
261263

@@ -271,7 +273,7 @@
271273
| at "null" it will use the default store.
272274
|
273275
*/
274-
'illuminate' => [
276+
'illuminate' => [
275277
'store' => null,
276278
],
277279

@@ -307,7 +309,7 @@
307309
*/
308310
'transactions' => [
309311
'handler' => 'db',
310-
'db' => [
312+
'db' => [
311313
'connection' => null,
312314
],
313315
],
@@ -325,7 +327,7 @@
325327
| and the create file (file).
326328
|
327329
*/
328-
'local_path' => storage_path('framework/cache/laravel-excel'),
330+
'local_path' => storage_path('framework/cache/laravel-excel'),
329331

330332
/*
331333
|--------------------------------------------------------------------------
@@ -337,7 +339,7 @@
337339
| If omitted the default permissions of the filesystem will be used.
338340
|
339341
*/
340-
'local_permissions' => [
342+
'local_permissions' => [
341343
// 'dir' => 0755,
342344
// 'file' => 0644,
343345
],
@@ -356,8 +358,8 @@
356358
| in conjunction with queued imports and exports.
357359
|
358360
*/
359-
'remote_disk' => 's3private',
360-
'remote_prefix' => 'laravel-excel-tmp',
361+
'remote_disk' => 's3private',
362+
'remote_prefix' => 'laravel-excel-tmp',
361363

362364
/*
363365
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)