diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-17 10:09:03 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-17 10:09:03 -0400 |
commit | 8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec (patch) | |
tree | 289222e21420b8d0092f06de097090f179202f6b /tests/units/Locale | |
parent | b40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff) |
Run php-cs-fixer on the code base
Diffstat (limited to 'tests/units/Locale')
-rw-r--r-- | tests/units/Locale/LocaleTest.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/units/Locale/LocaleTest.php b/tests/units/Locale/LocaleTest.php index 6cace0d5..976dfc58 100644 --- a/tests/units/Locale/LocaleTest.php +++ b/tests/units/Locale/LocaleTest.php @@ -6,21 +6,19 @@ class LocaleTest extends Base { public function testLocales() { - foreach(glob('app/Locale/*') as $file) { - + foreach (glob('app/Locale/*') as $file) { $locale = require($file . '/translations.php'); - foreach($locale as $k => $v) { - - if (strpos($k,'%B %e, %Y') !== false) { + 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, $placeholder), substr_count($v, $placeholder), |