Skip to content

Instantly share code, notes, and snippets.

@jbdelhommeau
Last active September 16, 2019 09:34
Show Gist options
  • Save jbdelhommeau/f9d0f1a22f380f688c858cda73f3fd35 to your computer and use it in GitHub Desktop.
Save jbdelhommeau/f9d0f1a22f380f688c858cda73f3fd35 to your computer and use it in GitHub Desktop.
Fix Php cs fixer with phpstorm Files > Settings > Tools > File Watchers > Import
<TaskOptions>
<TaskOptions>
<option name="arguments" value="fix --path-mode=intersection --using-cache=no $FilePathRelativeToProjectRoot$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" />
<option name="exitCodeBehavior" value="ERROR" />
<option name="fileExtension" value="php" />
<option name="immediateSync" value="false" />
<option name="name" value="Php cs fixer" />
<option name="output" value="$FilePathRelativeToProjectRoot$" />
<option name="outputFilters">
<array />
</option>
<option name="outputFromStdout" value="false" />
<option name="program" value="$ProjectFileDir$/vendor/bin/php-cs-fixer" />
<option name="runOnExternalChanges" value="false" />
<option name="scopeName" value="Project Files" />
<option name="trackOnlyRoot" value="false" />
<option name="workingDir" value="$ProjectFileDir$" />
<envs />
</TaskOptions>
</TaskOptions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment