Completed
Pull Request — master (#5493)
by
unknown
29s
created
src/Form/Field/JalaliDate.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,9 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function prepare($value)
61 61
     {
62
-        if (empty($value)) return null;
62
+        if (empty($value)) {
63
+            return null;
64
+        }
63 65
 
64 66
         $tok = $this->tokenizeValue($value);
65 67
 
@@ -79,7 +81,9 @@  discard block
 block discarded – undo
79 81
 
80 82
             $tok = preg_split('/(\-|\/)/', $value, 3);
81 83
 
82
-            if (count($tok) < 3) throw new Exception('Invalid JalaliDate!');
84
+            if (count($tok) < 3) {
85
+                throw new Exception('Invalid JalaliDate!');
86
+            }
83 87
         }
84 88
 
85 89
         // Test is able to create jalalian
Please login to merge, or discard this patch.
resources/lang/en/persian-validation.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	'persian_alpha' 			    => 'The :attribute must be a persian alphabet.',
4
+    'persian_alpha' 			    => 'The :attribute must be a persian alphabet.',
5 5
     'persian_num'				    => 'The :attribute must be a persian number.',
6 6
     'persian_alpha_num'			    => 'The :attribute must be a persian alphabet or number.',
7 7
     'persian_alpha_eng_num'			=> 'The :attribute must be a persian alphabet or number or english number.',
@@ -16,6 +16,6 @@  discard block
 block discarded – undo
16 16
     'ir_bank_card_number'			=> 'The :attribute must be a valid iranian payment card number.',
17 17
     'ir_sheba'					    => 'The :attribute must be a iranian sheba number.',
18 18
     'ir_national_code'			    => 'The :attribute must be a iranian national code.',
19
-	'a_url'						    => 'The :attribute is an invalid url.',
20
-	'a_domain'					    => 'The :attribute is an invalid domain.',
19
+    'a_url'						    => 'The :attribute is an invalid url.',
20
+    'a_domain'					    => 'The :attribute is an invalid domain.',
21 21
 ];
Please login to merge, or discard this patch.
resources/lang/fa/persian-validation.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 $incorrectMsg = ':attribute صحیح نمی باشد.';
5 5
 
6 6
 return [
7
-	'persian_alpha' 			    => ':attribute فقط میتواند شامل حروف فارسی باشد.',
8
-	'persian_num'				    => ':attribute فقط میتواند شامل اعداد فارسی باشد.',
9
-	'persian_alpha_num'			    => ':attribute فقط میتواند شامل حروف و اعداد فارسی باشد.',
10
-	'persian_alpha_eng_num'			=> ':attribute فقط میتواند شامل حروف و اعداد فارسی و اعداد انگلیسی باشد.',
7
+    'persian_alpha' 			    => ':attribute فقط میتواند شامل حروف فارسی باشد.',
8
+    'persian_num'				    => ':attribute فقط میتواند شامل اعداد فارسی باشد.',
9
+    'persian_alpha_num'			    => ':attribute فقط میتواند شامل حروف و اعداد فارسی باشد.',
10
+    'persian_alpha_eng_num'			=> ':attribute فقط میتواند شامل حروف و اعداد فارسی و اعداد انگلیسی باشد.',
11 11
     'persian_not_accept'			=> ':attribute فقط میتواند شامل حروف یا اعداد لاتین باشد.',
12 12
     'shamsi_date'			        => $incorrectMsg,
13 13
     'shamsi_date_between'			=> ':attribute باید بین سال های :afterDate تا :beforeDate باشد.',
Please login to merge, or discard this patch.