Skip to content

Commit 9cdea88

Browse files
committed
style: run cs-fix for src/
1 parent 36827b8 commit 9cdea88

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

src/Config/Routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
$routes->group('oauth', ['namespace' => '\Datamweb\ShieldOAuth\Controllers'], static function ($routes) {
14+
$routes->group('oauth', ['namespace' => '\Datamweb\ShieldOAuth\Controllers'], static function ($routes): void {
1515
$routes->addPlaceholder('allOAuthList', service('ShieldOAuth')->allOAuth());
1616
$routes->get('(:allOAuthList)', 'OAuthController::redirectOAuth/$1');
1717

src/Config/Services.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
class Services extends BaseService
2020
{
21-
2221
public static function ShieldOAuth($getShared = true)
2322
{
2423
if ($getShared) {

src/Database/Migrations/2022-10-20-182737_ShieldOAuth.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* This file is part of Shield OAuth.
57
*
@@ -24,7 +26,7 @@ public function __construct()
2426
$this->avatar = config('ShieldOAuthConfig')->usersColumnsName['avatar'];
2527
}
2628

27-
public function up()
29+
public function up(): void
2830
{
2931
$fields = [
3032
$this->first_name => [
@@ -48,7 +50,7 @@ public function up()
4850
$this->forge->addColumn('users', $fields);
4951
}
5052

51-
public function down()
53+
public function down(): void
5254
{
5355
$fields = [
5456
$this->first_name,

src/Language/en/ShieldOAuthLang.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@
3636
'google' => 'Google',
3737
'not_allow' => "Now you can't login or register with Google!",
3838

39-
4039
],
4140
// 'Yahoo' => [
4241
// 'yahoo' => 'Yahoo',
4342
// 'not_allow' => "Now you can't login or register with Yahoo!",
4443

45-
4644
// ],
4745
];

src/Libraries/Basic/ShieldOAuth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public function makeOAuthButton(string $forPage = 'login'): string
8888
<div class='btn-group' role='group' aria-label='Button group with nested dropdown'>
8989
<a href='#' class='btn btn-primary active' aria-current='page'>" . $active_by . '</a>';
9090

91-
$Button .= '<a href=' . base_url('oauth/google') . ' ' . "class='btn btn-outline-secondary' aria-current='page'>" . lang('ShieldOAuthLang.Google.google') . '</a>';
92-
$Button .= '<a href=' . base_url('oauth/github') . ' ' . "class='btn btn-outline-secondary' aria-current='page'>" . lang('ShieldOAuthLang.Github.github') . '</a>';
91+
$Button .= '<a href=' . base_url('oauth/google') . " class='btn btn-outline-secondary' aria-current='page'>" . lang('ShieldOAuthLang.Google.google') . '</a>';
92+
$Button .= '<a href=' . base_url('oauth/github') . " class='btn btn-outline-secondary' aria-current='page'>" . lang('ShieldOAuthLang.Github.github') . '</a>';
9393
if (count($this->otherOAuth()) > 0) {
9494
$Button .= "<div class='btn-group' role='group'>
9595
<button type='button' class='btn btn-outline-secondary dropdown-toggle' data-bs-toggle='dropdown' aria-expanded='false'>"

src/Views/Decorators/ShieldOAuth.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* This file is part of Shield OAuth.
57
*

0 commit comments

Comments
 (0)