Skip to content

Instantly share code, notes, and snippets.

@xtrasmal
Created August 2, 2018 10:51
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 xtrasmal/51e63969899d66ea2d2ad82834d13fa2 to your computer and use it in GitHub Desktop.
Save xtrasmal/51e63969899d66ea2d2ad82834d13fa2 to your computer and use it in GitHub Desktop.
PHP CS Fixer CLI
#!/bin/bash
PHP=`which php`
$PHP php-cs-fixer fix app --rules='{"@PSR2":true,"array_indentation": true,"array_syntax": {"syntax":"short"},"no_unused_imports": true,"object_operator_without_whitespace": true,"ordered_class_elements": {"sortAlgorithm": "none"},"ordered_imports": {"sortAlgorithm": "length"}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment