11<?php
22
33/**
4- * PHP Code Style Fixer (config created for version 2.16.1 (Yellow Bird)).
4+ * PHP Code Style Fixer (config created for version 2.16.4 (Yellow Bird)).
55 *
66 * Use one of the following console commands to just see the
77 * changes that will be made.
@@ -119,7 +119,7 @@ $rules = [
119119 *
120120 * Risky!
121121 * Risky as new docblocks might mean more, e.g. a Doctrine entity
122- * might have a new column in database
122+ * might have a new column in database.
123123 */
124124 'comment_to_phpdoc ' => [
125125 'ignored_tags ' => [
@@ -238,6 +238,7 @@ $rules = [
238238 'iconv ' ,
239239 'mime_content_type ' ,
240240 'rename ' ,
241+ 'rmdir ' ,
241242 'unlink ' ,
242243 ],
243244 ],
@@ -283,7 +284,7 @@ $rules = [
283284 * - Explicit syntax allows word concatenation inside strings, e.g.
284285 * `"${var}IsAVar"`, implicit doesn't
285286 * - Explicit syntax is easier to detect for IDE/editors and
286- * therefore has colors/hightlight with higher contrast, which is
287+ * therefore has colors/highlight with higher contrast, which is
287288 * easier to read
288289 * Backtick operator is skipped because it is harder to handle; you
289290 * can use `backtick_to_shell_exec` fixer to normalize backticks to
@@ -327,7 +328,7 @@ $rules = [
327328 * want to override a method, use the Template method pattern.
328329 *
329330 * Risky!
330- * Risky when overriding `public` methods of `abstract` classes
331+ * Risky when overriding `public` methods of `abstract` classes.
331332 */
332333 'final_public_method_for_abstract_class ' => false ,
333334
@@ -725,8 +726,8 @@ $rules = [
725726 'no_superfluous_elseif ' => true ,
726727
727728 /*
728- * Removes `@param` and `@return ` tags that don't provide any useful
729- * information.
729+ * Removes `@param`, `@return` and `@var ` tags that don't provide
730+ * any useful information.
730731 */
731732 'no_superfluous_phpdoc_tags ' => false ,
732733
@@ -751,7 +752,13 @@ $rules = [
751752 */
752753 'no_unneeded_curly_braces ' => true ,
753754
754- // A final class must not have final methods.
755+ /*
756+ * A `final` class must not have `final` methods and `private`
757+ * methods must not be `final`.
758+ *
759+ * Risky!
760+ * Risky when child class overrides a `private` method.
761+ */
755762 'no_unneeded_final_method ' => true ,
756763
757764 /*
@@ -1140,7 +1147,7 @@ $rules = [
11401147 * adjusts accordingly the function signature. Requires PHP >= 7.0.
11411148 *
11421149 * Risky!
1143- * [1] This rule is EXPERIMENTAL and is not covered with backward
1150+ * This rule is EXPERIMENTAL and [1] is not covered with backward
11441151 * compatibility promise. [2] `@param` annotation is mandatory for
11451152 * the fixer to make changes, signatures of methods without it (no
11461153 * docblock, inheritdocs) will not be fixed. [3] Manual actions are
@@ -1153,7 +1160,7 @@ $rules = [
11531160 * adjusts accordingly the function signature. Requires PHP >= 7.0.
11541161 *
11551162 * Risky!
1156- * [1] This rule is EXPERIMENTAL and is not covered with backward
1163+ * This rule is EXPERIMENTAL and [1] is not covered with backward
11571164 * compatibility promise. [2] `@return` annotation is mandatory for
11581165 * the fixer to make changes, signatures of methods without it (no
11591166 * docblock, inheritdocs) will not be fixed. [3] Manual actions are
@@ -1190,8 +1197,8 @@ $rules = [
11901197 'phpdoc_var_annotation_correct_order ' => true ,
11911198
11921199 /*
1193- * `@var` and `@type` annotations should not contain the variable
1194- * name.
1200+ * `@var` and `@type` annotations of classy properties should not
1201+ * contain the name.
11951202 */
11961203 'phpdoc_var_without_name ' => false ,
11971204
@@ -1366,7 +1373,7 @@ $rules = [
13661373 * `static`.
13671374 *
13681375 * Risky!
1369- * Risky when using " ->bindTo" on lambdas without referencing to
1376+ * Risky when using ` ->bindTo` on lambdas without referencing to
13701377 * `$this`.
13711378 */
13721379 'static_lambda ' => true ,
@@ -1464,12 +1471,14 @@ $rules = [
14641471
14651472if (\PHP_SAPI === 'cli ' && !class_exists (\PhpCsFixer \Config::class)) {
14661473 $ binFixer = __DIR__ . '/vendor/bin/php-cs-fixer ' ;
1474+
14671475 if (!is_file ($ binFixer )) {
14681476 $ binFixer = 'php-cs-fixer ' ;
14691477 }
1470- $ dryRun = !\in_array ('--force ' , $ _SERVER ['argv ' ], true );
1478+ $ dryRun = !in_array ('--force ' , $ _SERVER ['argv ' ], true );
1479+
1480+ $ command = escapeshellarg ($ binFixer ) . ' fix --config ' . escapeshellarg (__FILE__ ) . ' --diff-format udiff --ansi -vv ' ;
14711481
1472- $ command = escapeshellarg ($ binFixer ) . ' fix --config ' . escapeshellarg (__FILE__ ) . ' --diff-format udiff --ansi ' ;
14731482 if ($ dryRun ) {
14741483 $ command .= ' --dry-run ' ;
14751484 }
0 commit comments