forked from remp2020/remp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
18 lines (12 loc) · 904 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /usr/bin/make
PHP_FOLDERS=app config
sniff:
../phpcs --standard=PSR2 ${PHP_FOLDERS} -n -p
sniff_fix:
../phpcbf --standard=PSR2 ${PHP_FOLDERS} -n
test:
vendor/bin/phpunit
fixcs:
php vendor/bin/php-cs-fixer fix ${PHP_FOLDERS} --fixers=short_tag,encoding,class_definition,function_declaration,elseif,eof_ending,lowercase_keywords,lowercase_constants,php_closing_tag,trailing_spaces,visibility,array_element_no_space_before_comma,array_element_white_space_after_comma,extra_empty_lines,duplicate_semicolon,self_accessor,single_blank_line_before_namespace,single_quote,unused_use,ordered_use,short_array_syntax,line_after_namespace,method_argument_space,no_trailing_whitespace_in_comment,blankline_after_open_tag,braces,indentation,multiple_use,single_line_after_imports,switch_case_semicolon_to_colon,switch_case_space
syntax:
find ${PHP_FOLDERS} -name "*.php" -print0 | xargs -0 -n1 -P8 php -l