You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If you are using [`Makefile`](https://www.gnu.org/software/make/manual/make.html#Introduction), create a `Makefile` with a `lint-php` and `lint-diff` targets:
107
+
108
+
```diff
109
+
+APP_RUNNER ?= php
110
+
+APP_COMPOSER ?= $(APP_RUNNER) composer
111
+
+
112
+
+prepare:
113
+
+ mkdir -p .build/php-cs-fixer
114
+
+.PHONY: prepare
115
+
116
+
+lint-php: prepare ## Fixes code to follow coding standards using php-cs-fixer
117
+
+ $(APP_COMPOSER) cs:fix
118
+
+.PHONY: lint-php
119
+
120
+
+lint-diff: prepare ## Runs php-cs-fixer in dry-run mode and shows diff which will by applied
121
+
+ $(APP_COMPOSER) cs:diff
122
+
+.PHONY: lint-diff
123
+
```
124
+
125
+
Or, you can check for one of our pre-configured `Makefile` from any of these repositories:
0 commit comments