Skip to content

Instantly share code, notes, and snippets.

@mosbth
Created August 7, 2017 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mosbth/92399c5108c018ef582a56fd19f3e711 to your computer and use it in GitHub Desktop.
Save mosbth/92399c5108c018ef582a56fd19f3e711 to your computer and use it in GitHub Desktop.
---> Prepare for tests and build 
[ -d .bin ] || mkdir .bin
[ -d build ] || mkdir build
rm -rf build/*
---> Codestyle for PHP. 
.bin/phpcs --standard=.phpcs.xml | tee build/phpcs
FILE: /home/mos/dbwebb-kurser/oophp/me/anax-lite/view/webshop/edit.php
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
120 | ERROR | [x] Closing brace indented incorrectly; expected 12 spaces, found 0
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------
FILE: /home/mos/dbwebb-kurser/oophp/me/anax-lite/view/default/block.php
---------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------
39 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found 0
45 | ERROR | [x] Closing brace indented incorrectly; expected 4 spaces, found 0
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------
Time: 1.04 secs; Memory: 9.25Mb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment