Passed
Pull Request — master (#20)
by Mathias
01:53
created
src/ParamConverter/HashidsParamConverter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $decodedSuccessfuly = $this->decodeHashidOnRoute($request);
30 30
 
31
-        if($decodedSuccessfuly === false) {
31
+        if ($decodedSuccessfuly === false) {
32 32
             $this->decodeArgumentsController($request, $configuration);
33 33
         }
34 34
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $name = $configuration->getName();
62 62
 
63
-        $attributes = array_map(function ($name) {
63
+        $attributes = array_map(function($name) {
64 64
             return str_replace('_hash_', '', $name);
65 65
         }, $request->attributes->keys());
66 66
 
Please login to merge, or discard this patch.
Resources/config/services.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,14 +7,14 @@
 block discarded – undo
7 7
 use Roukmoute\HashidsBundle\ParamConverter\HashidsParamConverter;
8 8
 use Roukmoute\HashidsBundle\Twig\HashidsExtension;
9 9
 
10
-return static function (ContainerConfigurator $container) {
10
+return static function(ContainerConfigurator $container) {
11 11
     $container->services()
12 12
         ->set(HashidsInterface::class, Hashids::class)
13 13
             ->args([param('hashids.salt'), param('hashids.min_hash_length'), param('hashids.alphabet')])
14 14
 
15 15
         ->set(\Roukmoute\HashidsBundle\Hashids::class)
16 16
             ->decorate(HashidsInterface::class)
17
-            ->args([service(\Roukmoute\HashidsBundle\Hashids::class.'.inner')])
17
+            ->args([service(\Roukmoute\HashidsBundle\Hashids::class . '.inner')])
18 18
 
19 19
         ->set('hashids.converter', HashidsParamConverter::class)
20 20
             ->args([service(HashidsInterface::class), param('hashids.passthrough')])
Please login to merge, or discard this patch.