@@ -51,17 +51,17 @@ discard block |
||
51 | 51 | public function __construct() { |
52 | 52 | |
53 | 53 | |
54 | - if( class_exists('\App')){ |
|
55 | - $this->lang = \App::getLocale(); |
|
56 | - }else{ |
|
57 | - $this->lang = app('translator')->getLocale(); |
|
58 | - } |
|
54 | + if( class_exists('\App')){ |
|
55 | + $this->lang = \App::getLocale(); |
|
56 | + }else{ |
|
57 | + $this->lang = app('translator')->getLocale(); |
|
58 | + } |
|
59 | 59 | |
60 | 60 | if(! file_exists(config_path($this->lang . '.php'))){ |
61 | - $this->config = include __DIR__ . '/../errors/lang/' . $this->lang . '.php'; |
|
62 | - } else { |
|
63 | - $this->config = include config_path($this->lang . '.php'); |
|
64 | - } |
|
61 | + $this->config = include __DIR__ . '/../errors/lang/' . $this->lang . '.php'; |
|
62 | + } else { |
|
63 | + $this->config = include config_path($this->lang . '.php'); |
|
64 | + } |
|
65 | 65 | |
66 | 66 | } |
67 | 67 | |
@@ -165,9 +165,9 @@ discard block |
||
165 | 165 | $res[ 'error' ] = $this->getErrorCode(); |
166 | 166 | |
167 | 167 | if ( is_null( $message ) ) |
168 | - $res[ 'message' ] = $this->getErrorMessage(); |
|
169 | - else |
|
170 | - $res[ 'message' ] = $message; |
|
168 | + $res[ 'message' ] = $this->getErrorMessage(); |
|
169 | + else |
|
170 | + $res[ 'message' ] = $message; |
|
171 | 171 | |
172 | 172 | } else { |
173 | 173 |
@@ -7,18 +7,18 @@ discard block |
||
7 | 7 | class RespondServiceProvider extends ServiceProvider |
8 | 8 | { |
9 | 9 | /** |
10 | - * Perform post-registration booting of services. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
10 | + * Perform post-registration booting of services. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | 14 | public function boot() |
15 | 15 | { |
16 | 16 | |
17 | - if( class_exists('\App')){ |
|
18 | - $lang = \App::getLocale(); |
|
19 | - }else{ |
|
20 | - $lang = app('translator')->getLocale(); |
|
21 | - } |
|
17 | + if( class_exists('\App')){ |
|
18 | + $lang = \App::getLocale(); |
|
19 | + }else{ |
|
20 | + $lang = app('translator')->getLocale(); |
|
21 | + } |
|
22 | 22 | |
23 | 23 | $this->publishes([ |
24 | 24 | __DIR__.'/../errors/lang/' . $lang . '.php' => config_path( $lang . '.php' ), |
@@ -28,10 +28,10 @@ discard block |
||
28 | 28 | |
29 | 29 | |
30 | 30 | /** |
31 | - * Register any package services. |
|
32 | - * |
|
33 | - * @return void |
|
34 | - */ |
|
31 | + * Register any package services. |
|
32 | + * |
|
33 | + * @return void |
|
34 | + */ |
|
35 | 35 | public function register() |
36 | 36 | { |
37 | 37 |