@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Constructor |
38 | 38 | * @param array<string> 注入後の返却情報 |
39 | - * @param Container 依存コンテナ |
|
39 | + * @param Container Container |
|
40 | 40 | */ |
41 | 41 | public function __construct(array $injectedAnnotation, Container $container) |
42 | 42 | { |
@@ -56,7 +56,8 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * CustomAnnotation結果を返却する |
58 | 58 | * @param string アノテーションID |
59 | - * @return Callable CustomAnnotation結果 |
|
59 | + * @param string $annotationId |
|
60 | + * @return \Closure CustomAnnotation結果 |
|
60 | 61 | */ |
61 | 62 | public function createAnnotationCallable($annotationId) |
62 | 63 | { |
@@ -95,7 +96,7 @@ discard block |
||
95 | 96 | |
96 | 97 | /** |
97 | 98 | * CustomAnnotation結果を返却する |
98 | - * @return Callable CustomAnnotation結果 |
|
99 | + * @return \Closure CustomAnnotation結果 |
|
99 | 100 | */ |
100 | 101 | public function createCustomAnnotationCallable() |
101 | 102 | { |
@@ -112,7 +113,7 @@ discard block |
||
112 | 113 | /** |
113 | 114 | * Header結果を返却する |
114 | 115 | * @param array<AnnotationContainer> アノテーションコンテナリスト |
115 | - * @return Callable Header結果 |
|
116 | + * @return \Closure Header結果 |
|
116 | 117 | */ |
117 | 118 | private function createHeader($containerList) |
118 | 119 | { |
@@ -130,7 +131,7 @@ discard block |
||
130 | 131 | /** |
131 | 132 | * Filter結果を返却する |
132 | 133 | * @param array<AnnotationContainer> アノテーションコンテナリスト |
133 | - * @return Callable Filter結果 |
|
134 | + * @return \Closure Filter結果 |
|
134 | 135 | */ |
135 | 136 | private function createFilter($containerList) |
136 | 137 | { |
@@ -214,7 +215,7 @@ discard block |
||
214 | 215 | /** |
215 | 216 | * Template結果を返却する |
216 | 217 | * @param array<AnnotationContainer> アノテーションコンテナリスト |
217 | - * @return Callable Template結果 |
|
218 | + * @return \Closure Template結果 |
|
218 | 219 | */ |
219 | 220 | private function createTemplate($containerList) |
220 | 221 | { |
@@ -230,7 +231,7 @@ discard block |
||
230 | 231 | /** |
231 | 232 | * ExceptionHandler結果を返却する |
232 | 233 | * @param array<AnnotationContainer> アノテーションコンテナリスト |
233 | - * @return Callable ExceptionHandler結果 |
|
234 | + * @return \Closure ExceptionHandler結果 |
|
234 | 235 | */ |
235 | 236 | private function createExceptionHandler($containerList) |
236 | 237 | { |
@@ -242,7 +243,7 @@ discard block |
||
242 | 243 | /** |
243 | 244 | * Database結果を返却する |
244 | 245 | * @param array<AnnotationContainer> アノテーションコンテナリスト |
245 | - * @return Callable Database結果 |
|
246 | + * @return \Closure Database結果 |
|
246 | 247 | */ |
247 | 248 | private function createDatabase($containerList) |
248 | 249 | { |
@@ -254,7 +255,7 @@ discard block |
||
254 | 255 | /** |
255 | 256 | * Query結果を返却する |
256 | 257 | * @param array<AnnotationContainer> アノテーションコンテナリスト |
257 | - * @return Callable Query結果 |
|
258 | + * @return \Closure Query結果 |
|
258 | 259 | */ |
259 | 260 | private function createQuery($containerList) |
260 | 261 | { |
@@ -266,7 +267,7 @@ discard block |
||
266 | 267 | /** |
267 | 268 | * Alias結果を返却する |
268 | 269 | * @param array<AnnotationContainer> アノテーションコンテナリスト |
269 | - * @return Callable Alias結果 |
|
270 | + * @return \Closure Alias結果 |
|
270 | 271 | */ |
271 | 272 | private function createAlias($containerList) |
272 | 273 | { |
@@ -36,11 +36,10 @@ discard block |
||
36 | 36 | if (!$this->isAvailableCacheLibrary()) { |
37 | 37 | return false; |
38 | 38 | } |
39 | - $key = $this->cacheContainer->cachePrefix . $key; |
|
39 | + $key = $this->cacheContainer->cachePrefix.$key; |
|
40 | 40 | |
41 | - $result = $overrite ? $this->cacheContainer->driver->delegate("apcu_store", [$key, $value, $ttl]) : |
|
42 | - $this->cacheContainer->driver->delegate("apcu_add", [$key, $value, $ttl]); |
|
43 | - $this->logger->info("Execute cache save: " . $key); |
|
41 | + $result = $overrite ? $this->cacheContainer->driver->delegate("apcu_store", [$key, $value, $ttl]) : $this->cacheContainer->driver->delegate("apcu_add", [$key, $value, $ttl]); |
|
42 | + $this->logger->info("Execute cache save: ".$key); |
|
44 | 43 | |
45 | 44 | return $result; |
46 | 45 | } |
@@ -53,13 +52,13 @@ discard block |
||
53 | 52 | if (!$this->isAvailableCacheLibrary()) { |
54 | 53 | return null; |
55 | 54 | } |
56 | - $key = $this->cacheContainer->cachePrefix . $key; |
|
55 | + $key = $this->cacheContainer->cachePrefix.$key; |
|
57 | 56 | $value = $this->cacheContainer->driver->delegate("apcu_fetch", [$key]); |
58 | 57 | |
59 | 58 | if ($value !== false) { |
60 | - $this->logger->info("Execute cache read: " . $key); |
|
59 | + $this->logger->info("Execute cache read: ".$key); |
|
61 | 60 | } else { |
62 | - $this->logger->warn("Failed to read cache: " . $key); |
|
61 | + $this->logger->warn("Failed to read cache: ".$key); |
|
63 | 62 | $value = null; |
64 | 63 | } |
65 | 64 | |
@@ -74,13 +73,13 @@ discard block |
||
74 | 73 | if (!$this->isAvailableCacheLibrary()) { |
75 | 74 | return false; |
76 | 75 | } |
77 | - $key = $this->cacheContainer->cachePrefix . $key; |
|
76 | + $key = $this->cacheContainer->cachePrefix.$key; |
|
78 | 77 | |
79 | 78 | if ($this->cacheContainer->driver->delegate("apcu_delete", [$key])) { |
80 | - $this->logger->info("Execute cache cleared: " . $key); |
|
79 | + $this->logger->info("Execute cache cleared: ".$key); |
|
81 | 80 | return true; |
82 | 81 | } else { |
83 | - $this->logger->warn("Failed to clear cache: " . $key); |
|
82 | + $this->logger->warn("Failed to clear cache: ".$key); |
|
84 | 83 | return false; |
85 | 84 | } |
86 | 85 | } |
@@ -95,17 +94,17 @@ discard block |
||
95 | 94 | } |
96 | 95 | |
97 | 96 | if (class_exists('\APCUIterator')) { |
98 | - $obj = new \APCUIterator('/^' . $this->cacheContainer->cachePrefix . '/', APC_ITER_KEY); |
|
97 | + $obj = new \APCUIterator('/^'.$this->cacheContainer->cachePrefix.'/', APC_ITER_KEY); |
|
99 | 98 | if ($this->cacheContainer->driver->delegate("apcu_delete", [$obj])) { |
100 | - $this->logger->info("Execute all cache cleared: " . $this->cacheContainer->cachePrefix . "*"); |
|
99 | + $this->logger->info("Execute all cache cleared: ".$this->cacheContainer->cachePrefix."*"); |
|
101 | 100 | return true; |
102 | 101 | } |
103 | 102 | } elseif ($this->cacheContainer->driver->delegate("apcu_clear_cache")) { |
104 | - $this->logger->info("Execute all cache cleared: " . $this->cacheContainer->cachePrefix . "*"); |
|
103 | + $this->logger->info("Execute all cache cleared: ".$this->cacheContainer->cachePrefix."*"); |
|
105 | 104 | return true; |
106 | 105 | } |
107 | 106 | |
108 | - $this->logger->warn("Failed to clear all cache: " . $this->cacheContainer->cachePrefix . "*"); |
|
107 | + $this->logger->warn("Failed to clear all cache: ".$this->cacheContainer->cachePrefix."*"); |
|
109 | 108 | return false; |
110 | 109 | } |
111 | 110 |