Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
desperado committed Aug 15, 2020
1 parent de75293 commit 9e71060
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function __construct(string $entryPointName, Environment $environment)
*/
public function addCompilerPasses(CompilerPassInterface ...$compilerPasses): void
{
foreach($compilerPasses as $compilerPass)
foreach ($compilerPasses as $compilerPass)
{
$this->compilerPasses->attach($compilerPass);
}
Expand All @@ -104,7 +104,7 @@ public function addCompilerPasses(CompilerPassInterface ...$compilerPasses): voi
*/
public function addExtensions(Extension ...$extensions): void
{
foreach($extensions as $extension)
foreach ($extensions as $extension)
{
$this->extensions->attach($extension);
}
Expand All @@ -115,7 +115,7 @@ public function addExtensions(Extension ...$extensions): void
*/
public function addModules(ServiceBusModule ...$serviceBusModules): void
{
foreach($serviceBusModules as $serviceBusModule)
foreach ($serviceBusModules as $serviceBusModule)
{
$this->modules->attach($serviceBusModule);
}
Expand All @@ -126,7 +126,7 @@ public function addModules(ServiceBusModule ...$serviceBusModules): void
*/
public function addParameters(array $parameters): void
{
foreach($parameters as $key => $value)
foreach ($parameters as $key => $value)
{
$this->parameters[$key] = $value;
}
Expand All @@ -145,7 +145,7 @@ public function setupCacheDirectoryPath(string $cacheDirectoryPath): void
*/
public function hasActualContainer(): bool
{
if(false === $this->environment->isDebug())
if (false === $this->environment->isDebug())
{
return true === $this->configCache()->isFresh();
}
Expand Down Expand Up @@ -191,19 +191,19 @@ public function build(): ContainerInterface
$containerBuilder = new SymfonyContainerBuilder(new ParameterBag($this->parameters));

/** @var Extension $extension */
foreach($this->extensions as $extension)
foreach ($this->extensions as $extension)
{
$extension->load($this->parameters, $containerBuilder);
}

/** @var CompilerPassInterface $compilerPass */
foreach($this->compilerPasses as $compilerPass)
foreach ($this->compilerPasses as $compilerPass)
{
$containerBuilder->addCompilerPass($compilerPass);
}

/** @var ServiceBusModule $module */
foreach($this->modules as $module)
foreach ($this->modules as $module)
{
$module->boot($containerBuilder);
}
Expand Down Expand Up @@ -235,7 +235,7 @@ private function dumpContainer(SymfonyContainerBuilder $builder): void
]
);

if(\is_string($content))
if (\is_string($content))
{
$this->configCache()->write($content, $builder->getResources());
}
Expand All @@ -246,7 +246,7 @@ private function dumpContainer(SymfonyContainerBuilder $builder): void
*/
private function configCache(): ConfigCache
{
if(null === $this->configCache)
if (null === $this->configCache)
{
$this->configCache = new ConfigCache($this->getContainerClassPath(), $this->environment->isDebug());
}
Expand All @@ -261,7 +261,7 @@ private function cacheDirectory(): string
{
$cacheDirectory = (string) $this->cacheDirectory;

if('' === $cacheDirectory && false === \is_writable($cacheDirectory))
if ('' === $cacheDirectory && false === \is_writable($cacheDirectory))
{
$cacheDirectory = \sys_get_temp_dir();
}
Expand Down

0 comments on commit 9e71060

Please sign in to comment.