@@ -254,10 +254,10 @@ discard block |
||
254 | 254 | * @internal param mixed $val |
255 | 255 | * |
256 | 256 | */ |
257 | - public function addButton($text, $btn_url ,$ajax_url) |
|
257 | + public function addButton($text, $btn_url, $ajax_url) |
|
258 | 258 | { |
259 | 259 | $this->button['text'] = $text; |
260 | - $this->button['class'] = $this->getElementClassString() . "_btn"; |
|
260 | + $this->button['class'] = $this->getElementClassString()."_btn"; |
|
261 | 261 | $this->button['script'] = <<<EOT |
262 | 262 | $(".{$this->button['class']}").on("click",function(){ |
263 | 263 | window.open("{$btn_url}") |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | $configs = json_encode($configs); |
298 | 298 | |
299 | 299 | if (empty($this->script)) { |
300 | - $this->script = "$(\"{$this->getElementClassSelector()}\").select2($configs);" . $this->button['script']; |
|
300 | + $this->script = "$(\"{$this->getElementClassSelector()}\").select2($configs);".$this->button['script']; |
|
301 | 301 | } |
302 | 302 | |
303 | 303 | if ($this->options instanceof \Closure) { |
@@ -102,8 +102,8 @@ discard block |
||
102 | 102 | $rules = $input = []; |
103 | 103 | |
104 | 104 | foreach ($value as $key => $file) { |
105 | - $rules[$this->column . $key] = $this->getRules(); |
|
106 | - $input[$this->column . $key] = $file; |
|
105 | + $rules[$this->column.$key] = $this->getRules(); |
|
106 | + $input[$this->column.$key] = $file; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | return [ |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | { |
157 | 157 | $this->name = $this->getStoreName($file); |
158 | 158 | |
159 | - return tap($this->upload($file), function () { |
|
159 | + return tap($this->upload($file), function() { |
|
160 | 160 | $this->name = null; |
161 | 161 | }); |
162 | 162 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function direction($dir ='ltr') |
40 | 40 | { |
41 | - $this->options(['contentsLangDirection' => $dir]); |
|
41 | + $this->options(['contentsLangDirection' => $dir]); |
|
42 | 42 | $this->direction = $dir; |
43 | 43 | |
44 | 44 | return $this; } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $this->options(['contentsLangDirection' => 'ltr']); |
24 | 24 | $this->options(['language' => config('app.locale', 'en')]); |
25 | 25 | //for jquery validation |
26 | - $this->addElementClass(['validate','ckeditor']); |
|
26 | + $this->addElementClass(['validate', 'ckeditor']); |
|
27 | 27 | |
28 | 28 | } |
29 | 29 | |
@@ -36,12 +36,12 @@ discard block |
||
36 | 36 | * @param string $dir |
37 | 37 | * @return $this |
38 | 38 | */ |
39 | - public function direction($dir ='ltr') |
|
39 | + public function direction($dir = 'ltr') |
|
40 | 40 | { |
41 | 41 | $this->options(['contentsLangDirection' => $dir]); |
42 | 42 | $this->direction = $dir; |
43 | 43 | |
44 | - return $this; } |
|
44 | + return $this; } |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * set language for editor |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * @param string $link |
26 | 26 | * @param string $info |
27 | 27 | */ |
28 | - public function __construct($name, $icon, $color, $link, $info, $more_text =null ) |
|
28 | + public function __construct($name, $icon, $color, $link, $info, $more_text = null) |
|
29 | 29 | { |
30 | 30 | if ($more_text == null) $more_text = trans('admin.more'); |
31 | 31 |
@@ -27,7 +27,9 @@ |
||
27 | 27 | */ |
28 | 28 | public function __construct($name, $icon, $color, $link, $info, $more_text =null ) |
29 | 29 | { |
30 | - if ($more_text == null) $more_text = trans('admin.more'); |
|
30 | + if ($more_text == null) { |
|
31 | + $more_text = trans('admin.more'); |
|
32 | + } |
|
31 | 33 | |
32 | 34 | |
33 | 35 | $this->data = [ |