Skip to content

Commit

Permalink
Apply fixes from StyleCI (#17374)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Jan 17, 2017
1 parent 75a6ef8 commit 4643459
Show file tree
Hide file tree
Showing 35 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion tests/Auth/AuthAccessGateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Illuminate\Tests\Auth;

use StdClass;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use Illuminate\Auth\Access\Gate;
use Illuminate\Container\Container;
use Illuminate\Auth\Access\Response;
use Illuminate\Auth\Access\HandlesAuthorization;
use StdClass;

class GateTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Auth/AuthDatabaseTokenRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Illuminate\Tests\Auth;

use Illuminate\Auth\Passwords\DatabaseTokenRepository;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Auth\Passwords\DatabaseTokenRepository;

class AuthDatabaseTokenRepositoryTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Auth/AuthDatabaseUserProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Illuminate\Tests\Auth;

use Illuminate\Auth\DatabaseUserProvider;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Auth\DatabaseUserProvider;

class AuthDatabaseUserProviderTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Auth/AuthTokenGuardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Illuminate\Tests\Auth;

use Mockery;
use Illuminate\Http\Request;
use Illuminate\Auth\TokenGuard;
use Mockery;
use PHPUnit\Framework\TestCase;
use Illuminate\Contracts\Auth\UserProvider;

Expand Down
2 changes: 1 addition & 1 deletion tests/Auth/AuthorizeMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Illuminate\Tests\Auth;

use stdClass;
use Mockery as m;
use Illuminate\Http\Request;
use Illuminate\Routing\Router;
Expand All @@ -14,7 +15,6 @@
use Illuminate\Contracts\Auth\Factory as Auth;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use stdClass;

class AuthorizeMiddlewareTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/CacheMemcachedConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Memcached;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use RuntimeException;
use PHPUnit\Framework\TestCase;

class CacheMemcachedConnectorTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Cache/CacheTaggedCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Illuminate\Tests\Cache;

use DateInterval;
use DateTime;
use DateInterval;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Cache\ArrayStore;
Expand Down
4 changes: 2 additions & 2 deletions tests/Container/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Illuminate\Tests\Container;

use stdClass;
use ReflectionException;
use PHPUnit\Framework\TestCase;
use Illuminate\Container\Container;
use ReflectionException;
use stdClass;

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

namespace Illuminate\Tests\Database;

use InvalidArgumentException;
use Mockery as m;
use ReflectionProperty;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Connection;
use Illuminate\Database\Capsule\Manager as DB;
use Illuminate\Database\Connectors\ConnectionFactory;
use ReflectionProperty;

class DatabaseConnectionFactoryTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Illuminate\Tests\Database;

use Mockery as m;
use PDO;
use Mockery as m;
use PHPUnit\Framework\TestCase;

class DatabaseConnectionTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Illuminate\Tests\Database;

use Mockery as m;
use PDO;
use Mockery as m;
use PHPUnit\Framework\TestCase;

class DatabaseConnectorTest extends TestCase
Expand Down
8 changes: 4 additions & 4 deletions tests/Database/DatabaseEloquentBelongsToManyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Illuminate\Tests\Database;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use stdClass;
use Mockery as m;
use ReflectionClass;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Collection as BaseCollection;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use ReflectionClass;
use stdClass;

class DatabaseEloquentBelongsToManyTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseEloquentBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Illuminate\Tests\Database;

use StdClass;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Collection as BaseCollection;
use StdClass;

class DatabaseEloquentBuilderTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseEloquentHasManyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Illuminate\Tests\Database;

use stdClass;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Relations\HasMany;
use stdClass;

class DatabaseEloquentHasManyTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseEloquentHasManyThroughTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Illuminate\Tests\Database;

use stdClass;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Relations\HasManyThrough;
use stdClass;

class DatabaseEloquentHasManyThroughTest extends TestCase
{
Expand Down
10 changes: 5 additions & 5 deletions tests/Database/DatabaseEloquentModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
namespace Illuminate\Tests\Database;

use DateTime;
use DateTimeImmutable;
use DateTimeInterface;
use stdClass;
use Exception;
use LogicException;
use Mockery as m;
use LogicException;
use ReflectionClass;
use DateTimeImmutable;
use DateTimeInterface;
use PHPUnit\Framework\TestCase;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\Relation;
use ReflectionClass;
use stdClass;

class DatabaseEloquentModelTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/SeedCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Illuminate\Tests\Database;

use Illuminate\Database\Seeder;
use Mockery;
use Illuminate\Database\Seeder;
use PHPUnit\Framework\TestCase;
use Illuminate\Container\Container;
use Illuminate\Database\Console\Seeds\SeedCommand;
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/stubs/MigrationCreatorFakeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

class MigrationCreatorFakeMigration
{
}
}
2 changes: 1 addition & 1 deletion tests/Http/HttpRedirectResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Illuminate\Tests\Http;

use BadMethodCallException;
use Mockery as m;
use BadMethodCallException;
use Illuminate\Http\Request;
use PHPUnit\Framework\TestCase;
use Illuminate\Http\RedirectResponse;
Expand Down
2 changes: 1 addition & 1 deletion tests/Notifications/NotificationMailChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
namespace Illuminate\Tests\Notifications;

use Mockery;
use stdClass;
use PHPUnit\Framework\TestCase;
use Illuminate\Support\HtmlString;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
use stdClass;

class NotificationMailChannelTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Illuminate\Tests\Notifications;

use Mockery;
use stdClass;
use PHPUnit\Framework\TestCase;
use Illuminate\Container\Container;
use Illuminate\Contracts\Notifications\Dispatcher;
use stdClass;

class NotificationRoutesNotificationsTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Queue/QueueDatabaseQueueIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Carbon\Carbon;
use PHPUnit\Framework\TestCase;
use Illuminate\Container\Container;
use \Illuminate\Queue\DatabaseQueue;
use Illuminate\Queue\DatabaseQueue;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Capsule\Manager as DB;
use Illuminate\Database\Eloquent\Model as Eloquent;
Expand Down
4 changes: 2 additions & 2 deletions tests/Queue/QueueDatabaseQueueUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Illuminate\Tests\Queue;

use stdClass;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use stdClass;
use PHPUnit\Framework\TestCase;

class QueueDatabaseQueueUnitTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Queue/QueueWorkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Illuminate\Tests\Queue;

use Mockery;
use RuntimeException;
use PHPUnit\Framework\TestCase;
use Illuminate\Container\Container;
use Illuminate\Queue\WorkerOptions;
Expand All @@ -13,7 +14,6 @@
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Queue\Events\JobExceptionOccurred;
use Illuminate\Queue\MaxAttemptsExceededException;
use RuntimeException;

class QueueWorkerTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Queue/RedisQueueIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Illuminate\Tests\Queue;

use Illuminate\Tests\Redis\InteractsWithRedis;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Illuminate\Queue\RedisQueue;
use Illuminate\Container\Container;
use Illuminate\Queue\Jobs\RedisJob;
use Illuminate\Tests\Redis\InteractsWithRedis;

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

namespace Illuminate\Tests\Routing;

use stdClass;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use UnexpectedValueException;
use Illuminate\Routing\Router;
use PHPUnit\Framework\TestCase;
use Illuminate\Events\Dispatcher;
Expand All @@ -15,10 +17,8 @@
use Illuminate\Routing\ResourceRegistrar;
use Illuminate\Contracts\Routing\Registrar;
use Illuminate\Auth\Middleware\Authenticate;
use stdClass;
use Symfony\Component\HttpFoundation\Response;
use Illuminate\Routing\Middleware\SubstituteBindings;
use UnexpectedValueException;

class RoutingRouteTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Session/EncryptedSessionStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Illuminate\Tests\Session;

use Mockery as m;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use PHPUnit\Framework\TestCase;

class EncryptedSessionStoreTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Session/SessionStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Illuminate\Tests\Session;

use Mockery as m;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use PHPUnit\Framework\TestCase;

class SessionStoreTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Support/SupportArrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Illuminate\Tests\Support;

use stdClass;
use ArrayObject;
use Illuminate\Support\Arr;
use PHPUnit\Framework\TestCase;
use Illuminate\Support\Collection;
use stdClass;

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

namespace Illuminate\Tests\Support;

use stdClass;
use ArrayAccess;
use JsonSerializable;
use Mockery as m;
use ReflectionClass;
use JsonSerializable;
use PHPUnit\Framework\TestCase;
use Illuminate\Support\Collection;
use PHPUnit_Framework_Error_Notice;
use Illuminate\Contracts\Support\Jsonable;
use Illuminate\Contracts\Support\Arrayable;
use PHPUnit_Framework_Error_Notice;
use ReflectionClass;
use stdClass;

class SupportCollectionTest extends TestCase
{
Expand Down
Loading

0 comments on commit 4643459

Please sign in to comment.