Skip to content

Commit 2023e08

Browse files
committed
appease the scrutinzer
1 parent ab13e88 commit 2023e08

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ return [
122122
* If set to `true` all output of the optimizer binaries will be appended to the default log.
123123
* You can also set this on an class that implements `Psr\Log\LoggerInterface`.
124124
*/
125-
'logOptimizerActivity' => false,
125+
'log_optimizer_activity' => false,
126126
];
127127
```
128128

config/image-optimizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646
* If set to `true` all output of the optimizer binaries will be appended to the default log.
4747
* You can also set this on an class that implements `Psr\Log\LoggerInterface`.
4848
*/
49-
'logOptimizerActivity' => false,
49+
'log_optimizer_activity' => false,
5050
];

src/OptimizerChainFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function create(array $config)
2020

2121
protected static function getLogger($config): LoggerInterface
2222
{
23-
$configuredLogger = $config['logOptimizerActivity'];
23+
$configuredLogger = $config['log_optimizer_activity'];
2424

2525
if ($configuredLogger === true) {
2626
return app('log');

tests/ImageOptimizerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function it_has_a_valid_default_configuration()
1717
/** @test */
1818
public function it_will_throw_an_exception_with_a_malconfigured_logger()
1919
{
20-
config()->set('image-optimizer.logOptimizerActivity', stdClass::class);
20+
config()->set('image-optimizer.log_optimizer_activity', stdClass::class);
2121

2222
$this->expectException(InvalidConfiguration::class);
2323

@@ -27,7 +27,7 @@ public function it_will_throw_an_exception_with_a_malconfigured_logger()
2727
/** @test */
2828
public function it_can_log_to_the_default_log()
2929
{
30-
config()->set('image-optimizer.logOptimizerActivity', true);
30+
config()->set('image-optimizer.log_optimizer_activity', true);
3131

3232
$logWriter = new ArrayLogger();
3333

0 commit comments

Comments
 (0)