Skip to content

Commit

Permalink
Merge pull request poing#8 from poing/analysis-9mkn15
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
poing authored Jun 10, 2020
2 parents ad5c220 + 9a95299 commit ab04ba2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions source/Http/Controllers/Serial.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Poing\Earmark\Http\Controllers;

use DB;
use Poing\Earmark\Jobs\EarmarkQueue;
use Illuminate\Routing\Controller;
use Poing\Earmark\Events\EarMarkRefill;
use Poing\Earmark\Jobs\EarmarkQueue;

class Serial extends Controller
{
Expand Down Expand Up @@ -58,7 +58,7 @@ public function __construct($altPrefix = null, $altSuffix = null, $altPadding =
$this->max = ! is_null($altMax) ? $altMax : config('earmark.range.max');
$this->padding = ! is_null($altPadding) ? $altPadding : config('earmark.padding');

$this->initHold();
$this->initHold();
}

public function get($count = null)
Expand Down Expand Up @@ -231,9 +231,8 @@ function () use (&$hold, &$model, &$digit, &$group, &$data

//if ($this->checkHold() < config('earmark.hold'))
//event(new EarMarkRefill());
// $this->prefix, $this->suffix, $this->padding, $this->min, $this->max
EarmarkQueue::dispatch($this->prefix, $this->suffix, $this->padding, $this->min, $this->max);

// $this->prefix, $this->suffix, $this->padding, $this->min, $this->max
EarmarkQueue::dispatch($this->prefix, $this->suffix, $this->padding, $this->min, $this->max);

return $data;
}
Expand Down
1 change: 0 additions & 1 deletion source/Jobs/EarmarkQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Illuminate\Queue\SerializesModels;
use Poing\Earmark\Http\Controllers\Serial;


class EarmarkQueue implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
Expand Down

0 comments on commit ab04ba2

Please sign in to comment.