Completed
Push — master ( a70ca2...b8c2a5 )
by Daniel
14:22
created
Routing/Matcher/MethodMatcher.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@
 block discarded – undo
34 34
         throw new ResourceNotFoundException(sprintf('No routes found for "%s".', $path));
35 35
     }
36 36
 
37
+    /**
38
+     * @param string $path
39
+     */
37 40
     public function matchCollection($path, MethodCollection $methods)
38 41
     {
39 42
         foreach ($methods as $name => $method) {
Please login to merge, or discard this patch.
Routing/Method.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
         return $this;
126 126
     }
127 127
 
128
+    /**
129
+     * @param string $name
130
+     */
128 131
     public function getOption($name)
129 132
     {
130 133
         if (isset($this->options[$name])) {
@@ -175,6 +178,9 @@  discard block
 block discarded – undo
175 178
         return array_key_exists($name, $this->defaults);
176 179
     }
177 180
 
181
+    /**
182
+     * @param string $name
183
+     */
178 184
     public function setDefault($name, $default)
179 185
     {
180 186
         $this->defaults[$name] = $default;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function serialize()
25 25
     {
26 26
         return serialize([
27
-           'id' => $this->id,
27
+            'id' => $this->id,
28 28
             'name' => $this->name,
29 29
             'params' => $this->params,
30 30
             'defaults' => $this->defaults,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $this->setDefaults($data['defaults']);
42 42
 
43 43
         if (isset($data['compiled'])) {
44
-            $this->compiled =$data['compiled'];
44
+            $this->compiled = $data['compiled'];
45 45
         }
46 46
     }
47 47
 
Please login to merge, or discard this patch.
Routing/MethodRouter.php 2 patches
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@  discard block
 block discarded – undo
19 19
     protected $options = [];
20 20
     private $configCacheFactory;
21 21
 
22
+    /**
23
+     * @param string $resource
24
+     */
22 25
     public function __construct(ContainerInterface $loader, $resource, array $options = [])
23 26
     {
24 27
         $this->loader = $loader;
@@ -54,6 +57,9 @@  discard block
 block discarded – undo
54 57
         }
55 58
     }
56 59
 
60
+    /**
61
+     * @param string $key
62
+     */
57 63
     public function setOption($key, $value)
58 64
     {
59 65
         if (!array_key_exists($key, $this->options)) {
@@ -63,6 +69,9 @@  discard block
 block discarded – undo
63 69
         $this->options[$key] = $value;
64 70
     }
65 71
 
72
+    /**
73
+     * @param string $key
74
+     */
66 75
     public function getOption($key)
67 76
     {
68 77
         if (!array_key_exists($key, $this->options)) {
@@ -122,6 +131,7 @@  discard block
 block discarded – undo
122 131
 
123 132
     /**
124 133
      * {@inheritdoc}
134
+     * @param string $pathinfo
125 135
      */
126 136
     public function match($pathinfo)
127 137
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
         $that = $this;
148 148
 
149 149
         $cache = $this->getConfigCacheFactory()->cache($this->options['cache_dir'].'/'.$class.'.php',
150
-            function (ConfigCacheInterface $cache) use ($that, $class) {
150
+            function(ConfigCacheInterface $cache) use ($that, $class) {
151 151
                 $dumper = $that->getMatcherDumperInstance();
152 152
 
153 153
                 $options = array(
Please login to merge, or discard this patch.
Routing/MethodLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         $collection = new MethodCollection();
16 16
         $root = $this->getContainer()->getParameter('kernel.root_dir');
17
-        $resource = $root . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'rpc_routing.yml';
17
+        $resource = $root.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'rpc_routing.yml';
18 18
         $type = 'yaml';
19 19
         $importedRouters = $this->import($resource, $type);
20 20
         $collection->addCollection($importedRouters);
Please login to merge, or discard this patch.