]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/PageTemplateController.php
Apply fixes from StyleCI
[bookstack] / app / Http / Controllers / PageTemplateController.php
index eaa1a8ae26ae18f28473c6796062dfb5065dba97..232d0d4427a84d4ec28632d42b0af87224f92fe6 100644 (file)
@@ -11,12 +11,11 @@ class PageTemplateController extends Controller
     protected $pageRepo;
 
     /**
-     * PageTemplateController constructor
+     * PageTemplateController constructor.
      */
     public function __construct(PageRepo $pageRepo)
     {
         $this->pageRepo = $pageRepo;
-        parent::__construct();
     }
 
     /**
@@ -33,12 +32,13 @@ class PageTemplateController extends Controller
         }
 
         return view('pages.template-manager-list', [
-            'templates' => $templates
+            'templates' => $templates,
         ]);
     }
 
     /**
      * Get the content of a template.
+     *
      * @throws NotFoundException
      */
     public function get(int $templateId)
@@ -50,7 +50,7 @@ class PageTemplateController extends Controller
         }
 
         return response()->json([
-            'html' => $page->html,
+            'html'     => $page->html,
             'markdown' => $page->markdown,
         ]);
     }