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 | |
namespace Enso\Core; | |
/** | |
* Inline exception handler, displays the error message, source of the exception | |
* and the stack trace of the error. | |
* | |
* @package Enso\Core | |
* @copyright (c) 2014 WinterSilence |
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 | |
namespace Enso\Core; | |
/** | |
* Interface for request. | |
* | |
* @package Enso\Core | |
* @copyright (c) 2014 WinterSilence | |
* @license MIT License |
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 | |
/** | |
* Abstract base class, supports magically work with properties. | |
* Allows protect tproperties and interact with them only through methods set\get. | |
*/ | |
abstract class Base | |
{ | |
/** | |
* Get protected property by calling method "getPropertyName" or "propertyName" | |
* (combines set\get methods). If methods are undefined, get property directly. |
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 | |
/** | |
* Used to create serializable anonymous function, based on PHP function | |
* [create_function](http://php.net/create-function). | |
* | |
* @package Enso | |
* @category Base | |
* @license http://ensophp.github.io/license | |
*/ | |
namespace Enso; |
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 | |
/** | |
* A general-purpose implementation that includes the optional functionality | |
* of allowing multiple base directories for a single namespace prefix. | |
*/ | |
class Psr4Autoloader | |
{ | |
const EXTENSION = '.php'; | |
/** | |
* An associative array where the key is a namespace prefix and the value |
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 | |
namespace Sitemap; | |
/** | |
* A class for generating sitemaps. | |
* @see http://sitemaps.org | |
*/ | |
class Sitemap | |
{ | |
/** |
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
// ==UserScript== | |
// @name litresCoupons | |
// @namespace litres.ru | |
// @version 0.1 | |
// @description Add coupons | |
// @author info@ensostudio.ru | |
// @include https://www.litres.ru/pages/put_money_on_account/* | |
// @include https://litres.ru/pages/put_money_on_account/* | |
// @require https://code.jquery.com/jquery-3.4.1.min.js | |
// @grant unsafeWindow |
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 | |
namespace Sitemap; | |
/** | |
* Basic sitemap URL class. | |
*/ | |
class Url extends UrlAbstract | |
{ | |
/** | |
* Valid values of "changefreq" element. |
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 | |
/** | |
* Returns language list parsed from site "iana.org" and grouped by type ('language', 'variant', 'extlang' and etc.). | |
* | |
* @param int $last_update timestamp (optional) | |
* @param string $url source URL (optional) | |
* @return array|null return NULL when list not updated | |
*/ | |
function iana_languages(int $last_update = null, string $url = null): ?array | |
{ |
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 | |
if (! function_exists('is_iterable')) { | |
/** | |
* Verify that the contents of a variable is an iterable value. | |
* | |
* @link https://php.net/manual/en/function.is_iterable.php | |
* @param mixed $var Variable to test | |
* @return bool | |
*/ |
OlderNewer