Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramtamtam authored and StyleCIBot committed Apr 3, 2019
1 parent 56d8637 commit 1886ac0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
3 changes: 1 addition & 2 deletions fixes/fix-symfony-file-validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
* ******* https://github.com/avto-dev/roadrunner-laravel/issues/10 *******
* ******* https://github.com/spiral/roadrunner/issues/133 *******
* ******* *******
* ***************************************************************************
* ***************************************************************************.
*
* @see \Symfony\Component\HttpFoundation\File\UploadedFile::isValid
*
* Tells whether the file was uploaded via HTTP POST.
*
* @link https://php.net/manual/en/function.is-uploaded-file.php
*
* @param string $filename The filename being checked
Expand Down
18 changes: 9 additions & 9 deletions src/Worker/CallbacksInitializer/CallbacksInitializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

namespace AvtoDev\RoadRunnerLaravel\Worker\CallbacksInitializer;

use AvtoDev\RoadRunnerLaravel\Worker\Callbacks\CallbacksInterface;
use AvtoDev\RoadRunnerLaravel\Worker\StartOptions\StartOptionsInterface;
use AvtoDev\RoadRunnerLaravel\Worker\WorkerInterface;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Database\Connection as DatabaseConnection;
use Illuminate\Database\DatabaseManager;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Redis\Connections\Connection as RedisConnection;
use Illuminate\Redis\RedisManager;
use Illuminate\Support\Str;
use Illuminate\Database\DatabaseManager;
use Illuminate\Support\Traits\Macroable;
use Symfony\Component\HttpFoundation\Response;
use Illuminate\Contracts\Foundation\Application;
use AvtoDev\RoadRunnerLaravel\Worker\WorkerInterface;
use Illuminate\Database\Connection as DatabaseConnection;
use Illuminate\Redis\Connections\Connection as RedisConnection;
use AvtoDev\RoadRunnerLaravel\Worker\Callbacks\CallbacksInterface;
use AvtoDev\RoadRunnerLaravel\Worker\StartOptions\StartOptionsInterface;

/**
* @see \AvtoDev\RoadRunnerLaravel\Worker\Worker::start() - Look for callback parameters
Expand Down Expand Up @@ -144,8 +144,8 @@ protected function fixSymfonyFileValidation(CallbacksInterface $callbacks)
* @param bool|mixed $value
*
* @return void
* @see \AvtoDev\RoadRunnerLaravel\ServiceProvider::boot()
*
* @see \AvtoDev\RoadRunnerLaravel\ServiceProvider::boot()
*/
protected function initForceHttps(CallbacksInterface $callbacks, $value)
{
Expand Down
21 changes: 10 additions & 11 deletions tests/Worker/CallbacksInitializer/CallbacksInitializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

namespace AvtoDev\RoadRunnerLaravel\Tests\Worker\CallbacksInitializer;

use AvtoDev\RoadRunnerLaravel\Tests\AbstractTestCase;
use AvtoDev\RoadRunnerLaravel\Worker\Callbacks\Callbacks;
use AvtoDev\RoadRunnerLaravel\Worker\CallbacksInitializer\CallbacksInitializer;
use AvtoDev\RoadRunnerLaravel\Worker\CallbacksInitializer\CallbacksInitializerInterface;
use AvtoDev\RoadRunnerLaravel\Worker\StartOptions\StartOptions;
use Illuminate\Config\Repository as ConfigRepository;
use Illuminate\Database\DatabaseManager;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Str;
use Illuminate\Database\DatabaseManager;
use Illuminate\Support\Traits\Macroable;
use AvtoDev\RoadRunnerLaravel\Tests\AbstractTestCase;
use Illuminate\Config\Repository as ConfigRepository;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use AvtoDev\RoadRunnerLaravel\Worker\Callbacks\Callbacks;
use AvtoDev\RoadRunnerLaravel\Worker\StartOptions\StartOptions;
use AvtoDev\RoadRunnerLaravel\Worker\CallbacksInitializer\CallbacksInitializer;
use AvtoDev\RoadRunnerLaravel\Worker\CallbacksInitializer\CallbacksInitializerInterface;

/**
* @covers \AvtoDev\RoadRunnerLaravel\Worker\CallbacksInitializer\CallbacksInitializer
Expand Down Expand Up @@ -79,8 +79,7 @@ public function testInterfacesAndTraits()
*/
public function testAutoInitMethodsCalling()
{
$mock = new class(new StartOptions(['--bla-bla']), $this->callbacks) extends CallbacksInitializer
{
$mock = new class(new StartOptions(['--bla-bla']), $this->callbacks) extends CallbacksInitializer {
public $called = false;

public $should_not = false;
Expand Down Expand Up @@ -179,7 +178,7 @@ public function testDefaultActionSkipSymfonyFileValidationFixing()
{
$callbacks = new Callbacks;
$this->callMethod(new CallbacksInitializer(new StartOptions([
'--not-fix-symfony-file-validation'
'--not-fix-symfony-file-validation',
]), $callbacks), 'defaults', [$callbacks]);

$this->initializer->makeInit();
Expand Down

0 comments on commit 1886ac0

Please sign in to comment.