Skip to content

Commit

Permalink
Apply fixes from StyleCI (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack97 authored Feb 21, 2020
1 parent 2a10ff1 commit 1653b46
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/Facades/Conversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Optix\Media\Facades;

use Optix\Media\ConversionRegistry;
use Illuminate\Support\Facades\Facade;
use Optix\Media\ConversionRegistry;

class Conversion extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/HasMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Optix\Media;

use Optix\Media\Models\Media;
use Optix\Media\Jobs\PerformConversions;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Relations\MorphToMany;
use Optix\Media\Jobs\PerformConversions;
use Optix\Media\Models\Media;

trait HasMedia
{
Expand Down
4 changes: 2 additions & 2 deletions src/ImageManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Optix\Media;

use Optix\Media\Models\Media;
use Illuminate\Contracts\Filesystem\FileNotFoundException;
use Intervention\Image\ImageManager;
use Optix\Media\Exceptions\InvalidConversion;
use Illuminate\Contracts\Filesystem\FileNotFoundException;
use Optix\Media\Models\Media;

class ImageManipulator
{
Expand Down
8 changes: 4 additions & 4 deletions src/Jobs/PerformConversions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Optix\Media\Jobs;

use Illuminate\Bus\Queueable;
use Optix\Media\Models\Media;
use Optix\Media\ImageManipulator;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Optix\Media\ImageManipulator;
use Optix\Media\Models\Media;

class PerformConversions implements ShouldQueue
{
Expand Down
4 changes: 2 additions & 2 deletions src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Optix\Media\Models;

use Illuminate\Support\Str;
use Illuminate\Contracts\Filesystem\Filesystem;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
use Illuminate\Contracts\Filesystem\Filesystem;
use Illuminate\Support\Str;

class Media extends Model
{
Expand Down
10 changes: 5 additions & 5 deletions tests/HasMediaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Optix\Media\Tests;

use Optix\Media\Models\Media;
use Illuminate\Database\Eloquent\Collection as EloquentCollection;
use Illuminate\Database\Eloquent\Relations\MorphToMany;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Queue;
use Optix\Media\Tests\Models\Subject;
use Optix\Media\Jobs\PerformConversions;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Database\Eloquent\Relations\MorphToMany;
use Illuminate\Database\Eloquent\Collection as EloquentCollection;
use Optix\Media\Models\Media;
use Optix\Media\Tests\Models\Subject;

class HasMediaTest extends TestCase
{
Expand Down
10 changes: 5 additions & 5 deletions tests/ImageManipulatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Optix\Media\Tests;

use Mockery;
use Illuminate\Filesystem\Filesystem;
use Intervention\Image\Image;
use Optix\Media\Models\Media;
use Optix\Media\ImageManipulator;
use Optix\Media\ConversionRegistry;
use Intervention\Image\ImageManager;
use Illuminate\Filesystem\Filesystem;
use Mockery;
use Optix\Media\ConversionRegistry;
use Optix\Media\Exceptions\InvalidConversion;
use Optix\Media\ImageManipulator;
use Optix\Media\Models\Media;

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

namespace Optix\Media\Tests;

use Illuminate\Filesystem\Filesystem;
use Mockery;
use Optix\Media\Models\Media;
use Illuminate\Filesystem\Filesystem;

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

namespace Optix\Media\Tests;

use Optix\Media\Models\Media;
use Optix\Media\MediaUploader;
use Illuminate\Http\UploadedFile;
use Optix\Media\MediaUploader;
use Optix\Media\Models\Media;
use Optix\Media\Tests\Models\Media as CustomMedia;

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

namespace Optix\Media\Tests\Models;

use Optix\Media\HasMedia;
use Illuminate\Database\Eloquent\Model;
use Optix\Media\HasMedia;

class Subject extends Model
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMediaTable extends Migration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSubjectsTable extends Migration
{
Expand Down

0 comments on commit 1653b46

Please sign in to comment.