Completed
Push — feature/0.7.0 ( df772f...df4897 )
by Ryuichi
03:33
created
WebStream/Annotation/Query.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * {@inheritdoc}
54 54
      */
55
-    public function onMethodInject(IAnnotatable &$instance, Container $container, \ReflectionMethod $method)
55
+    public function onMethodInject(IAnnotatable&$instance, Container $container, \ReflectionMethod $method)
56 56
     {
57 57
         $this->injectedLog($this);
58 58
 
59
-        $key = $method->class . "#" . $method->name;
59
+        $key = $method->class."#".$method->name;
60 60
         if ($this->injectedContainer->{$key} === null) {
61 61
             $this->injectedContainer->{$key} = new AnnotationListContainer();
62 62
         }
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
             $files = [$files];
66 66
         }
67 67
 
68
-        $this->injectedContainer->{$key}->pushAsLazy(function () use ($files) {
68
+        $this->injectedContainer->{$key}->pushAsLazy(function() use ($files) {
69 69
             $xmlObjectList = [];
70 70
             foreach ($files as $file) {
71 71
                 if (file_exists($file)) {
72 72
                     $xmlObject = simplexml_load_file($file);
73 73
                     if ($xmlObject === false) {
74
-                        throw new DatabaseException("Failded to parse query file: " . $file);
74
+                        throw new DatabaseException("Failded to parse query file: ".$file);
75 75
                     }
76 76
                     $xmlObjectList[] = $xmlObject;
77 77
                 }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace WebStream\Annotation;
3 3
 
4
-use WebStream\Core\CoreInterface;
5 4
 use WebStream\Annotation\Base\Annotation;
6 5
 use WebStream\Annotation\Base\IAnnotatable;
7 6
 use WebStream\Annotation\Base\IMethod;
Please login to merge, or discard this patch.
WebStream/Annotation/Alias.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@
 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
 
57 57
         $aliasMethodName = $this->annotation->name;
58 58
         if (!preg_match('/^[a-zA-Z_][a-zA-Z0-9_]{0,}$/', $aliasMethodName)) {
59
-            throw new AnnotationException("Alias method is invalid: " . $aliasMethodName);
59
+            throw new AnnotationException("Alias method is invalid: ".$aliasMethodName);
60 60
         }
61 61
 
62 62
         $this->injectedContainer->{$aliasMethodName} = $method->name;
Please login to merge, or discard this patch.
WebStream/Annotation/Base/IClass.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 ReflectionClass リフレクションクラスオブジェクト
20 20
      */
21
-    public function onClassInject(IAnnotatable &$instance, Container $container, \ReflectionClass $class);
21
+    public function onClassInject(IAnnotatable&$instance, Container $container, \ReflectionClass $class);
22 22
 }
Please login to merge, or discard this patch.
WebStream/Annotation/Base/IProperty.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 ReflectionProperty リフレクションプロパティオブジェクト
20 20
      */
21
-    public function onPropertyInject(IAnnotatable &$instance, Container $container, \ReflectionProperty $property);
21
+    public function onPropertyInject(IAnnotatable&$instance, Container $container, \ReflectionProperty $property);
22 22
 }
Please login to merge, or discard this patch.
WebStream/Annotation/Base/IMethod.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/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.