@@ -22,10 +22,10 @@ discard block |
||
| 22 | 22 | class ContentWrapper |
| 23 | 23 | { |
| 24 | 24 | protected $types = [ |
| 25 | - [ JsonContentWrapper::class , ['array', JsonSerializable::class],], |
|
| 26 | - [ HtmlContentWrapper::class , ['boolean', 'integer','double', 'string'],], |
|
| 27 | - [ NullContentWrapper::class , ['NULL'],], |
|
| 28 | - [ FileContentWrapper::class , [SplFileObject::class],], |
|
| 25 | + [JsonContentWrapper::class, ['array', JsonSerializable::class], ], |
|
| 26 | + [HtmlContentWrapper::class, ['boolean', 'integer', 'double', 'string'], ], |
|
| 27 | + [NullContentWrapper::class, ['NULL'], ], |
|
| 28 | + [FileContentWrapper::class, [SplFileObject::class], ], |
|
| 29 | 29 | ]; |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | public static function isTypeOf($data, string $type) : bool |
| 51 | 51 | { |
| 52 | 52 | if (is_object($data) |
| 53 | - && !in_array($type, ['boolean', 'bool', 'integer', 'int', 'float', 'double', 'string','array','NULL'])) { |
|
| 53 | + && !in_array($type, ['boolean', 'bool', 'integer', 'int', 'float', 'double', 'string', 'array', 'NULL'])) { |
|
| 54 | 54 | try { |
| 55 | 55 | $class = new ReflectionClass($data); |
| 56 | 56 | $typeRef = new ReflectionClass($type); |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | return ob_get_clean(); |
| 99 | 99 | } |
| 100 | 100 | throw new NoTemplateFoundException( |
| 101 | - 'missing dest at ' . $this->getPath(), |
|
| 101 | + 'missing dest at '.$this->getPath(), |
|
| 102 | 102 | E_USER_ERROR, |
| 103 | 103 | $this->getPath(), |
| 104 | 104 | 1 |