Passed
Push — main ( 2ea2f8...5da50b )
by PRATIK
12:10
created
src/Console/Commands/InstallAdmineticCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     private function addAdminServiceProvider()
68 68
     {
69
-        $adminServiceProviderTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/AdminServiceProvider.stub');
69
+        $adminServiceProviderTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/AdminServiceProvider.stub');
70 70
         $adminServiceProviderfile = app_path('Providers/AdminServiceProvider.php');
71 71
         file_put_contents($adminServiceProviderfile, $adminServiceProviderTemplate);
72 72
         if (file_exists($adminServiceProviderfile)) {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     private function addMyMenu()
80 80
     {
81
-        $modelTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/MyMenu.stub');
81
+        $modelTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/MyMenu.stub');
82 82
 
83 83
         if (!file_exists($path = app_path('Services'))) {
84 84
             mkdir($path, 0777, true);
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
 
96 96
     private function addMyDashboard()
97 97
     {
98
-        $myDashboardTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/MyDashboard.stub');
99
-        $myDashboardIndexTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/DashboardIndex.stub');
98
+        $myDashboardTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/MyDashboard.stub');
99
+        $myDashboardIndexTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/DashboardIndex.stub');
100 100
 
101 101
         if (!file_exists($path = app_path('Services'))) {
102 102
             mkdir($path, 0777, true);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
     protected function addHeader()
135 135
     {
136
-        $myHeaderTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/HeaderView.stub');
136
+        $myHeaderTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/HeaderView.stub');
137 137
 
138 138
         if (!file_exists($path = resource_path('views/admin/layouts/components'))) {
139 139
             mkdir($path, 0777, true);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
     protected function addFooter()
152 152
     {
153
-        $myFooterTemplate = file_get_contents(__DIR__ . '/../../Console/Commands/AdminStubs/FooterView.stub');
153
+        $myFooterTemplate = file_get_contents(__DIR__.'/../../Console/Commands/AdminStubs/FooterView.stub');
154 154
 
155 155
         if (!file_exists($path = resource_path('views/admin/layouts/components'))) {
156 156
             mkdir($path, 0777, true);
@@ -167,6 +167,6 @@  discard block
 block discarded – undo
167 167
 
168 168
     protected static function getStub($type)
169 169
     {
170
-        return file_get_contents(__DIR__ . "/../../Console/Commands/AdminStubs/$type.stub");
170
+        return file_get_contents(__DIR__."/../../Console/Commands/AdminStubs/$type.stub");
171 171
     }
172 172
 }
Please login to merge, or discard this patch.