Correction of many errors code inspection.

Adjustments code according to the standards.
Adding missing PHPDoc comment.
This commit is contained in:
Thiago Talma
2014-04-16 19:29:07 -03:00
parent 664d2aa007
commit c1445871f4
24 changed files with 127 additions and 61 deletions

View File

@ -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'];

View File

@ -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';
}
}
}