Passed
Push — master ( 387a64...5092e9 )
by John
04:13
created
app/Admin/Controllers/BabelController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     {
133 133
         $extensionList=ExtensionModel::list();
134 134
 
135
-        if(empty($extensionList)){
135
+        if (empty($extensionList)) {
136 136
             return view('admin::babel.empty');
137 137
         }
138 138
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         $details=ExtensionModel::remoteDetail($code);
147 147
 
148
-        if(empty($details)){
148
+        if (empty($details)) {
149 149
             return view('admin::babel.empty');
150 150
         }
151 151
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         $details=ExtensionModel::remoteDetail($extension);
160 160
 
161
-        if(empty($details)){
161
+        if (empty($details)) {
162 162
             return view('admin::babel.empty');
163 163
         }
164 164
 
@@ -169,15 +169,15 @@  discard block
 block discarded – undo
169 169
 
170 170
     private static function executeArtisan($command)
171 171
     {
172
-        $fp = popen('php "'.base_path('artisan').'" '.$command, "r");
173
-        while($b = fgets($fp, 2048)) {
172
+        $fp=popen('php "'.base_path('artisan').'" '.$command, "r");
173
+        while ($b=fgets($fp, 2048)) {
174 174
             echo str_pad(json_encode([
175 175
                 "ret"=>200,
176 176
                 "desc"=>"Succeed",
177 177
                 "data"=>[
178 178
                     "message"=>$b
179 179
                 ]
180
-            ])."\n",4096);
180
+            ])."\n", 4096);
181 181
             @ob_flush();
182 182
             flush();
183 183
         }
Please login to merge, or discard this patch.