Passed
Push — master ( ededa8...e7b389 )
by 世昌
02:14
created
suda/src/framework/response/ContentWrapper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
suda/src/application/template/RawTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.