Comments (4)
@wadakatu it seems like the problem is with the same operator used multiple times in the same line. The amount of spaces between the last =>
is the same as the amount of spaces between the first =>
. It should determine spaces around each operator and not mix it. It's 4am here, time to sleep 😴.
from php-cs-fixer.
I am also seeing this in PHPUnit's code base.
from php-cs-fixer.
It seems this does not respect comments.
--- /home/runner/work/translations/translations/Language/el/Time.php
+++ /home/runner/work/translations/translations/Language/el/Time.php
@@ -18,13 +18,13 @@
'invalidHours' => 'Οι ώρες πρέπει να είναι μεταξύ 0 και 23. Δόθηκε: {0}', // 'Hours must be between 0 and 23. Given: {0}',
'invalidMinutes' => 'Τα λεπτά πρέπει να είναι μεταξύ 0 και 59. Δόθηκε: {0}', // 'Minutes must be between 0 and 59. Given: {0}',
'invalidSeconds' => 'Τα δευτερόλεπτα πρέπει να είναι μεταξύ 0 και 59. Δόθηκε: {0}', // 'Seconds must be between 0 and 59. Given: {0}',
- 'years' => '{0, plural, =1{# έτος} other{# έτη}}', // '{0, plural, =1{# year} other{# years}}',
- 'months' => '{0, plural, =1{# μήνας} other{# μήνες}}', // '{0, plural, =1{# month} other{# months}}',
- 'weeks' => '{0, plural, =1{# εβδομάδα} other{# εβδομάδες}}', // '{0, plural, =1{# week} other{# weeks}}',
- 'days' => '{0, plural, =1{# ημέρα} other{# ημέρες}}', // '{0, plural, =1{# day} other{# days}}',
- 'hours' => '{0, plural, =1{# ώρα} other{# ώρες}}', // '{0, plural, =1{# hour} other{# hours}}',
- 'minutes' => '{0, plural, =1{# λεπτό} other{# λεπτά}}', // '{0, plural, =1{# minute} other{# minutes}}',
- 'seconds' => '{0, plural, =1{# δευτερόλεπτο} other{# δευτερόλεπτα}}', // '{0, plural, =1{# second} other{# seconds}}',
+ 'years' => '{0, plural, =1{# έτος} other{# έτη}}', // '{0, plural, =1{# year} other{# years}}',
+ 'months' => '{0, plural, =1{# μήνας} other{# μήνες}}', // '{0, plural, =1{# month} other{# months}}',
+ 'weeks' => '{0, plural, =1{# εβδομάδα} other{# εβδομάδες}}', // '{0, plural, =1{# week} other{# weeks}}',
+ 'days' => '{0, plural, =1{# ημέρα} other{# ημέρες}}', // '{0, plural, =1{# day} other{# days}}',
+ 'hours' => '{0, plural, =1{# ώρα} other{# ώρες}}', // '{0, plural, =1{# hour} other{# hours}}',
+ 'minutes' => '{0, plural, =1{# λεπτό} other{# λεπτά}}', // '{0, plural, =1{# minute} other{# minutes}}',
+ 'seconds' => '{0, plural, =1{# δευτερόλεπτο} other{# δευτερόλεπτα}}', // '{0, plural, =1{# second} other{# seconds}}',
'ago' => '{0} πίσω', // '{0} ago',
'inFuture' => 'σε {0}', // 'in {0}',
'yesterday' => 'Εχθές', // 'Yesterday',
----------- end diff -----------
from php-cs-fixer.
Hi ! Got the same issue as described after upgrading to 3.47.0
from php-cs-fixer.
Related Issues (20)
- Problem with ctrl+C signal (does not stop the command) HOT 4
- Rule nullable_type_declaration_for_default_null_value should remove default value on non-optional arguments HOT 5
- Rule request to avoid breaking #region comments HOT 1
- https://cs.symfony.com/doc/installation.html website not in line with latest version HOT 1
- `?xxx` to `xxx|null` for phpdoc fixer HOT 1
- Method chaining must be fully multiline, with the first item on a new line HOT 1
- Add `general_attribute_remove` similar to `general_phpdoc_annotation_remove`
- Wrong type annotation in Config HOT 6
- Analyzer/Analysis/* - constructor shall not be part of BC promise
- `numeric_literal_separator` converts floats to ints
- Test class links in web are broken HOT 1
- `/doc/rules/index.rst` fails to render on GitHub HOT 6
- Make `single_line_empty_body` fix control structures HOT 10
- Incompatible with phpunit 11 HOT 1
- `no_useless_concat_operator` rule may break code
- Identation reapplied by each pass/rerun HOT 3
- Convert `array<V>` phpdoc to `array<array-key, V>` HOT 4
- statement_indentation with stick_comment_to_next_continuous_control_statement isn't honored? HOT 2
- Backtrack limit exhausted HOT 3
- `method_argument_space`: allow separating arguments with empty lines
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-cs-fixer.