Skip to content

Commit d7ccbc3

Browse files
Updating the codestyle of the configuration file with laravel/pint. (#1051)
1 parent b60e5e3 commit d7ccbc3

File tree

1 file changed

+39
-38
lines changed

1 file changed

+39
-38
lines changed

config/dompdf.php

+39-38
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
return array(
3+
return [
44

55
/*
66
|--------------------------------------------------------------------------
@@ -20,7 +20,7 @@
2020
*/
2121
'convert_entities' => true,
2222

23-
'options' => array(
23+
'options' => [
2424
/**
2525
* The location of the DOMPDF font directory
2626
*
@@ -45,7 +45,7 @@
4545
* Times-Roman, Times-Bold, Times-BoldItalic, Times-Italic,
4646
* Symbol, ZapfDingbats.
4747
*/
48-
"font_dir" => storage_path('fonts'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
48+
'font_dir' => storage_path('fonts'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
4949

5050
/**
5151
* The location of the DOMPDF font cache directory
@@ -55,7 +55,7 @@
5555
*
5656
* Note: This directory must exist and be writable by the webserver process.
5757
*/
58-
"font_cache" => storage_path('fonts'),
58+
'font_cache' => storage_path('fonts'),
5959

6060
/**
6161
* The location of a temporary directory.
@@ -64,7 +64,7 @@
6464
* The temporary directory is required to download remote images and when
6565
* using the PDFLib back end.
6666
*/
67-
"temp_dir" => sys_get_temp_dir(),
67+
'temp_dir' => sys_get_temp_dir(),
6868

6969
/**
7070
* ==== IMPORTANT ====
@@ -78,7 +78,7 @@
7878
* direct class use like:
7979
* $dompdf = new DOMPDF(); $dompdf->load_html($htmldata); $dompdf->render(); $pdfdata = $dompdf->output();
8080
*/
81-
"chroot" => realpath(base_path()),
81+
'chroot' => realpath(base_path()),
8282

8383
/**
8484
* Protocol whitelist
@@ -91,34 +91,34 @@
9191
* @var array
9292
*/
9393
'allowed_protocols' => [
94-
"file://" => ["rules" => []],
95-
"http://" => ["rules" => []],
96-
"https://" => ["rules" => []]
94+
'file://' => ['rules' => []],
95+
'http://' => ['rules' => []],
96+
'https://' => ['rules' => []],
9797
],
9898

9999
/**
100100
* Operational artifact (log files, temporary files) path validation
101101
*/
102-
'artifactPathValidation' => null,
102+
'artifactPathValidation' => null,
103103

104-
/**
105-
* @var string
106-
*/
104+
/**
105+
* @var string
106+
*/
107107
'log_output_file' => null,
108108

109109
/**
110110
* Whether to enable font subsetting or not.
111111
*/
112-
"enable_font_subsetting" => false,
112+
'enable_font_subsetting' => false,
113113

114114
/**
115115
* The PDF rendering backend to use
116116
*
117117
* Valid settings are 'PDFLib', 'CPDF' (the bundled R&OS PDF class), 'GD' and
118118
* 'auto'. 'auto' will look for PDFLib and use it if found, or if not it will
119-
* fall back on CPDF. 'GD' renders PDFs to graphic files. {@link
120-
* Canvas_Factory} ultimately determines which rendering class to instantiate
121-
* based on this setting.
119+
* fall back on CPDF. 'GD' renders PDFs to graphic files.
120+
* {@link * Canvas_Factory} ultimately determines which rendering class to
121+
* instantiate based on this setting.
122122
*
123123
* Both PDFLib & CPDF rendering backends provide sufficient rendering
124124
* capabilities for dompdf, however additional features (e.g. object,
@@ -139,7 +139,7 @@
139139
* @link http://www.ros.co.nz/pdf
140140
* @link http://www.php.net/image
141141
*/
142-
"pdf_backend" => "CPDF",
142+
'pdf_backend' => 'CPDF',
143143

144144
/**
145145
* html target media view which should be rendered into pdf.
@@ -151,7 +151,7 @@
151151
* the desired content might be different (e.g. screen or projection view of html file).
152152
* Therefore allow specification of content here.
153153
*/
154-
"default_media_type" => "screen",
154+
'default_media_type' => 'screen',
155155

156156
/**
157157
* The default paper size.
@@ -160,24 +160,25 @@
160160
*
161161
* @see CPDF_Adapter::PAPER_SIZES for valid sizes ('letter', 'legal', 'A4', etc.)
162162
*/
163-
"default_paper_size" => "a4",
163+
'default_paper_size' => 'a4',
164164

165-
/**
166-
* The default paper orientation.
167-
*
168-
* The orientation of the page (portrait or landscape).
169-
*
170-
* @var string
171-
*/
172-
'default_paper_orientation' => "portrait",
165+
/**
166+
* The default paper orientation.
167+
*
168+
* The orientation of the page (portrait or landscape).
169+
*
170+
* @var string
171+
*/
172+
'default_paper_orientation' => 'portrait',
173173

174174
/**
175175
* The default font family
176176
*
177177
* Used if no suitable fonts can be found. This must exist in the font folder.
178+
*
178179
* @var string
179180
*/
180-
"default_font" => "serif",
181+
'default_font' => 'serif',
181182

182183
/**
183184
* Image DPI setting
@@ -212,7 +213,7 @@
212213
*
213214
* @var int
214215
*/
215-
"dpi" => 96,
216+
'dpi' => 96,
216217

217218
/**
218219
* Enable embedded PHP
@@ -231,7 +232,7 @@
231232
*
232233
* @var bool
233234
*/
234-
"enable_php" => false,
235+
'enable_php' => false,
235236

236237
/**
237238
* Rnable inline JavaScript
@@ -243,7 +244,7 @@
243244
*
244245
* @var bool
245246
*/
246-
"enable_javascript" => true,
247+
'enable_javascript' => true,
247248

248249
/**
249250
* Enable remote file access
@@ -265,7 +266,7 @@
265266
*
266267
* @var bool
267268
*/
268-
"enable_remote" => false,
269+
'enable_remote' => false,
269270

270271
/**
271272
* List of allowed remote hosts
@@ -284,16 +285,16 @@
284285
/**
285286
* A ratio applied to the fonts height to be more like browsers' line height
286287
*/
287-
"font_height_ratio" => 1.1,
288+
'font_height_ratio' => 1.1,
288289

289290
/**
290291
* Use the HTML5 Lib parser
291292
*
292293
* @deprecated This feature is now always on in dompdf 2.x
294+
*
293295
* @var bool
294296
*/
295-
"enable_html5_parser" => true,
296-
),
297-
297+
'enable_html5_parser' => true,
298+
],
298299

299-
);
300+
];

0 commit comments

Comments
 (0)