Fixed PHPCS issues

This commit is contained in:
Juan Basso 2014-10-21 23:34:53 -04:00
parent b2a92f9cd8
commit f7320cd8cd
2 changed files with 11 additions and 9 deletions

View file

@ -552,8 +552,8 @@ class CakeRoute {
* This method helps for applications that want to implement * This method helps for applications that want to implement
* router caching. * router caching.
* *
* @param array $fields * @param array $fields Key/Value of object attributes
* @return CakeRoute * @return CakeRoute A new instance of the route
*/ */
public static function __set_state($fields) { public static function __set_state($fields) {
$class = function_exists('get_called_class') ? get_called_class() : __CLASS__; $class = function_exists('get_called_class') ? get_called_class() : __CLASS__;

View file

@ -984,7 +984,9 @@ class CakeRouteTest extends CakeTestCase {
*/ */
public function testSetState() { public function testSetState() {
$route = new CakeRoute('/', array('controller' => 'pages', 'action' => 'display', 'home')); $route = new CakeRoute('/', array('controller' => 'pages', 'action' => 'display', 'home'));
// @codingStandardsIgnoreStart
$retrievedRoute = eval('return ' . var_export($route, true) . ';'); $retrievedRoute = eval('return ' . var_export($route, true) . ';');
// @codingStandardsIgnoreEnd
$this->assertEquals($route, $retrievedRoute); $this->assertEquals($route, $retrievedRoute);
} }