src/Reports/Code.php 1 location
|
@@ 162-166 (lines=5) @@
|
159 |
|
|
160 |
|
// Print the file header. |
161 |
|
echo PHP_EOL."\033[1mFILE: "; |
162 |
|
if ($fileLength <= ($width - 6)) { |
163 |
|
echo $file; |
164 |
|
} else { |
165 |
|
echo '...'.substr($file, ($fileLength - ($width - 6))); |
166 |
|
} |
167 |
|
|
168 |
|
echo "\033[0m".PHP_EOL; |
169 |
|
echo str_repeat('-', $width).PHP_EOL; |
src/Reports/Full.php 1 location
|
@@ 86-90 (lines=5) @@
|
83 |
|
} |
84 |
|
|
85 |
|
echo PHP_EOL."\033[1mFILE: "; |
86 |
|
if ($fileLength <= ($width - 6)) { |
87 |
|
echo $file; |
88 |
|
} else { |
89 |
|
echo '...'.substr($file, ($fileLength - ($width - 6))); |
90 |
|
} |
91 |
|
|
92 |
|
echo "\033[0m".PHP_EOL; |
93 |
|
echo str_repeat('-', $width).PHP_EOL; |