Skip to content

Commit 6306ab3

Browse files
authored
Merge pull request z-song#3566 from z-song/analysis-z9pwwP
Apply fixes from StyleCI
2 parents 28da086 + 5384d3d commit 6306ab3

File tree

6 files changed

+11
-17
lines changed

6 files changed

+11
-17
lines changed

src/Auth/Permission.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Encore\Admin\Facades\Admin;
66
use Encore\Admin\Middleware\Pjax;
7-
use Illuminate\Support\Facades\Auth;
87

98
class Permission
109
{

src/Grid/Column/Help.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Encore\Admin\Grid\Column;
44

5-
use Encore\Admin\Admin;
65
use Illuminate\Contracts\Support\Renderable;
76

87
class Help implements Renderable

src/Grid/Concerns/HasHotKeys.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ public function enableHotKeys()
6060

6161
return $this;
6262
}
63-
}
63+
}

src/Grid/Displayers/Copyable.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,25 @@
55
use Encore\Admin\Facades\Admin;
66

77
/**
8-
* Class Copyable
9-
* @package Encore\Admin\Grid\Displayers
8+
* Class Copyable.
109
*
1110
* @see https://codepen.io/shaikmaqsood/pen/XmydxJ
1211
*/
1312
class Copyable extends AbstractDisplayer
1413
{
1514
protected function addScript()
1615
{
17-
$script = <<<SCRIPT
16+
$script = <<<'SCRIPT'
1817
$('.grid-column-copyable').click(function (e) {
1918
2019
var content = $(this).data('content');
2120
22-
var \$temp = $('<input>');
21+
var $temp = $('<input>');
2322
24-
\$("body").append(\$temp);
25-
\$temp.val(content).select();
23+
$("body").append($temp);
24+
$temp.val(content).select();
2625
document.execCommand("copy");
27-
\$temp.remove();
26+
$temp.remove();
2827
2928
$(this).tooltip('show');
3029
});
@@ -45,4 +44,4 @@ public function display()
4544
</a>&nbsp;{$this->getValue()}
4645
HTML;
4746
}
48-
}
47+
}

src/Grid/Displayers/QRCode.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
use Encore\Admin\Facades\Admin;
66

77
/**
8-
* Class QRCode
9-
*
10-
* @package Encore\Admin\Grid\Displayers
8+
* Class QRCode.
119
*/
1210
class QRCode extends AbstractDisplayer
1311
{
1412
protected function addScript()
1513
{
16-
$script = <<<SCRIPT
14+
$script = <<<'SCRIPT'
1715
$('.grid-column-qrcode').popover({
1816
html: true,
1917
trigger: 'focus'
@@ -41,4 +39,4 @@ public function display($formatter = null, $width = 150, $height = 150)
4139
</a>&nbsp;{$this->getValue()}
4240
HTML;
4341
}
44-
}
42+
}

src/Middleware/Pjax.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Closure;
66
use Encore\Admin\Facades\Admin;
77
use Illuminate\Http\Request;
8-
use Illuminate\Support\Facades\Auth;
98
use Illuminate\Support\MessageBag;
109
use Symfony\Component\DomCrawler\Crawler;
1110
use Symfony\Component\HttpFoundation\Response;

0 commit comments

Comments
 (0)