Skip to content

Commit

Permalink
CS issue fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgpinkus committed Feb 12, 2014
1 parent 4f1a813 commit 8e7c217
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Config/routes.php
Expand Up @@ -55,17 +55,17 @@
$pluginShortMatch = $match + ['routeClass' => 'Cake\Routing\Route\PluginShortRoute',
'_name' => '_plugin._controller:index'];

if($prefixPattern && $pluginPattern) {
if ($prefixPattern && $pluginPattern) {
Router::connect("/:prefix/:plugin", $indexParams, $pluginShortMatch);
Router::connect("/:prefix/:plugin/:controller", $indexParams, $match);
Router::connect("/:prefix/:plugin/:controller/:action/*", [], $match);
}
if($pluginPattern) {
if ($pluginPattern) {
Router::connect("/:plugin", $indexParams, $pluginShortMatch);
Router::connect("/:plugin/:controller", $indexParams, $match);
Router::connect("/:plugin/:controller/:action/*", [], $match);
}
if($prefixPattern) {
if ($prefixPattern) {
Router::connect("/:prefix/:controller", $indexParams, $match);
Router::connect("/:prefix/:controller/:action/*", [], $match);
}
Expand Down

0 comments on commit 8e7c217

Please sign in to comment.