Browse Source

Directly call \Illuminate\Support\Str::startsWith

Lucas Michot 9 years ago
parent
commit
426ac81190
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Mpociot/ApiDoc/ApiDocGenerator.php

+ 1 - 1
src/Mpociot/ApiDoc/ApiDocGenerator.php

@@ -357,7 +357,7 @@ class ApiDocGenerator
         foreach ($headers as $name => $value) {
             $name = strtr(strtoupper($name), '-', '_');
 
-            if (! starts_with($name, $prefix) && $name !== 'CONTENT_TYPE') {
+            if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
                 $name = $prefix.$name;
             }