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
Copy file name to clipboardExpand all lines: index.html
+13-33Lines changed: 13 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -52,24 +52,20 @@ <h1 class="title_header">
52
52
53
53
<sectionid="php-coding-standards-fixer">
54
54
<h1>PHP Coding Standards Fixer<aclass="headerlink" href="#php-coding-standards-fixer" title="Permalink to this heading">¶</a></h1>
55
-
<p>The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards;
56
-
whether you want to follow PHP coding standards as defined by <aclass="reference external" href="https://www.php-fig.org/per/coding-style/">PER Coding Style</a>,
57
-
or other community driven ones like the Symfony one.
58
-
You can <strong>also</strong> define your (team’s) style through configuration.</p>
59
-
<p>It can modernize your code (like converting the <codeclass="docutils literal notranslate"><spanclass="pre">pow</span></code> function to the <codeclass="docutils literal notranslate"><spanclass="pre">**</span></code> operator on PHP 5.6)
60
-
and (micro) optimize it.</p>
55
+
<p>The PHP Coding Standards Fixer (PHP CS Fixer) fixes your code to follow the standards.</p>
61
56
<p>If you are already using a linter to identify coding standards problems in your
62
57
code, you know that fixing them by hand is tedious, especially on large
63
-
projects. This tool does not only detect them, but also fixes them for you.</p>
58
+
projects. This tool not only detects them, but also fixes them for you.</p>
59
+
<p>PHP CS Fixer has built-in rule sets, whether you want to follow PHP coding standards as defined by <aclass="reference external" href="https://www.php-fig.org/per/coding-style/">PHP-FIG’s PER Coding Style</a>,
60
+
a wide community like the <aclass="reference external" href="https://symfony.com/doc/current/contributing/code/standards.html">Symfony</a>,
61
+
or <aclass="reference internal" href="doc/ruleSets/PhpCsFixer.html"><spanclass="doc">our opinionated one</span></a>.
62
+
You can <strong>also</strong> define your (team’s) style through the <aclass="reference internal" href="doc/config.html"><spanclass="doc">configuration file</span></a>.</p>
63
+
<p>PHP CS Fixer can not only unify the style of your code, but also help to modernize your codebase towards
<p>For more details and other installation methods, see <aclass="reference internal" href="doc/installation.html"><spanclass="doc">installation instructions</span></a>.</p>
87
-
</section>
88
-
<sectionid="run-with-docker">
89
-
<h3>Run with Docker<aclass="headerlink" href="#run-with-docker" title="Permalink to this heading">¶</a></h3>
90
-
<p>PHP CS Fixer can be run in a Docker container.</p>
91
-
<p>You can use pre-built Docker images to run <codeclass="docutils literal notranslate"><spanclass="pre">php-cs-fixer</span></code>.</p>
<p><codeclass="docutils literal notranslate"><spanclass="pre">$FIXER_VERSION</span></code> used in example above is an identifier of a release you want to use, which is based on Fixer and PHP versions combined. There are different tags for each Fixer’s SemVer level and PHP version with syntax <codeclass="docutils literal notranslate"><spanclass="pre"><php-cs-fixer-version>-php<php-version></span></code>. For example:</p>
<p>For more details and other installation methods (also with Docker or behind CI), see <aclass="reference internal" href="doc/installation.html"><spanclass="doc">installation instructions</span></a>.</p>
101
83
</section>
102
84
<sectionid="usage">
103
85
<h3>Usage<aclass="headerlink" href="#usage" title="Permalink to this heading">¶</a></h3>
Bug reports and ideas about new features are welcome there.</p>
112
+
<p>The PHP CS Fixer is maintained on GitHub at <aclass="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer">https://github.com/PHP-CS-Fixer/PHP-CS-Fixer</a>.
113
+
Contributions, bug reports and ideas about new features are welcome there.</p>
133
114
<p>You can reach us at <aclass="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/discussions">https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/discussions</a> about the
134
-
project, configuration, possible improvements, ideas and questions, please
135
-
visit us!</p>
115
+
project, configuration, possible improvements, ideas and questions.</p>
<h2>Who is behind the PHP Coding Standards Fixer?<aclass="headerlink" href="#who-is-behind-the-php-coding-standards-fixer" title="Permalink to this heading">¶</a></h2>
0 commit comments