summaryrefslogtreecommitdiff
path: root/tests/units/LocaleTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-19 18:30:52 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-19 18:30:52 -0400
commit9de6c71158284f50637de46f10423ac6c63cd149 (patch)
tree6257624b64201b20642b9744bae7e53690de21c2 /tests/units/LocaleTest.php
parente52a3bff90c8f81cb1981e5ba587a2500b5b9596 (diff)
Fix coding style in pull-request #936
Diffstat (limited to 'tests/units/LocaleTest.php')
-rw-r--r--tests/units/LocaleTest.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/tests/units/LocaleTest.php b/tests/units/LocaleTest.php
index 7f8dd7c9..5e15a4eb 100644
--- a/tests/units/LocaleTest.php
+++ b/tests/units/LocaleTest.php
@@ -6,21 +6,25 @@ class LocaleTest extends Base
{
public function testLocales()
{
- foreach(glob('app/Locale/*') as $l)
- {
- $locale = require($l . '/translations.php');
- foreach($locale as $k => $v)
- {
- if(strpos($k,'%B %e, %Y') !== false)
+ foreach(glob('app/Locale/*') as $file) {
+
+ $locale = require($file . '/translations.php');
+
+ foreach($locale as $k => $v) {
+
+ if (strpos($k,'%B %e, %Y') !== false) {
continue;
- if(strpos($k,'%b %e, %Y') !== false)
+ }
+
+ if (strpos($k,'%b %e, %Y') !== false) {
continue;
- foreach(array('%s', '%d') as $placeholder)
- {
+ }
+
+ foreach(array('%s', '%d') as $placeholder) {
$this->assertEquals(
substr_count($k, '%s'),
substr_count($v, '%s'),
- 'Incorrect number of ' . $placeholder . ' in ' . basename($l) .' translation of: ' . $k
+ 'Incorrect number of ' . $placeholder . ' in ' . basename($file) .' translation of: ' . $k
);
}
}