Skip to content

Commit

Permalink
Run style fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Brokman committed Feb 17, 2017
1 parent 8cd6039 commit 7cb2676
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
3 changes: 1 addition & 2 deletions src/QueueSetupException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace MaxBrokman\SafeQueue;


class QueueSetupException extends \Exception
{
}
}
11 changes: 5 additions & 6 deletions src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
/**
* Worker constructor.
*
* @param QueueManager $manager
* @param Dispatcher $events
* @param EntityManager $entityManager
* @param QueueManager $manager
* @param Dispatcher $events
* @param EntityManager $entityManager
* @param ExceptionHandler $exceptions
*/
public function __construct(
Expand All @@ -46,8 +46,8 @@ public function __construct(
* exceptions to be a result of our setup.
*
* @param \Illuminate\Contracts\Queue\Job $job
* @param string $connectionName
* @param WorkerOptions $options
* @param string $connectionName
* @param WorkerOptions $options
*/
protected function runJob($job, $connectionName, WorkerOptions $options)
{
Expand All @@ -69,7 +69,6 @@ protected function runJob($job, $connectionName, WorkerOptions $options)
}
}


/**
* @throws EntityManagerClosedException
*/
Expand Down
13 changes: 6 additions & 7 deletions tests/Console/WorkCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ class WorkCommandTest extends \PHPUnit_Framework_TestCase

protected function setUp()
{
$this->worker = m::mock(Worker::class);
$this->defaultCommandName = 'doctrine:queue:work';
$this->configStub = ['command_name' => $this->defaultCommandName];
$this->command = new WorkCommand($this->worker, $this->configStub);
$this->worker = m::mock(Worker::class);
$this->defaultCommandName = 'doctrine:queue:work';
$this->configStub = ['command_name' => $this->defaultCommandName];
$this->command = new WorkCommand($this->worker, $this->configStub);
$this->testNewCommandNames = [
'queue:work',
'custom-queue:work',
Expand All @@ -63,7 +63,7 @@ public function testHasCorrectWorker()
private function getPropertyViaReflection($propertyName)
{
// Use reflection to peek at the worker
$reflectedCommand = new ReflectionClass(get_class($this->command));
$reflectedCommand = new ReflectionClass(get_class($this->command));
$reflectionProperty = $reflectedCommand->getProperty($propertyName);
$reflectionProperty->setAccessible(true);

Expand All @@ -79,8 +79,7 @@ public function testCommandNameIsCorrectAsDefault()

public function testCommandNameCanBeConfigured()
{
foreach($this->testNewCommandNames as $newCommandName) {

foreach ($this->testNewCommandNames as $newCommandName) {
$this->command = new WorkCommand($this->worker, [
'command_name' => $newCommandName
]);
Expand Down
2 changes: 0 additions & 2 deletions tests/WorkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ class WorkerTest extends \PHPUnit_Framework_TestCase
*/
private $queue;



/**
* @var Dispatcher|m\MockInterface
*/
Expand Down

0 comments on commit 7cb2676

Please sign in to comment.