@@ -19,9 +19,9 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | $files = glob($pattern, $flags); |
| 21 | 21 | |
| 22 | - foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) |
|
| 22 | + foreach (glob(dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir) |
|
| 23 | 23 | { |
| 24 | - $files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags)); |
|
| 24 | + $files = array_merge($files, glob_recursive($dir . '/' . basename($pattern), $flags)); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | return $files; |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | return "<?php\n" . $tokens[1][1]; |
| 43 | 43 | } |
| 44 | - else if($tokens[1][0] !== T_DOC_COMMENT) |
|
| 44 | + else if ($tokens[1][0] !== T_DOC_COMMENT) |
|
| 45 | 45 | { |
| 46 | 46 | return "<?php"; |
| 47 | 47 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | function replace_files(array $files, $template) |
| 56 | 56 | { |
| 57 | - foreach($files as $file) |
|
| 57 | + foreach ($files as $file) |
|
| 58 | 58 | { |
| 59 | 59 | $source = file_get_contents($file); |
| 60 | 60 | $tokens = get_tokens($source); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | -foreach($animeclient_file_patterns as $glob) |
|
| 71 | +foreach ($animeclient_file_patterns as $glob) |
|
| 72 | 72 | { |
| 73 | 73 | $files = glob_recursive($glob); |
| 74 | 74 | replace_files($files, '/animeclient_header_comment.txt'); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | ]; |
| 81 | 81 | replace_files($loose_files, '/animeclient_header_comment.txt'); |
| 82 | 82 | |
| 83 | -foreach($ion_file_patterns as $glob) |
|
| 83 | +foreach ($ion_file_patterns as $glob) |
|
| 84 | 84 | { |
| 85 | 85 | $files = glob_recursive($glob); |
| 86 | 86 | replace_files($files, '/ion_header_comment.txt'); |