Permalink
Browse files

Changing all the namespaces to uppercase.

  • Loading branch information...
meenie committed Mar 20, 2013
1 parent 777b5f0 commit 317925ae5bdf429abc3b8d25c65b5d1e75661512
View
@@ -1,6 +1,6 @@
<?php
use Munee\asset\Registry;
use Munee\Asset\Registry;
// DIRECTORY_SEPARATOR alias
defined('DS') || define('DS' , DIRECTORY_SEPARATOR);
@@ -15,19 +15,19 @@
* Register the CSS Asset Class with the extensions .css and .less
*/
Registry::register(array('css', 'less', 'scss'), function (\Munee\Request $Request) {
return new \Munee\asset\type\Css($Request);
return new \Munee\Asset\Type\Css($Request);
});
/**
* Register the JavaScript Asset Class with the extension .js
*/
Registry::register(array('js', 'coffee'), function (\Munee\Request $Request) {
return new \Munee\asset\type\JavaScript($Request);
return new \Munee\Asset\Type\JavaScript($Request);
});
/**
* Register the Image Asset Class with the extensions .jpg, .jpeg, .gif, and .png
*/
Registry::register(array('jpg', 'jpeg', 'gif', 'png'), function (\Munee\Request $Request) {
return new \Munee\asset\type\Image($Request);
return new \Munee\Asset\Type\Image($Request);
});
View
@@ -51,7 +51,7 @@ public static function run(Request $Request, $options = array())
/**
* Grab the correct AssetType
*/
$AssetType = asset\Registry::getClass($Request);
$AssetType = Asset\Registry::getClass($Request);
/**
* Initialise the AssetType
*/
@@ -71,7 +71,7 @@ public static function run(Request $Request, $options = array())
* otherwise return the content
*/
return $Response->notModified ? null : $Response->render();
} catch (asset\NotFoundException $e) {
} catch (Asset\NotFoundException $e) {
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
return 'Error: ' . $e->getMessage();
View
@@ -9,7 +9,7 @@
namespace Munee;
use Munee\ErrorException;
use Munee\asset\Registry;
use Munee\Asset\Registry;
/**
* Munee Request Class
@@ -62,7 +62,7 @@ public function __construct($options = array())
* Parses the $_GET global variable and does sanity checks
*
* @throws ErrorException
* @throws asset\NotFoundException
* @throws Asset\NotFoundException
*/
public function init()
{
@@ -6,7 +6,7 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset;
namespace Munee\Asset;
/**
* Filter to manipulate images
@@ -6,7 +6,7 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset;
namespace Munee\Asset;
use Munee\ErrorException;
@@ -6,7 +6,7 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset;
namespace Munee\Asset;
use Munee\ErrorException;
use Munee\Request;
View
@@ -6,11 +6,11 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset;
namespace Munee\Asset;
use Munee\Request;
use Munee\Utils;
use Munee\asset\NotFoundException;
use Munee\Asset\NotFoundException;
/**
* Base Asset Class
@@ -71,7 +71,7 @@ public function __construct(Request $Request)
$assetShortName = strtolower(preg_replace('%^.*\\\\%','', get_class($this)));
$allowedParams = array();
foreach (array_keys($rawParams) as $filterName) {
$filterClass = 'Munee\\asset\\filter\\' . $assetShortName . '\\' . ucfirst($filterName);
$filterClass = 'Munee\\Asset\\Filter\\' . $assetShortName . '\\' . ucfirst($filterName);
if (class_exists($filterClass)) {
$Filter = new $filterClass();
$allowedParams += $Filter->getAllowedParams();
@@ -6,9 +6,9 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset\filter\css;
namespace Munee\Asset\Filter\Css;
use Munee\asset\Filter;
use Munee\Asset\Filter;
use Munee\Utils;
/**
@@ -6,9 +6,9 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset\filter\image;
namespace Munee\Asset\Filter\Image;
use Munee\asset\Filter;
use Munee\Asset\Filter;
use Munee\ErrorException;
use Imagine\Image\ImageInterface;
use Imagine\Image\Box;
@@ -6,9 +6,9 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset\filter\javascript;
namespace Munee\Asset\Filter\Javascript;
use Munee\asset\Filter;
use Munee\Asset\Filter;
/**
* Minify Filter for JavaScript
@@ -6,10 +6,10 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset\type;
namespace Munee\Asset\Type;
use Munee\Utils;
use Munee\asset\Type;
use Munee\Asset\Type;
use lessc;
/**
@@ -6,10 +6,10 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset\type;
namespace Munee\Asset\Type;
use Munee\ErrorException;
use Munee\asset\Type;
use Munee\Asset\Type;
use Munee\Utils;
/**
@@ -6,9 +6,9 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\asset\type;
namespace Munee\Asset\Type;
use Munee\asset\Type;
use Munee\Asset\Type;
use CoffeeScript;
/**
@@ -6,7 +6,7 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\cases;
namespace Munee\Cases;
use Munee\Request;
use Munee\Utils;
@@ -6,10 +6,10 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\cases;
namespace Munee\Cases;
use Munee\Response;
use Munee\mocks\MockAssetType;
use Munee\Mocks\MockAssetType;
/**
* Tests for the \Munee\Response Class
@@ -6,7 +6,7 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\cases;
namespace Munee\Cases;
use Munee\Utils;
@@ -6,11 +6,11 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\cases\asset;
namespace Munee\Cases\Asset;
use Munee\asset\Registry;
use Munee\mocks\MockRequest;
use Munee\mocks\MockAssetType;
use Munee\Asset\Registry;
use Munee\Mocks\MockRequest;
use Munee\Mocks\MockAssetType;
/**
* Tests for the \Munee\asset\Registry Class
@@ -6,9 +6,9 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\mocks;
namespace Munee\Mocks;
use Munee\asset\Type;
use Munee\Asset\Type;
/**
* Mock Asset Type class for Response Test
@@ -6,7 +6,7 @@
* @license http://opensource.org/licenses/mit-license.php
*/
namespace Munee\mocks;
namespace Munee\Mocks;
use Munee\Request;

0 comments on commit 317925a

Please sign in to comment.