Completed
Pull Request — master (#12)
by Théo
06:24 queued 03:54
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/ServicesBuilder.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/Extension/AbstractExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     {
31 31
         $resourcePath = (function_exists('resource_path'))
32 32
             ? resource_path('providers')
33
-            : app('path').DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'providers'
33
+            : app('path') . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'providers'
34 34
         ;
35 35
 
36 36
         $rootDir = new FileLocator($resourcePath);
Please login to merge, or discard this patch.
src/FileLoader/Yaml/YamlFileLoader.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use Fidry\LaravelYaml\FileLoader\Parser\Yaml\ImportsParser;
21 21
 use Fidry\LaravelYaml\FileLoader\Parser\Yaml\ParametersParser;
22 22
 use Symfony\Component\Config\FileLocatorInterface;
23
-use Symfony\Component\Yaml\Exception\ParseException;
24 23
 use Symfony\Component\Yaml\Parser as YamlParser;
25 24
 
26 25
 /**
Please login to merge, or discard this patch.
src/FileLoader/Parser/Yaml/Util/TagsParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     private function parseTags($id, array $tags, $fileName)
58 58
     {
59
-        $parsedTags= [];
59
+        $parsedTags = [];
60 60
         foreach ($tags as $tag) {
61 61
             $this->checkTag($id, $tag, $fileName);
62 62
 
Please login to merge, or discard this patch.