diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2016-01-09 09:08:14 +0100 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2016-01-09 09:08:14 +0100 |
commit | d63357e98af63e080e3870f64de22af81b2bb260 (patch) | |
tree | 25fe09c06e12c7d15e102d918b2e288fc0534533 /Http | |
parent | daa1c30fbdb5e74018e9caba2bc1e188f7920c82 (diff) | |
download | Router-d63357e98af63e080e3870f64de22af81b2bb260.zip Router-d63357e98af63e080e3870f64de22af81b2bb260.tar.gz Router-d63357e98af63e080e3870f64de22af81b2bb260.tar.bz2 |
Quality: Run devtools:cs.
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Dav.php | 4 | ||||
-rw-r--r-- | Http/Http.php | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Http/Dav.php b/Http/Dav.php index 24427a8..33bad15 100644 --- a/Http/Dav.php +++ b/Http/Dav.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Hoa community. All rights reserved. + * Copyright © 2007-2016, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -41,7 +41,7 @@ namespace Hoa\Router\Http; * * DAV router (extension of HTTP). * - * @copyright Copyright © 2007-2015 Hoa community + * @copyright Copyright © 2007-2016 Hoa community * @license New BSD License */ class Dav extends Http diff --git a/Http/Http.php b/Http/Http.php index 591fb4d..d56e21e 100644 --- a/Http/Http.php +++ b/Http/Http.php @@ -8,7 +8,7 @@ * * New BSD License * - * Copyright © 2007-2015, Hoa community. All rights reserved. + * Copyright © 2007-2016, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -45,7 +45,7 @@ use Hoa\Zformat; * * HTTP router. * - * @copyright Copyright © 2007-2015 Hoa community + * @copyright Copyright © 2007-2016 Hoa community * @license New BSD License */ class Http extends Router\Generic implements Zformat\Parameterizable @@ -136,7 +136,7 @@ class Http extends Router\Generic implements Zformat\Parameterizable * * @return void */ - public function __construct(Array $parameters = []) + public function __construct(array $parameters = []) { $this->_parameters = new Zformat\Parameter( $this, @@ -213,11 +213,11 @@ class Http extends Router\Generic implements Zformat\Parameterizable protected function _addRule( $visibility, $id, - Array $methods, + array $methods, $pattern, $call, $able, - Array $variables + array $variables ) { if (true === $this->ruleExists($id)) { throw new Router\Exception( @@ -465,7 +465,7 @@ class Http extends Router\Generic implements Zformat\Parameterizable */ public function unroute( $id, - Array $variables = [], + array $variables = [], $secured = null, $prefix = null ) { @@ -619,7 +619,7 @@ class Http extends Router\Generic implements Zformat\Parameterizable protected function _unroute( $id, $pattern, - Array $variables, + array $variables, $allowEmpty = true ) { $unusedVariables = []; @@ -633,7 +633,7 @@ class Http extends Router\Generic implements Zformat\Parameterizable // (?<named>…) $out = preg_replace_callback( '#\(\?\<([^>]+)>[^\)]*\)[\?\*\+]{0,2}#', - function (Array $matches) use (&$id, &$variables, &$allowEmpty, &$unusedVariables) { + function (array $matches) use (&$id, &$variables, &$allowEmpty, &$unusedVariables) { $m = strtolower($matches[1]); if (!isset($variables[$m]) || '' === $variables[$m]) { |