Skip to content

Commit c1e2265

Browse files
author
github-actions
committed
bump to v3.91.1
1 parent 4bda482 commit c1e2265

File tree

406 files changed

+2751
-1708
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

406 files changed

+2751
-1708
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<div class="clearfix">
3232
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
3333
<h1 class="title_header">
34-
<strong>Folding Bike (v3.91.0)</strong> edition
34+
<strong>Folding Bike (v3.91.1)</strong> edition
3535
</h1>
3636
</div>
3737
</div>

doc/config.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.91.0)</strong> edition
30+
<strong>Folding Bike (v3.91.1)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -61,7 +61,7 @@ <h2>No config<a class="headerlink" href="#no-config" title="Permalink to this he
6161
</div>
6262
<p>While it is possible to provide command line options to configure rules,
6363
it’s recommended to save the project configuration in a <code class="docutils literal notranslate"><span class="pre">.php-cs-fixer.dist.php</span></code> file in the root directory of your project.
64-
The file must return an instance of <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/ConfigInterface.php">PhpCsFixer\ConfigInterface</a>,
64+
The file must return an instance of <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/ConfigInterface.php">PhpCsFixer\ConfigInterface</a>,
6565
which lets you configure the rules, finder (the files and directories that
6666
need to be analysed), select output format and even configure path to <code class="docutils literal notranslate"><span class="pre">PHP</span></code>.</p>
6767
<p>You may also create <code class="docutils literal notranslate"><span class="pre">.php-cs-fixer.php</span></code> file, which is

doc/cookbook_fixers.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.91.0)</strong> edition
30+
<strong>Folding Bike (v3.91.1)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -66,8 +66,8 @@ <h2>Background<a class="headerlink" href="#background" title="Permalink to this
6666
discouraged - it is meant only to give more people more chance to
6767
contribute, and to detect bugs (<a class="reference external" href="https://en.wikipedia.org/wiki/Linus%27s_Law">Linus’s Law</a>).</p>
6868
<p>If possible, try to get acquainted with the public interface for the
69-
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/Tokenizer/Tokens.php">PhpCsFixer\Tokenizer\Tokens</a> and
70-
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/Tokenizer/Token.php">PhpCsFixer\Tokenizer\Token</a> classes.</p>
69+
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/Tokenizer/Tokens.php">PhpCsFixer\Tokenizer\Tokens</a> and
70+
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/Tokenizer/Token.php">PhpCsFixer\Tokenizer\Token</a> classes.</p>
7171
</section>
7272
<section id="assumptions">
7373
<h2>Assumptions<a class="headerlink" href="#assumptions" title="Permalink to this heading"></a></h2>
@@ -81,8 +81,8 @@ <h2>Assumptions<a class="headerlink" href="#assumptions" title="Permalink to thi
8181
</ul>
8282
<p>In case you want to create a custom fixer for your own use, you can
8383
follow this guide as well, but you will need to apply some changes on the go,
84-
for example use <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>
85-
instead of <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/AbstractFixer.php">PhpCsFixer\AbstractFixer</a> (which is internal
84+
for example use <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>
85+
instead of <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/AbstractFixer.php">PhpCsFixer\AbstractFixer</a> (which is internal
8686
and not covered with BC promise).</p>
8787
</section>
8888
<section id="step-by-step">
@@ -137,8 +137,8 @@ <h3>Step 1 - Creating files<a class="headerlink" href="#step-1-creating-files" t
137137
</pre></div>
138138
</div>
139139
<p>Note how the class and file name match. Also keep in mind that all
140-
fixers must implement <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>. In this case, the fixer is
141-
inheriting from <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/AbstractFixer.php">PhpCsFixer\AbstractFixer</a>, which fulfills the interface with some
140+
fixers must implement <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>. In this case, the fixer is
141+
inheriting from <a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/AbstractFixer.php">PhpCsFixer\AbstractFixer</a>, which fulfills the interface with some
142142
default behaviour.</p>
143143
<p>Now let us create the test file at
144144
<code class="docutils literal notranslate"><span class="pre">tests/Fixer/Comment/RemoveCommentsFixerTest.php</span></code>. Put this content inside:</p>
@@ -295,7 +295,7 @@ <h3>Step 3 - Implement your solution<a class="headerlink" href="#step-3-implemen
295295
<p>Next, we need to update the documentation.
296296
Fortunately, PHP CS Fixer can help you here.
297297
Execute the following command in your command shell:</p>
298-
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">php dev-tools/doc.php</span>
298+
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">composer docs</span>
299299
</pre></div>
300300
</div>
301301
<p>Next, we must filter what type of tokens we want to fix. Here, we are interested in code that contains <code class="docutils literal notranslate"><span class="pre">T_COMMENT</span></code> tokens:</p>

doc/custom_rules.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.91.0)</strong> edition
30+
<strong>Folding Bike (v3.91.1)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -55,7 +55,7 @@ <h1>Creating custom rules<a class="headerlink" href="#creating-custom-rules" tit
5555
<p>If you need to enforce some specific code style rules, you can implement your
5656
own fixers. There is a <a class="reference internal" href="cookbook_fixers.html"><span class="doc">cookbook</span></a> with basic instructions on how to build a new fixer.</p>
5757
<p>For each rule you want to add, create a class that implements
58-
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>.
58+
<a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/Fixer/FixerInterface.php">PhpCsFixer\Fixer\FixerInterface</a>.
5959
Note that there is a specific constraint
6060
regarding custom rules names: they must match the pattern
6161
<code class="docutils literal notranslate"><span class="pre">/^[A-Z][a-zA-Z0-9]*\/[a-z][a-z0-9_]*$/</span></code>.</p>
@@ -78,9 +78,9 @@ <h1>Creating custom rules<a class="headerlink" href="#creating-custom-rules" tit
7878
</div>
7979
<p>There are several interfaces that your fixers can also implement if needed:</p>
8080
<ul class="simple">
81-
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/Fixer/WhitespacesAwareFixerInterface.php">PhpCsFixer\Fixer\WhitespacesAwareFixerInterface</a>: for fixers that need to know the configured indentation and line endings;</p></li>
82-
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/Fixer/ConfigurableFixerInterface.php">PhpCsFixer\Fixer\ConfigurableFixerInterface</a>: to create a configurable fixer;</p></li>
83-
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.0/src/Fixer/DeprecatedFixerInterface.php">PhpCsFixer\Fixer\DeprecatedFixerInterface</a>: to deprecate a fixer.</p></li>
81+
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/Fixer/WhitespacesAwareFixerInterface.php">PhpCsFixer\Fixer\WhitespacesAwareFixerInterface</a>: for fixers that need to know the configured indentation and line endings;</p></li>
82+
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/Fixer/ConfigurableFixerInterface.php">PhpCsFixer\Fixer\ConfigurableFixerInterface</a>: to create a configurable fixer;</p></li>
83+
<li><p><a class="reference external" href="https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.91.1/src/Fixer/DeprecatedFixerInterface.php">PhpCsFixer\Fixer\DeprecatedFixerInterface</a>: to deprecate a fixer.</p></li>
8484
</ul>
8585
</section>
8686

doc/installation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.91.0)</strong> edition
30+
<strong>Folding Bike (v3.91.1)</strong> edition
3131
</h1>
3232
</div>
3333
</div>

doc/ruleSets/Auto.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.91.0)</strong> edition
30+
<strong>Folding Bike (v3.91.1)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -55,9 +55,10 @@ <h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;a
5555
<p>Default rule set. Applies newest <code class="docutils literal notranslate"><span class="pre">PER-CS</span></code> and optimizations for <code class="docutils literal notranslate"><span class="pre">PHP</span></code>, based on project’s <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file.</p>
5656
<section id="warning">
5757
<h2>Warning<a class="headerlink" href="#warning" title="Permalink to this heading"></a></h2>
58-
<section id="automatic-rule-set">
59-
<h3>Automatic rule set<a class="headerlink" href="#automatic-rule-set" title="Permalink to this heading"></a></h3>
60-
<p>⚡ This rule is automatic: it’s definition depends on your project, eg “composer.json” file.</p>
58+
<section id="this-rule-set-is-automatic">
59+
<h3>This rule set is AUTOMATIC<a class="headerlink" href="#this-rule-set-is-automatic" title="Permalink to this heading"></a></h3>
60+
<p>⚡ This rule is automatic: it’s definition depends on your project, eg
61+
“composer.json” file.</p>
6162
</section>
6263
</section>
6364
<section id="rules-candidates">

doc/ruleSets/AutoPHPMigration.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.91.0)</strong> edition
30+
<strong>Folding Bike (v3.91.1)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -55,9 +55,10 @@ <h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;a
5555
<p>Migration rules to improve code towards the minimum <code class="docutils literal notranslate"><span class="pre">PHP</span></code> supported by your project (taken from <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file).</p>
5656
<section id="warning">
5757
<h2>Warning<a class="headerlink" href="#warning" title="Permalink to this heading"></a></h2>
58-
<section id="automatic-rule-set">
59-
<h3>Automatic rule set<a class="headerlink" href="#automatic-rule-set" title="Permalink to this heading"></a></h3>
60-
<p>⚡ This rule is automatic: it’s definition depends on your project, eg “composer.json” file.</p>
58+
<section id="this-rule-set-is-automatic">
59+
<h3>This rule set is AUTOMATIC<a class="headerlink" href="#this-rule-set-is-automatic" title="Permalink to this heading"></a></h3>
60+
<p>⚡ This rule is automatic: it’s definition depends on your project, eg
61+
“composer.json” file.</p>
6162
</section>
6263
</section>
6364
<section id="rules-candidates">

doc/ruleSets/AutoPHPMigrationRisky.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.91.0)</strong> edition
30+
<strong>Folding Bike (v3.91.1)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -55,13 +55,16 @@ <h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;a
5555
<p>Migration rules to improve code towards the minimum <code class="docutils literal notranslate"><span class="pre">PHP</span></code> supported by your project (taken from <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file).</p>
5656
<section id="warnings">
5757
<h2>Warnings<a class="headerlink" href="#warnings" title="Permalink to this heading"></a></h2>
58-
<section id="this-set-contains-rules-that-are-risky">
59-
<h3>This set contains rules that are risky<a class="headerlink" href="#this-set-contains-rules-that-are-risky" title="Permalink to this heading"></a></h3>
60-
<p>Using this rule set may lead to changes in your code’s logic and behaviour. Use it with caution and review changes before incorporating them into your code base.</p>
58+
<section id="this-rule-set-is-risky">
59+
<h3>This rule set is RISKY<a class="headerlink" href="#this-rule-set-is-risky" title="Permalink to this heading"></a></h3>
60+
<p>This set contains rules that are risky. Using it may lead to changes in your
61+
code’s logic and behaviour. Use it with caution and review changes before
62+
incorporating them into your code base.</p>
6163
</section>
62-
<section id="automatic-rule-set">
63-
<h3>Automatic rule set<a class="headerlink" href="#automatic-rule-set" title="Permalink to this heading"></a></h3>
64-
<p>⚡ This rule is automatic: it’s definition depends on your project, eg “composer.json” file.</p>
64+
<section id="this-rule-set-is-automatic">
65+
<h3>This rule set is AUTOMATIC<a class="headerlink" href="#this-rule-set-is-automatic" title="Permalink to this heading"></a></h3>
66+
<p>⚡ This rule is automatic: it’s definition depends on your project, eg
67+
“composer.json” file.</p>
6568
</section>
6669
</section>
6770
<section id="rules-candidates">

doc/ruleSets/AutoPHPUnitMigrationRisky.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.91.0)</strong> edition
30+
<strong>Folding Bike (v3.91.1)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -55,13 +55,16 @@ <h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;a
5555
<p>Migration rules to improve test code towards the minimum <code class="docutils literal notranslate"><span class="pre">PHPUnit</span></code> supported by your project (taken from <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file).</p>
5656
<section id="warnings">
5757
<h2>Warnings<a class="headerlink" href="#warnings" title="Permalink to this heading"></a></h2>
58-
<section id="this-set-contains-rules-that-are-risky">
59-
<h3>This set contains rules that are risky<a class="headerlink" href="#this-set-contains-rules-that-are-risky" title="Permalink to this heading"></a></h3>
60-
<p>Using this rule set may lead to changes in your code’s logic and behaviour. Use it with caution and review changes before incorporating them into your code base.</p>
58+
<section id="this-rule-set-is-risky">
59+
<h3>This rule set is RISKY<a class="headerlink" href="#this-rule-set-is-risky" title="Permalink to this heading"></a></h3>
60+
<p>This set contains rules that are risky. Using it may lead to changes in your
61+
code’s logic and behaviour. Use it with caution and review changes before
62+
incorporating them into your code base.</p>
6163
</section>
62-
<section id="automatic-rule-set">
63-
<h3>Automatic rule set<a class="headerlink" href="#automatic-rule-set" title="Permalink to this heading"></a></h3>
64-
<p>⚡ This rule is automatic: it’s definition depends on your project, eg “composer.json” file.</p>
64+
<section id="this-rule-set-is-automatic">
65+
<h3>This rule set is AUTOMATIC<a class="headerlink" href="#this-rule-set-is-automatic" title="Permalink to this heading"></a></h3>
66+
<p>⚡ This rule is automatic: it’s definition depends on your project, eg
67+
“composer.json” file.</p>
6568
</section>
6669
</section>
6770
<section id="rules-candidates">

doc/ruleSets/AutoRisky.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="clearfix">
2828
<div class="logo_header"><a href="/">PHP Coding Standards Fixer</a></div>
2929
<h1 class="title_header">
30-
<strong>Folding Bike (v3.91.0)</strong> edition
30+
<strong>Folding Bike (v3.91.1)</strong> edition
3131
</h1>
3232
</div>
3333
</div>
@@ -55,13 +55,16 @@ <h1>Rule set <code class="docutils literal notranslate"><span class="pre">&#64;a
5555
<p>Default (risky) rule set. Applies newest <code class="docutils literal notranslate"><span class="pre">PER-CS</span></code> and optimizations for <code class="docutils literal notranslate"><span class="pre">PHP</span></code> and <code class="docutils literal notranslate"><span class="pre">PHPUnit</span></code>, based on project’s <code class="docutils literal notranslate"><span class="pre">composer.json</span></code> file.</p>
5656
<section id="warnings">
5757
<h2>Warnings<a class="headerlink" href="#warnings" title="Permalink to this heading"></a></h2>
58-
<section id="this-set-contains-rules-that-are-risky">
59-
<h3>This set contains rules that are risky<a class="headerlink" href="#this-set-contains-rules-that-are-risky" title="Permalink to this heading"></a></h3>
60-
<p>Using this rule set may lead to changes in your code’s logic and behaviour. Use it with caution and review changes before incorporating them into your code base.</p>
58+
<section id="this-rule-set-is-risky">
59+
<h3>This rule set is RISKY<a class="headerlink" href="#this-rule-set-is-risky" title="Permalink to this heading"></a></h3>
60+
<p>This set contains rules that are risky. Using it may lead to changes in your
61+
code’s logic and behaviour. Use it with caution and review changes before
62+
incorporating them into your code base.</p>
6163
</section>
62-
<section id="automatic-rule-set">
63-
<h3>Automatic rule set<a class="headerlink" href="#automatic-rule-set" title="Permalink to this heading"></a></h3>
64-
<p>⚡ This rule is automatic: it’s definition depends on your project, eg “composer.json” file.</p>
64+
<section id="this-rule-set-is-automatic">
65+
<h3>This rule set is AUTOMATIC<a class="headerlink" href="#this-rule-set-is-automatic" title="Permalink to this heading"></a></h3>
66+
<p>⚡ This rule is automatic: it’s definition depends on your project, eg
67+
“composer.json” file.</p>
6568
</section>
6669
</section>
6770
<section id="rules-candidates">

0 commit comments

Comments
 (0)