Passed
Push — master ( 6dff80...f0d9c0 )
by 世昌
02:04
created
suda/src/application/DebugDumpper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function register()
39 39
     {
40
-        set_exception_handler([$this,'uncaughtException']);
40
+        set_exception_handler([$this, 'uncaughtException']);
41 41
         return $this;
42 42
     }
43 43
 
Please login to merge, or discard this patch.
suda/src/orm/DataAccess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
     protected static function createDefaultMiddleware(string $object, TableStruct $struct)
252 252
     {
253 253
         $reflectObject = new ReflectionClass($object);
254
-        $classDoc = is_string($reflectObject->getDocComment())?$reflectObject->getDocComment():'';
254
+        $classDoc = is_string($reflectObject->getDocComment()) ? $reflectObject->getDocComment() : '';
255 255
         if (\preg_match('/@field-(serialize|json)\s+(\w+)/i', $classDoc, $matchs)) {
256 256
             return new TableStructMiddleware($object, $struct);
257 257
         }
Please login to merge, or discard this patch.
suda/src/orm/struct/TableClassStructBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $this->object = $object;
40 40
         $this->reflectObject = new ReflectionClass($object);
41
-        $this->classDoc = is_string($this->reflectObject->getDocComment())?$this->reflectObject->getDocComment():'';
41
+        $this->classDoc = is_string($this->reflectObject->getDocComment()) ? $this->reflectObject->getDocComment() : '';
42 42
     }
43 43
 
44 44
 
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
      * @param string $classDoc
62 62
      * @return array|null
63 63
      */
64
-    public static function readClassDocField(string $classDoc):?array
64
+    public static function readClassDocField(string $classDoc): ?array
65 65
     {
66 66
         if (preg_match_all('/^.+\s+\@field(?:\-(?:serialize|json))?\s+(\w+)\s+(\w+)(?:\((.+?)\))?(.*?)$/im', $classDoc, $match) > 0) {
67
-            return is_array($match)?$match:null;
67
+            return is_array($match) ? $match : null;
68 68
         }
69 69
         return null;
70 70
     }
Please login to merge, or discard this patch.