Skip to content

Commit

Permalink
Typo and scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
MarceauKa committed Aug 19, 2016
1 parent c9acfe7 commit 0b85afb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.en.md
@@ -1,6 +1,6 @@
# Router

[![Build Status](https://travis-ci.org/AkibaTech/Router.svg?branch=master)](https://travis-ci.org/AkibaTech/Router) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/646acaa9-b90b-4d71-b6e3-ebe9a377b622/mini.png?branch=master)](https://insight.sensiolabs.com/projects/646acaa9-b90b-4d71-b6e3-ebe9a377b622)
[![Build Status](https://travis-ci.org/AkibaTech/Router.svg?branch=master)](https://travis-ci.org/AkibaTech/Router) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/646acaa9-b90b-4d71-b6e3-ebe9a377b622/mini.png?branch=master)](https://insight.sensiolabs.com/projects/646acaa9-b90b-4d71-b6e3-ebe9a377b622) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AkibaTech/Router/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AkibaTech/Router/?branch=master)

Router is a lightweight HTTP resquest router written in PHP.

Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# Router

[![Build Status](https://travis-ci.org/AkibaTech/Router.svg?branch=master)](https://travis-ci.org/AkibaTech/Router) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/646acaa9-b90b-4d71-b6e3-ebe9a377b622/mini.png?branch=master)](https://insight.sensiolabs.com/projects/646acaa9-b90b-4d71-b6e3-ebe9a377b622)
[![Build Status](https://travis-ci.org/AkibaTech/Router.svg?branch=master)](https://travis-ci.org/AkibaTech/Router) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/646acaa9-b90b-4d71-b6e3-ebe9a377b622/mini.png?branch=master)](https://insight.sensiolabs.com/projects/646acaa9-b90b-4d71-b6e3-ebe9a377b622) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AkibaTech/Router/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AkibaTech/Router/?branch=master)

Router est un petit routeur de requête HTTP écrit en PHP.

Expand Down
9 changes: 4 additions & 5 deletions src/Router.php
Expand Up @@ -88,7 +88,6 @@ class Router
* Router constructor.
*
* @param void
* @return self
*/
protected function __construct()
{
Expand Down Expand Up @@ -267,10 +266,10 @@ public function routes(callable $callback = null)
/**
* Add a new route.
*
* @param array $method Methods to match. Ex: ['GET'], ['GET', 'POST'], ...
* @param array $methods Methods to match. Ex: ['GET'], ['GET', 'POST'], ...
* @param string $uri URI to match.
* @param string $action Action when the route is matched.
* @param string $name Human name for the route
* @param string $as Human name for the route
* @return self
*/
public function add(array $methods, $uri, $action, $as = null)
Expand Down Expand Up @@ -497,7 +496,7 @@ protected function routeMatch($index, $uri = '', $method = 'GET')
/**
* Dispatch the current matched route.
*
* @param null|int $route
* @param void
* @return mixed
*/
protected function dispatchCurrent()
Expand Down Expand Up @@ -549,7 +548,7 @@ protected function dispatchFromRoute($id)
/**
* Dispatch an action.
*
* @param string|callable $dispatch
* @param string|callable $action
* @return self
*/
protected function dispatch($action)
Expand Down

0 comments on commit 0b85afb

Please sign in to comment.