Completed
Push — master ( d14e1c...85beca )
by
06:32
created
ExpressionLanguage/ResourceExpressionLanguage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,20 +15,20 @@
 block discarded – undo
15 15
 
16 16
         $this->register(
17 17
             'getCurrentUser',
18
-            function ($arg) {
18
+            function($arg) {
19 19
                 return sprintf('$this->get("security.token_storage")->getToken()->getUser()', $arg);
20 20
             },
21
-            function (array $variables) {
21
+            function(array $variables) {
22 22
                 return $variables['container']->get('security.token_storage')->getToken()->getUser();
23 23
             }
24 24
         );
25 25
 
26 26
         $this->register(
27 27
             'getQueryParam',
28
-            function ($limitKey, $default) {
28
+            function($limitKey, $default) {
29 29
                 return sprintf('$this->get("request")->get(%s, %s)', $limitKey, $default);
30 30
             },
31
-            function (array $variables, $limitKey, $default) {
31
+            function(array $variables, $limitKey, $default) {
32 32
                 return $variables['container']->get('request')->get($limitKey, $default);
33 33
             }
34 34
         );
Please login to merge, or discard this patch.
Twig/Extension/Routing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $pattern = $this->router->getRouteCollection()->get($routeName)->getPath();
54 54
 
55 55
         if (preg_match_all('/\{([a-z]+)\}/', $pattern, $matches)) {
56
-            foreach($matches[1] as $holder) {
56
+            foreach ($matches[1] as $holder) {
57 57
                 $value = $accessor->getValue($object, $holder);
58 58
 
59 59
                 if (!is_numeric($value)) {
Please login to merge, or discard this patch.
DependencyInjection/AbstractResourceExtension.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension as BaseAbstractResourceExtension;
6 6
 use Symfony\Component\Config\Definition\ConfigurationInterface;
7 7
 use Symfony\Component\Config\FileLocator;
8
-use Symfony\Component\Config\Loader\DelegatingLoader;
9
-use Symfony\Component\Config\Loader\LoaderResolver;
10 8
 use Symfony\Component\DependencyInjection\ContainerBuilder;
11 9
 use Symfony\Component\DependencyInjection\Exception\BadMethodCallException;
12 10
 use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
 
63 63
         $interfaces = array();
64 64
 
65
-        foreach($config['resources'] as $model => $resource) {
66
-            foreach($resource['classes'] as $key => $class) {
65
+        foreach ($config['resources'] as $model => $resource) {
66
+            foreach ($resource['classes'] as $key => $class) {
67 67
                 if ($key === 'interface') {
68 68
                     $name = sprintf('%s.%s.%s.class', $this->applicationName, $key, $model);
69 69
                     $container->setParameter($name, $class);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             }
74 74
         }
75 75
 
76
-        $container->setParameter($this->getAlias() . '_interfaces', $interfaces);
76
+        $container->setParameter($this->getAlias().'_interfaces', $interfaces);
77 77
 
78 78
         foreach ($this->configFiles as $configFile) {
79 79
             if (file_exists(sprintf('%s/%s', $this->getConfigDir(), $configFile))) {
Please login to merge, or discard this patch.
DependencyInjection/AbstractResourceConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
             ->end()
196 196
             ->beforeNormalization()
197 197
             ->ifString()
198
-                ->then(function ($v) {
198
+                ->then(function($v) {
199 199
                     return array(
200 200
                         AbstractResourceConfiguration::DEFAULT_KEY => $v,
201 201
                     );
Please login to merge, or discard this patch.