Skip to content

Commit

Permalink
Merge pull request #3566 from z-song/analysis-z9pwwP
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
z-song authored Jun 23, 2019
2 parents 28da086 + 5384d3d commit 6306ab3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/Auth/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Encore\Admin\Facades\Admin;
use Encore\Admin\Middleware\Pjax;
use Illuminate\Support\Facades\Auth;

class Permission
{
Expand Down
1 change: 0 additions & 1 deletion src/Grid/Column/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Encore\Admin\Grid\Column;

use Encore\Admin\Admin;
use Illuminate\Contracts\Support\Renderable;

class Help implements Renderable
Expand Down
2 changes: 1 addition & 1 deletion src/Grid/Concerns/HasHotKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ public function enableHotKeys()

return $this;
}
}
}
15 changes: 7 additions & 8 deletions src/Grid/Displayers/Copyable.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,25 @@
use Encore\Admin\Facades\Admin;

/**
* Class Copyable
* @package Encore\Admin\Grid\Displayers
* Class Copyable.
*
* @see https://codepen.io/shaikmaqsood/pen/XmydxJ
*/
class Copyable extends AbstractDisplayer
{
protected function addScript()
{
$script = <<<SCRIPT
$script = <<<'SCRIPT'
$('.grid-column-copyable').click(function (e) {
var content = $(this).data('content');
var \$temp = $('<input>');
var $temp = $('<input>');
\$("body").append(\$temp);
\$temp.val(content).select();
$("body").append($temp);
$temp.val(content).select();
document.execCommand("copy");
\$temp.remove();
$temp.remove();
$(this).tooltip('show');
});
Expand All @@ -45,4 +44,4 @@ public function display()
</a>&nbsp;{$this->getValue()}
HTML;
}
}
}
8 changes: 3 additions & 5 deletions src/Grid/Displayers/QRCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
use Encore\Admin\Facades\Admin;

/**
* Class QRCode
*
* @package Encore\Admin\Grid\Displayers
* Class QRCode.
*/
class QRCode extends AbstractDisplayer
{
protected function addScript()
{
$script = <<<SCRIPT
$script = <<<'SCRIPT'
$('.grid-column-qrcode').popover({
html: true,
trigger: 'focus'
Expand Down Expand Up @@ -41,4 +39,4 @@ public function display($formatter = null, $width = 150, $height = 150)
</a>&nbsp;{$this->getValue()}
HTML;
}
}
}
1 change: 0 additions & 1 deletion src/Middleware/Pjax.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Closure;
use Encore\Admin\Facades\Admin;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\MessageBag;
use Symfony\Component\DomCrawler\Crawler;
use Symfony\Component\HttpFoundation\Response;
Expand Down

0 comments on commit 6306ab3

Please sign in to comment.