summaryrefslogtreecommitdiffstats
path: root/system/helpers/inflector_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-10-21 17:06:26 +0200
committerAndrey Andreev <narf@devilix.net>2016-10-21 17:06:26 +0200
commite7e70c3532f06ac008cfc038791fcb46d4a551ed (patch)
tree51baa5802ab6f344014bf31be6fcc646c8596505 /system/helpers/inflector_helper.php
parent4de4f4c88ea49db3867882f21b727e953ca1a590 (diff)
[ci skip] Add changelog entry for PR #4862
Diffstat (limited to 'system/helpers/inflector_helper.php')
-rw-r--r--system/helpers/inflector_helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php
index 83bf28098..f14f57c54 100644
--- a/system/helpers/inflector_helper.php
+++ b/system/helpers/inflector_helper.php
@@ -268,7 +268,7 @@ if ( ! function_exists('is_countable'))
'species',
'swine',
'traffic',
- 'wheat',
+ 'wheat'
)
);
}
@@ -303,12 +303,12 @@ if ( ! function_exists('ordinal_format'))
8 => 'th',
9 => 'th'
);
-
+
if (($number % 100) >= 11 && ($number % 100) <= 13)
{
return $number.'th';
}
-
+
return $number.$last_digit[$number % 10];
}
}