Giter Club home page Giter Club logo

Comments (4)

Wirone avatar Wirone commented on June 12, 2024 1

@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.

sebastianbergmann avatar sebastianbergmann commented on June 12, 2024

I am also seeing this in PHPUnit's code base.

from php-cs-fixer.

kenjis avatar kenjis commented on June 12, 2024

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.

ffouillet avatar ffouillet commented on June 12, 2024

Hi ! Got the same issue as described after upgrading to 3.47.0

from php-cs-fixer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.