Passed
Push — develop ( d479cf...02d72b )
by nguereza
10:32
created
src/RouteCollection.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * @class RouteCollection
56 56
  * @package Platine\Route
57 57
  */
58
-class RouteCollection implements RouteCollectionInterface
59
-{
58
+class RouteCollection implements RouteCollectionInterface {
60 59
     /**
61 60
      * The list of routes
62 61
      * @var Route[]
@@ -73,8 +72,7 @@  discard block
 block discarded – undo
73 72
      * Create new instance
74 73
      * @param Route[] $routes
75 74
      */
76
-    public function __construct(array $routes = [])
77
-    {
75
+    public function __construct(array $routes = []) {
78 76
         foreach ($routes as $route) {
79 77
             $this->add($route);
80 78
         }
Please login to merge, or discard this patch.
src/ParameterCollection.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@  discard block
 block discarded – undo
52 52
  * @class ParameterCollection
53 53
  * @package Platine\Route
54 54
  */
55
-class ParameterCollection
56
-{
55
+class ParameterCollection {
57 56
     /**
58 57
      * The array of parameters
59 58
      * @var array<string, ParameterInterface>
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
      *
72 71
      * @param ParameterInterface[] $parameters  the route parameters
73 72
      */
74
-    public function __construct(array $parameters = [])
75
-    {
73
+    public function __construct(array $parameters = []) {
76 74
         foreach ($parameters as $parameter) {
77 75
             $this->add($parameter);
78 76
         }
Please login to merge, or discard this patch.
src/Route.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
         string $pattern,
144 144
         mixed $handler,
145 145
         ?string $name = null,
146
-        array|string $methods = [],
146
+        array | string $methods = [],
147 147
         array $attributes = []
148 148
     ) {
149 149
         $this->pattern = $pattern;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
  * @class Route
58 58
  * @package Platine\Route
59 59
  */
60
-class Route
61
-{
60
+class Route {
62 61
     /**
63 62
      * Search through the given route looking for dynamic portions.
64 63
      *
Please login to merge, or discard this patch.