Skip to content

Commit 3502a2f

Browse files
author
Jovert Lota Palonpon
committed
Code Format fix
1 parent 2d49488 commit 3502a2f

File tree

17 files changed

+34
-25
lines changed

17 files changed

+34
-25
lines changed

app/Http/Controllers/Api/Auth/ForgotPasswordController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ public function sendResetLinkEmail(Request $request) : JsonResponse
2929

3030
if ($this->storeResetToken($user, $token)) {
3131
$routeSuffix = strstr(
32-
$request->input('routeSuffix'), ':', true
32+
$request->input('routeSuffix'),
33+
':',
34+
true
3335
).$token;
3436

3537
$resetLink = route('backoffice.welcome').'#'.$routeSuffix;
@@ -56,4 +58,4 @@ public function storeResetToken(User $user, string $token) : bool
5658
'created_at' => now()
5759
]);
5860
}
59-
}
61+
}

app/Http/Controllers/Api/Auth/ResetPasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ public function reset(Request $request) : JsonResponse
2020
{
2121
return response()->json('Resetting...');
2222
}
23-
}
23+
}

app/Http/Controllers/Api/Auth/SessionsController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public function identify(Request $request) : JsonResponse
2929

3030
return response()->json(
3131
User::where(
32-
$this->identifier($request), $request->input('username')
32+
$this->identifier($request),
33+
$request->input('username')
3334
)->first()->email
3435
);
3536
}
@@ -84,7 +85,8 @@ protected function attempt(Request $request) : ?string
8485
protected function identifier(Request $request) : string
8586
{
8687
return filter_var(
87-
$request->input('username'), FILTER_VALIDATE_EMAIL
88+
$request->input('username'),
89+
FILTER_VALIDATE_EMAIL
8890
) ? 'email' : 'username';
8991
}
9092

app/Http/Controllers/Api/UsersController.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
use App\User;
66
use App\Http\Controllers\Controller;
7-
use Illuminate\Http\{JsonResponse, Request};
7+
use Illuminate\Http\JsonResponse;
8+
use Illuminate\Http\Request;
89
use Illuminate\Pagination\LengthAwarePaginator;
910

1011
class UsersController extends Controller
@@ -199,7 +200,9 @@ protected function filter($users, string $property, array $filters)
199200
// Needed since LIKE statements requires values to be wrapped by %
200201
if (in_array($keyword, ['like', 'nlike'])) {
201202
$users->where(
202-
$property, _to_sql_operator($keyword), "%{$value}%"
203+
$property,
204+
_to_sql_operator($keyword),
205+
"%{$value}%"
203206
);
204207

205208
return;
@@ -208,4 +211,4 @@ protected function filter($users, string $property, array $filters)
208211
$users->where($property, _to_sql_operator($keyword), "{$value}");
209212
}
210213
}
211-
}
214+
}

app/Traits/HasJWT.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ public function getJWTCustomClaims()
2323
{
2424
return [];
2525
}
26-
}
26+
}

app/Utils/Helper.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*
1111
* @return string $filePath
1212
*/
13-
function _asset(string $subPath) : string {
13+
function _asset(string $subPath) : string
14+
{
1415
$assets = json_decode(file_get_contents('assets.json'), true);
1516

1617
return $assets[$subPath] ?? '';
@@ -23,7 +24,8 @@ function _asset(string $subPath) : string {
2324
*
2425
* @return App\User
2526
*/
26-
function _test_user() {
27+
function _test_user()
28+
{
2729
auth()->guard('api')->login(User::first());
2830

2931
return auth()->guard('api')->user();
@@ -38,7 +40,8 @@ function _test_user() {
3840
*
3941
* @return string $operator
4042
*/
41-
function _to_sql_operator($keyword) {
43+
function _to_sql_operator($keyword)
44+
{
4245
switch ($keyword) {
4346
case 'eqs':
4447
return '=';
@@ -77,4 +80,4 @@ function _to_sql_operator($keyword) {
7780
break;
7881
}
7982
}
80-
}
83+
}

database/migrations/2014_10_12_000000_create_users_table.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function up()
4242

4343
$table->timestamps();
4444
$table->softDeletes();
45-
4645
});
4746
}
4847

resources/lang/en/navigation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
'users' => 'Users',
4646

4747
'citation' => 'Built with ❤️ by'
48-
];
48+
];

resources/lang/en/resources.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
'show' => 'View :name',
1616
'edit' => 'Edit :name',
1717
'delete' => 'Delete :name',
18-
];
18+
];

resources/lang/en/table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
'previous_page' => 'Previous Page',
3939
'next_page' => 'Next Page',
4040
'last_page' => 'Last Page',
41-
];
41+
];

0 commit comments

Comments
 (0)