Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

reformat code

  • Loading branch information...
commit ddbab5db033238e5e2b3719319e7cfa9f7f80136 1 parent f793c4f
bquilitz bquilitz authored
Showing with 2 additions and 6 deletions.
  1. +1 −2  net/http/Route.php
  2. +1 −4 tests/cases/net/http/RouteTest.php
3  net/http/Route.php
View
@@ -273,8 +273,7 @@ public function match(array $options = array(), $context = null) {
}
}
- // check http method
- if (isset($this->_meta['http:method']) && $options['http:method'] != $this->_meta['http:method'] ) {
+ if (isset($this->_meta['http:method']) && $options['http:method'] != $this->_meta['http:method']) {
return false;
}
unset($options['http:method']);
5 tests/cases/net/http/RouteTest.php
View
@@ -542,8 +542,7 @@ public function testMatchingEmptyRoute() {
$this->assertEqual('/', $url);
}
-
- /**
+ /**
* Test route matching for routes with specified request method (http:method)
*/
public function testMatchWithRequestMethod() {
@@ -616,8 +615,6 @@ public function testMatchWithRequestMethod() {
}
-
-
/**
* Tests that routes with optional trailing elements have unnecessary slashes trimmed.
*/
Please sign in to comment.
Something went wrong with that request. Please try again.