From d784c083275ab0663a5e51107052f97f0a5c5c8b Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 27 Feb 2022 15:31:22 +0000 Subject: [PATCH] Apply fixes from StyleCI --- .../Commands/InstallAdmineticCommand.php | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Console/Commands/InstallAdmineticCommand.php b/src/Console/Commands/InstallAdmineticCommand.php index cc1a02b..fbba061 100644 --- a/src/Console/Commands/InstallAdmineticCommand.php +++ b/src/Console/Commands/InstallAdmineticCommand.php @@ -72,7 +72,7 @@ public function handle() private function addAdminServiceProvider() { - $adminServiceProviderTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/AdminServiceProvider.stub'); + $adminServiceProviderTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/AdminServiceProvider.stub'); $adminServiceProviderfile = app_path('Providers/AdminServiceProvider.php'); file_put_contents($adminServiceProviderfile, $adminServiceProviderTemplate); if (file_exists($adminServiceProviderfile)) { @@ -84,9 +84,9 @@ private function addAdminServiceProvider() private function addMyMenu() { - $modelTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/MyMenu.stub'); + $modelTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/MyMenu.stub'); - if (!file_exists($path = app_path('Services'))) { + if (! file_exists($path = app_path('Services'))) { mkdir($path, 0777, true); } @@ -101,16 +101,16 @@ private function addMyMenu() private function addMyDashboard() { - $myDashboardTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/MyDashboard.stub'); - $myDashboardIndexTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/DashboardIndex.stub'); + $myDashboardTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/MyDashboard.stub'); + $myDashboardIndexTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/DashboardIndex.stub'); - if (!file_exists($path = app_path('Services'))) { + if (! file_exists($path = app_path('Services'))) { mkdir($path, 0777, true); } - if (!file_exists($path = resource_path('views/admin/dashboard'))) { + if (! file_exists($path = resource_path('views/admin/dashboard'))) { mkdir($path, 0777, true); } - if (!file_exists($path = resource_path('views/admin/layouts/modules/dashboard'))) { + if (! file_exists($path = resource_path('views/admin/layouts/modules/dashboard'))) { mkdir($path, 0777, true); } $myDashboardIndexfile = resource_path('views/admin/dashboard/index.blade.php'); @@ -139,9 +139,9 @@ private function addMyDashboard() protected function addHeader() { - $myHeaderTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/HeaderView.stub'); + $myHeaderTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/HeaderView.stub'); - if (!file_exists($path = resource_path('views/admin/layouts/components'))) { + if (! file_exists($path = resource_path('views/admin/layouts/components'))) { mkdir($path, 0777, true); } @@ -156,9 +156,9 @@ protected function addHeader() protected function addFooter() { - $myFooterTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/FooterView.stub'); + $myFooterTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/FooterView.stub'); - if (!file_exists($path = resource_path('views/admin/layouts/components'))) { + if (! file_exists($path = resource_path('views/admin/layouts/components'))) { mkdir($path, 0777, true); } @@ -173,6 +173,6 @@ protected function addFooter() protected static function getStub($type) { - return file_get_contents(__DIR__ . "/../../Console/Commands/AdminStubs/$type.stub"); + return file_get_contents(__DIR__."/../../Console/Commands/AdminStubs/$type.stub"); } }