Passed
Branch master (f1f461)
by Dennis
14:18
created
src/Models/Company.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,8 +93,9 @@
 block discarded – undo
93 93
 
94 94
     public function getLogoAttribute()
95 95
     {
96
-        if (!$media = $this->getFirstMedia(self::MEDIA_LOGO))
97
-            return [];
96
+        if (!$media = $this->getFirstMedia(self::MEDIA_LOGO)) {
97
+                    return [];
98
+        }
98 99
         return [
99 100
             'name' => $media->file_name,
100 101
             'url' => $media->original_url,
Please login to merge, or discard this patch.
src/Observers/CompanyObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function creating(Company $company): void
15 15
     {
16
-        if(!$company->uid)
16
+        if (!$company->uid)
17 17
         {
18 18
             $company->uid = CompanyUtil::makeNewUid(Company::class);
19 19
         }
Please login to merge, or discard this patch.
src/Packages/CompanyLogWrite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         }
45 45
     }
46 46
 
47
-    private static function makeSql(Request $request, string|null $name = null, bool $status = false, CompanyAccount $account = null): array
47
+    private static function makeSql(Request $request, string | null $name = null, bool $status = false, CompanyAccount $account = null): array
48 48
     {
49 49
         $account = empty($account) ? optional($request->user()) : optional($account);
50 50
         return [
Please login to merge, or discard this patch.
src/Packages/CompanyAuthenticatable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      * @throws \SimpleCMS\Framework\Exceptions\SimpleException
52 52
      * @return array
53 53
      */
54
-    public function guardLogin(string $guard, string $account, string $password, array $messages = []): bool|RedirectResponse
54
+    public function guardLogin(string $guard, string $account, string $password, array $messages = []): bool | RedirectResponse
55 55
     {
56 56
         $errorMessages = array_merge([
57 57
             'not_found' => 'The account or password is incorrect.',
Please login to merge, or discard this patch.
src/Listeners/LoginSuccessListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
      */
17 17
     public function handle(LoginSuccess $event): void
18 18
     {
19
-        CompanyLogWrite::makeLog(true,$event->account);
19
+        CompanyLogWrite::makeLog(true, $event->account);
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/Listeners/LoginFailedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
      */
17 17
     public function handle(LoginFailed $event): void
18 18
     {
19
-        CompanyLogWrite::makeLog(false,$event->account);
19
+        CompanyLogWrite::makeLog(false, $event->account);
20 20
     }
21 21
 }
Please login to merge, or discard this patch.