Closed Nightfirecat closed 7 years ago
So long as item definitions are stored as arrays in a flat PHP file, they should be stored with [...] instead of array(...) for clarity.
[...]
array(...)
$php_substitution_pattern = '$1=>Array($3),'; // should be something like $php_substitution_pattern = '$1=>[$3],';
and
$php_definitions = '<?php $ITEMS=Array(' . "\n"; // should be something like $php_definitions = '<?php $ITEMS=[' . "\n";
$php_definitions = substr($php_definitions, 0, -2) . "\n" . ');'; // should be something like $php_definitions = substr($php_definitions, 0, -2) . "\n" . '];';
So long as item definitions are stored as arrays in a flat PHP file, they should be stored with
[...]
instead ofarray(...)
for clarity.and
and