Passed
Branch master (26bfc3)
by Daniel
04:41
created
Category
src/Dandelion/DandelionServiceProvider.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -63,15 +63,15 @@  discard block
 block discarded – undo
63 63
         $rootDir = rtrim(__DIR__, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR
64 64
             . str_repeat('..' . DIRECTORY_SEPARATOR, 3);
65 65
 
66
-        $container->offsetSet('root_dir', static function () use ($rootDir) {
66
+        $container->offsetSet('root_dir', static function() use ($rootDir) {
67 67
             return $rootDir;
68 68
         });
69 69
 
70
-        $container->offsetSet('src_dir', static function () use ($rootDir) {
70
+        $container->offsetSet('src_dir', static function() use ($rootDir) {
71 71
             return sprintf('%ssrc%s', $rootDir, DIRECTORY_SEPARATOR);
72 72
         });
73 73
 
74
-        $container->offsetSet('bin_dir', static function () use ($rootDir) {
74
+        $container->offsetSet('bin_dir', static function() use ($rootDir) {
75 75
             return sprintf('%sbin%s', $rootDir, DIRECTORY_SEPARATOR);
76 76
         });
77 77
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $self = $this;
89 89
 
90
-        $container->offsetSet('commands', static function (Container $container) use ($self) {
90
+        $container->offsetSet('commands', static function(Container $container) use ($self) {
91 91
             return [
92 92
                 $self->createSplitCommand($container),
93 93
                 $self->createSplitAllCommand($container),
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     protected function registerSplitter(Container $container): Container
128 128
     {
129
-        $container->offsetSet('splitter', static function (Container $container) {
129
+        $container->offsetSet('splitter', static function(Container $container) {
130 130
             return new Splitter(
131 131
                 $container->offsetGet('configuration_loader'),
132 132
                 $container->offsetGet('process_factory'),
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     protected function registerGit(Container $container): Container
148 148
     {
149
-        $container->offsetSet('git', static function (Container $container) {
149
+        $container->offsetSet('git', static function(Container $container) {
150 150
             return new Git($container->offsetGet('process_factory'));
151 151
         });
152 152
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     protected function registerProcessFactory(Container $container): Container
162 162
     {
163
-        $container->offsetSet('process_factory', static function () {
163
+        $container->offsetSet('process_factory', static function() {
164 164
             return new ProcessFactory();
165 165
         });
166 166
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     protected function registerSplitshLite(Container $container): Container
176 176
     {
177
-        $container->offsetSet('splitsh_lite', static function (Container $container) {
177
+        $container->offsetSet('splitsh_lite', static function(Container $container) {
178 178
             return new SplitshLite(
179 179
                 $container->offsetGet('operating_system'),
180 180
                 $container->offsetGet('process_factory'),
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     protected function registerOperatingSystem(Container $container): Container
194 194
     {
195
-        $container->offsetSet('operating_system', static function (Container $container) {
195
+        $container->offsetSet('operating_system', static function(Container $container) {
196 196
             return new OperatingSystem();
197 197
         });
198 198
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      */
207 207
     protected function registerConfigurationLoader(Container $container): Container
208 208
     {
209
-        $container->offsetSet('configuration_loader', static function (Container $container) {
209
+        $container->offsetSet('configuration_loader', static function(Container $container) {
210 210
             return new ConfigurationLoader(
211 211
                 $container->offsetGet('configuration_finder'),
212 212
                 $container->offsetGet('filesystem'),
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      */
225 225
     protected function registerConfigurationFinder(Container $container): Container
226 226
     {
227
-        $container->offsetSet('configuration_finder', static function (Container $container) {
227
+        $container->offsetSet('configuration_finder', static function(Container $container) {
228 228
             return new ConfigurationFinder(
229 229
                 $container->offsetGet('finder'),
230 230
                 $container->offsetGet('filesystem')
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      */
242 242
     protected function registerFinder(Container $container): Container
243 243
     {
244
-        $container->offsetSet('finder', static function () {
244
+        $container->offsetSet('finder', static function() {
245 245
             return new Finder();
246 246
         });
247 247
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      */
256 256
     protected function registerFilesystem(Container $container): Container
257 257
     {
258
-        $container->offsetSet('filesystem', static function () {
258
+        $container->offsetSet('filesystem', static function() {
259 259
             return new Filesystem();
260 260
         });
261 261
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      */
270 270
     protected function registerSerializer(Container $container): Container
271 271
     {
272
-        $container->offsetSet('serializer', static function () {
272
+        $container->offsetSet('serializer', static function() {
273 273
             $normalizer = [
274 274
                 new ObjectNormalizer(null, null, null, new PhpDocExtractor()),
275 275
                 new ArrayDenormalizer()
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      */
292 292
     protected function registerReleaser(Container $container): Container
293 293
     {
294
-        $container->offsetSet('releaser', static function (Container $container) {
294
+        $container->offsetSet('releaser', static function(Container $container) {
295 295
             return new Releaser(
296 296
                 $container->offsetGet('configuration_loader'),
297 297
                 $container->offsetGet('filesystem'),
Please login to merge, or discard this patch.