Browse Source

Remove unnecessary randomisation from auth description

Bram 2 years ago
parent
commit
0424e8c0fb
1 changed files with 1 additions and 6 deletions
  1. 1 6
      src/Extracting/ApiDetails.php

+ 1 - 6
src/Extracting/ApiDetails.php

@@ -2,7 +2,6 @@
 
 namespace Knuckles\Scribe\Extracting;
 
-use Illuminate\Support\Arr;
 use Knuckles\Scribe\Tools\ConsoleOutputUtils;
 use Knuckles\Scribe\Tools\DocumentationConfig;
 
@@ -91,11 +90,7 @@ class ApiDetails
         if ($isAuthed) {
             $strategy = $this->config->get('auth.in');
             $parameterName = $this->config->get('auth.name');
-            $authDescription = Arr::random([
-                "This API is authenticated by sending ",
-                "To authenticate requests, include ",
-                "Authenticate requests to this API's endpoints by sending ",
-            ]);
+            $authDescription = "To authenticate requests, include ";
             $authDescription .= match ($strategy) {
                 'query' => "a query parameter **`$parameterName`** in the request.",
                 'body' => "a parameter **`$parameterName`** in the body of the request.",