Completed
Pull Request — master (#46)
by Timothée
04:24
created
src/Security/Voter/HandleCommandVoter.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,6 @@
 block discarded – undo
32 32
      *
33 33
      * @param AccessDecisionManagerInterface $decisionManager
34 34
      * @param array $commandRoleMapping
35
-     * @param string $defaultRole
36 35
      */
37 36
     public function __construct(AccessDecisionManagerInterface $decisionManager, array $commandRoleMapping = [])
38 37
     {
Please login to merge, or discard this patch.
tests/DependencyInjection/Compiler/CommandHandlerPassTest.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -184,6 +184,9 @@  discard block
 block discarded – undo
184 184
         $this->compiler->process($this->container);
185 185
     }
186 186
 
187
+    /**
188
+     * @param ContainerBuilder $container
189
+     */
187 190
     private function parametersShouldBe($container, array $parameters)
188 191
     {
189 192
         foreach ($parameters as $key => $value) {
@@ -195,6 +198,9 @@  discard block
 block discarded – undo
195 198
         }
196 199
     }
197 200
 
201
+    /**
202
+     * @param ContainerBuilder $container
203
+     */
198 204
     private function servicesTaggedShouldBe($container, array $config)
199 205
     {
200 206
         $container->shouldReceive('findTaggedServiceIds')
@@ -204,6 +210,11 @@  discard block
 block discarded – undo
204 210
         ;
205 211
     }
206 212
 
213
+    /**
214
+     * @param ContainerBuilder $container
215
+     * @param string $busId
216
+     * @param string $methodInflector
217
+     */
207 218
     private function busShouldBeCorrectlyRegisteredInContainer($container, $busId, $methodInflector)
208 219
     {
209 220
         $handlerLocatorId = sprintf('tactician.commandbus.%s.handler.locator', $busId);
Please login to merge, or discard this patch.
tests/Integration/IntegrationTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -45,16 +45,26 @@
 block discarded – undo
45 45
         );
46 46
     }
47 47
 
48
+    /**
49
+     * @param string $namespace
50
+     * @param string $config
51
+     */
48 52
     protected function givenConfig($namespace, $config)
49 53
     {
50 54
         static::$kernel->loadConfig($namespace, Yaml::parse((string) $config));
51 55
     }
52 56
 
57
+    /**
58
+     * @param string $serviceId
59
+     */
53 60
     protected function registerService($serviceId, $className, array $tags)
54 61
     {
55 62
         static::$kernel->addServiceToRegister($serviceId, $className, $tags);
56 63
     }
57 64
 
65
+    /**
66
+     * @param string $busId
67
+     */
58 68
     protected function handleCommand($busId, $commandClass, array $args)
59 69
     {
60 70
         $class = new \ReflectionClass($commandClass);
Please login to merge, or discard this patch.
tests/Security/Voter/HandleCommandVoterTest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
      * @param type $attribute
37 37
      * @param type $subject
38 38
      * @param type $decision
39
-     * @param type $default
40 39
      * @param type $mapping
41 40
      * @param type $expected
42 41
      *
Please login to merge, or discard this patch.
tests/testapp/AppKernel.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@
 block discarded – undo
22 22
         ];
23 23
     }
24 24
 
25
+    /**
26
+     * @param string $dir
27
+     */
25 28
     public function defineCacheDir($dir)
26 29
     {
27 30
         $this->cacheDir = $dir;
Please login to merge, or discard this patch.
src/DependencyInjection/Compiler/UnknownMiddlewareException.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -4,6 +4,9 @@
 block discarded – undo
4 4
 
5 5
 class UnknownMiddlewareException extends \RuntimeException
6 6
 {
7
+    /**
8
+     * @param string $serviceId
9
+     */
7 10
     public static function withId($serviceId)
8 11
     {
9 12
         return new static(
Please login to merge, or discard this patch.