Completed
Pull Request — master (#297)
by
unknown
02:12
created
src/helpers.php 3 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
      * Appends the configured backpack prefix and returns
6 6
      * the URL using the standard Laravel helpers.
7 7
      *
8
-     * @param $path
8
+     * @param string $path
9 9
      *
10 10
      * @return string
11 11
      */
@@ -132,6 +132,7 @@  discard block
 block discarded – undo
132 132
      * Returns a new displayable view based on the current configured backpack
133 133
      *
134 134
      * @param string (see config/backpack/base.php)
135
+     * @param string $view
135 136
      *
136 137
      * @return string
137 138
      */
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $theme = config('backpack.base.theme');
141 141
 
142 142
         if(is_null($theme)) {
143
-          $theme = 'adminlte';
143
+            $theme = 'adminlte';
144 144
         }
145 145
 
146 146
         $returnView = "{$package}::{$theme}.{$view}";
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $theme = config('backpack.base.theme');
166 166
 
167 167
         if(is_null($theme)) {
168
-          $theme = 'adminlte';
168
+            $theme = 'adminlte';
169 169
         }
170 170
 
171 171
         return "{$package}::{$theme}.{$view}";
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,12 +139,12 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $theme = config('backpack.base.theme');
141 141
 
142
-        if(is_null($theme)) {
142
+        if (is_null($theme)) {
143 143
           $theme = 'adminlte';
144 144
         }
145 145
 
146 146
         $returnView = "{$package}::{$theme}.{$view}";
147
-        if(!view()->exists($returnView)){
147
+        if (!view()->exists($returnView)) {
148 148
             $returnView = "{$package}::{$view}";
149 149
         }
150 150
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     {
165 165
         $theme = config('backpack.base.theme');
166 166
 
167
-        if(is_null($theme)) {
167
+        if (is_null($theme)) {
168 168
           $theme = 'adminlte';
169 169
         }
170 170
 
Please login to merge, or discard this patch.