Fix coding style in pull-request #936
This commit is contained in:
@@ -6,21 +6,25 @@ class LocaleTest extends Base
|
|||||||
{
|
{
|
||||||
public function testLocales()
|
public function testLocales()
|
||||||
{
|
{
|
||||||
foreach(glob('app/Locale/*') as $l)
|
foreach(glob('app/Locale/*') as $file) {
|
||||||
{
|
|
||||||
$locale = require($l . '/translations.php');
|
$locale = require($file . '/translations.php');
|
||||||
foreach($locale as $k => $v)
|
|
||||||
{
|
foreach($locale as $k => $v) {
|
||||||
if(strpos($k,'%B %e, %Y') !== false)
|
|
||||||
|
if (strpos($k,'%B %e, %Y') !== false) {
|
||||||
continue;
|
continue;
|
||||||
if(strpos($k,'%b %e, %Y') !== false)
|
}
|
||||||
|
|
||||||
|
if (strpos($k,'%b %e, %Y') !== false) {
|
||||||
continue;
|
continue;
|
||||||
foreach(array('%s', '%d') as $placeholder)
|
}
|
||||||
{
|
|
||||||
|
foreach(array('%s', '%d') as $placeholder) {
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
substr_count($k, '%s'),
|
substr_count($k, '%s'),
|
||||||
substr_count($v, '%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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user