From a1547b30ad3d98f51cc69d5c24666c5ff826e6f2 Mon Sep 17 00:00:00 2001 From: serhatdurum Date: Thu, 28 Aug 2014 13:07:32 +0300 Subject: [PATCH 1/3] Convert language PHP 5.4 arrays. --- resources/lang/en/pagination.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lang/en/pagination.php b/resources/lang/en/pagination.php index 6b99ef5fd86..88e22db6611 100644 --- a/resources/lang/en/pagination.php +++ b/resources/lang/en/pagination.php @@ -1,6 +1,6 @@ 'Next »', -); +]; From 5f5cc828d3ab3e0b6c955eb944914eecec8ce1ad Mon Sep 17 00:00:00 2001 From: serhatdurum Date: Thu, 28 Aug 2014 13:08:05 +0300 Subject: [PATCH 2/3] Convert language PHP 5.4 arrays. --- resources/lang/en/reminders.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lang/en/reminders.php b/resources/lang/en/reminders.php index e2e24e5d5d5..31b68c09101 100644 --- a/resources/lang/en/reminders.php +++ b/resources/lang/en/reminders.php @@ -1,6 +1,6 @@ "Password has been reset!", -); +]; From 01e97e13e25a45d26df39042d1bdaba62d9b39ad Mon Sep 17 00:00:00 2001 From: serhatdurum Date: Thu, 28 Aug 2014 13:15:07 +0300 Subject: [PATCH 3/3] Convert language PHP 5.4 arrays. --- resources/lang/en/validation.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index e71a27b3f51..5e91a44e9c6 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -1,6 +1,6 @@ "The :attribute may only contain letters and numbers.", "array" => "The :attribute must be an array.", "before" => "The :attribute must be a date before :date.", - "between" => array( + "between" => [ "numeric" => "The :attribute must be between :min and :max.", "file" => "The :attribute must be between :min and :max kilobytes.", "string" => "The :attribute must be between :min and :max characters.", "array" => "The :attribute must have between :min and :max items.", - ), + ], "boolean" => "The :attribute field must be true or false", "confirmed" => "The :attribute confirmation does not match.", "date" => "The :attribute is not a valid date.", @@ -41,19 +41,19 @@ "in" => "The selected :attribute is invalid.", "integer" => "The :attribute must be an integer.", "ip" => "The :attribute must be a valid IP address.", - "max" => array( + "max" => [ "numeric" => "The :attribute may not be greater than :max.", "file" => "The :attribute may not be greater than :max kilobytes.", "string" => "The :attribute may not be greater than :max characters.", "array" => "The :attribute may not have more than :max items.", - ), + ], "mimes" => "The :attribute must be a file of type: :values.", - "min" => array( + "min" => [ "numeric" => "The :attribute must be at least :min.", "file" => "The :attribute must be at least :min kilobytes.", "string" => "The :attribute must be at least :min characters.", "array" => "The :attribute must have at least :min items.", - ), + ], "not_in" => "The selected :attribute is invalid.", "numeric" => "The :attribute must be a number.", "regex" => "The :attribute format is invalid.", @@ -64,12 +64,12 @@ "required_without" => "The :attribute field is required when :values is not present.", "required_without_all" => "The :attribute field is required when none of :values are present.", "same" => "The :attribute and :other must match.", - "size" => array( + "size" => [ "numeric" => "The :attribute must be :size.", "file" => "The :attribute must be :size kilobytes.", "string" => "The :attribute must be :size characters.", "array" => "The :attribute must contain :size items.", - ), + ], "unique" => "The :attribute has already been taken.", "url" => "The :attribute format is invalid.", "timezone" => "The :attribute must be a valid zone.", @@ -85,11 +85,11 @@ | */ - 'custom' => array( - 'attribute-name' => array( + 'custom' => [ + 'attribute-name' => [ 'rule-name' => 'custom-message', - ), - ), + ], + ], /* |-------------------------------------------------------------------------- @@ -102,6 +102,6 @@ | */ - 'attributes' => array(), + 'attributes' => [], -); +];