@@ -10,8 +10,7 @@ |
||
| 10 | 10 | * reduce boilerplate code that a simple Logger that does the same thing with |
| 11 | 11 | * messages regardless of the error level has to implement. |
| 12 | 12 | */ |
| 13 | -trait LoggerTrait |
|
| 14 | -{ |
|
| 13 | +trait LoggerTrait { |
|
| 15 | 14 | /** |
| 16 | 15 | * System is unusable. |
| 17 | 16 | * |
@@ -17,8 +17,7 @@ |
||
| 17 | 17 | * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md |
| 18 | 18 | * for the full interface specification. |
| 19 | 19 | */ |
| 20 | -interface LoggerInterface |
|
| 21 | -{ |
|
| 20 | +interface LoggerInterface { |
|
| 22 | 21 | /** |
| 23 | 22 | * System is unusable. |
| 24 | 23 | * |
@@ -9,8 +9,7 @@ |
||
| 9 | 9 | * reduce boilerplate code that a simple Logger that does the same thing with |
| 10 | 10 | * messages regardless of the error level has to implement. |
| 11 | 11 | */ |
| 12 | -abstract class AbstractLogger implements LoggerInterface |
|
| 13 | -{ |
|
| 12 | +abstract class AbstractLogger implements LoggerInterface { |
|
| 14 | 13 | /** |
| 15 | 14 | * System is unusable. |
| 16 | 15 | * |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | /** |
| 6 | 6 | * Basic Implementation of LoggerAwareInterface. |
| 7 | 7 | */ |
| 8 | -trait LoggerAwareTrait |
|
| 9 | -{ |
|
| 8 | +trait LoggerAwareTrait { |
|
| 10 | 9 | /** |
| 11 | 10 | * The logger instance. |
| 12 | 11 | * |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @method bool hasInfoThatPasses($message) |
| 55 | 55 | * @method bool hasDebugThatPasses($message) |
| 56 | 56 | */ |
| 57 | -class TestLogger extends AbstractLogger |
|
| 58 | -{ |
|
| 57 | +class TestLogger extends AbstractLogger { |
|
| 59 | 58 | /** |
| 60 | 59 | * @var array |
| 61 | 60 | */ |
@@ -12,8 +12,7 @@ |
||
| 12 | 12 | * Implementors can extend the class and implement abstract methods to run this |
| 13 | 13 | * as part of their test suite. |
| 14 | 14 | */ |
| 15 | -abstract class LoggerInterfaceTest extends TestCase |
|
| 16 | -{ |
|
| 15 | +abstract class LoggerInterfaceTest extends TestCase { |
|
| 17 | 16 | /** |
| 18 | 17 | * @return LoggerInterface |
| 19 | 18 | */ |
@@ -9,8 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @internal |
| 11 | 11 | */ |
| 12 | -class DummyTest |
|
| 13 | -{ |
|
| 12 | +class DummyTest { |
|
| 14 | 13 | public function __toString() |
| 15 | 14 | { |
| 16 | 15 | return 'DummyTest'; |
@@ -10,8 +10,7 @@ |
||
| 10 | 10 | * is a good way to avoid littering your code with `if ($this->logger) { }` |
| 11 | 11 | * blocks. |
| 12 | 12 | */ |
| 13 | -class NullLogger extends AbstractLogger |
|
| 14 | -{ |
|
| 13 | +class NullLogger extends AbstractLogger { |
|
| 15 | 14 | /** |
| 16 | 15 | * Logs with an arbitrary level. |
| 17 | 16 | * |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | /** |
| 6 | 6 | * Describes a logger-aware instance. |
| 7 | 7 | */ |
| 8 | -interface LoggerAwareInterface |
|
| 9 | -{ |
|
| 8 | +interface LoggerAwareInterface { |
|
| 10 | 9 | /** |
| 11 | 10 | * Sets a logger instance on the object. |
| 12 | 11 | * |