Completed
Push — feature/0.7.0 ( 5bdbd1...cdc406 )
by Ryuichi
03:10
created
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/LoggerConfigurationManager.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -183,6 +183,7 @@
 block discarded – undo
183 183
     /**
184 184
      * ログローテートサイクルを時間に変換
185 185
      * @param string ローテートサイクル
186
+     * @param string $cycle
186 187
      * @return int ローテート時間
187 188
      */
188 189
     private function cycle2value($cycle)
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@
 block discarded – undo
68 68
     public function load()
69 69
     {
70 70
         $this->loadLogLevel()
71
-             ->loadLogFilePath()
72
-             ->loadRotateCycle()
73
-             ->loadRotateSize()
74
-             ->loadApplicationName()
75
-             ->loadFormat();
71
+                ->loadLogFilePath()
72
+                ->loadRotateCycle()
73
+                ->loadRotateSize()
74
+                ->loadApplicationName()
75
+                ->loadFormat();
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         } else {
44 44
             $configMap = $this->parseConfig($config);
45 45
             if ($configMap === null) {
46
-                throw new LoggerException("Log config file does not exist: " . $config);
46
+                throw new LoggerException("Log config file does not exist: ".$config);
47 47
             }
48 48
         }
49 49
 
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
         $this->ioContainer = new Container();
52 52
 
53 53
         $rootDir = $this->getApplicationRoot();
54
-        $this->ioContainer->file = function () use ($rootDir, $configMap) {
54
+        $this->ioContainer->file = function() use ($rootDir, $configMap) {
55 55
             if (!array_key_exists("path", $configMap)) {
56 56
                 throw new LoggerException("Log path must be defined.");
57 57
             }
58
-            return new File($rootDir . "/" . $configMap["path"]);
58
+            return new File($rootDir."/".$configMap["path"]);
59 59
         };
60 60
 
61 61
         $this->configMap = $configMap;
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $logLevel = $this->toLogLevelValue($this->configMap["level"]);
98 98
         if ($logLevel === 0) {
99
-            throw new LoggerException("Invalid log level: " . $this->configMap["level"]);
99
+            throw new LoggerException("Invalid log level: ".$this->configMap["level"]);
100 100
         }
101 101
         $this->logContainer->logLevel = $logLevel;
102 102
 
@@ -111,11 +111,11 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $file = $this->ioContainer->file;
113 113
         if (!($file->exists() && $file->isFile())) {
114
-            throw new LoggerException("Log directory does not exist: " . $file->getFilePath());
114
+            throw new LoggerException("Log directory does not exist: ".$file->getFilePath());
115 115
         }
116 116
 
117 117
         $this->logContainer->logPath = $file->getFilePath();
118
-        $this->logContainer->statusPath = preg_replace_callback('/(.*)\..+/', function ($matches) {
118
+        $this->logContainer->statusPath = preg_replace_callback('/(.*)\..+/', function($matches) {
119 119
             return "$matches[1].status";
120 120
         }, $this->logContainer->logPath);
121 121
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             $rotateCycle = $this->cycle2value($this->configMap["rotate_cycle"]);
133 133
             // 妥当なローテートサイクルか
134 134
             if ($rotateCycle === 0) {
135
-                throw new LoggerException("Invalid log rotate cycle: " . $this->configMap["rotate_cycle"]);
135
+                throw new LoggerException("Invalid log rotate cycle: ".$this->configMap["rotate_cycle"]);
136 136
             }
137 137
             $this->logContainer->rotateCycle = $rotateCycle;
138 138
         }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $rotateSize = intval($this->configMap["rotate_size"]);
151 151
             // ローテートサイズが不正の場合(正の整数以外の値が設定された場合)
152 152
             if ($rotateSize <= 0) {
153
-                throw new LoggerException("Invalid log rotate size: " . $this->configMap["rotate_size"]);
153
+                throw new LoggerException("Invalid log rotate size: ".$this->configMap["rotate_size"]);
154 154
             }
155 155
             $this->logContainer->rotateSize = $rotateSize;
156 156
         }
Please login to merge, or discard this patch.
WebStream/Log/LoggerFormatter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      * フォーマット済みメッセージを返却する
36 36
      * @param  string メッセージ
37 37
      * @param  string ログレベル
38
-     * @return フォーマット済みメッセージ
38
+     * @return string
39 39
      */
40 40
     public function getFormattedMessage($message, $logLevel)
41 41
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         // メッセージ
50 50
         $formattedMessage = preg_replace('/%m/', $message, $formattedMessage);
51 51
 
52
-        return $formattedMessage . PHP_EOL;
52
+        return $formattedMessage.PHP_EOL;
53 53
     }
54 54
 
55 55
     /**
Please login to merge, or discard this patch.