Passed
Pull Request — master (#95)
by Fèvre
10:51 queued 05:22
created
app/Http/Controllers/PageController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@
 block discarded – undo
85 85
         Mail::to(config('xetaravel.site.contact_email'))->send(new Contact($details));
86 86
 
87 87
         return redirect()
88
-           ->route('page.contact')
89
-           ->with('success', 'Thanks for contacting me ! I will answer you as fast as I can !');
88
+            ->route('page.contact')
89
+            ->with('success', 'Thanks for contacting me ! I will answer you as fast as I can !');
90 90
     }
91 91
 
92 92
     /**
Please login to merge, or discard this patch.
app/Markdown/GithubPullRequest/GithubPullRequestParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 final class GithubPullRequestParser implements InlineParserInterface
10 10
 {
11 11
     // Regex used to match Github pull request link.
12
-    public const REGEXP_PURLLREQUEST = '\bhttps?:\/\/github\.com\/(?<repo>[\w-]+\/[\w-]+)\/'.
12
+    public const REGEXP_PURLLREQUEST = '\bhttps?:\/\/github\.com\/(?<repo>[\w-]+\/[\w-]+)\/' .
13 13
         '(?<type>issues|pull)\/(?<issue>\d+)';
14 14
 
15 15
     public function getMatchDefinition(): InlineParserMatch
Please login to merge, or discard this patch.
app/Http/Middleware/EnableDisplayScopeMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      *
22 22
      * @return Response|RedirectResponse
23 23
      */
24
-    public function handle(Request $request, Closure $next): Response|RedirectResponse
24
+    public function handle(Request $request, Closure $next): Response | RedirectResponse
25 25
     {
26 26
         BlogArticle::addGlobalScope(new DisplayScope());
27 27
 
Please login to merge, or discard this patch.
app/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Psr\Container\NotFoundExceptionInterface;
8 8
 use Xetaravel\Settings\Settings;
9 9
 
10
-if (! function_exists('settings')) {
10
+if (!function_exists('settings')) {
11 11
     /**
12 12
      * @throws ContainerExceptionInterface
13 13
      * @throws NotFoundExceptionInterface
Please login to merge, or discard this patch.
app/Settings/Settings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@  discard block
 block discarded – undo
11 11
 
12 12
 class Settings
13 13
 {
14
-    protected null|array $context = [
14
+    protected null | array $context = [
15 15
         'model_type' => null,
16 16
         'model_id' => null
17 17
     ];
18 18
 
19 19
     /** @var null|int */
20
-    protected null|int $siteId = null;
20
+    protected null | int $siteId = null;
21 21
 
22 22
     public function __construct(
23 23
         protected Cache $cache,
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      *
76 76
      * @return $this
77 77
      */
78
-    public function setContext(Model|array|null $context = null): self
78
+    public function setContext(Model | array | null $context = null): self
79 79
     {
80 80
         if ($context instanceof Model) {
81 81
             $this->context['model_type'] = get_class($context);
Please login to merge, or discard this patch.