@@ 198-216 (lines=19) @@ | ||
195 | echo ' CODE COMPARISON '; |
|
196 | echo str_repeat('-', 42).PHP_EOL; |
|
197 | ||
198 | for ($i = 0; $i < $maxTitleLines; $i++) { |
|
199 | if (isset($firstTitleLines[$i]) === true) { |
|
200 | $firstLineText = $firstTitleLines[$i]; |
|
201 | } else { |
|
202 | $firstLineText = ''; |
|
203 | } |
|
204 | ||
205 | if (isset($secondTitleLines[$i]) === true) { |
|
206 | $secondLineText = $secondTitleLines[$i]; |
|
207 | } else { |
|
208 | $secondLineText = ''; |
|
209 | } |
|
210 | ||
211 | echo '| '; |
|
212 | echo $firstLineText.str_repeat(' ', (46 - strlen($firstLineText))); |
|
213 | echo ' | '; |
|
214 | echo $secondLineText.str_repeat(' ', (47 - strlen($secondLineText))); |
|
215 | echo ' |'.PHP_EOL; |
|
216 | }//end for |
|
217 | ||
218 | echo str_repeat('-', 100).PHP_EOL; |
|
219 | ||
@@ 220-238 (lines=19) @@ | ||
217 | ||
218 | echo str_repeat('-', 100).PHP_EOL; |
|
219 | ||
220 | for ($i = 0; $i < $maxCodeLines; $i++) { |
|
221 | if (isset($firstLines[$i]) === true) { |
|
222 | $firstLineText = $firstLines[$i]; |
|
223 | } else { |
|
224 | $firstLineText = ''; |
|
225 | } |
|
226 | ||
227 | if (isset($secondLines[$i]) === true) { |
|
228 | $secondLineText = $secondLines[$i]; |
|
229 | } else { |
|
230 | $secondLineText = ''; |
|
231 | } |
|
232 | ||
233 | echo '| '; |
|
234 | echo $firstLineText.str_repeat(' ', (47 - strlen($firstLineText))); |
|
235 | echo '| '; |
|
236 | echo $secondLineText.str_repeat(' ', (48 - strlen($secondLineText))); |
|
237 | echo '|'.PHP_EOL; |
|
238 | }//end for |
|
239 | ||
240 | echo str_repeat('-', 100).PHP_EOL.PHP_EOL; |
|
241 |