| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 28 | public function read(string $identifier): StorageResultInterface |
||
| 29 | { |
||
| 30 | $projections = []; |
||
| 31 | //@todo handle errors |
||
| 32 | $hashMap = $this->connector->getConnection()->hGetAll($identifier); |
||
| 33 | |||
| 34 | if (!empty($hashMap)) { |
||
| 35 | $projectionClass = $hashMap['@type']; |
||
| 36 | $projections = [$projectionClass::fromNative($hashMap)]; |
||
| 37 | } |
||
| 38 | |||
| 39 | return new RedisStorageResult( |
||
| 40 | new ProjectionMap($projections) |
||
| 41 | ); |
||
| 54 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.