diff options
author | gxgpet <gxgpet@users.noreply.github.com> | 2016-10-21 16:44:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-21 16:44:03 +0200 |
commit | 25dc0937dd27c6d3c9f4d4483a857c218d6a9dad (patch) | |
tree | c953e29161169aa451eaacaad06fdbc875819000 /system/helpers | |
parent | 03a1eac3b7bed8ed6df59109364a3eebe3f1cceb (diff) |
fixed small coding style issues
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/inflector_helper.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php index 04e178aec..83bf28098 100644 --- a/system/helpers/inflector_helper.php +++ b/system/helpers/inflector_helper.php @@ -303,13 +303,12 @@ if ( ! function_exists('ordinal_format')) 8 => 'th', 9 => 'th' ); + if (($number % 100) >= 11 && ($number % 100) <= 13) { return $number.'th'; } - else - { - return $number.$last_digit[$number % 10]; - } + + return $number.$last_digit[$number % 10]; } -}
\ No newline at end of file +} |