@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | protected function injectedLog(Annotation $class) |
33 | 33 | { |
34 | - $this->logger->debug("@" . get_class($class) . " injected."); |
|
34 | + $this->logger->debug("@".get_class($class)." injected."); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -31,6 +31,6 @@ |
||
31 | 31 | ]); |
32 | 32 | |
33 | 33 | $this->connection = DriverManager::getConnection($params, $config); |
34 | - $this->logger->debug(get_class($this) . " connect."); |
|
34 | + $this->logger->debug(get_class($this)." connect."); |
|
35 | 35 | } |
36 | 36 | } |
@@ -31,6 +31,6 @@ |
||
31 | 31 | ]); |
32 | 32 | |
33 | 33 | $this->connection = DriverManager::getConnection($params, $config); |
34 | - $this->logger->debug(get_class($this) . " connect."); |
|
34 | + $this->logger->debug(get_class($this)." connect."); |
|
35 | 35 | } |
36 | 36 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | public function seek($offset) |
66 | 66 | { |
67 | 67 | if (!array_key_exists($offset, $this->values)) { |
68 | - throw new \OutOfBoundsException("Current cursor is out of range: " . $offset); |
|
68 | + throw new \OutOfBoundsException("Current cursor is out of range: ".$offset); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | return $this->values[$offset]; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | public function seek($offset) |
66 | 66 | { |
67 | 67 | if (!array_key_exists($offset, $this->values)) { |
68 | - throw new \OutOfBoundsException("Current cursor is out of range: " . $offset); |
|
68 | + throw new \OutOfBoundsException("Current cursor is out of range: ".$offset); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | return $this->values[$offset]; |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * {@inheritdoc} |
52 | 52 | */ |
53 | - public function onMethodInject(IAnnotatable &$instance, Container $container, \ReflectionMethod $method) |
|
53 | + public function onMethodInject(IAnnotatable&$instance, Container $container, \ReflectionMethod $method) |
|
54 | 54 | { |
55 | 55 | $this->injectedLog($this); |
56 | 56 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * {@inheritdoc} |
52 | 52 | */ |
53 | - public function onMethodInject(IAnnotatable &$instance, Container $container, \ReflectionMethod $method) |
|
53 | + public function onMethodInject(IAnnotatable&$instance, Container $container, \ReflectionMethod $method) |
|
54 | 54 | { |
55 | 55 | $this->injectedLog($this); |
56 | 56 |
@@ -18,5 +18,5 @@ |
||
18 | 18 | * @param Container 依存コンテナ |
19 | 19 | * @param ReflectionMethod リフレクションメソッドオブジェクト |
20 | 20 | */ |
21 | - public function onMethodInject(IAnnotatable &$instance, Container $container, \ReflectionMethod $method); |
|
21 | + public function onMethodInject(IAnnotatable&$instance, Container $container, \ReflectionMethod $method); |
|
22 | 22 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | /** |
88 | 88 | * インスタンスを返却する |
89 | - * @return WebStream\Module\Logger ロガーインスタンス |
|
89 | + * @return Logger ロガーインスタンス |
|
90 | 90 | */ |
91 | 91 | public static function getInstance() |
92 | 92 | { |
@@ -193,6 +193,7 @@ discard block |
||
193 | 193 | * @param string ログレベル文字列 |
194 | 194 | * @param string 出力文字列 |
195 | 195 | * @param array<mixed> 埋め込み値リスト |
196 | + * @param string $msg |
|
196 | 197 | */ |
197 | 198 | public function write($level, $msg, $context = null) |
198 | 199 | { |
@@ -288,6 +289,8 @@ discard block |
||
288 | 289 | * ローテートを実行する |
289 | 290 | * @param integer 作成日時のUnixTime |
290 | 291 | * @param integer 現在日時のUnixTime |
292 | + * @param integer $from |
|
293 | + * @param integer $to |
|
291 | 294 | */ |
292 | 295 | private function runRotate($from, $to) |
293 | 296 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | */ |
8 | 8 | |
9 | 9 | use WebStream\Module\Security; |
10 | -use WebStream\DI\ServiceLocator; |
|
11 | 10 | use WebStream\Log\Logger; |
12 | 11 | |
13 | 12 | /** |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | date_default_timezone_set('Asia/Tokyo'); |
165 | 165 | $msec = sprintf("%2d", floatval(microtime()) * 100); |
166 | 166 | |
167 | - return strftime("%Y-%m-%d %H:%M:%S") . "," . $msec; |
|
167 | + return strftime("%Y-%m-%d %H:%M:%S").",".$msec; |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | continue; |
183 | 183 | } |
184 | 184 | $msg .= "\n"; |
185 | - $msg .= "\t#" . trim($stacktraceLine); |
|
185 | + $msg .= "\t#".trim($stacktraceLine); |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | return $msg; |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | $content = fread($handle, $size); |
249 | 249 | fclose($handle); |
250 | 250 | if (!preg_match('/^\d{10}$/', $content)) { |
251 | - throw new LoggerException("Invalid log state file contents: " . $content); |
|
251 | + throw new LoggerException("Invalid log state file contents: ".$content); |
|
252 | 252 | } |
253 | 253 | |
254 | 254 | return intval($content); |