@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | return array( |
4 | 4 | |
5 | - /* |
|
5 | + /* |
|
6 | 6 | |-------------------------------------------------------------------------- |
7 | 7 | | Validation Language Lines |
8 | 8 | |-------------------------------------------------------------------------- |
@@ -13,67 +13,67 @@ discard block |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | - "accepted" => "The :attribute must be accepted.", |
|
17 | - "active_url" => "The :attribute is not a valid URL.", |
|
18 | - "after" => "The :attribute must be a date after :date.", |
|
19 | - "alpha" => "The :attribute may only contain letters.", |
|
20 | - "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", |
|
21 | - "alpha_num" => "The :attribute may only contain letters and numbers.", |
|
22 | - "array" => "The :attribute must be an array.", |
|
23 | - "before" => "The :attribute must be a date before :date.", |
|
24 | - "between" => array( |
|
25 | - "numeric" => "The :attribute must be between :min and :max.", |
|
26 | - "file" => "The :attribute must be between :min and :max kilobytes.", |
|
27 | - "string" => "The :attribute must be between :min and :max characters.", |
|
28 | - "array" => "The :attribute must have between :min and :max items.", |
|
29 | - ), |
|
30 | - "boolean" => "The :attribute field must be true or false.", |
|
31 | - "confirmed" => "The :attribute confirmation does not match.", |
|
32 | - "date" => "The :attribute is not a valid date.", |
|
33 | - "date_format" => "The :attribute does not match the format :format.", |
|
34 | - "different" => "The :attribute and :other must be different.", |
|
35 | - "digits" => "The :attribute must be :digits digits.", |
|
36 | - "digits_between" => "The :attribute must be between :min and :max digits.", |
|
37 | - "email" => "The :attribute must be a valid email address.", |
|
38 | - "exists" => "The selected :attribute is invalid.", |
|
39 | - "image" => "The :attribute must be an image.", |
|
40 | - "in" => "The selected :attribute is invalid.", |
|
41 | - "integer" => "The :attribute must be an integer.", |
|
42 | - "ip" => "The :attribute must be a valid IP address.", |
|
43 | - "max" => array( |
|
44 | - "numeric" => "The :attribute may not be greater than :max.", |
|
45 | - "file" => "The :attribute may not be greater than :max kilobytes.", |
|
46 | - "string" => "The :attribute may not be greater than :max characters.", |
|
47 | - "array" => "The :attribute may not have more than :max items.", |
|
48 | - ), |
|
49 | - "mimes" => "The :attribute must be a file of type: :values.", |
|
50 | - "min" => array( |
|
51 | - "numeric" => "The :attribute must be at least :min.", |
|
52 | - "file" => "The :attribute must be at least :min kilobytes.", |
|
53 | - "string" => "The :attribute must be at least :min characters.", |
|
54 | - "array" => "The :attribute must have at least :min items.", |
|
55 | - ), |
|
56 | - "not_in" => "The selected :attribute is invalid.", |
|
57 | - "numeric" => "The :attribute must be a number.", |
|
58 | - "regex" => "The :attribute format is invalid.", |
|
59 | - "required" => "The :attribute field is required.", |
|
60 | - "required_if" => "The :attribute field is required when :other is :value.", |
|
61 | - "required_with" => "The :attribute field is required when :values is present.", |
|
62 | - "required_with_all" => "The :attribute field is required when :values is present.", |
|
63 | - "required_without" => "The :attribute field is required when :values is not present.", |
|
64 | - "required_without_all" => "The :attribute field is required when none of :values are present.", |
|
65 | - "same" => "The :attribute and :other must match.", |
|
66 | - "size" => array( |
|
67 | - "numeric" => "The :attribute must be :size.", |
|
68 | - "file" => "The :attribute must be :size kilobytes.", |
|
69 | - "string" => "The :attribute must be :size characters.", |
|
70 | - "array" => "The :attribute must contain :size items.", |
|
71 | - ), |
|
72 | - "unique" => "The :attribute has already been taken.", |
|
73 | - "url" => "The :attribute format is invalid.", |
|
74 | - "timezone" => "The :attribute must be a valid zone.", |
|
16 | + "accepted" => "The :attribute must be accepted.", |
|
17 | + "active_url" => "The :attribute is not a valid URL.", |
|
18 | + "after" => "The :attribute must be a date after :date.", |
|
19 | + "alpha" => "The :attribute may only contain letters.", |
|
20 | + "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", |
|
21 | + "alpha_num" => "The :attribute may only contain letters and numbers.", |
|
22 | + "array" => "The :attribute must be an array.", |
|
23 | + "before" => "The :attribute must be a date before :date.", |
|
24 | + "between" => array( |
|
25 | + "numeric" => "The :attribute must be between :min and :max.", |
|
26 | + "file" => "The :attribute must be between :min and :max kilobytes.", |
|
27 | + "string" => "The :attribute must be between :min and :max characters.", |
|
28 | + "array" => "The :attribute must have between :min and :max items.", |
|
29 | + ), |
|
30 | + "boolean" => "The :attribute field must be true or false.", |
|
31 | + "confirmed" => "The :attribute confirmation does not match.", |
|
32 | + "date" => "The :attribute is not a valid date.", |
|
33 | + "date_format" => "The :attribute does not match the format :format.", |
|
34 | + "different" => "The :attribute and :other must be different.", |
|
35 | + "digits" => "The :attribute must be :digits digits.", |
|
36 | + "digits_between" => "The :attribute must be between :min and :max digits.", |
|
37 | + "email" => "The :attribute must be a valid email address.", |
|
38 | + "exists" => "The selected :attribute is invalid.", |
|
39 | + "image" => "The :attribute must be an image.", |
|
40 | + "in" => "The selected :attribute is invalid.", |
|
41 | + "integer" => "The :attribute must be an integer.", |
|
42 | + "ip" => "The :attribute must be a valid IP address.", |
|
43 | + "max" => array( |
|
44 | + "numeric" => "The :attribute may not be greater than :max.", |
|
45 | + "file" => "The :attribute may not be greater than :max kilobytes.", |
|
46 | + "string" => "The :attribute may not be greater than :max characters.", |
|
47 | + "array" => "The :attribute may not have more than :max items.", |
|
48 | + ), |
|
49 | + "mimes" => "The :attribute must be a file of type: :values.", |
|
50 | + "min" => array( |
|
51 | + "numeric" => "The :attribute must be at least :min.", |
|
52 | + "file" => "The :attribute must be at least :min kilobytes.", |
|
53 | + "string" => "The :attribute must be at least :min characters.", |
|
54 | + "array" => "The :attribute must have at least :min items.", |
|
55 | + ), |
|
56 | + "not_in" => "The selected :attribute is invalid.", |
|
57 | + "numeric" => "The :attribute must be a number.", |
|
58 | + "regex" => "The :attribute format is invalid.", |
|
59 | + "required" => "The :attribute field is required.", |
|
60 | + "required_if" => "The :attribute field is required when :other is :value.", |
|
61 | + "required_with" => "The :attribute field is required when :values is present.", |
|
62 | + "required_with_all" => "The :attribute field is required when :values is present.", |
|
63 | + "required_without" => "The :attribute field is required when :values is not present.", |
|
64 | + "required_without_all" => "The :attribute field is required when none of :values are present.", |
|
65 | + "same" => "The :attribute and :other must match.", |
|
66 | + "size" => array( |
|
67 | + "numeric" => "The :attribute must be :size.", |
|
68 | + "file" => "The :attribute must be :size kilobytes.", |
|
69 | + "string" => "The :attribute must be :size characters.", |
|
70 | + "array" => "The :attribute must contain :size items.", |
|
71 | + ), |
|
72 | + "unique" => "The :attribute has already been taken.", |
|
73 | + "url" => "The :attribute format is invalid.", |
|
74 | + "timezone" => "The :attribute must be a valid zone.", |
|
75 | 75 | |
76 | - /* |
|
76 | + /* |
|
77 | 77 | |-------------------------------------------------------------------------- |
78 | 78 | | Custom Validation Language Lines |
79 | 79 | |-------------------------------------------------------------------------- |
@@ -84,13 +84,13 @@ discard block |
||
84 | 84 | | |
85 | 85 | */ |
86 | 86 | |
87 | - 'custom' => array( |
|
88 | - 'attribute-name' => array( |
|
89 | - 'rule-name' => 'custom-message', |
|
90 | - ), |
|
91 | - ), |
|
87 | + 'custom' => array( |
|
88 | + 'attribute-name' => array( |
|
89 | + 'rule-name' => 'custom-message', |
|
90 | + ), |
|
91 | + ), |
|
92 | 92 | |
93 | - /* |
|
93 | + /* |
|
94 | 94 | |-------------------------------------------------------------------------- |
95 | 95 | | Custom Validation Attributes |
96 | 96 | |-------------------------------------------------------------------------- |
@@ -101,6 +101,6 @@ discard block |
||
101 | 101 | | |
102 | 102 | */ |
103 | 103 | |
104 | - 'attributes' => array(), |
|
104 | + 'attributes' => array(), |
|
105 | 105 | |
106 | 106 | ); |
@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | case "create_project":$check = SecurityHelper::authorizeWrite("create_project"); |
90 | 90 | if ($check == "notAllowed") |
91 | 91 | return Response::json(array( |
92 | - 'errors' => "You are not authorized to perform this operation!", |
|
93 | - 400 |
|
92 | + 'errors' => "You are not authorized to perform this operation!", |
|
93 | + 400 |
|
94 | 94 | )); |
95 | 95 | break; |
96 | 96 | |
@@ -98,11 +98,11 @@ discard block |
||
98 | 98 | if ($check == "notAllowed") |
99 | 99 | return json_encode (array('success' => false)); |
100 | 100 | if(\Request::segment(2)=='validate_create_task' && $check=="allowed") |
101 | - return Response::json(array( |
|
102 | - 'success' => true, |
|
103 | - 200 |
|
101 | + return Response::json(array( |
|
102 | + 'success' => true, |
|
103 | + 200 |
|
104 | 104 | )); |
105 | - break; |
|
105 | + break; |
|
106 | 106 | |
107 | 107 | } |
108 | 108 | } |
@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | App::bind('\\LaravelRealtimeChat\\Repositories\\Team\\TeamRepository', '\\LaravelRealtimeChat\\Repositories\\Team\\DbTeamRepository'); |
14 | 14 | ClassLoader::addDirectories(array( |
15 | 15 | |
16 | - app_path().'/commands', |
|
17 | - app_path().'/controllers', |
|
18 | - app_path().'/models', |
|
19 | - app_path().'/database/seeds', |
|
16 | + app_path().'/commands', |
|
17 | + app_path().'/controllers', |
|
18 | + app_path().'/models', |
|
19 | + app_path().'/database/seeds', |
|
20 | 20 | |
21 | 21 | |
22 | 22 | )); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | App::error(function(Exception $exception, $code) |
51 | 51 | { |
52 | - Log::error($exception); |
|
52 | + Log::error($exception); |
|
53 | 53 | }); |
54 | 54 | |
55 | 55 | /* |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | App::down(function() |
67 | 67 | { |
68 | - return Response::make("Be right back!", 503); |
|
68 | + return Response::make("Be right back!", 503); |
|
69 | 69 | }); |
70 | 70 | |
71 | 71 | /* |