if (empty($url)) {
$url = '/';
}
- }
- else {
+ } else {
return array(null, null, $matchLog);
}
}
* # '/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.
$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);
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());