Skip to content

Commit

Permalink
fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Jul 22, 2020
1 parent a9589f0 commit 062e534
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/Bridges/NetteTracy/ConnectionPanel.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@ namespace Nextras\Dbal\Bridges\NetteTracy;
</style>

<script>
function nextrasDbalPanelCopySql(e, containerId) {
e.preventDefault();
const str = document.getElementById(containerId).textContent;
const el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
document.body.appendChild(el);
const selected =
document.getSelection().rangeCount > 0
? document.getSelection().getRangeAt(0)
: false;
el.select();
document.execCommand('copy');
document.body.removeChild(el);
if (selected) {
document.getSelection().removeAllRanges();
document.getSelection().addRange(selected);
}
return false;
}
function nextrasDbalPanelCopySql(e, containerId) {
e.preventDefault();
const str = document.getElementById(containerId).textContent;
const el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
document.body.appendChild(el);
const selected =
document.getSelection().rangeCount > 0
? document.getSelection().getRangeAt(0)
: false;
el.select();
document.execCommand('copy');
document.body.removeChild(el);
if (selected) {
document.getSelection().removeAllRanges();
document.getSelection().addRange(selected);
}
return false;
}
</script>

<h1>Queries: <?php echo $count ?></h1>
Expand Down
1 change: 1 addition & 0 deletions src/Utils/CallbackQueryLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Nextras\Dbal\Utils;


use Nextras\Dbal\Drivers\Exception\DriverException;
use Nextras\Dbal\ILogger;
use Nextras\Dbal\Result\Result;
Expand Down

0 comments on commit 062e534

Please sign in to comment.