Skip to content

Commit 8a749c6

Browse files
committed
Added and ran PHPCS
1 parent d0dc5e5 commit 8a749c6

22 files changed

Lines changed: 120 additions & 30 deletions

app/Actions/Webhook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
*/
2323
class Webhook extends Model implements Loggable
2424
{
25-
protected $fillable = ['name', 'endpoint', 'timeout'];
26-
2725
use HasFactory;
2826

27+
protected $fillable = ['name', 'endpoint', 'timeout'];
28+
2929
protected $casts = [
3030
'last_called_at' => 'datetime',
3131
'last_errored_at' => 'datetime',

app/Actions/WebhookTrackedEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
class WebhookTrackedEvent extends Model
1414
{
15-
protected $fillable = ['event'];
16-
1715
use HasFactory;
16+
17+
protected $fillable = ['event'];
1818
}

app/Auth/Access/LdapService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getUserDetails(string $userName): ?array
105105
'name' => $this->getUserResponseProperty($user, $displayNameAttr, $userCn),
106106
'dn' => $user['dn'],
107107
'email' => $this->getUserResponseProperty($user, $emailAttr, null),
108-
'avatar'=> $thumbnailAttr ? $this->getUserResponseProperty($user, $thumbnailAttr, null) : null,
108+
'avatar' => $thumbnailAttr ? $this->getUserResponseProperty($user, $thumbnailAttr, null) : null,
109109
];
110110

111111
if ($this->config['dump_user_details']) {

app/Auth/Access/Oidc/OidcService.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,18 @@
22

33
namespace BookStack\Auth\Access\Oidc;
44

5-
use function auth;
65
use BookStack\Auth\Access\GroupSyncService;
76
use BookStack\Auth\Access\LoginService;
87
use BookStack\Auth\Access\RegistrationService;
98
use BookStack\Auth\User;
109
use BookStack\Exceptions\JsonDebugException;
1110
use BookStack\Exceptions\StoppedAuthenticationException;
1211
use BookStack\Exceptions\UserRegistrationException;
13-
use function config;
1412
use Illuminate\Support\Arr;
1513
use Illuminate\Support\Facades\Cache;
1614
use League\OAuth2\Client\OptionProvider\HttpBasicAuthOptionProvider;
1715
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
1816
use Psr\Http\Client\ClientInterface as HttpClient;
19-
use function trans;
20-
use function url;
2117

2218
/**
2319
* Class OpenIdConnectService

app/Config/dompdf.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Configuration should be altered via the `.env` file or environment variables.
88
* Do not edit this file unless you're happy to maintain any changes yourself.
99
*/
10+
1011
$dompdfPaperSizeMap = [
1112
'a4' => 'a4',
1213
'letter' => 'letter',

app/Config/snappy.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Configuration should be altered via the `.env` file or environment variables.
88
* Do not edit this file unless you're happy to maintain any changes yourself.
99
*/
10+
1011
$snappyPaperSizeMap = [
1112
'a4' => 'A4',
1213
'letter' => 'Letter',

app/Entities/Tools/PageEditActivity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function activeEditingMessage(): string
4242
$userMessage = trans('entities.pages_draft_edit_active.start_b', ['userName' => $firstDraft->createdBy->name ?? '']);
4343
}
4444

45-
$timeMessage = trans('entities.pages_draft_edit_active.time_b', ['minCount'=> 60]);
45+
$timeMessage = trans('entities.pages_draft_edit_active.time_b', ['minCount' => 60]);
4646

4747
return trans('entities.pages_draft_edit_active.message', ['start' => $userMessage, 'time' => $timeMessage]);
4848
}

app/Http/Controllers/Auth/ForgotPasswordController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class ForgotPasswordController extends Controller
2020
| your application to your users. Feel free to explore this trait.
2121
|
2222
*/
23-
2423
use SendsPasswordResetEmails;
2524

2625
/**

app/Http/Controllers/Auth/LoginController.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ class LoginController extends Controller
2424
| to conveniently provide its functionality to your applications.
2525
|
2626
*/
27-
28-
use AuthenticatesUsers { logout as traitLogout; }
27+
use AuthenticatesUsers {
28+
logout as traitLogout;
29+
}
2930

3031
/**
3132
* Redirection paths.
@@ -112,8 +113,10 @@ public function login(Request $request)
112113
// If the class is using the ThrottlesLogins trait, we can automatically throttle
113114
// the login attempts for this application. We'll key this by the username and
114115
// the IP address of the client making these requests into this application.
115-
if (method_exists($this, 'hasTooManyLoginAttempts') &&
116-
$this->hasTooManyLoginAttempts($request)) {
116+
if (
117+
method_exists($this, 'hasTooManyLoginAttempts') &&
118+
$this->hasTooManyLoginAttempts($request)
119+
) {
117120
$this->fireLockoutEvent($request);
118121

119122
Activity::logFailedLogin($username);

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class RegisterController extends Controller
2727
| provide this functionality without requiring any additional code.
2828
|
2929
*/
30-
3130
use RegistersUsers;
3231

3332
protected SocialAuthService $socialAuthService;

0 commit comments

Comments
 (0)