File tree 1 file changed +2
-18
lines changed
1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -83,19 +83,11 @@ public function getContent(bool $throw = true): string
83
83
if (false === $ this ->content ) {
84
84
return $ this ->response ->getContent ($ throw );
85
85
}
86
-
87
- $ this ->content = $ this ->response ->getContent (false );
88
-
89
- if ($ throw ) {
90
- $ this ->checkStatusCode ($ this ->response ->getStatusCode ());
91
- }
92
-
93
- return $ this ->content ;
86
+ return $ this ->content = $ this ->response ->getContent (false );
94
87
} finally {
95
88
if ($ this ->event && $ this ->event ->isStarted ()) {
96
89
$ this ->event ->stop ();
97
90
}
98
-
99
91
if ($ throw ) {
100
92
$ this ->checkStatusCode ($ this ->response ->getStatusCode ());
101
93
}
@@ -108,19 +100,11 @@ public function toArray(bool $throw = true): array
108
100
if (false === $ this ->content ) {
109
101
return $ this ->response ->toArray ($ throw );
110
102
}
111
-
112
- $ this ->content = $ this ->response ->toArray (false );
113
-
114
- if ($ throw ) {
115
- $ this ->checkStatusCode ($ this ->response ->getStatusCode ());
116
- }
117
-
118
- return $ this ->content ;
103
+ return $ this ->content = $ this ->response ->toArray (false );
119
104
} finally {
120
105
if ($ this ->event && $ this ->event ->isStarted ()) {
121
106
$ this ->event ->stop ();
122
107
}
123
-
124
108
if ($ throw ) {
125
109
$ this ->checkStatusCode ($ this ->response ->getStatusCode ());
126
110
}
You can’t perform that action at this time.
0 commit comments