Lines Matching refs:code
55 $origCode = $code = file_get_contents($path); variable
58 $code = stripTrailingWhitespace($code); variable
62 $code = stripTrailingWhitespace($code); variable
63 $code = reindentToSpaces($code); variable
73 if ($origCode !== $code) {
74 file_put_contents($path, $code);
78 function stripTrailingWhitespace(string $code): string { argument
79 return preg_replace('/\h+$/m', '', $code);
82 function reindentToTabs(string $code): string { argument
89 }, $code);
92 function reindentToSpaces(string $code): string { argument
109 }, $code);
112 function transformTestCode(string $code, callable $transformer): string { argument
114 if (strpos($code, '--WHITESPACE_SENSITIVE--') !== false) {
115 return $code;
123 $code