From 1ce5883e0feaed603be86fcbf378a84e843e7d37 Mon Sep 17 00:00:00 2001 From: Davide Pastore Date: Sun, 14 Aug 2016 18:00:03 +0200 Subject: [PATCH] Applied fixes from StyleCI (#5) --- tests/ValidationTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ValidationTest.php b/tests/ValidationTest.php index dd8b3ea..524062c 100644 --- a/tests/ValidationTest.php +++ b/tests/ValidationTest.php @@ -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); @@ -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); @@ -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);