@@ -74,13 +74,13 @@ |
||
74 | 74 | |
75 | 75 | $this->ioContainer = new Container(); |
76 | 76 | |
77 | - $this->ioContainer->statusReader = function () use ($statusFile) { |
|
77 | + $this->ioContainer->statusReader = function() use ($statusFile) { |
|
78 | 78 | return new FileReader($statusFile); |
79 | 79 | }; |
80 | - $this->ioContainer->statusWriter = function () use ($statusFile) { |
|
80 | + $this->ioContainer->statusWriter = function() use ($statusFile) { |
|
81 | 81 | return new SimpleFileWriter($statusFile->getFilePath()); |
82 | 82 | }; |
83 | - $this->ioContainer->logWriter = function () use ($logFile) { |
|
83 | + $this->ioContainer->logWriter = function() use ($logFile) { |
|
84 | 84 | return new SimpleFileWriter($logFile->getFilePath()); |
85 | 85 | }; |
86 | 86 |
@@ -48,13 +48,13 @@ discard block |
||
48 | 48 | $this->logContainer = new Container(false); |
49 | 49 | $this->ioContainer = new Container(); |
50 | 50 | |
51 | - $this->ioContainer->file = function () use ($configMap) { |
|
51 | + $this->ioContainer->file = function() use ($configMap) { |
|
52 | 52 | if (!array_key_exists("path", $configMap)) { |
53 | 53 | throw new LoggerException("Log path must be defined."); |
54 | 54 | } |
55 | 55 | return new File($configMap["path"]); |
56 | 56 | }; |
57 | - $this->ioContainer->fileWriter = function () use ($configMap) { |
|
57 | + $this->ioContainer->fileWriter = function() use ($configMap) { |
|
58 | 58 | return new SimpleFileWriter($configMap["path"]); |
59 | 59 | }; |
60 | 60 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | $this->logContainer->logPath = $file->getFilePath(); |
115 | - $this->logContainer->statusPath = preg_replace_callback('/(.*)\..+/', function ($matches) { |
|
115 | + $this->logContainer->statusPath = preg_replace_callback('/(.*)\..+/', function($matches) { |
|
116 | 116 | return "$matches[1].status"; |
117 | 117 | }, $this->logContainer->logPath); |
118 | 118 |