plugin-php icon indicating copy to clipboard operation
plugin-php copied to clipboard

normalize case of built-in php function

Open alexander-akait opened this issue 7 years ago • 1 comments

Prettier 1.14.3

PHP Plugin 0.9.0

Input:

$var = MB_STRTOLOWER($class);

Output:

$var = MB_STRTOLOWER($class);

Expected behavior:

$var = mb_strtolower($class);

We can have list of built-in php function and normalize their case (convert to lowercase in many cases), but need discussion.

alexander-akait avatar Jan 28 '19 16:01 alexander-akait

We can parser their from http://php.net/manual/en/indexes.functions.php, better implement util and add npm command (run this command before each release)

alexander-akait avatar Jan 28 '19 16:01 alexander-akait