Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Driver/BlueimpUploadDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
namespace CodingSocks\ChunkUploader\Driver;

use Closure;
use CodingSocks\ChunkUploader\Helper\ChunkHelpers;
use CodingSocks\ChunkUploader\Identifier\Identifier;
use CodingSocks\ChunkUploader\Range\ContentRange;
use CodingSocks\ChunkUploader\Response\PercentageJsonResponse;
use CodingSocks\ChunkUploader\StorageConfig;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use InvalidArgumentException;
use CodingSocks\ChunkUploader\Helper\ChunkHelpers;
use CodingSocks\ChunkUploader\Identifier\Identifier;
use CodingSocks\ChunkUploader\Range\ContentRange;
use CodingSocks\ChunkUploader\Response\PercentageJsonResponse;
use CodingSocks\ChunkUploader\StorageConfig;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
Expand Down
6 changes: 3 additions & 3 deletions src/Driver/DropzoneUploadDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace CodingSocks\ChunkUploader\Driver;

use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use InvalidArgumentException;
use CodingSocks\ChunkUploader\Helper\ChunkHelpers;
use CodingSocks\ChunkUploader\Range\ZeroBasedRequestBodyRange;
use CodingSocks\ChunkUploader\Response\PercentageJsonResponse;
use CodingSocks\ChunkUploader\StorageConfig;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use InvalidArgumentException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
Expand Down
4 changes: 2 additions & 2 deletions src/Driver/MonolithUploadDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace CodingSocks\ChunkUploader\Driver;

use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use CodingSocks\ChunkUploader\Response\PercentageJsonResponse;
use CodingSocks\ChunkUploader\StorageConfig;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;

Expand Down
8 changes: 4 additions & 4 deletions src/Driver/ResumableJsUploadDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
namespace CodingSocks\ChunkUploader\Driver;

use Closure;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use InvalidArgumentException;
use CodingSocks\ChunkUploader\Helper\ChunkHelpers;
use CodingSocks\ChunkUploader\Range\OneBasedRequestBodyRange;
use CodingSocks\ChunkUploader\Response\PercentageJsonResponse;
use CodingSocks\ChunkUploader\StorageConfig;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use InvalidArgumentException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
Expand Down
6 changes: 3 additions & 3 deletions src/Driver/UploadDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace CodingSocks\ChunkUploader\Driver;

use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use CodingSocks\ChunkUploader\Event\FileUploaded;
use CodingSocks\ChunkUploader\Exception\InternalServerErrorHttpException;
use CodingSocks\ChunkUploader\StorageConfig;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
Expand Down
4 changes: 2 additions & 2 deletions src/Helper/ChunkHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace CodingSocks\ChunkUploader\Helper;

use CodingSocks\ChunkUploader\Range\Range;
use CodingSocks\ChunkUploader\StorageConfig;
use Illuminate\Contracts\Filesystem\Filesystem;
use Illuminate\Http\File;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use CodingSocks\ChunkUploader\Range\Range;
use CodingSocks\ChunkUploader\StorageConfig;

trait ChunkHelpers
{
Expand Down
2 changes: 1 addition & 1 deletion src/IdentityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace CodingSocks\ChunkUploader;

use Illuminate\Support\Manager;
use CodingSocks\ChunkUploader\Identifier\SessionIdentifier;
use Illuminate\Support\Manager;

class IdentityManager extends Manager
{
Expand Down
2 changes: 1 addition & 1 deletion src/UploadHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace CodingSocks\ChunkUploader;

use Closure;
use CodingSocks\ChunkUploader\Driver\UploadDriver;
use Illuminate\Http\Request;
use Illuminate\Support\Traits\Macroable;
use CodingSocks\ChunkUploader\Driver\UploadDriver;
use Symfony\Component\HttpFoundation\Response;

class UploadHandler
Expand Down
2 changes: 1 addition & 1 deletion src/UploadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace CodingSocks\ChunkUploader;

use Illuminate\Support\Manager;
use CodingSocks\ChunkUploader\Driver\BlueimpUploadDriver;
use CodingSocks\ChunkUploader\Driver\DropzoneUploadDriver;
use CodingSocks\ChunkUploader\Driver\FlowJsUploadDriver;
use CodingSocks\ChunkUploader\Driver\MonolithUploadDriver;
use CodingSocks\ChunkUploader\Driver\ResumableJsUploadDriver;
use CodingSocks\ChunkUploader\Driver\SimpleUploaderJsUploadDriver;
use Illuminate\Support\Manager;

class UploadManager extends Manager
{
Expand Down
10 changes: 5 additions & 5 deletions tests/Driver/BlueimpUploadDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace CodingSocks\ChunkUploader\Tests\Driver;

use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Storage;
use CodingSocks\ChunkUploader\Driver\BlueimpUploadDriver;
use CodingSocks\ChunkUploader\Event\FileUploaded;
use CodingSocks\ChunkUploader\Exception\InternalServerErrorHttpException;
use CodingSocks\ChunkUploader\Tests\TestCase;
use CodingSocks\ChunkUploader\UploadHandler;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Storage;
use Mockery;
use PHPUnit\Framework\Constraint\StringContains;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
Expand Down
10 changes: 5 additions & 5 deletions tests/Driver/DropzoneUploadDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace CodingSocks\ChunkUploader\Tests\Driver;

use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\ValidationException;
use CodingSocks\ChunkUploader\Driver\DropzoneUploadDriver;
use CodingSocks\ChunkUploader\Event\FileUploaded;
use CodingSocks\ChunkUploader\Exception\InternalServerErrorHttpException;
use CodingSocks\ChunkUploader\Tests\TestCase;
use CodingSocks\ChunkUploader\UploadHandler;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\ValidationException;
use Mockery;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;

Expand Down
10 changes: 5 additions & 5 deletions tests/Driver/FlowJsUploadDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace CodingSocks\ChunkUploader\Tests\Driver;

use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\ValidationException;
use CodingSocks\ChunkUploader\Driver\FlowJsUploadDriver;
use CodingSocks\ChunkUploader\Event\FileUploaded;
use CodingSocks\ChunkUploader\Exception\InternalServerErrorHttpException;
use CodingSocks\ChunkUploader\Tests\TestCase;
use CodingSocks\ChunkUploader\UploadHandler;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\ValidationException;
use Mockery;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
Expand Down
8 changes: 4 additions & 4 deletions tests/Driver/MonolithUploadDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace CodingSocks\ChunkUploader\Tests\Driver;

use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use CodingSocks\ChunkUploader\Driver\MonolithUploadDriver;
use CodingSocks\ChunkUploader\Event\FileUploaded;
use CodingSocks\ChunkUploader\Exception\InternalServerErrorHttpException;
use CodingSocks\ChunkUploader\Tests\TestCase;
use CodingSocks\ChunkUploader\UploadHandler;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Mockery;
use PHPUnit\Framework\Constraint\StringContains;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
Expand Down
10 changes: 5 additions & 5 deletions tests/Driver/ResumableJsUploadDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace CodingSocks\ChunkUploader\Tests\Driver;

use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\ValidationException;
use CodingSocks\ChunkUploader\Driver\ResumableJsUploadDriver;
use CodingSocks\ChunkUploader\Event\FileUploaded;
use CodingSocks\ChunkUploader\Exception\InternalServerErrorHttpException;
use CodingSocks\ChunkUploader\Tests\TestCase;
use CodingSocks\ChunkUploader\UploadHandler;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\ValidationException;
use Mockery;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
Expand Down
10 changes: 5 additions & 5 deletions tests/Driver/SimpleUploaderUploadDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace CodingSocks\ChunkUploader\Tests\Driver;

use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\ValidationException;
use CodingSocks\ChunkUploader\Driver\SimpleUploaderJsUploadDriver;
use CodingSocks\ChunkUploader\Event\FileUploaded;
use CodingSocks\ChunkUploader\Exception\InternalServerErrorHttpException;
use CodingSocks\ChunkUploader\Tests\TestCase;
use CodingSocks\ChunkUploader\UploadHandler;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\ValidationException;
use Mockery;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
Expand Down
2 changes: 1 addition & 1 deletion tests/Identifier/SessionIdentifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace CodingSocks\ChunkUploader\Tests\Identifier;

use Illuminate\Support\Facades\Session;
use CodingSocks\ChunkUploader\Identifier\SessionIdentifier;
use Illuminate\Support\Facades\Session;
use Orchestra\Testbench\TestCase;

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

namespace CodingSocks\ChunkUploader\Tests\Range;

use CodingSocks\ChunkUploader\Range\ContentRange;
use Illuminate\Http\Request;
use InvalidArgumentException;
use CodingSocks\ChunkUploader\Range\ContentRange;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\HeaderBag;

Expand Down
2 changes: 1 addition & 1 deletion tests/Range/OneBasedRequestBodyRangeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace CodingSocks\ChunkUploader\Tests\Range;

use CodingSocks\ChunkUploader\Range\OneBasedRequestBodyRange;
use Illuminate\Http\Request;
use InvalidArgumentException;
use CodingSocks\ChunkUploader\Range\OneBasedRequestBodyRange;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\ParameterBag;

Expand Down
2 changes: 1 addition & 1 deletion tests/Range/ZeroBasedRequestBodyRangeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace CodingSocks\ChunkUploader\Tests\Range;

use CodingSocks\ChunkUploader\Range\ZeroBasedRequestBodyRange;
use Illuminate\Http\Request;
use InvalidArgumentException;
use CodingSocks\ChunkUploader\Range\ZeroBasedRequestBodyRange;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\ParameterBag;

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

namespace CodingSocks\ChunkUploader\Tests;

use Illuminate\Http\UploadedFile;
use CodingSocks\ChunkUploader\ChunkUploaderServiceProvider;
use Illuminate\Http\UploadedFile;

class TestCase extends \Orchestra\Testbench\TestCase
{
Expand Down