@@ -27,7 +27,7 @@ |
||
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 | /** |
@@ -109,7 +109,7 @@ |
||
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 | ); |
@@ -30,7 +30,7 @@ |
||
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); |
@@ -20,7 +20,6 @@ |
||
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 | /** |
@@ -56,7 +56,7 @@ |
||
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 |