This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($, undefined) { | |
/** | |
* Shows HTTP Error Statuses and some FireLogger info from Ajax request | |
*/ | |
$.nette.ext('httpStatusToFlash', { | |
start: function (xhr) { | |
xhr.setRequestHeader("X-FireLogger", '1.2'); | |
return xhr; | |
}, | |
error: function (payload) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is part of the AjaxPanels Nette Addon | |
* | |
* Copyright (c) 2012 Leonard Odlozilik | |
* | |
* For the full copyright and license information, please view | |
* the file license.txt that was distributed with this source code. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($, undefined) { | |
/** | |
* Shows info on Ajax request | |
*/ | |
$.nette.ext('diagnostics.jsonpanel', { | |
start: function (xhr, settings) { | |
var $panel = this.getPanel(); | |
if (!$panel) return; | |
if (this.singleReport) this.clear(); | |
$(this.getTitle(++this.counter, 'request')).appendTo($panel); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Nette\Diagnostics\Debugger; | |
/** | |
* Dump rendered Html element or code and inteded output generated by tidy and optional also Html element structure | |
* @param Html|string Html element or string | |
* @param bool Return output in string and don't send it to output? | |
* @param int MaxDepth for Debugger::Dump output - to see how is the Html element built | |
* @param bool Send along javascript code for prettyPrint activation? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is part of the Kdyby (http://www.kdyby.org) | |
* | |
* Copyright (c) 2008, 2012 Filip Procházka ([email protected]) | |
* | |
* For the full copyright and license information, please view the file license.md that was distributed with this source code. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file is part of the Kdyby (http://www.kdyby.org) | |
* | |
* Copyright (c) 2008, 2012 Filip Procházka ([email protected]) | |
* | |
* For the full copyright and license information, please view the file license.md that was distributed with this source code. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param \Nette\Templating\FileTemplate $template | |
*/ | |
public function __construct(FileTemplate $template = NULL) | |
{ | |
if ($template === NULL) { | |
$template = new FileTemplate(); | |
$template->registerFilter(new Nette\Latte\Engine()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types = 1); | |
namespace App\PHPStan; | |
use PHPStan\Command\AnalysisResult; | |
use PHPStan\Command\ErrorFormatter\ErrorFormatter; | |
use Symfony\Component\Console\Style\OutputStyle; | |
class SummaryErrorFormatter implements ErrorFormatter | |
{ | |
public function formatErrors( | |
AnalysisResult $analysisResult, | |
OutputStyle $style |