Skip to content

Commit 9db28a1

Browse files
committed
rename
1 parent ea595d4 commit 9db28a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/sort-provider-array

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function __( string $a, string $b ): string {
2222
* the export string instead of outputting it. Default false.
2323
* @return string|null The formatted export string if $return is true, otherwise null.
2424
*/
25-
function varexport($expression, $return = false) {
25+
function pretty_var_export($expression, $return = false) {
2626
$export = var_export($expression, true);
2727
$export = preg_replace('/^([ ]*)(.*)/m', '$1$1$2', $export);
2828
$array = preg_split("/\r\n|\n|\r/", $export);
@@ -41,7 +41,7 @@ $file = dirname( __DIR__ ) . '/php/providers.php';
4141
$hosts = require $file;
4242
ksort( $hosts );
4343

44-
$content = '<?php return ' . varexport( $hosts, true ) . ';';
44+
$content = '<?php return ' . pretty_var_export( $hosts, true ) . ';';
4545
file_put_contents( $file, $content );
4646

4747
system( "phpcbf $file" );

0 commit comments

Comments
 (0)