repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
diogogpinto/filament-auth-ui-enhancer
https://github.com/diogogpinto/filament-auth-ui-enhancer/blob/1c503274bf8e92354b8d46768d4b242c7729ab29/tests/ArchTest.php
tests/ArchTest.php
<?php it('will not use debugging functions') ->expect(['dd', 'dump', 'ray']) ->each->not->toBeUsed();
php
MIT
1c503274bf8e92354b8d46768d4b242c7729ab29
2026-01-05T05:24:07.458093Z
false
diogogpinto/filament-auth-ui-enhancer
https://github.com/diogogpinto/filament-auth-ui-enhancer/blob/1c503274bf8e92354b8d46768d4b242c7729ab29/tests/ExampleTest.php
tests/ExampleTest.php
<?php it('can test', function () { expect(true)->toBeTrue(); });
php
MIT
1c503274bf8e92354b8d46768d4b242c7729ab29
2026-01-05T05:24:07.458093Z
false
diogogpinto/filament-auth-ui-enhancer
https://github.com/diogogpinto/filament-auth-ui-enhancer/blob/1c503274bf8e92354b8d46768d4b242c7729ab29/resources/views/custom-auth-layout.blade.php
resources/views/custom-auth-layout.blade.php
@php $formPanelPosition = filament('filament-auth-ui-enhancer')->getFormPanelPosition(); $mobileFormPanelPosition = filament('filament-auth-ui-enhancer')->getMobileFormPanelPosition(); $emptyPanelBackgroundImageUrl = filament('filament-auth-ui-enhancer')->getEmptyPanelBackgroundImageUrl(); $emptyPanelBa...
php
MIT
1c503274bf8e92354b8d46768d4b242c7729ab29
2026-01-05T05:24:07.458093Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/scripts/_config.php
scripts/_config.php
<?php return array( 'tgos' => array( 'url' => 'http://addr.tgos.nat.gov.tw/addrws/v30/QueryAddr.asmx/QueryAddr', 'APPID' => '', 'APIKey' => '', ), );
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/scripts/cron_daily.php
scripts/cron_daily.php
<?php $rootPath = dirname(__DIR__); $now = date('Y-m-d H:i:s'); exec("cd {$rootPath} && /usr/bin/git pull"); exec("php -q {$rootPath}/scripts/01_geocoding.php"); exec("php -q {$rootPath}/scripts/03_fix_from_lanma.php"); exec("cd {$rootPath} && /usr/bin/git add -A"); exec("cd {$rootPath} && /usr/bin/git commit --au...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/scripts/01_geocoding.php
scripts/01_geocoding.php
<?php $config = require __DIR__ . '/config.php'; require dirname(__DIR__) . '/vendor/autoload.php'; use Goutte\Client; $client = new Client(); $client->request('GET', 'https://data.nhi.gov.tw/resource/Opendata/%e5%85%a8%e6%b0%91%e5%81%a5%e5%ba%b7%e4%bf%9d%e9%9a%aa%e7%89%b9%e7%b4%84%e9%99%a2%e6%89%80%e5%9b%ba%e5%ae%9a%...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
true
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/scripts/cron.php
scripts/cron.php
<?php $cronLock = __DIR__ . '/cron_lock'; if(file_exists($cronLock)) { //previous cron is still executing, don't push it~~~ exit(); } file_put_contents($cronLock, date('Y-m-d H:i:s')); $rootPath = dirname(__DIR__); $now = date('Y-m-d H:i:s'); exec("cd {$rootPath} && /usr/bin/git pull"); exec("php -q {$rootP...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/scripts/02_fetch_maskdata.php
scripts/02_fetch_maskdata.php
<?php $basePath = dirname(__DIR__); require $basePath . '/vendor/autoload.php'; use Goutte\Client; $client = new Client(); $pFh = fopen($basePath . '/raw/pharmacyMore.csv', 'r'); $head = fgetcsv($pFh, 2048); $pharmacyMore = array(); while($line = fgetcsv($pFh, 2048)) { $pharmacyMore[$line[0]] = $line[3]; } fclose(...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/scripts/04_service_notes.php
scripts/04_service_notes.php
<?php $fh = fopen(dirname(__DIR__) . '/raw/A21030000I-D21005-004.csv', 'r'); $head = fgetcsv($fh, 2048); /* Array ( [0] => 醫事機構代碼 [1] => 醫事機構名稱 [2] => 醫事機構種類 [3] => 電話 [4] => 地 址 [5] => 分區業務組 [6] => 特約類別 [7] => 服務項目 [8] => 診療科別 [9] => 終止合約或歇業日期 [10] => 固定看診時段 [11] =...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/scripts/03_fix_from_lanma.php
scripts/03_fix_from_lanma.php
<?php $fh = fopen(dirname(__DIR__) . '/raw/lanma.csv', 'r'); $head = fgetcsv($fh, 2048); $ref = array(); while($line = fgetcsv($fh, 2048)) { $ref[$line[0]] = array($line[6], $line[5]); } fclose($fh); /* geocoding from https://maps.nlsc.gov.tw/T09/mapshow.action?language=ZH */ $ref['2331200010'] = array(121.711626,...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/autoload.php
vendor/autoload.php
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInitffb5c36e16ccb89d39d4954c3345d643::getLoader();
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.safe-includes.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.safe-includes.php
<?php /** * @file * This file was auto-generated by generate-includes.php and includes all of * the core files required by HTML Purifier. This is a convenience stub that * includes all files using dirname(__FILE__) and require_once. PLEASE DO NOT * EDIT THIS FILE, changes will be overwritten the next time the scr...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.path.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.path.php
<?php /** * @file * Convenience stub file that adds HTML Purifier's library file to the path * without any other side-effects. */ set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path() ); // vim: et sw=4 sts=4
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.auto.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.auto.php
<?php /** * This is a stub include that automatically configures the include path. */ set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path() ); require_once 'HTMLPurifier/Bootstrap.php'; require_once 'HTMLPurifier.autoload.php'; // vim: et sw=4 sts=4
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload.php
<?php /** * @file * Convenience file that registers autoload handler for HTML Purifier. * It also does some sanity checks. */ if (function_exists('spl_autoload_register') && function_exists('spl_autoload_unregister')) { // We need unregister for our pre-registering functionality HTMLPurifier_Bootstrap::re...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.includes.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.includes.php
<?php /** * @file * This file was auto-generated by generate-includes.php and includes all of * the core files required by HTML Purifier. Use this if performance is a * primary concern and you are using an opcode cache. PLEASE DO NOT EDIT THIS * FILE, changes will be overwritten the next time the script is run. ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload-legacy.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload-legacy.php
<?php /** * @file * Legacy autoloader for systems lacking spl_autoload_register * * Must be separate to prevent deprecation warning on PHP 7.2 */ function __autoload($class) { return HTMLPurifier_Bootstrap::autoload($class); } // vim: et sw=4 sts=4
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.kses.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.kses.php
<?php /** * @file * Emulation layer for code that used kses(), substituting in HTML Purifier. */ require_once dirname(__FILE__) . '/HTMLPurifier.auto.php'; function kses($string, $allowed_html, $allowed_protocols = null) { $config = HTMLPurifier_Config::createDefault(); $allowed_elements = array(); $a...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
<?php /*! @mainpage * * HTML Purifier is an HTML filter that will take an arbitrary snippet of * HTML and rigorously test, validate and filter it into a version that * is safe for output onto webpages. It achieves this by: * * -# Lexing (parsing into tokens) the document, * -# Executing various strategies on ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.func.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.func.php
<?php /** * @file * Defines a function wrapper for HTML Purifier for quick use. * @note ''HTMLPurifier()'' is NOT the same as ''new HTMLPurifier()'' */ /** * Purify HTML. * @param string $html String HTML to purify * @param mixed $config Configuration to use, can be any value accepted by * HTMLPurifier...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier.composer.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier.composer.php
<?php if (!defined('HTMLPURIFIER_PREFIX')) { define('HTMLPURIFIER_PREFIX', dirname(__FILE__)); }
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Doctype.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Doctype.php
<?php /** * Represents a document type, contains information on which modules * need to be loaded. * @note This class is inspected by Printer_HTMLDefinition->renderDoctype. * If structure changes, please update that function. */ class HTMLPurifier_Doctype { /** * Full name of doctype * @type s...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/StringHash.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/StringHash.php
<?php /** * This is in almost every respect equivalent to an array except * that it keeps track of which keys were accessed. * * @warning For the sake of backwards compatibility with early versions * of PHP 5, you must not use the $hash[$key] syntax; if you do * our version of offsetGet is never called. ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token.php
<?php /** * Abstract base token class that all others inherit from. */ abstract class HTMLPurifier_Token { /** * Line number node was on in source document. Null if unknown. * @type int */ public $line; /** * Column of line node was on in source document. Null if unknown. * @typ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLDefinition.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLDefinition.php
<?php /** * Definition of the purified HTML that describes allowed children, * attributes, and many other things. * * Conventions: * * All member variables that are prefixed with info * (including the main $info array) are used by HTML Purifier internals * and should not be directly edited when customizing the...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrCollections.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrCollections.php
<?php /** * Defines common attribute collections that modules reference */ class HTMLPurifier_AttrCollections { /** * Associative array of attribute collections, indexed by name. * @type array */ public $info = array(); /** * Performs all expansions on internal data for use by othe...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIDefinition.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIDefinition.php
<?php class HTMLPurifier_URIDefinition extends HTMLPurifier_Definition { public $type = 'URI'; protected $filters = array(); protected $postFilters = array(); protected $registeredFilters = array(); /** * HTMLPurifier_URI object of the base specified at %URI.Base */ public $base; ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme.php
<?php /** * Validator for the components of a URI for a specific scheme */ abstract class HTMLPurifier_URIScheme { /** * Scheme's default port (integer). If an explicit port number is * specified that coincides with the default port, it will be * elided. * @type int */ public $defau...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform.php
<?php /** * Defines a mutation of an obsolete tag into a valid tag. */ abstract class HTMLPurifier_TagTransform { /** * Tag name to transform the tag to. * @type string */ public $transform_to; /** * Transforms the obsolete tag into the valid tag. * @param HTMLPurifier_Token_Ta...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/PropertyList.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/PropertyList.php
<?php /** * Generic property list implementation */ class HTMLPurifier_PropertyList { /** * Internal data-structure for properties. * @type array */ protected $data = array(); /** * Parent plist. * @type HTMLPurifier_PropertyList */ protected $parent; /** * Ca...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModuleManager.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModuleManager.php
<?php class HTMLPurifier_HTMLModuleManager { /** * @type HTMLPurifier_DoctypeRegistry */ public $doctypes; /** * Instance of current doctype. * @type string */ public $doctype; /** * @type HTMLPurifier_AttrTypes */ public $attrTypes; /** * Active ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer.php
<?php /** * Forgivingly lexes HTML (SGML-style) markup into tokens. * * A lexer parses a string of SGML-style markup and converts them into * corresponding tokens. It doesn't check for well-formedness, although its * internal mechanism may make this automatic (such as the case of * HTMLPurifier_Lexer_DOMLex). ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache.php
<?php /** * Abstract class representing Definition cache managers that implements * useful common methods and is a factory. * @todo Create a separate maintenance file advanced users can use to * cache their custom HTMLDefinition, which can be loaded * via a configuration directive * @todo Implement m...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ErrorCollector.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ErrorCollector.php
<?php /** * Error collection class that enables HTML Purifier to report HTML * problems back to the user */ class HTMLPurifier_ErrorCollector { /** * Identifiers for the returned error array. These are purposely numeric * so list() can be used. */ const LINENO = 0; const SEVERITY = 1; ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Definition.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Definition.php
<?php /** * Super-class for definition datatype objects, implements serialization * functions for the class. */ abstract class HTMLPurifier_Definition { /** * Has setup() been called yet? * @type bool */ public $setup = false; /** * If true, write out the final definition object to...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Encoder.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Encoder.php
<?php /** * A UTF-8 specific character encoder that handles cleaning and transforming. * @note All functions in this class should be static. */ class HTMLPurifier_Encoder { /** * Constructor throws fatal error if you attempt to instantiate class */ private function __construct() { tri...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php
<?php /** * Represents an XHTML 1.1 module, with information on elements, tags * and attributes. * @note Even though this is technically XHTML 1.1, it is also used for * regular HTML parsing. We are using modulization as a convenient * way to represent the internals of HTMLDefinition, and our * ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URI.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URI.php
<?php /** * HTML Purifier's internal representation of a URI. * @note * Internal data-structures are completely escaped. If the data needs * to be used in a non-URI context (which is very unlikely), be sure * to decode it first. The URI may not necessarily be well-formed until * validate() is...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Context.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Context.php
<?php /** * Registry object that contains information about the current context. * @warning Is a bit buggy when variables are set to null: it thinks * they don't exist! So use false instead, please. * @note Since the variables Context deals with may not be objects, * references are very important h...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Bootstrap.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Bootstrap.php
<?php // constants are slow, so we use as few as possible if (!defined('HTMLPURIFIER_PREFIX')) { define('HTMLPURIFIER_PREFIX', realpath(dirname(__FILE__) . '/..')); } // accomodations for versions earlier than 5.0.2 // borrowed from PHP_Compat, LGPL licensed, by Aidan Lister <aidan@php.net> if (!defined('PHP_EOL'...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/VarParser.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/VarParser.php
<?php /** * Parses string representations into their corresponding native PHP * variable type. The base implementation does a simple type-check. */ class HTMLPurifier_VarParser { const C_STRING = 1; const ISTRING = 2; const TEXT = 3; const ITEXT = 4; const C_INT = 5; const C_FLOAT = 6; ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URISchemeRegistry.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URISchemeRegistry.php
<?php /** * Registry for retrieving specific URI scheme validator objects. */ class HTMLPurifier_URISchemeRegistry { /** * Retrieve sole instance of the registry. * @param HTMLPurifier_URISchemeRegistry $prototype Optional prototype to overload sole instance with, * or bool true...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema.php
<?php /** * Configuration definition, defines directives and their defaults. */ class HTMLPurifier_ConfigSchema { /** * Defaults of the directives and namespaces. * @type array * @note This shares the exact same structure as HTMLPurifier_Config::$conf */ public $defaults = array(); /...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Printer.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Printer.php
<?php // OUT OF DATE, NEEDS UPDATING! // USE XMLWRITER! class HTMLPurifier_Printer { /** * For HTML generation convenience funcs. * @type HTMLPurifier_Generator */ protected $generator; /** * For easy access. * @type HTMLPurifier_Config */ protected $config; /** ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Language.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Language.php
<?php /** * Represents a language and defines localizable string formatting and * other functions, as well as the localized messages for HTML Purifier. */ class HTMLPurifier_Language { /** * ISO 639 language code of language. Prefers shortest possible version. * @type string */ public $code ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php
<?php /** * Defines allowed CSS attributes and what their values are. * @see HTMLPurifier_HTMLDefinition */ class HTMLPurifier_CSSDefinition extends HTMLPurifier_Definition { public $type = 'CSS'; /** * Assoc array of attribute name to definition object. * @type HTMLPurifier_AttrDef[] */ ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform.php
<?php /** * Processes an entire attribute array for corrections needing multiple values. * * Occasionally, a certain attribute will need to be removed and popped onto * another value. Instead of creating a complex return syntax for * HTMLPurifier_AttrDef, we just pass the whole attribute array to a * specialize...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/VarParserException.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/VarParserException.php
<?php /** * Exception type for HTMLPurifier_VarParser */ class HTMLPurifier_VarParserException extends HTMLPurifier_Exception { } // vim: et sw=4 sts=4
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/IDAccumulator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/IDAccumulator.php
<?php /** * Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes * @note In Slashdot-speak, dupe means duplicate. * @note The default constructor does not accept $config or $context objects: * use must use the static build() factory method to perform initialization. */ class HTMLPurif...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/LanguageFactory.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/LanguageFactory.php
<?php /** * Class responsible for generating HTMLPurifier_Language objects, managing * caching and fallbacks. * @note Thanks to MediaWiki for the general logic, although this version * has been entirely rewritten * @todo Serialized cache for languages */ class HTMLPurifier_LanguageFactory { /** *...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/PropertyListIterator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/PropertyListIterator.php
<?php /** * Property list iterator. Do not instantiate this class directly. */ class HTMLPurifier_PropertyListIterator extends FilterIterator { /** * @type int */ protected $l; /** * @type string */ protected $filter; /** * @param Iterator $iterator Array of data to ite...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/StringHashParser.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/StringHashParser.php
<?php /** * Parses string hash files. File format is as such: * * DefaultKeyValue * KEY: Value * KEY2: Value2 * --MULTILINE-KEY-- * Multiline * value. * * Which would output something similar to: * * array( * 'ID' => 'DefaultKeyValue', * 'KEY' => 'Valu...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Exception.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Exception.php
<?php /** * Global exception class for HTML Purifier; any exceptions we throw * are from here. */ class HTMLPurifier_Exception extends Exception { } // vim: et sw=4 sts=4
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/UnitConverter.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/UnitConverter.php
<?php /** * Class for converting between different unit-lengths as specified by * CSS. */ class HTMLPurifier_UnitConverter { const ENGLISH = 1; const METRIC = 2; const DIGITAL = 3; /** * Units information array. Units are grouped into measuring systems * (English, Metric), and are assign...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Length.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Length.php
<?php /** * Represents a measurable length, with a string numeric magnitude * and a unit. This object is immutable. */ class HTMLPurifier_Length { /** * String numeric magnitude. * @type string */ protected $n; /** * String unit. False is permitted if $n = 0. * @type string|bo...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/EntityParser.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/EntityParser.php
<?php // if want to implement error collecting here, we'll need to use some sort // of global data (probably trigger_error) because it's impossible to pass // $config or $context to the callback functions. /** * Handles referencing and derefencing character entities */ class HTMLPurifier_EntityParser { /** ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCacheFactory.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCacheFactory.php
<?php /** * Responsible for creating definition caches. */ class HTMLPurifier_DefinitionCacheFactory { /** * @type array */ protected $caches = array('Serializer' => array()); /** * @type array */ protected $implementations = array(); /** * @type HTMLPurifier_Definition...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php
<?php /** * Injects tokens into the document while parsing for well-formedness. * This enables "formatter-like" functionality such as auto-paragraphing, * smiley-ification and linkification to take place. * * A note on how handlers create changes; this is done by assigning a new * value to the $token reference. ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php
<?php /** * Configuration object that triggers customizable behavior. * * @warning This class is strongly defined: that means that the class * will fail if an undefined directive is retrieved or set. * * @note Many classes that could (although many times don't) use the * configuration object make...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DoctypeRegistry.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DoctypeRegistry.php
<?php class HTMLPurifier_DoctypeRegistry { /** * Hash of doctype names to doctype objects. * @type array */ protected $doctypes; /** * Lookup table of aliases to real doctype names. * @type array */ protected $aliases; /** * Registers a doctype to the registry ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIParser.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIParser.php
<?php /** * Parses a URI into the components and fragment identifier as specified * by RFC 3986. */ class HTMLPurifier_URIParser { /** * Instance of HTMLPurifier_PercentEncoder to do normalization with. */ protected $percentEncoder; public function __construct() { $this->percentE...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy.php
<?php /** * Supertype for classes that define a strategy for modifying/purifying tokens. * * While HTMLPurifier's core purpose is fixing HTML into something proper, * strategies provide plug points for extra configuration or even extra * features, such as custom tags, custom parsing of text, etc. */ abstract c...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrValidator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrValidator.php
<?php /** * Validates the attributes of a token. Doesn't manage required attributes * very well. The only reason we factored this out was because RemoveForeignElements * also needed it besides ValidateAttributes. */ class HTMLPurifier_AttrValidator { /** * Validates the attributes of a token, mutating it...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node.php
<?php /** * Abstract base node class that all others inherit from. * * Why do we not use the DOM extension? (1) It is not always available, * (2) it has funny constraints on the data it can represent, * whereas we want a maximally flexible representation, and (3) its * interface is a bit cumbersome. */ abstrac...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTypes.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTypes.php
<?php /** * Provides lookup array of attribute types to HTMLPurifier_AttrDef objects */ class HTMLPurifier_AttrTypes { /** * Lookup array of attribute string identifiers to concrete implementations. * @type HTMLPurifier_AttrDef[] */ protected $info = array(); /** * Constructs the inf...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef.php
<?php /** * Defines allowed child nodes and validates nodes against it. */ abstract class HTMLPurifier_ChildDef { /** * Type of child definition, usually right-most part of class name lowercase. * Used occasionally in terms of context. * @type string */ public $type; /** * Indic...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/TokenFactory.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/TokenFactory.php
<?php /** * Factory for token generation. * * @note Doing some benchmarking indicates that the new operator is much * slower than the clone operator (even discounting the cost of the * constructor). This class is for that optimization. * Other then that, there's not much point as we don't * ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter.php
<?php /** * Represents a pre or post processing filter on HTML Purifier's output * * Sometimes, a little ad-hoc fixing of HTML has to be done before * it gets sent through HTML Purifier: you can use filters to acheive * this effect. For instance, YouTube videos can be preserved using * this manner. You could hav...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/EntityLookup.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/EntityLookup.php
<?php /** * Object that provides entity lookup table from entity name to character */ class HTMLPurifier_EntityLookup { /** * Assoc array of entity name to character represented. * @type array */ public $table; /** * Sets up the entity lookup table from the serialized file contents. ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ContentSets.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ContentSets.php
<?php /** * @todo Unit test */ class HTMLPurifier_ContentSets { /** * List of content set strings (pipe separators) indexed by name. * @type array */ public $info = array(); /** * List of content set lookups (element => true) indexed by name. * @type array * @note This is ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter.php
<?php /** * Chainable filters for custom URI processing. * * These filters can perform custom actions on a URI filter object, * including transformation or blacklisting. A filter named Foo * must have a corresponding configuration directive %URI.Foo, * unless always_load is specified to be true. * * The follo...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/PercentEncoder.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/PercentEncoder.php
<?php /** * Class that handles operations involving percent-encoding in URIs. * * @warning * Be careful when reusing instances of PercentEncoder. The object * you use for normalize() SHOULD NOT be used for encode(), or * vice-versa. */ class HTMLPurifier_PercentEncoder { /** * Reserved ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Queue.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Queue.php
<?php /** * A simple array-backed queue, based off of the classic Okasaki * persistent amortized queue. The basic idea is to maintain two * stacks: an input stack and an output stack. When the output * stack runs out, reverse the input stack and use it as the output * stack. * * We don't use the SPL implement...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Arborize.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Arborize.php
<?php /** * Converts a stream of HTMLPurifier_Token into an HTMLPurifier_Node, * and back again. * * @note This transformation is not an equivalence. We mutate the input * token stream to make it so; see all [MUT] markers in code. */ class HTMLPurifier_Arborize { public static function arborize($tokens, $co...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ErrorStruct.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ErrorStruct.php
<?php /** * Records errors for particular segments of an HTML document such as tokens, * attributes or CSS properties. They can contain error structs (which apply * to components of what they represent), but their main purpose is to hold * errors applying to whatever struct is being used. */ class HTMLPurifier_Er...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Generator.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Generator.php
<?php /** * Generates HTML from tokens. * @todo Refactor interface so that configuration/context is determined * upon instantiation, no need for messy generateFromTokens() calls * @todo Make some of the more internal functions protected, and have * unit tests work around that */ class HTMLPurifier_Ge...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef.php
<?php /** * Base class for all validating attribute definitions. * * This family of classes forms the core for not only HTML attribute validation, * but also any sort of string that needs to be validated or cleaned (which * means CSS properties and composite definitions are defined here too). * Besides defining ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Zipper.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Zipper.php
<?php /** * A zipper is a purely-functional data structure which contains * a focus that can be efficiently manipulated. It is known as * a "one-hole context". This mutable variant implements a zipper * for a list as a pair of two arrays, laid out as follows: * * Base list: 1 2 3 4 [ ] 6 7 8 9 * Fro...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ElementDef.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ElementDef.php
<?php /** * Structure that stores an HTML element definition. Used by * HTMLPurifier_HTMLDefinition and HTMLPurifier_HTMLModule. * @note This class is inspected by HTMLPurifier_Printer_HTMLDefinition. * Please update that class too. * @warning If you add new properties to this class, you MUST update * ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/Munge.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/Munge.php
<?php class HTMLPurifier_URIFilter_Munge extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'Munge'; /** * @type bool */ public $post = true; /** * @type string */ private $target; /** * @type HTMLPurifier_URIParser */ privat...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php
<?php // It's not clear to me whether or not Punycode means that hostnames // do not have canonical forms anymore. As far as I can tell, it's // not a problem (punycoding should be identity when no Unicode // points are involved), but I'm not 100% sure class HTMLPurifier_URIFilter_HostBlacklist extends HTMLPurifier_UR...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php
<?php class HTMLPurifier_URIFilter_DisableExternalResources extends HTMLPurifier_URIFilter_DisableExternal { /** * @type string */ public $name = 'DisableExternalResources'; /** * @param HTMLPurifier_URI $uri * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $cont...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableResources.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableResources.php
<?php class HTMLPurifier_URIFilter_DisableResources extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'DisableResources'; /** * @param HTMLPurifier_URI $uri * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return bool */ ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/SafeIframe.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/SafeIframe.php
<?php /** * Implements safety checks for safe iframes. * * @warning This filter is *critical* for ensuring that %HTML.SafeIframe * works safely. */ class HTMLPurifier_URIFilter_SafeIframe extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'SafeIframe'; /** * @type bo...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternal.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternal.php
<?php class HTMLPurifier_URIFilter_DisableExternal extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'DisableExternal'; /** * @type array */ protected $ourHostParts = false; /** * @param HTMLPurifier_Config $config * @return void */ publi...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/MakeAbsolute.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/MakeAbsolute.php
<?php // does not support network paths class HTMLPurifier_URIFilter_MakeAbsolute extends HTMLPurifier_URIFilter { /** * @type string */ public $name = 'MakeAbsolute'; /** * @type */ protected $base; /** * @type array */ protected $basePathStack = array(); ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Tag.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Tag.php
<?php /** * Abstract class of a tag token (start, end or empty), and its behavior. */ abstract class HTMLPurifier_Token_Tag extends HTMLPurifier_Token { /** * Static bool marker that indicates the class is a tag. * * This allows us to check objects with <tt>!empty($obj->is_tag)</tt> * without...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Text.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Text.php
<?php /** * Concrete text token class. * * Text tokens comprise of regular parsed character data (PCDATA) and raw * character data (from the CDATA sections). Internally, their * data is parsed with all entities expanded. Surprisingly, the text token * does have a "tag name" called #PCDATA, which is how the DTD r...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Empty.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Empty.php
<?php /** * Concrete empty token class. */ class HTMLPurifier_Token_Empty extends HTMLPurifier_Token_Tag { public function toNode() { $n = parent::toNode(); $n->empty = true; return $n; } } // vim: et sw=4 sts=4
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/End.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/End.php
<?php /** * Concrete end token class. * * @warning This class accepts attributes even though end tags cannot. This * is for optimization reasons, as under normal circumstances, the Lexers * do not pass attributes. */ class HTMLPurifier_Token_End extends HTMLPurifier_Token_Tag { /** * Token that started ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Comment.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Comment.php
<?php /** * Concrete comment token class. Generally will be ignored. */ class HTMLPurifier_Token_Comment extends HTMLPurifier_Token { /** * Character data within comment. * @type string */ public $data; /** * @type bool */ public $is_whitespace = true; /** * Transp...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Start.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Token/Start.php
<?php /** * Concrete start token class. */ class HTMLPurifier_Token_Start extends HTMLPurifier_Token_Tag { } // vim: et sw=4 sts=4
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php
<?php /** * Experimental HTML5-based parser using Jeroen van der Meer's PH5P library. * Occupies space in the HTML5 pseudo-namespace, which may cause conflicts. * * @note * Recent changes to PHP's DOM extension have resulted in some fatal * error conditions with the original version of PH5P. Pending change...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
true
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php
<?php /** * Parser that uses PHP 5's DOM extension (part of the core). * * In PHP 5, the DOM XML extension was revamped into DOM and added to the core. * It gives us a forgiving HTML parser, which we use to transform the HTML * into a DOM, and then into the tokens. It is blazingly fast (for large * documents, i...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DirectLex.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DirectLex.php
<?php /** * Our in-house implementation of a parser. * * A pure PHP parser, DirectLex has absolutely no dependencies, making * it a reasonably good default for PHP4. Written with efficiency in mind, * it can be four times faster than HTMLPurifier_Lexer_PEARSax3, although it * pales in comparison to HTMLPurifier...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter/YouTube.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter/YouTube.php
<?php class HTMLPurifier_Filter_YouTube extends HTMLPurifier_Filter { /** * @type string */ public $name = 'YouTube'; /** * @param string $html * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return string */ public function preFilter(...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php
<?php // why is this a top level function? Because PHP 5.2.0 doesn't seem to // understand how to interpret this filter if it's a static method. // It's all really silly, but if we go this route it might be reasonable // to coalesce all of these methods into one. function htmlpurifier_filter_extractstyleblocks_muteerr...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Text.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Text.php
<?php /** * Concrete text token class. * * Text tokens comprise of regular parsed character data (PCDATA) and raw * character data (from the CDATA sections). Internally, their * data is parsed with all entities expanded. Surprisingly, the text token * does have a "tag name" called #PCDATA, which is how the DTD r...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Comment.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Comment.php
<?php /** * Concrete comment node class. */ class HTMLPurifier_Node_Comment extends HTMLPurifier_Node { /** * Character data within comment. * @type string */ public $data; /** * @type bool */ public $is_whitespace = true; /** * Transparent constructor. * ...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false
kiang/pharmacies
https://github.com/kiang/pharmacies/blob/0c425bab53cc1db30b2adadc50fb2ea112d5f414/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Element.php
vendor/ezyang/htmlpurifier/library/HTMLPurifier/Node/Element.php
<?php /** * Concrete element node class. */ class HTMLPurifier_Node_Element extends HTMLPurifier_Node { /** * The lower-case name of the tag, like 'a', 'b' or 'blockquote'. * * @note Strictly speaking, XML tags are case sensitive, so we shouldn't * be lower-casing them, but these tokens cater...
php
MIT
0c425bab53cc1db30b2adadc50fb2ea112d5f414
2026-01-05T03:37:52.991734Z
false