From a80cbf0f3f6c5862d402b8762e214961dc7e0e82 Mon Sep 17 00:00:00 2001 From: Juan Antonio Tubio Date: Tue, 18 Jul 2017 16:46:38 +0200 Subject: [PATCH] Fixing code indentation --- src/Valitron/Validator.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Valitron/Validator.php b/src/Valitron/Validator.php index b334f8e..4f97fdc 100644 --- a/src/Valitron/Validator.php +++ b/src/Valitron/Validator.php @@ -1133,12 +1133,12 @@ class Validator $message = isset($msgs[$rule]) ? $msgs[$rule] : self::ERROR_DEFAULT; // Ensure message contains field label - if (function_exists('mb_strpos')) { - $notContains = mb_strpos($message, '{field}') === false; - } else { - $notContains = strpos($message, '{field}') === false; - } - if ($notContains) { + if (function_exists('mb_strpos')) { + $notContains = mb_strpos($message, '{field}') === false; + } else { + $notContains = strpos($message, '{field}') === false; + } + if ($notContains) { $message = '{field} ' . $message; }