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:
106
+
- 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
107
108
108
```diff
109
109
+APP_RUNNER ?= php
110
110
+APP_COMPOSER ?= $(APP_RUNNER) composer
111
111
+
112
112
+prepare:
113
-
+mkdir -p .build/php-cs-fixer
113
+
+mkdir -p .build/php-cs-fixer
114
114
+.PHONY: prepare
115
115
116
116
+lint-php: prepare ## Fixes code to follow coding standards using php-cs-fixer
117
-
+ $(APP_COMPOSER) cs:fix
117
+
+ $(APP_COMPOSER) cs:fix
118
118
+.PHONY: lint-php
119
119
120
120
+lint-diff: prepare ## Runs php-cs-fixer in dry-run mode and shows diff which will by applied
121
-
+ $(APP_COMPOSER) cs:diff
121
+
+ $(APP_COMPOSER) cs:diff
122
122
+.PHONY: lint-diff
123
123
```
124
124
125
-
Or, you can check for one of our pre-configured `Makefile` from any of these repositories:
125
+
Or, you can check for one of our pre-configured `Makefile` from any of these repositories:
0 commit comments