mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Correction of many errors code inspection.
Adjustments code according to the standards. Adding missing PHPDoc comment.
This commit is contained in:
@ -341,6 +341,7 @@ class BaseConsole
|
||||
function ($ansi) use (&$tags) {
|
||||
$styleA = [];
|
||||
foreach (explode(';', $ansi) as $controlCode) {
|
||||
$style = [];
|
||||
switch ($controlCode) {
|
||||
case self::FG_BLACK:
|
||||
$style = ['color' => '#000000'];
|
||||
|
||||
@ -500,10 +500,14 @@ class BaseInflector
|
||||
return $number . 'th';
|
||||
}
|
||||
switch ($number % 10) {
|
||||
case 1: return $number . 'st';
|
||||
case 2: return $number . 'nd';
|
||||
case 3: return $number . 'rd';
|
||||
default: return $number . 'th';
|
||||
case 1:
|
||||
return $number . 'st';
|
||||
case 2:
|
||||
return $number . 'nd';
|
||||
case 3:
|
||||
return $number . 'rd';
|
||||
default:
|
||||
return $number . 'th';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user