Skip to content

Instantly share code, notes, and snippets.

View MartinMystikJonas's full-sized avatar

Martin Mystik Jonáš MartinMystikJonas

View GitHub Profile
diff --git a/src/Latte/Compiler/TemplateGenerator.php b/src/Latte/Compiler/TemplateGenerator.php
index c522437b..b7fe0e91 100644
--- a/src/Latte/Compiler/TemplateGenerator.php
+++ b/src/Latte/Compiler/TemplateGenerator.php
@@ -197,7 +197,7 @@ private static function buildParams(
? implode('', $res) . 'unset($ʟ_args);'
: "extract($cont);" . (str_contains($cont, '$this') ? '' : "unset($cont);");
- return $extract . "\n"
+ return $extract
#!/usr/bin/perl -w
use strict;
my $remote = '[email protected]::carol/dump';
my $phase = shift;
if ($phase eq 'backup-end') {
if(status == cookieconsent.status.deny) {
$('script[cookieconsent=enabled]').each(function() {
console.log("Cookie disabled: " + $(this).data("cookietype"));
$(this).remove();
});
} else {
$('script[cookieconsent=disabled]').each(function() {
scriptOrigin = $(this);
script = scriptOrigin.clone();
script.attr('type', 'text/javascript');
0x0c5331b568bb5f75d304a4df00e086c5aed9e3eb
<?php
namespace Metis\Tester;
use Nette\Object;
use Tracy\Dumper;
class TestingServer extends Object {
public $onOutput;