Skip to content

Commit 0bbe32b

Browse files
author
André L F S Bacci
committed
Review changes
1 parent 2e6a04d commit 0bbe32b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ fileModHistory.php
99

1010

1111
# A plece for all temporary or generated files (idempotent build)
12-
temp/
12+
temp/

scripts/file-entities.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php /*
22
+----------------------------------------------------------------------+
3-
| Copyright (c) 1997-2023 The PHP Group |
3+
| Copyright (c) 1997-2025 The PHP Group |
44
+----------------------------------------------------------------------+
55
| This source file is subject to version 3.01 of the PHP license, |
66
| that is bundled with this package in the file LICENSE, and is |
@@ -107,7 +107,7 @@
107107
if ( ! $file )
108108
{
109109
echo "Failed to open $outfile\n.";
110-
die(-1);
110+
exit( 1 );
111111
}
112112

113113
fputs( $file , "<!-- DON'T TOUCH - AUTOGENERATED BY file-entities.php -->\n\n" );
@@ -125,7 +125,7 @@
125125

126126
fclose( $file );
127127
echo "done\n";
128-
exit;
128+
exit( 0 );
129129

130130

131131

@@ -215,13 +215,13 @@ function generate_list_entities( string $root , string $lang )
215215
if ( BACKPORT ) // Spurious file generated outside reference/
216216
pushEntity( "language.predefined.entities.weakreference", path: "$root/$lang/language/predefined/entities.weakreference.xml" );
217217

218-
$dirs = array( "reference" );
218+
$dirs = [ "reference" ];
219219
list_entities_recurse( $path , $dirs );
220220
}
221221

222222
function list_entities_recurse( string $root , array $dirs )
223223
{
224-
$list = array();
224+
$list = [];
225225

226226
$dir = rtrim( "$root/" . implode( '/' , $dirs ) , "/" );
227227
$files = scandir( $dir );

0 commit comments

Comments
 (0)