Skip to content

Instantly share code, notes, and snippets.

@grocky
Last active August 29, 2015 14:21
Show Gist options
  • Save grocky/12a329b637a091584605 to your computer and use it in GitHub Desktop.
Save grocky/12a329b637a091584605 to your computer and use it in GitHub Desktop.
PSR-4 Conversion
for i in $(find . -name "*.php" -not -path "./vendor/*"); do
count=$(grep -Ec '(abstract )?(class|interface) [_A-Z][A-Za-z0-9]* ((extends|implements) [_A-Z][A-Za-z0-9]* )*{$' $i);
if [ $count -gt 1 ]; then
echo $i;
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment