File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function __( string $a, string $b ): string {
22
22
* the export string instead of outputting it. Default false.
23
23
* @return string|null The formatted export string if $return is true, otherwise null.
24
24
*/
25
- function varexport ($ expression , $ return = false ) {
25
+ function pretty_var_export ($ expression , $ return = false ) {
26
26
$ export = var_export ($ expression , true );
27
27
$ export = preg_replace ('/^([ ]*)(.*)/m ' , '$1$1$2 ' , $ export );
28
28
$ array = preg_split ("/ \r\n| \n| \r/ " , $ export );
@@ -41,7 +41,7 @@ $file = dirname( __DIR__ ) . '/php/providers.php';
41
41
$ hosts = require $ file ;
42
42
ksort ( $ hosts );
43
43
44
- $ content = '<?php return ' . varexport ( $ hosts , true ) . '; ' ;
44
+ $ content = '<?php return ' . pretty_var_export ( $ hosts , true ) . '; ' ;
45
45
file_put_contents ( $ file , $ content );
46
46
47
47
system ( "phpcbf $ file " );
You can’t perform that action at this time.
0 commit comments