Completed
Push — master ( 02f92d...9c9507 )
by Sebastian
15:38
created
app/Http/Controllers/Back/TagController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function index()
17 17
     {
18
-        $tags = Tag::nonDraft()->get()->reduce(function (Collection $carry, Tag $tag) {
18
+        $tags = Tag::nonDraft()->get()->reduce(function(Collection $carry, Tag $tag) {
19 19
 
20 20
             if (!$carry->has($tag->type)) {
21 21
                 $carry->put($tag->type, new Collection());
Please login to merge, or discard this patch.
app/Services/Html/HtmlServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected function registerHtmlBuilder()
33 33
     {
34
-        $this->app->singleton('html', function ($app) {
34
+        $this->app->singleton('html', function($app) {
35 35
             return new HtmlBuilder($app['url']);
36 36
         });
37 37
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected function registerFormBuilder()
43 43
     {
44
-        $this->app->singleton('form', function ($app) {
44
+        $this->app->singleton('form', function($app) {
45 45
             $formBuilder = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken());
46 46
 
47 47
             $formBuilder->setSessionStore($app['session.store']);
Please login to merge, or discard this patch.
app/Providers/ValidationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
     public function boot()
16 16
     {
17
-        Validator::extend('tags_exist', function ($attribute, $tagNames, $parameters) {
17
+        Validator::extend('tags_exist', function($attribute, $tagNames, $parameters) {
18 18
             list($tagType) = $parameters;
19 19
             $tagType = new TagType($tagType);
20 20
 
Please login to merge, or discard this patch.
app/Http/Requests/Request.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /**
36 36
      * Get a parameter of the current route.
37 37
      *
38
-     * @param $key
38
+     * @param string $key
39 39
      *
40 40
      * @return object|string
41 41
      */
Please login to merge, or discard this patch.
app/Services/Html/HtmlBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,6 @@
 block discarded – undo
47 47
 
48 48
     public function sanitizeUrl(string $url, string $protocol = 'http') : string
49 49
     {
50
-        return preg_replace('/^(?!https?:\/\/)/', $protocol . '://', $url) ;
50
+        return preg_replace('/^(?!https?:\/\/)/', $protocol.'://', $url);
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/AuthController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@
 block discarded – undo
36 36
         return fragment('auth.failed');
37 37
     }
38 38
 
39
+    /**
40
+     * @param Request $request
41
+     */
39 42
     protected function sendInactiveAccountResponse($request)
40 43
     {
41 44
         return redirect()->back()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     protected function authenticated(Request $request, User $user)
24 24
     {
25
-        if (! $user->isActive()) {
25
+        if (!$user->isActive()) {
26 26
             auth()->guard('back')->logout();
27 27
 
28 28
             return $this->sendInactiveAccountResponse($request);
Please login to merge, or discard this patch.
app/Http/Controllers/Front/AuthController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
         return fragment('auth.failed');
39 39
     }
40 40
 
41
+    /**
42
+     * @param Request $request
43
+     */
41 44
     protected function sendInactiveAccountResponse($request)
42 45
     {
43 46
         return redirect()->back()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     protected function authenticated(Request $request, User $user)
26 26
     {
27
-        if (! $user->isActive()) {
27
+        if (!$user->isActive()) {
28 28
             auth()->guard('front')->logout();
29 29
 
30 30
             return $this->sendInactiveAccountResponse($request);
Please login to merge, or discard this patch.
app/Foundation/Models/Enums/Enum.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     public function equals(Enum $enum) : bool
10 10
     {
11
-        if (! $enum instanceof $this) {
11
+        if (!$enum instanceof $this) {
12 12
             throw new EnumTypesDontMatch();
13 13
         }
14 14
 
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
 
18 18
     public function doesntEqual(Enum $enum) : bool
19 19
     {
20
-        return ! $this->equals($enum);
20
+        return !$this->equals($enum);
21 21
     }
22 22
 
23 23
     public static function allAsRegex() : string
24 24
     {
25
-        return collect(static::values())->map(function ($value) {
25
+        return collect(static::values())->map(function($value) {
26 26
             return "({$value})";
27 27
         })->implode('|');
28 28
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/BackUserController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     {
58 58
         $user = $this->backUserRepository->find($id);
59 59
 
60
-        if (! $user) abort(404);
60
+        if (!$user) abort(404);
61 61
 
62 62
         return view('back.backUsers.edit')->with(compact('user'));
63 63
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,9 @@
 block discarded – undo
57 57
     {
58 58
         $user = $this->backUserRepository->find($id);
59 59
 
60
-        if (! $user) abort(404);
60
+        if (! $user) {
61
+            abort(404);
62
+        }
61 63
 
62 64
         return view('back.backUsers.edit')->with(compact('user'));
63 65
     }
Please login to merge, or discard this patch.