Skip to content

Commit

Permalink
Applied fixes from StyleCI (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePastore authored Aug 14, 2016
1 parent 2800f6a commit 1ce5883
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/ValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ public function testValidationWithCallableTranslator()
);

$translator = function ($message) {
$messages = [
$messages = [
'These rules must pass for {{name}}' => 'Queste regole devono passare per {{name}}',
'{{name}} must be a string' => '{{name}} deve essere una stringa',
'{{name}} must have a length between {{minValue}} and {{maxValue}}' => '{{name}} deve avere una dimensione di caratteri compresa tra {{minValue}} e {{maxValue}}',
];

return $messages[$message];
return $messages[$message];
};

$mw = new Validation($validators, $translator);
Expand Down Expand Up @@ -275,13 +275,13 @@ public function testSetTranslator()
);

$translator = function ($message) {
$messages = [
$messages = [
'These rules must pass for {{name}}' => 'Queste regole devono passare per {{name}}',
'{{name}} must be a string' => '{{name}} deve essere una stringa',
'{{name}} must have a length between {{minValue}} and {{maxValue}}' => '{{name}} deve avere una dimensione di caratteri compresa tra {{minValue}} e {{maxValue}}',
];

return $messages[$message];
return $messages[$message];
};

$mw = new Validation($validators, $translator);
Expand All @@ -291,13 +291,13 @@ public function testSetTranslator()
};

$newTranslator = function ($message) {
$messages = [
$messages = [
'These rules must pass for {{name}}' => 'Queste regole devono passare per {{name}} (nuovo)',
'{{name}} must be a string' => '{{name}} deve essere una stringa (nuovo)',
'{{name}} must have a length between {{minValue}} and {{maxValue}}' => '{{name}} deve avere una dimensione di caratteri compresa tra {{minValue}} e {{maxValue}} (nuovo)',
];

return $messages[$message];
return $messages[$message];
};

$mw->setTranslator($newTranslator);
Expand Down

0 comments on commit 1ce5883

Please sign in to comment.