Skip to content

Instantly share code, notes, and snippets.

@joelhinz
Created October 16, 2018 15:41
Show Gist options
  • Save joelhinz/653657907c4f3ed70d984a11d6ffa858 to your computer and use it in GitHub Desktop.
Save joelhinz/653657907c4f3ed70d984a11d6ffa858 to your computer and use it in GitHub Desktop.
<?php
foreach ($this->lines as $line) {
if (!str_contains($line, ':')) {
$this->addError($line, 'No code found');
} else {
$this->convertLine($line);
}
}
foreach ($this->lines as $line) {
if (!str_contains($line, ':')) {
$this->addError($line, 'No code found');
continue;
}
$this->convertLine($line);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment