Completed
Push — feature/0.7.0 ( 79c386...7f3169 )
by Ryuichi
03:02
created
WebStream/Annotation/Base/Annotation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
WebStream/Database/Driver/Postgresql.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
WebStream/Database/Driver/Mysql.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
WebStream/Database/ResultEntity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
WebStream/Database/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
WebStream/Annotation/Filter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
WebStream/Annotation/CsrfProtection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
WebStream/Annotation/Base/IMethods.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,5 +18,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
WebStream/Log/Logger.php 3 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.