Skip to content

Commit

Permalink
Merge pull request #135 from mpociot/analysis-qMwBN2
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
mpociot authored Dec 7, 2016
2 parents bf6f464 + 39d4195 commit fa9e2e8
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 29 deletions.
11 changes: 5 additions & 6 deletions src/Mpociot/ApiDoc/Commands/GenerateDocumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace Mpociot\ApiDoc\Commands;

use ReflectionClass;
use Illuminate\Console\Command;
use Mpociot\Reflection\DocBlock;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Route;
use Mpociot\ApiDoc\Generators\AbstractGenerator;
use Mpociot\Documentarian\Documentarian;
use Mpociot\ApiDoc\Postman\CollectionWriter;
use Mpociot\ApiDoc\Generators\DingoGenerator;
use Mpociot\ApiDoc\Generators\LaravelGenerator;
use Mpociot\ApiDoc\Postman\CollectionWriter;
use Mpociot\Documentarian\Documentarian;
use Mpociot\Reflection\DocBlock;
use ReflectionClass;
use Mpociot\ApiDoc\Generators\AbstractGenerator;

class GenerateDocumentation extends Command
{
Expand Down Expand Up @@ -186,7 +186,6 @@ private function writeMarkdown($parsedRoutes)

$this->info('Wrote HTML documentation to: '.$outputPath.'/public/index.html');


if ($this->option('noPostmanCollection') !== true) {
$this->info('Generating Postman collection');

Expand Down
8 changes: 4 additions & 4 deletions src/Mpociot/ApiDoc/Generators/AbstractGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace Mpociot\ApiDoc\Generators;

use Faker\Factory;
use Illuminate\Foundation\Http\FormRequest;
use ReflectionClass;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Str;
use Mpociot\ApiDoc\Parsers\RuleDescriptionParser as Description;
use ReflectionClass;
use Mpociot\Reflection\DocBlock;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Mpociot\ApiDoc\Parsers\RuleDescriptionParser as Description;

abstract class AbstractGenerator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Mpociot/ApiDoc/Postman/CollectionWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Mpociot\ApiDoc\Postman;

use Illuminate\Support\Collection;
use Ramsey\Uuid\Uuid;
use Illuminate\Support\Collection;

class CollectionWriter
{
Expand Down
8 changes: 4 additions & 4 deletions tests/ApiDocGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Mpociot\ApiDoc\Tests;

use Illuminate\Routing\Route;
use Illuminate\Support\Facades\Route as RouteFacade;
use Mpociot\ApiDoc\ApiDocGeneratorServiceProvider;
use Orchestra\Testbench\TestCase;
use Mpociot\ApiDoc\Tests\Fixtures\TestRequest;
use Mpociot\ApiDoc\Generators\LaravelGenerator;
use Mpociot\ApiDoc\Tests\Fixtures\TestController;
use Mpociot\ApiDoc\Tests\Fixtures\TestRequest;
use Orchestra\Testbench\TestCase;
use Mpociot\ApiDoc\ApiDocGeneratorServiceProvider;
use Illuminate\Support\Facades\Route as RouteFacade;

class ApiDocGeneratorTest extends TestCase
{
Expand Down
8 changes: 4 additions & 4 deletions tests/DingoGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Mpociot\ApiDoc\Tests;

use Orchestra\Testbench\TestCase;
use Mpociot\ApiDoc\Generators\DingoGenerator;
use Dingo\Api\Provider\LaravelServiceProvider;
use Mpociot\ApiDoc\Tests\Fixtures\TestRequest;
use Mpociot\ApiDoc\Tests\Fixtures\TestController;
use Mpociot\ApiDoc\ApiDocGeneratorServiceProvider;
use Mpociot\ApiDoc\Generators\DingoGenerator;
use Mpociot\ApiDoc\Tests\Fixtures\DingoTestController;
use Mpociot\ApiDoc\Tests\Fixtures\TestController;
use Mpociot\ApiDoc\Tests\Fixtures\TestRequest;
use Orchestra\Testbench\TestCase;

class DingoGeneratorTest extends TestCase
{
Expand Down
12 changes: 6 additions & 6 deletions tests/GenerateDocumentationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace Mpociot\ApiDoc\Tests;

use Dingo\Api\Provider\LaravelServiceProvider;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Routing\Route;
use Mpociot\ApiDoc\ApiDocGeneratorServiceProvider;
use Mpociot\ApiDoc\Generators\LaravelGenerator;
use Mpociot\ApiDoc\Tests\Fixtures\DingoTestController;
use Orchestra\Testbench\TestCase;
use Illuminate\Contracts\Console\Kernel;
use Dingo\Api\Provider\LaravelServiceProvider;
use Mpociot\ApiDoc\Generators\LaravelGenerator;
use Mpociot\ApiDoc\Tests\Fixtures\TestController;
use Mpociot\ApiDoc\Tests\Fixtures\TestResourceController;
use Mpociot\ApiDoc\ApiDocGeneratorServiceProvider;
use Illuminate\Support\Facades\Route as RouteFacade;
use Mpociot\ApiDoc\Tests\Fixtures\DingoTestController;
use Mpociot\ApiDoc\Tests\Fixtures\TestResourceController;

class GenerateDocumentationTest extends TestCase
{
Expand Down
8 changes: 4 additions & 4 deletions tests/RuleDescriptionParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Mpociot\ApiDoc\Tests;

use Illuminate\Translation\LoaderInterface;
use Mockery as m;
use Orchestra\Testbench\TestCase;
use Illuminate\Translation\Translator;
use Mpociot\ApiDoc\ApiDocGeneratorServiceProvider;
use Illuminate\Translation\LoaderInterface;
use Mpociot\ApiDoc\Parsers\RuleDescriptionParser;
use Orchestra\Testbench\TestCase;
use Mockery as m;
use Mpociot\ApiDoc\ApiDocGeneratorServiceProvider;

class RuleDescriptionParserTest extends TestCase
{
Expand Down

0 comments on commit fa9e2e8

Please sign in to comment.