Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwierptak committed Aug 4, 2023
1 parent d948ec5 commit d0a0c64
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Logger/Builder/ConfiguratorValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function validate(LoggerConfiguratorInterface $configurator): void
throw new ConfiguratorValidationException(
$exception->getMessage(),
$exception->getCode(),
$exception
$exception,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Logger/Builder/HandlerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function buildHandler(LoggerPluginInterface $plugin): HandlerInterface
'Could not build handler for plugin: "%s". Error: %s',
get_class($plugin),
$exception->getMessage(),
), $exception->getCode(), $exception
), $exception->getCode(), $exception,
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Logger/Builder/LoggerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function buildLogger(): LoggerInterface
$this->configurator->requireName(),
$handlers,
$processors,
new DateTimeZone($this->configurator->requireTimezone())
new DateTimeZone($this->configurator->requireTimezone()),
);
}

Expand Down Expand Up @@ -105,7 +105,7 @@ protected function buildProcessors(): array
'Could not build processor: "%s". Error: %s',
$processorClass,
$exception->getMessage(),
)
),
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Logger/Builder/PluginBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function buildPlugin(PluginConfiguratorInterface $pluginConfigurator): Lo
'Could not build plugin: "%s". Error: %s',
$pluginConfigurator->requirePluginClass(),
$exception->getMessage(),
), $exception->getCode(), $exception
), $exception->getCode(), $exception,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Logger/EveronLoggerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function createBuilderFromConfigurator(LoggerConfiguratorInterface $confi
$configurator,
$this->createPluginBuilder(),
$this->createHandlerBuilder(),
$this->createValidator()
$this->createValidator(),
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,5 @@ public function buildHandler(): HandlerInterface
throw new InvalidArgumentException('Invalid value for foo bar');
}

public function validate(): void
{

}
public function validate(): void {}
}
5 changes: 1 addition & 4 deletions tests/stub/Plugin/Stream/PluginExceptionLoggerPluginStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ public function canRun(): bool
return true;
}

public function buildHandler(): HandlerInterface
{

}
public function buildHandler(): HandlerInterface {}

public function validate(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/stub/Plugin/Stream/StreamLoggerPluginStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function buildHandler(): HandlerInterface
Logger::toMonologLevel($this->configurator->requireLogLevel()),
$this->configurator->shouldBubble(),
$this->configurator->getFilePermission(),
$this->configurator->useLocking()
$this->configurator->useLocking(),
);
}

Expand Down

0 comments on commit d0a0c64

Please sign in to comment.