Skip to content

Commit 116e125

Browse files
author
github-actions
committed
bump to v3.86.0
1 parent 0e430a3 commit 116e125

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1 class="title_header">
5353
<section id="php-coding-standards-fixer">
5454
<h1>PHP Coding Standards Fixer<a class="headerlink" href="#php-coding-standards-fixer" title="Permalink to this heading"></a></h1>
5555
<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 <a class="reference external" href="https://www.php-fig.org/per/coding-style/">PER Coding Style</a>,
5757
or other community driven ones like the Symfony one.
5858
You can <strong>also</strong> define your (team’s) style through configuration.</p>
5959
<p>It can modernize your code (like converting the <code class="docutils literal notranslate"><span class="pre">pow</span></code> function to the <code class="docutils literal notranslate"><span class="pre">**</span></code> operator on PHP 5.6)
@@ -78,9 +78,9 @@ <h2>Documentation<a class="headerlink" href="#documentation" title="Permalink to
7878
<h3>Installation<a class="headerlink" href="#installation" title="Permalink to this heading"></a></h3>
7979
<p>The recommended way to install PHP CS Fixer is to use
8080
<a class="reference external" href="https://getcomposer.org/download/">Composer</a>:</p>
81-
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>composer<span class="w"> </span>require<span class="w"> </span>--dev<span class="w"> </span>friendsofphp/php-cs-fixer
82-
<span class="gp">$ </span><span class="c1">## or when facing conflicts in dependencies:</span>
83-
<span class="gp">$ </span>composer<span class="w"> </span>require<span class="w"> </span>--dev<span class="w"> </span>php-cs-fixer/shim
81+
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>composer<span class="w"> </span>require<span class="w"> </span>--dev<span class="w"> </span>friendsofphp/php-cs-fixer
82+
$<span class="w"> </span><span class="c1">## or when facing conflicts in dependencies:</span>
83+
$<span class="w"> </span>composer<span class="w"> </span>require<span class="w"> </span>--dev<span class="w"> </span>php-cs-fixer/shim
8484
</pre></div>
8585
</div>
8686
<p>For more details and other installation methods, see <a class="reference internal" href="doc/installation.html"><span class="doc">installation instructions</span></a>.</p>
@@ -89,7 +89,7 @@ <h3>Installation<a class="headerlink" href="#installation" title="Permalink to t
8989
<h3>Run with Docker<a class="headerlink" href="#run-with-docker" title="Permalink to this heading"></a></h3>
9090
<p>PHP CS Fixer can be run in a Docker container.</p>
9191
<p>You can use pre-built Docker images to run <code class="docutils literal notranslate"><span class="pre">php-cs-fixer</span></code>.</p>
92-
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">docker run -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix src</span>
92+
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>docker<span class="w"> </span>run<span class="w"> </span>-v<span class="w"> </span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>:/code<span class="w"> </span>ghcr.io/php-cs-fixer/php-cs-fixer:<span class="si">${</span><span class="nv">FIXER_VERSION</span><span class="k">:-</span><span class="nv">3</span><span class="p">-php8.3</span><span class="si">}</span><span class="w"> </span>fix<span class="w"> </span>src
9393
</pre></div>
9494
</div>
9595
<p><code class="docutils literal notranslate"><span class="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 <code class="docutils literal notranslate"><span class="pre">&lt;php-cs-fixer-version&gt;-php&lt;php-version&gt;</span></code>. For example:</p>
@@ -103,7 +103,7 @@ <h3>Run with Docker<a class="headerlink" href="#run-with-docker" title="Permalin
103103
<h3>Usage<a class="headerlink" href="#usage" title="Permalink to this heading"></a></h3>
104104
<p>Assuming you installed PHP CS Fixer as instructed above, you can run
105105
the following command to fix the files PHP files in the <code class="docutils literal notranslate"><span class="pre">src</span></code> directory:</p>
106-
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>./vendor/bin/php-cs-fixer<span class="w"> </span>fix<span class="w"> </span>src
106+
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>./vendor/bin/php-cs-fixer<span class="w"> </span>fix<span class="w"> </span>src
107107
</pre></div>
108108
</div>
109109
<p>See <a class="reference internal" href="doc/usage.html"><span class="doc">usage</span></a>, list of <a class="reference internal" href="doc/rules/index.html"><span class="doc">built-in rules</span></a>, list of <a class="reference internal" href="doc/ruleSets/index.html"><span class="doc">rule sets</span></a> and <a class="reference internal" href="doc/config.html"><span class="doc">configuration file</span></a> documentation for more

0 commit comments

Comments
 (0)