[13.x] Apply Rector rules (remove low-impact rules)#60680
Draft
lucasmichot wants to merge 1 commit into
Draft
Conversation
|
Thanks for submitting a PR! Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface. Pull requests that are abandoned in draft may be closed due to inactivity. |
f64d872 to
ddb2ce2
Compare
shaedrich
reviewed
Jul 7, 2026
Comment on lines
+113
to
+129
| 'az', 'az_AZ', 'bo', 'bo_CN', 'bo_IN', 'dz', 'dz_BT', 'id', 'id_ID', 'ja', 'ja_JP', 'jv', 'ka', 'ka_GE', 'km', 'km_KH', 'kn', 'kn_IN', 'ko', 'ko_KR', 'ms', 'ms_MY', 'th', 'th_TH', 'tr', 'tr_CY', 'tr_TR', 'vi', 'vi_VN', 'zh', 'zh_CN', 'zh_HK', 'zh_SG', 'zh_TW' => 0, | ||
| 'af', 'af_ZA', 'bn', 'bn_BD', 'bn_IN', 'bg', 'bg_BG', 'ca', 'ca_AD', 'ca_ES', 'ca_FR', 'ca_IT', 'da', 'da_DK', 'de', 'de_AT', 'de_BE', 'de_CH', 'de_DE', 'de_LI', 'de_LU', 'el', 'el_CY', 'el_GR', 'en', 'en_AG', 'en_AU', 'en_BW', 'en_CA', 'en_DK', 'en_GB', 'en_HK', 'en_IE', 'en_IN', 'en_NG', 'en_NZ', 'en_PH', 'en_SG', 'en_US', 'en_ZA', 'en_ZM', 'en_ZW', 'eo', 'eo_US', 'es', 'es_AR', 'es_BO', 'es_CL', 'es_CO', 'es_CR', 'es_CU', 'es_DO', 'es_EC', 'es_ES', 'es_GT', 'es_HN', 'es_MX', 'es_NI', 'es_PA', 'es_PE', 'es_PR', 'es_PY', 'es_SV', 'es_US', 'es_UY', 'es_VE', 'et', 'et_EE', 'eu', 'eu_ES', 'eu_FR', 'fa', 'fa_IR', 'fi', 'fi_FI', 'fo', 'fo_FO', 'fur', 'fur_IT', 'fy', 'fy_DE', 'fy_NL', 'gl', 'gl_ES', 'gu', 'gu_IN', 'ha', 'ha_NG', 'he', 'he_IL', 'hu', 'hu_HU', 'is', 'is_IS', 'it', 'it_CH', 'it_IT', 'ku', 'ku_TR', 'lb', 'lb_LU', 'ml', 'ml_IN', 'mn', 'mn_MN', 'mr', 'mr_IN', 'nah', 'nb', 'nb_NO', 'ne', 'ne_NP', 'nl', 'nl_AW', 'nl_BE', 'nl_NL', 'nn', 'nn_NO', 'no', 'om', 'om_ET', 'om_KE', 'or', 'or_IN', 'pa', 'pa_IN', 'pa_PK', 'pap', 'pap_AN', 'pap_AW', 'pap_CW', 'ps', 'ps_AF', 'pt', 'pt_BR', 'pt_PT', 'so', 'so_DJ', 'so_ET', 'so_KE', 'so_SO', 'sq', 'sq_AL', 'sq_MK', 'sv', 'sv_FI', 'sv_SE', 'sw', 'sw_KE', 'sw_TZ', 'ta', 'ta_IN', 'ta_LK', 'te', 'te_IN', 'tk', 'tk_TM', 'ur', 'ur_IN', 'ur_PK', 'zu', 'zu_ZA' => ($number == 1) ? 0 : 1, | ||
| 'am', 'am_ET', 'bh', 'fil', 'fil_PH', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_FR', 'fr_LU', 'gun', 'hi', 'hi_IN', 'hy', 'hy_AM', 'ln', 'ln_CD', 'mg', 'mg_MG', 'nso', 'nso_ZA', 'ti', 'ti_ER', 'ti_ET', 'wa', 'wa_BE', 'xbr' => (($number == 0) || ($number == 1)) ? 0 : 1, | ||
| 'be', 'be_BY', 'bs', 'bs_BA', 'hr', 'hr_HR', 'ru', 'ru_RU', 'ru_UA', 'sr', 'sr_ME', 'sr_RS', 'uk', 'uk_UA' => (((int) $number % 10 == 1) && ((int) $number % 100 != 11)) ? 0 : ((((int) $number % 10 >= 2) && ((int) $number % 10 <= 4) && (((int) $number % 100 < 10) || ((int) $number % 100 >= 20))) ? 1 : 2), | ||
| 'cs', 'cs_CZ', 'sk', 'sk_SK' => ($number == 1) ? 0 : ((($number >= 2) && ($number <= 4)) ? 1 : 2), | ||
| 'ga', 'ga_IE' => ($number == 1) ? 0 : (($number == 2) ? 1 : 2), | ||
| 'lt', 'lt_LT' => (((int) $number % 10 == 1) && ((int) $number % 100 != 11)) ? 0 : ((((int) $number % 10 >= 2) && (((int) $number % 100 < 10) || ((int) $number % 100 >= 20))) ? 1 : 2), | ||
| 'sl', 'sl_SI' => ((int) $number % 100 == 1) ? 0 : (((int) $number % 100 == 2) ? 1 : ((((int) $number % 100 == 3) || ((int) $number % 100 == 4)) ? 2 : 3)), | ||
| 'mk', 'mk_MK' => ((int) $number % 10 == 1) ? 0 : 1, | ||
| 'mt', 'mt_MT' => ($number == 1) ? 0 : ((($number == 0) || (((int) $number % 100 > 1) && ((int) $number % 100 < 11))) ? 1 : ((((int) $number % 100 > 10) && ((int) $number % 100 < 20)) ? 2 : 3)), | ||
| 'lv', 'lv_LV' => ($number == 0) ? 0 : ((((int) $number % 10 == 1) && ((int) $number % 100 != 11)) ? 1 : 2), | ||
| 'pl', 'pl_PL' => ($number == 1) ? 0 : ((((int) $number % 10 >= 2) && ((int) $number % 10 <= 4) && (((int) $number % 100 < 12) || ((int) $number % 100 > 14))) ? 1 : 2), | ||
| 'cy', 'cy_GB' => ($number == 1) ? 0 : (($number == 2) ? 1 : ((($number == 8) || ($number == 11)) ? 2 : 3)), | ||
| 'ro', 'ro_RO' => ($number == 1) ? 0 : ((($number == 0) || (((int) $number % 100 > 0) && ((int) $number % 100 < 20))) ? 1 : 2), | ||
| 'ar', 'ar_AE', 'ar_BH', 'ar_DZ', 'ar_EG', 'ar_IN', 'ar_IQ', 'ar_JO', 'ar_KW', 'ar_LB', 'ar_LY', 'ar_MA', 'ar_OM', 'ar_QA', 'ar_SA', 'ar_SD', 'ar_SS', 'ar_SY', 'ar_TN', 'ar_YE' => ($number == 0) ? 0 : (($number == 1) ? 1 : (($number == 2) ? 2 : ((((int) $number % 100 >= 3) && ((int) $number % 100 <= 10)) ? 3 : ((((int) $number % 100 >= 11) && ((int) $number % 100 <= 99)) ? 4 : 5)))), | ||
| default => 0, | ||
| }; |
Contributor
There was a problem hiding this comment.
Wow, that's particularly hard to read—it looks like a minified file 🤯
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes Rector rules that only fix 10 or fewer occurrences across the codebase, and applies the remaining ones.