summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgxgpet <gxgpet@users.noreply.github.com>2016-10-21 16:44:03 +0200
committerGitHub <noreply@github.com>2016-10-21 16:44:03 +0200
commit25dc0937dd27c6d3c9f4d4483a857c218d6a9dad (patch)
treec953e29161169aa451eaacaad06fdbc875819000
parent03a1eac3b7bed8ed6df59109364a3eebe3f1cceb (diff)
fixed small coding style issues
-rw-r--r--system/helpers/inflector_helper.php9
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
+}