minor CS tweaks
authorChuck Hagenbuch <chuck@horde.org>
Sat, 24 Jan 2009 20:17:50 +0000 (15:17 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 24 Jan 2009 20:17:50 +0000 (15:17 -0500)
framework/Routes/lib/Horde/Routes/Mapper.php
framework/Routes/lib/Horde/Routes/Route.php
framework/Routes/lib/Horde/Routes/Utils.php

index 742e433..10dbfd5 100644 (file)
@@ -430,8 +430,7 @@ class Horde_Routes_Mapper
                 if (empty($url)) {
                     $url = '/';
                 }
-            }
-            else {
+            } else {
                 return array(null, null, $matchLog);
             }
         }
@@ -771,7 +770,7 @@ class Horde_Routes_Mapper
      *       # '/regions/51/locations'
      *
      * Note: Since Horde Routes 0.2.0 and Python Routes 1.8, this method is
-     * not compatible with earlier versions inasmuch as the semicolon is no 
+     * not compatible with earlier versions inasmuch as the semicolon is no
      * longer used to delimit custom actions.  This was a change in Rails
      * itself (http://dev.rubyonrails.org/changeset/6485) and adopting it
      * here allows us to keep parity with Rails and ActiveResource.
index fb7c298..4b54378 100644 (file)
@@ -815,7 +815,7 @@ class Horde_Routes_Route
             $newExtras = array();
             foreach ($kargs as $key => $value) {
                 if (in_array($key, $extras) && ($key != 'action' || $key != 'controller')) {
-                     $newExtras[$key] = $value;
+                    $newExtras[$key] = $value;
                 }
             }
             $url .= http_build_query($newExtras);
index eb13ec2..adbec27 100644 (file)
@@ -270,8 +270,8 @@ class Horde_Routes_Utils
                  new RecursiveDirectoryIterator($dirname)) as $entry) {
 
             if ($entry->isFile()) {
-                 // match .php files that don't start with an underscore
-                 if (preg_match('/^[^_]{1,1}.*\.php$/', basename($entry->getFilename())) != 0) {
+                // match .php files that don't start with an underscore
+                if (preg_match('/^[^_]{1,1}.*\.php$/', basename($entry->getFilename())) != 0) {
                     // strip off base path: dirname/admin/users.php -> admin/users.php
                     $controller = preg_replace("/^$baseregexp(.*)\.php/", '\\1', $entry->getPathname());