Skip to content

Commit

Permalink
Unused variables in Routing removed
Browse files Browse the repository at this point in the history
  • Loading branch information
evilbloodydemon committed Apr 22, 2011
1 parent ad73c70 commit 3c9cb3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/Cake/Routing/Dispatcher.php
Expand Up @@ -299,7 +299,6 @@ public function asset($url) {
include WWW_ROOT . DS . $filters['js'];
return true;
}
$controller = null;
$pathSegments = explode('.', $url);
$ext = array_pop($pathSegments);
$parts = explode('/', $url);
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Routing/Route/CakeRoute.php
Expand Up @@ -399,7 +399,7 @@ public function match($url) {
$greedyNamed = $namedConfig['greedyNamed'];
$allowedNamedParams = $namedConfig['rules'];

$named = $pass = $_query = array();
$named = $pass = array();

foreach ($url as $key => $value) {

Expand Down
6 changes: 3 additions & 3 deletions lib/Cake/Routing/Router.php
Expand Up @@ -487,7 +487,7 @@ public static function parse($url) {
'named' => array()
);

$r = $ext = null;
$ext = null;

if ($url && strpos($url, '/') !== 0) {
$url = '/' . $url;
Expand Down Expand Up @@ -771,7 +771,7 @@ public static function promote($which = null) {
* @return string Full translated URL with base path.
*/
public static function url($url = null, $full = false) {
$defaults = $params = array('plugin' => null, 'controller' => null, 'action' => 'index');
$params = array('plugin' => null, 'controller' => null, 'action' => 'index');

if (is_bool($full)) {
$escape = false;
Expand All @@ -792,7 +792,7 @@ public static function url($url = null, $full = false) {
}

$base = $path['base'];
$extension = $output = $mapped = $q = $frag = null;
$extension = $output = $q = $frag = null;

if (empty($url)) {
$output = isset($path['here']) ? $path['here'] : '/';
Expand Down

0 comments on commit 3c9cb3b

Please sign in to comment.