Completed
Branch master (a6481d)
by Fèvre
02:12
created
app/Http/Controllers/AccountController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * Constructor
16 16
      */
17
-    public function __construct()
17
+    public function __construct ()
18 18
     {
19 19
         parent::__construct();
20 20
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @return \Illuminate\View\View
28 28
      */
29
-    public function index(): View
29
+    public function index (): View
30 30
     {
31 31
         $user = User::find(Auth::user()->id);
32 32
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return \Illuminate\Http\RedirectResponse
44 44
      */
45
-    public function update(Request $request): RedirectResponse
45
+    public function update (Request $request): RedirectResponse
46 46
     {
47 47
         AccountValidator::update($request->all())->validate();
48 48
 
Please login to merge, or discard this patch.
app/Http/Controllers/Blog/ArticleController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class ArticleController extends Controller
9 9
 {
10
-    public function __construct()
10
+    public function __construct ()
11 11
     {
12 12
         parent::__construct();
13 13
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return \Illuminate\Http\Response
21 21
      */
22
-    public function index()
22
+    public function index ()
23 23
     {
24 24
         $articles = Article::with('category', 'user')
25 25
             ->paginate(config('xetaravel.pagination.blog.article_per_page'));
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return \Illuminate\Http\Response
34 34
      */
35
-    public function show(Request $request, $slug, $id)
35
+    public function show (Request $request, $slug, $id)
36 36
     {
37 37
         $article = Article::with('category', 'user', 'comments')
38 38
             ->where('id', $id)
Please login to merge, or discard this patch.
app/Http/Controllers/Blog/CommentController.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
      * @return \Illuminate\Http\RedirectResponse
17 17
      */
18
-    public function create(Request $request): RedirectResponse
18
+    public function create (Request $request): RedirectResponse
19 19
     {
20 20
         // Check if the article exist and if its display.
21 21
         $article = Article::find($request->article_id);
Please login to merge, or discard this patch.
app/Http/Controllers/Blog/CategoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 class CategoryController extends Controller
9 9
 {
10 10
 
11
-    public function __construct()
11
+    public function __construct ()
12 12
     {
13 13
         parent::__construct();
14 14
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *
21 21
      * @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
22 22
      */
23
-    public function show(Request $request, $slug, $id)
23
+    public function show (Request $request, $slug, $id)
24 24
     {
25 25
         $category = Category::with('articles')
26 26
             ->where('id', $id)
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class UserController extends Controller
9 9
 {
10
-    public function __construct()
10
+    public function __construct ()
11 11
     {
12 12
         parent::__construct();
13 13
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return \Illuminate\View\View
21 21
      */
22
-    public function index(): View
22
+    public function index (): View
23 23
     {
24 24
         return view('user.index');
25 25
     }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
31 31
      */
32
-    public function show(Request $request, $slug, $id)
32
+    public function show (Request $request, $slug, $id)
33 33
     {
34 34
         $user = User::with('articles', 'comments')
35 35
             ->where('id', $id)
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/PageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      *
12 12
      * @return \Illuminate\Http\Response
13 13
      */
14
-    public function index()
14
+    public function index ()
15 15
     {
16 16
         return view('Admin::page.index');
17 17
     }
Please login to merge, or discard this patch.
app/Http/Controllers/PageController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      *
13 13
      * @return \Illuminate\Http\Response
14 14
      */
15
-    public function index()
15
+    public function index ()
16 16
     {
17 17
         $articles = Article::with('category', 'user')
18 18
             ->latest()
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return \Illuminate\Http\Response
34 34
      */
35
-    public function banished()
35
+    public function banished ()
36 36
     {
37 37
         if (!Auth::user()->hasRole('banished')) {
38 38
             return redirect()
Please login to merge, or discard this patch.
app/Http/ViewComposers/SidebarServiceProvider.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
      * @return void
15 15
      */
16
-    public function boot()
16
+    public function boot ()
17 17
     {
18 18
         View::composer('Blog::article._sidebar', function ($view) {
19 19
             $articles = ArticleRepository::sidebar();
Please login to merge, or discard this patch.
app/Http/Middleware/VerifyPermission.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @param Guard $auth
20 20
      */
21
-    public function __construct(Guard $auth)
21
+    public function __construct (Guard $auth)
22 22
     {
23 23
         $this->auth = $auth;
24 24
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @return mixed
33 33
      * @throws \Ultraware\Roles\Exceptions\PermissionDeniedException
34 34
      */
35
-    public function handle($request, Closure $next, ...$permission)
35
+    public function handle ($request, Closure $next, ...$permission)
36 36
     {
37 37
         if (!$this->auth->check() && in_array('allowGuest', $permission)) {
38 38
             return $next($request);
Please login to merge, or discard this patch.