Jelajahi Sumber

StyleCI pass

Guy Marriott 5 tahun lalu
induk
melakukan
689b61bbd1

+ 1 - 1
config/apidoc.php

@@ -243,7 +243,7 @@ return [
      */
     'faker_seed' => null,
 
-    /**
+    /*
      * If you would like to customize how routes are matched beyond the route configuration you may
      * declare your own implementation of RouteMatcherInterface
      *

+ 0 - 1
src/ApiDocGeneratorServiceProvider.php

@@ -5,7 +5,6 @@ namespace Mpociot\ApiDoc;
 use Illuminate\Support\ServiceProvider;
 use Mpociot\ApiDoc\Commands\GenerateDocumentation;
 use Mpociot\ApiDoc\Commands\RebuildDocumentation;
-use Mpociot\ApiDoc\Matching\RouteMatcher;
 use Mpociot\ApiDoc\Matching\RouteMatcherInterface;
 
 class ApiDocGeneratorServiceProvider extends ServiceProvider

+ 8 - 6
src/Matching/RouteMatcher/Match.php

@@ -1,4 +1,5 @@
 <?php
+
 namespace Mpociot\ApiDoc\Matching\RouteMatcher;
 
 use Illuminate\Routing\Route;
@@ -17,6 +18,7 @@ class Match implements \ArrayAccess
 
     /**
      * Match constructor.
+     *
      * @param Route $route
      * @param array $applyRules
      */
@@ -43,23 +45,23 @@ class Match implements \ArrayAccess
     }
 
     /**
-     * @inheritDoc
+     * {@inheritdoc}
      */
     public function offsetExists($offset)
     {
-        return is_callable([$this, 'get' . ucfirst($offset)]);
+        return is_callable([$this, 'get'.ucfirst($offset)]);
     }
 
     /**
-     * @inheritDoc
+     * {@inheritdoc}
      */
     public function offsetGet($offset)
     {
-        return call_user_func([$this, 'get' . ucfirst($offset)]);
+        return call_user_func([$this, 'get'.ucfirst($offset)]);
     }
 
     /**
-     * @inheritDoc
+     * {@inheritdoc}
      */
     public function offsetSet($offset, $value)
     {
@@ -67,7 +69,7 @@ class Match implements \ArrayAccess
     }
 
     /**
-     * @inheritDoc
+     * {@inheritdoc}
      */
     public function offsetUnset($offset)
     {

+ 3 - 2
src/Matching/RouteMatcherInterface.php

@@ -7,10 +7,11 @@ use Mpociot\ApiDoc\Matching\RouteMatcher\Match;
 interface RouteMatcherInterface
 {
     /**
-     * Resolve matched routes that should be documented
-     * 
+     * Resolve matched routes that should be documented.
+     *
      * @param array $routeRules Route rules defined under the "routes" section in config
      * @param string $router
+     *
      * @return Match[]
      */
     public function getRoutes(array $routeRules = [], string $router = 'laravel');