@@ -19,5 +19,5 @@ |
||
19 | 19 | * |
20 | 20 | * @var int |
21 | 21 | */ |
22 | - protected $headers = Request::HEADER_X_FORWARDED_ALL; |
|
22 | + protected $headers=Request::HEADER_X_FORWARDED_ALL; |
|
23 | 23 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $statusCode=200; |
15 | 15 | } |
16 | 16 | $output=[ |
17 | - 'ret' => $statusCode, |
|
17 | + 'ret' => $statusCode, |
|
18 | 18 | 'desc' => is_null($desc) ? self::desc($statusCode) : $desc, |
19 | 19 | 'data' => $data |
20 | 20 | ]; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $statusCode=1000; |
28 | 28 | } |
29 | 29 | $output=[ |
30 | - 'ret' => $statusCode, |
|
30 | + 'ret' => $statusCode, |
|
31 | 31 | 'desc' => is_null($desc) ? self::desc($statusCode) : $desc, |
32 | 32 | 'data' => $data |
33 | 33 | ]; |
@@ -44,9 +44,9 @@ discard block |
||
44 | 44 | '451' => "Unavailable For Legal Reasons", |
45 | 45 | |
46 | 46 | '1000' => "Unspecified Response", /** Under normal condictions those errors shouldn't been displayed to end users |
47 | - * unless they attempt to do so, some submissions should be intercepted |
|
48 | - * by the frontend before the request sended |
|
49 | - */ |
|
47 | + * unless they attempt to do so, some submissions should be intercepted |
|
48 | + * by the frontend before the request sended |
|
49 | + */ |
|
50 | 50 | '1001' => "Internal Sever Error", |
51 | 51 | '1002' => "Service Currently Unavailable", |
52 | 52 | '1003' => "Missing Params", |
@@ -80,7 +80,7 @@ |
||
80 | 80 | if (config('app.allow_oauth_temp_account')) { |
81 | 81 | try { |
82 | 82 | $createdUser=User::create([ |
83 | - 'name' => $aauth_user->name."#".substr($aauth_user->id , 0 , 4), |
|
83 | + 'name' => $aauth_user->name."#".substr($aauth_user->id, 0, 4), |
|
84 | 84 | 'email' => Str::random(16)."@temporary.email", |
85 | 85 | 'password' => '', |
86 | 86 | 'avatar' => '/static/img/avatar/default.png', |