Passed
Push — master ( 280ab3...c1e721 )
by 世昌
01:51
created
nebula/src/application/response/provider/Content.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 {
18 18
     protected static $types = [
19 19
         JsonContent::class => ['array', JsonSerializable::class],
20
-        HtmlContent::class => ['boolean', 'integer','double', 'string'],
20
+        HtmlContent::class => ['boolean', 'integer', 'double', 'string'],
21 21
         NullContent::class => ['NULL'],
22 22
         FileContent::class => [SplFileInfo::class],
23 23
     ];
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public static function isTypeOf($data, $type) : bool
46 46
     {
47
-        if (is_object($data) && !\in_array($type, ['boolean', 'integer','double', 'string','array','NULL'])) {
47
+        if (is_object($data) && !\in_array($type, ['boolean', 'integer', 'double', 'string', 'array', 'NULL'])) {
48 48
             $class = new ReflectionClass($data);
49 49
             $typeRef = new ReflectionClass($type);
50 50
             if ($typeRef->isInterface()) {
Please login to merge, or discard this patch.