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
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ <h1 class="title_header">
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
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 in the PSR-1, PSR-2, etc.,
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
57
or other community driven ones like the Symfony one.
58
58
You can <strong>also</strong> define your (team’s) style through configuration.</p>
59
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)
@@ -78,9 +78,9 @@ <h2>Documentation<a class="headerlink" href="#documentation" title="Permalink to
78
78
<h3>Installation<aclass="headerlink" href="#installation" title="Permalink to this heading">¶</a></h3>
79
79
<p>The recommended way to install PHP CS Fixer is to use
<p>For more details and other installation methods, see <aclass="reference internal" href="doc/installation.html"><spanclass="doc">installation instructions</span></a>.</p>
@@ -89,7 +89,7 @@ <h3>Installation<a class="headerlink" href="#installation" title="Permalink to t
89
89
<h3>Run with Docker<aclass="headerlink" href="#run-with-docker" title="Permalink to this heading">¶</a></h3>
90
90
<p>PHP CS Fixer can be run in a Docker container.</p>
91
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>
@@ -103,7 +103,7 @@ <h3>Run with Docker<a class="headerlink" href="#run-with-docker" title="Permalin
103
103
<h3>Usage<aclass="headerlink" href="#usage" title="Permalink to this heading">¶</a></h3>
104
104
<p>Assuming you installed PHP CS Fixer as instructed above, you can run
105
105
the following command to fix the files PHP files in the <codeclass="docutils literal notranslate"><spanclass="pre">src</span></code> directory:</p>
<p>See <aclass="reference internal" href="doc/usage.html"><spanclass="doc">usage</span></a>, list of <aclass="reference internal" href="doc/rules/index.html"><spanclass="doc">built-in rules</span></a>, list of <aclass="reference internal" href="doc/ruleSets/index.html"><spanclass="doc">rule sets</span></a> and <aclass="reference internal" href="doc/config.html"><spanclass="doc">configuration file</span></a> documentation for more
0 commit comments