File tree Expand file tree Collapse file tree 4 files changed +13
-39
lines changed Expand file tree Collapse file tree 4 files changed +13
-39
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,4 @@ public static function create(
48
48
49
49
return new static ($ type , $ description );
50
50
}
51
-
52
- public function __toString (): string
53
- {
54
- if ($ this ->description ) {
55
- $ description = $ this ->description ->render ();
56
- } else {
57
- $ description = '' ;
58
- }
59
-
60
- $ type = (string ) $ this ->type ;
61
-
62
- return $ type . ($ description !== '' ? ($ type !== '' ? ' ' : '' ) . $ description : '' );
63
- }
64
51
}
Original file line number Diff line number Diff line change @@ -60,17 +60,4 @@ public static function create(
60
60
61
61
return new static ($ type , $ description );
62
62
}
63
-
64
- public function __toString (): string
65
- {
66
- if ($ this ->description ) {
67
- $ description = $ this ->description ->render ();
68
- } else {
69
- $ description = '' ;
70
- }
71
-
72
- $ type = $ this ->type ? '' . $ this ->type : 'mixed ' ;
73
-
74
- return $ type . ($ description !== '' ? ' ' . $ description : '' );
75
- }
76
63
}
Original file line number Diff line number Diff line change @@ -71,4 +71,17 @@ protected static function extractTypeFromBody(string $body): array
71
71
72
72
return [$ type , $ description ];
73
73
}
74
+
75
+ public function __toString (): string
76
+ {
77
+ if ($ this ->description ) {
78
+ $ description = $ this ->description ->render ();
79
+ } else {
80
+ $ description = '' ;
81
+ }
82
+
83
+ $ type = (string ) $ this ->type ;
84
+
85
+ return $ type . ($ description !== '' ? ($ type !== '' ? ' ' : '' ) . $ description : '' );
86
+ }
74
87
}
Original file line number Diff line number Diff line change @@ -48,17 +48,4 @@ public static function create(
48
48
49
49
return new static ($ type , $ description );
50
50
}
51
-
52
- public function __toString (): string
53
- {
54
- if ($ this ->description ) {
55
- $ description = $ this ->description ->render ();
56
- } else {
57
- $ description = '' ;
58
- }
59
-
60
- $ type = (string ) $ this ->type ;
61
-
62
- return $ type . ($ description !== '' ? ($ type !== '' ? ' ' : '' ) . $ description : '' );
63
- }
64
51
}
You can’t perform that action at this time.
0 commit comments