@@ -52,11 +52,11 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,7 +1,6 @@ |
||
| 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; |
@@ -50,13 +50,13 @@ |
||
| 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; |
@@ -18,5 +18,5 @@ |
||
| 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 | } |
@@ -18,5 +18,5 @@ |
||
| 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 | } |
@@ -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 | } |
@@ -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]; |