Skip to content

Instantly share code, notes, and snippets.

@bobbykjack
Created July 1, 2021 10:57
Show Gist options
  • Save bobbykjack/a3dd315595ac6ed67f1de8e252675e7f to your computer and use it in GitHub Desktop.
Save bobbykjack/a3dd315595ac6ed67f1de8e252675e7f to your computer and use it in GitHub Desktop.
<?php
$line_number = 1;
while (($line = fgets(STDIN)) !== false) {
$result = check_line_length(trim($line), $line_number++, $opts);
echo cli_report("(standard input)", array($result), $opts);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment