diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 22:08:31 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-20 22:08:31 +0100 |
commit | 6a77820f00da900f2355e16ef9aa77cd132fb423 (patch) | |
tree | 2f6f869a043d99677a7a5213a68641be77152b14 /framework/Web | |
parent | da044df7ae9e8f6916204ee666351722aaa17d90 (diff) |
One class per file: framework/Web/Javascripts
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/Javascripts/JSMin.php | 5 | ||||
-rw-r--r-- | framework/Web/Javascripts/JSMinException.php | 49 |
2 files changed, 50 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/JSMin.php b/framework/Web/Javascripts/JSMin.php index 95beff38..0cde4a49 100644 --- a/framework/Web/Javascripts/JSMin.php +++ b/framework/Web/Javascripts/JSMin.php @@ -284,7 +284,4 @@ class JSMin { $this->lookAhead = $this->get(); return $this->lookAhead; } -} - -// -- Exceptions --------------------------------------------------------------- -class JSMinException extends Exception {} +}
\ No newline at end of file diff --git a/framework/Web/Javascripts/JSMinException.php b/framework/Web/Javascripts/JSMinException.php new file mode 100644 index 00000000..1e530cf9 --- /dev/null +++ b/framework/Web/Javascripts/JSMinException.php @@ -0,0 +1,49 @@ +<?php +/** + * jsmin.php - PHP implementation of Douglas Crockford's JSMin. + * + * This is pretty much a direct port of jsmin.c to PHP with just a few + * PHP-specific performance tweaks. Also, whereas jsmin.c reads from stdin and + * outputs to stdout, this library accepts a string as input and returns another + * string as output. + * + * PHP 5 or higher is required. + * + * Permission is hereby granted to use this version of the library under the + * same terms as jsmin.c, which has the following license: + * + * -- + * Copyright (c) 2002 Douglas Crockford (www.crockford.com) + * + * 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 shall be used for Good, not Evil. + * + * 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. + * -- + * + * @package JSMin + * @author Ryan Grove <ryan@wonko.com> + * @copyright 2002 Douglas Crockford <douglas@crockford.com> (jsmin.c) + * @copyright 2008 Ryan Grove <ryan@wonko.com> (PHP port) + * @license http://opensource.org/licenses/mit-license.php MIT License + * @version 1.1.1 (2008-03-02) + * @link http://code.google.com/p/jsmin-php/ + */ + +// -- Exceptions --------------------------------------------------------------- +class JSMinException extends Exception {}
\ No newline at end of file |