Переглянути джерело

Merge pull request #361 from jqhph/analysis-0gnZyL

Apply fixes from StyleCI
Jiang Qinghua 4 роки тому
батько
коміт
098e1566b4

+ 1 - 1
src/Console/IdeHelperCommand.php

@@ -116,7 +116,7 @@ class IdeHelperCommand extends Command
                 $sql = sprintf('SELECT * FROM information_schema.columns WHERE table_schema = "%s"', $value['database']);
 
                 $each = collect(DB::connection($connectName)->select($sql))
-                    ->map(function ($v) use ($value, $exceptTables, &$reject) {
+                    ->map(function ($v) use ($exceptTables, &$reject) {
                         $v = (array) $v;
 
                         if (in_array($v['TABLE_NAME'], $exceptTables) || in_array($v['COLUMN_NAME'], $reject)) {

+ 1 - 1
src/Controllers/PermissionController.php

@@ -71,7 +71,7 @@ class PermissionController extends AdminController
 
                 $method = $branch['http_method'] ?: [];
 
-                $path = collect($path)->map(function ($path) use ($branch, &$method) {
+                $path = collect($path)->map(function ($path) use (&$method) {
                     if (Str::contains($path, ':')) {
                         [$me, $path] = explode(':', $path);
 

+ 1 - 1
src/Show/Field.php

@@ -254,7 +254,7 @@ class Field implements Renderable
     {
         $field = $this;
 
-        return $this->unescape()->as(function ($path) use ($server, $download, $field) {
+        return $this->unescape()->as(function ($path) use ($server , $field) {
             $name = basename($path);
 
             $field->wrap(false);