File manager - Edit - /home/autoph/public_html/projects/Rating-AutoHub/public/css/whoops.zip
Back
PK �0�Z��' LICENSE.mdnu �[��� # The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. PK �0�Z���F F .mailmapnu �[��� Denis Sokolov <denis@sokolov.cc> Filipe Dobreira <dobreira@gmail.com> PK �0�Z+�:;� � composer.jsonnu �[��� { "name": "filp/whoops", "license": "MIT", "description": "php error handling for cool kids", "keywords": ["library", "error", "handling", "exception", "whoops", "throwable"], "homepage": "https://filp.github.io/whoops/", "authors": [ { "name": "Filipe Dobreira", "homepage": "https://github.com/filp", "role": "Developer" } ], "scripts": { "test": "phpunit --testdox tests" }, "require": { "php": "^5.5.9 || ^7.0 || ^8.0", "psr/log": "^1.0.1 || ^2.0 || ^3.0" }, "require-dev": { "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.3", "mockery/mockery": "^0.9 || ^1.0", "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0 || ^5.0" }, "suggest": { "symfony/var-dumper": "Pretty print complex values better with var-dumper available", "whoops/soap": "Formats errors as SOAP responses" }, "autoload": { "psr-4": { "Whoops\\": "src/Whoops/" } }, "autoload-dev": { "psr-4": { "Whoops\\": "tests/Whoops/" } }, "extra": { "branch-alias": { "dev-master": "2.7-dev" } } } PK �0�Z5�� � CHANGELOG.mdnu �[��� # CHANGELOG ## v2.15.0 * Add addFrameFilter ([#749](https://github.com/filp/whoops/pull/749)) ## v2.14.6 * Upgraded prismJS to version `1.29.0` due to security issue ([#741][i741]). [i741]: https://github.com/filp/whoops/pull/741 ## v2.14.5 * Allow `ArrayAccess` on super globals. ## v2.14.4 * Fix PHP `5.5` support. * Allow to use psr/log `2` or `3`. ## v2.14.3 * Support PHP `8.1`. ## v2.14.1 * Fix syntax highlighting scrolling too far. * Improve the way we detect xdebug linkformat. ## v2.14.0 * Switched syntax highlighting to Prism.js. Avoids licensing issues with prettify, and uses a maintained, modern project. ## v2.13.0 * Add Netbeans editor. ## v2.12.1 * Avoid redirecting away from an error. ## v2.12.0 * Hide non-string values in super globals when requested. ## v2.11.0 * Customize exit code. ## v2.10.0 * Better chaining on handler classes. ## v2.9.2 * Fix copy button styles. ## v2.9.1 * Fix xdebug function crash on PHP `8`. ## v2.9.0 * `JsonResponseHandler` includes the exception code. ## v2.8.0 * Support PHP 8. ## v2.7.3 * `PrettyPageHandler` functionality to hide superglobal keys has a clearer name (`hideSuperglobalKey`). ## v2.7.2 * `PrettyPageHandler` now accepts custom js files. * `PrettyPageHandler` and `templateHelper` is now accessible through inheritance. ## v2.7.1 * Fix a PHP warning in some cases with anonymous classes. ## v2.7.0 * Added `removeFirstHandler` and `removeLastHandler`. ## v2.6.0 * Fix 2.4.0 `pushHandler` changing the order of handlers. ## v2.5.1 * Fix error messaging in a rare case. ## v2.5.0 * Automatically configure xdebug if available. ## v2.4.1 * Try harder to close all output buffers. ## v2.4.0 * Allow to prepend and append handlers. ## v2.3.2 * Various fixes from the community. ## v2.3.1 * Prevent exception in Whoops when caught exception frame is not related to real file. ## v2.3.0 * Show previous exception messages. ## v2.2.0 * Support PHP `7.2`. ## v2.1.0 * Add a `SystemFacade` to allow clients to override Whoops behavior. * Show frame arguments in `PrettyPageHandler`. * Highlight the line with the error. * Add icons to search on Google and Stack Overflow. ## v2.0.0 Backwards compatibility breaking changes: * `Run` class is now `final`. If you inherited from `Run`, please now instead use a custom `SystemFacade` injected into the `Run` constructor, or contribute your changes to our core. * PHP < 5.5 support dropped. PK �0�Z^>�� + src/Whoops/Inspector/InspectorInterface.phpnu �[��� <?php /** * Whoops - php errors for cool kids * @author Filipe Dobreira <http://github.com/filp> */ namespace Whoops\Inspector; interface InspectorInterface { /** * @return \Throwable */ public function getException(); /** * @return string */ public function getExceptionName(); /** * @return string */ public function getExceptionMessage(); /** * @return string[] */ public function getPreviousExceptionMessages(); /** * @return int[] */ public function getPreviousExceptionCodes(); /** * Returns a url to the php-manual related to the underlying error - when available. * * @return string|null */ public function getExceptionDocrefUrl(); /** * Does the wrapped Exception has a previous Exception? * @return bool */ public function hasPreviousException(); /** * Returns an Inspector for a previous Exception, if any. * @todo Clean this up a bit, cache stuff a bit better. * @return InspectorInterface */ public function getPreviousExceptionInspector(); /** * Returns an array of all previous exceptions for this inspector's exception * @return \Throwable[] */ public function getPreviousExceptions(); /** * Returns an iterator for the inspected exception's * frames. * * @param array<callable> $frameFilters * * @return \Whoops\Exception\FrameCollection */ public function getFrames(array $frameFilters = []); } PK �0�Z�e5+ + 2 src/Whoops/Inspector/InspectorFactoryInterface.phpnu �[��� <?php /** * Whoops - php errors for cool kids * @author Filipe Dobreira <http://github.com/filp> */ namespace Whoops\Inspector; interface InspectorFactoryInterface { /** * @param \Throwable $exception * @return InspectorInterface */ public function create($exception); } PK �0�ZeY��� � ) src/Whoops/Inspector/InspectorFactory.phpnu �[��� <?php /** * Whoops - php errors for cool kids * @author Filipe Dobreira <http://github.com/filp> */ namespace Whoops\Inspector; use Whoops\Exception\Inspector; class InspectorFactory implements InspectorFactoryInterface { /** * @param \Throwable $exception * @return InspectorInterface */ public function create($exception) { return new Inspector($exception, $this); } } PK �0�Z����� � src/Whoops/Util/Misc.phpnu �[��� <?php /** * Whoops - php errors for cool kids * @author Filipe Dobreira <http://github.com/filp> */ namespace Whoops\Util; class Misc { /** * Can we at this point in time send HTTP headers? * * Currently this checks if we are even serving an HTTP request, * as opposed to running from a command line. * * If we are serving an HTTP request, we check if it's not too late. * * @return bool */ public static function canSendHeaders() { return isset($_SERVER["REQUEST_URI"]) && !headers_sent(); } public static function isAjaxRequest() { return ( !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); } /** * Check, if possible, that this execution was triggered by a command line. * @return bool */ public static function isCommandLine() { return PHP_SAPI == 'cli'; } /** * Translate ErrorException code into the represented constant. * * @param int $error_code * @return string */ public static function translateErrorCode($error_code) { $constants = get_defined_constants(true); if (array_key_exists('Core', $constants)) { foreach ($constants['Core'] as $constant => $value) { if (substr($constant, 0, 2) == 'E_' && $value == $error_code) { return $constant; } } } return "E_UNKNOWN"; } /** * Determine if an error level is fatal (halts execution) * * @param int $level * @return bool */ public static function isLevelFatal($level) { $errors = E_ERROR; $errors |= E_PARSE; $errors |= E_CORE_ERROR; $errors |= E_CORE_WARNING; $errors |= E_COMPILE_ERROR; $errors |= E_COMPILE_WARNING; return ($level & $errors) > 0; } } PK �0�ZJ�� � src/Whoops/Util/SystemFacade.phpnu �[��� <?php /** * Whoops - php errors for cool kids * @author Filipe Dobreira <http://github.com/filp> */ namespace Whoops\Util; class SystemFacade { /** * Turns on output buffering. * * @return bool */ public function startOutputBuffering() { return ob_start(); } /** * @param callable $handler * @param int $types * * @return callable|null */ public function setErrorHandler(callable $handler, $types = 'use-php-defaults') { // Since PHP 5.4 the constant E_ALL contains all errors (even E_STRICT) if ($types === 'use-php-defaults') { $types = E_ALL; } return set_error_handler($handler, $types); } /** * @param callable $handler * * @return callable|null */ public function setExceptionHandler(callable $handler) { return set_exception_handler($handler); } /** * @return void */ public function restoreExceptionHandler() { restore_exception_handler(); } /** * @return void */ public function restoreErrorHandler() { restore_error_handler(); } /** * @param callable $function * * @return void */ public function registerShutdownFunction(callable $function) { register_shutdown_function($function); } /** * @return string|false */ public function cleanOutputBuffer() { return ob_get_clean(); } /** * @return int */ public function getOutputBufferLevel() { return ob_get_level(); } /** * @return bool */ public function endOutputBuffering() { return ob_end_clean(); } /** * @return void */ public function flushOutputBuffer() { flush(); } /** * @return int */ public function getErrorReportingLevel() { return error_reporting(); } /** * @return array|null */ public function getLastError() { return error_get_last(); } /** * @param int $httpCode * * @return int */ public function setHttpResponseCode($httpCode) { if (!headers_sent()) { // Ensure that no 'location' header is present as otherwise this // will override the HTTP code being set here, and mask the // expected error page. header_remove('location'); } return http_response_code($httpCode); } /** * @param int $exitStatus */ public function stopExecution($exitStatus) { exit($exitStatus); } } PK �0�Z��Z�� � $ src/Whoops/Util/HtmlDumperOutput.phpnu �[��� <?php /** * Whoops - php errors for cool kids * @author Filipe Dobreira <http://github.com/filp> */ namespace Whoops\Util; /** * Used as output callable for Symfony\Component\VarDumper\Dumper\HtmlDumper::dump() * * @see TemplateHelper::dump() */ class HtmlDumperOutput { private $output; public function __invoke($line, $depth) { // A negative depth means "end of dump" if ($depth >= 0) { // Adds a two spaces indentation to the line $this->output .= str_repeat(' ', $depth) . $line . "\n"; } } public function getOutput() { return $this->output; } public function clear() { $this->output = null; } } PK �0�ZM��% % "