Completed
Push — master ( bac48d...74ca95 )
by Théo
10s
created
src/FileLoader/Parser/Yaml/ParametersParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     public function __construct(ServiceResolver $serviceResolver = null)
29 29
     {
30
-        $this->serviceResolver = (null === $serviceResolver)? new ServiceResolver(): $serviceResolver;
30
+        $this->serviceResolver = (null === $serviceResolver) ? new ServiceResolver() : $serviceResolver;
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
src/DependencyInjection/Builder/ServiceBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
         $serviceId = ($service instanceof DecorationInterface) ? $service->getDecoration()[0] : $service->getName();
110 110
         $application->singleton(
111 111
             $serviceId,
112
-            function () use ($instantiator, $service) {
112
+            function() use ($instantiator, $service) {
113 113
                 return $instantiator->create($service);
114 114
             }
115 115
         );
Please login to merge, or discard this patch.
src/DependencyInjection/Resolver/BaseParametersResolver.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     /**
121
-     * @param $value
121
+     * @param string $value
122 122
      * @param $resolving
123 123
      *
124 124
      * @return array|mixed
@@ -135,6 +135,10 @@  discard block
 block discarded – undo
135 135
         $self = $this;
136 136
         return preg_replace_callback(
137 137
             '/%%|%([^%\s]+)%/',
138
+
139
+            /**
140
+             * @param string $match
141
+             */
138 142
             function ($match) use ($self, $resolving, $value) {
139 143
                 // skip %%
140 144
                 if (false === isset($match[1])) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
         $self = $this;
136 136
         return preg_replace_callback(
137 137
             '/%%|%([^%\s]+)%/',
138
-            function ($match) use ($self, $resolving, $value) {
138
+            function($match) use ($self, $resolving, $value) {
139 139
                 // skip %%
140 140
                 if (false === isset($match[1])) {
141 141
                     return '%%';
Please login to merge, or discard this patch.