@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | try { |
| 104 | 104 | $reflectClass = new ReflectionClass($statement->getFetchClass()); |
| 105 | 105 | } catch (ReflectionException $e) { |
| 106 | - throw new FetchResultException('error create class: '. $e->getMessage(), $e->getCode(), $e); |
|
| 106 | + throw new FetchResultException('error create class: '.$e->getMessage(), $e->getCode(), $e); |
|
| 107 | 107 | } |
| 108 | 108 | $object = $reflectClass->newInstanceArgs($statement->getFetchClassArgs()); |
| 109 | 109 | if (method_exists($object, '__set')) { |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | try { |
| 134 | 134 | $property = $reflectClass->getProperty($propertyName); |
| 135 | 135 | } catch (ReflectionException $e) { |
| 136 | - throw new FetchResultException('error create property: '. $e->getMessage(), $e->getCode(), $e); |
|
| 136 | + throw new FetchResultException('error create property: '.$e->getMessage(), $e->getCode(), $e); |
|
| 137 | 137 | } |
| 138 | 138 | $property->setAccessible(true); |
| 139 | 139 | $property->setValue($object, $value); |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | protected function getFilePath(string $name) |
| 135 | 135 | { |
| 136 | 136 | $path = md5($name); |
| 137 | - $savePath = $this->path.'/'.substr($path, 0,2); |
|
| 137 | + $savePath = $this->path.'/'.substr($path, 0, 2); |
|
| 138 | 138 | FileSystem::make($savePath); |
| 139 | 139 | return $savePath.'/'.$path.'.cache'; |
| 140 | 140 | } |