Browse Source

Merge pull request #8 from jqhph/analysis-pee94o

Apply fixes from StyleCI
Jiang Qinghua 5 years ago
parent
commit
cf6f5f2d4d

+ 4 - 4
src/Controllers/AdminController.php

@@ -21,10 +21,10 @@ class AdminController extends Controller
      * @var array
      */
     protected $description = [
-//        'index'  => 'Index',
-//        'show'   => 'Show',
-//        'edit'   => 'Edit',
-//        'create' => 'Create',
+        //        'index'  => 'Index',
+        //        'show'   => 'Show',
+        //        'edit'   => 'Edit',
+        //        'create' => 'Create',
     ];
 
     /**

+ 1 - 1
src/Form/Field/BootstrapUploadField.php

@@ -80,7 +80,7 @@ trait BootstrapUploadField
             'showRemove'           => false,
             'showUpload'           => false,
             'dropZoneEnabled'      => false,        //dropzone disabled by default for backward compatibility
-//            'initialCaption'       => $this->initialCaption($this->value),
+            //            'initialCaption'       => $this->initialCaption($this->value),
             'deleteExtraData'      => [
                 $this->formatName($this->column) => static::FILE_DELETE_FLAG,
                 static::FILE_DELETE_FLAG         => '',

+ 1 - 1
src/Grid/Column/HasHeader.php

@@ -67,7 +67,7 @@ trait HasHeader
      *
      * @return $this
      */
-    protected function addHelp($message, ?string $style = null, ? string $placement = 'bottom')
+    protected function addHelp($message, ?string $style = null, ?string $placement = 'bottom')
     {
         return $this->addHeader(new Help($message, $style, $placement));
     }

+ 1 - 1
src/Grid/Concerns/HasQuickCreate.php

@@ -33,7 +33,7 @@ trait HasQuickCreate
      */
     public function hasQuickCreate()
     {
-        return !is_null($this->quickCreate);
+        return ! is_null($this->quickCreate);
     }
 
     /**

+ 1 - 1
src/Grid/FirstRowHeader.php

@@ -102,7 +102,7 @@ class FirstRowHeader extends Widget
      *
      * @return $this
      */
-    public function help($message, ?string $style = null, ? string $placement = 'bottom')
+    public function help($message, ?string $style = null, ?string $placement = 'bottom')
     {
         return $this->append((new Help($message, $style, $placement))->render());
     }

+ 2 - 2
src/Grid/Tools/QuickCreate.php

@@ -139,7 +139,7 @@ class QuickCreate implements Renderable
     public function select($column, $placeholder = '')
     {
         Admin::style(
-            <<<CSS
+            <<<'CSS'
 .quick-create .select2-selection--single {
     padding: 3px 12px !important;
     height: 30px !important;
@@ -164,7 +164,7 @@ CSS
     public function multipleSelect($column, $placeholder = '')
     {
         Admin::style(
-            <<<CSS
+            <<<'CSS'
 .quick-create .select2-selection--multiple {
     padding: 0 !important;
     height: 30px !important;

+ 2 - 2
src/Widgets/Color.php

@@ -145,8 +145,8 @@ class Color
             '#483D8B', // blue darker
         ],
 
-       'green' => [
-           'rgba(64,153,222,.5)', // primary
+        'green' => [
+            'rgba(64,153,222,.5)', // primary
             '#21b978', // success
             '#47C1BF', // tear
             '#8FC15D', // green