Test Failed
Push — master ( f8889b...b2d9fd )
by Sergio
02:58
created
src/TestDocGenerator.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,9 @@  discard block
 block discarded – undo
57 57
 
58 58
 	private function addSpecificationEndpoint(Request $request, $response){
59 59
 		//TODO: Config
60
-		if(str_contains($this->getInternalRouteDeclaredFormat($request), 'internal')) return;
60
+		if(str_contains($this->getInternalRouteDeclaredFormat($request), 'internal')) {
61
+			return;
62
+		}
61 63
 
62 64
 		$this->specification['paths']
63 65
 		[$this->getInternalRouteDeclaredFormat($request)]
@@ -152,7 +154,9 @@  discard block
 block discarded – undo
152 154
 	}
153 155
 
154 156
 	private function getInternalRoute(Request $request){
155
-		if( ! isset($request->route()[1]['as'])) return null;
157
+		if( ! isset($request->route()[1]['as'])) {
158
+			return null;
159
+		}
156 160
 		return route($request->route()[1]['as']);
157 161
 	}
158 162
 
@@ -167,7 +171,9 @@  discard block
 block discarded – undo
167 171
 	}
168 172
 
169 173
 	private function getRouteSpecificationGroupByRouteName(Request $request){
170
-		if( ! isset($request->route()[1]['as'])) return null;
174
+		if( ! isset($request->route()[1]['as'])) {
175
+			return null;
176
+		}
171 177
 
172 178
 		$internalRoute = $request->route()[1]['as'];
173 179
 		$tag = explode('.', $internalRoute);
Please login to merge, or discard this patch.