@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * Get the services provided by the provider. |
| 65 | 65 | * |
| 66 | - * @return array |
|
| 66 | + * @return string[] |
|
| 67 | 67 | */ |
| 68 | 68 | public function provides() |
| 69 | 69 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Queue; |
| 4 | 4 | use Illuminate\Support\ServiceProvider; |
| 5 | -use Illuminate\Support\Facades\Log; |
|
| 6 | 5 | |
| 7 | 6 | class QwatcherServiceProvider extends ServiceProvider |
| 8 | 7 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Illuminate\Queue\Queue; |
| 4 | 4 | use Carbon\Carbon; |
| 5 | -use Maqe\Qwatcher\Tracks\Enums\StatusType; |
|
| 6 | 5 | |
| 7 | 6 | abstract class TracksAbstract extends Queue |
| 8 | 7 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Maqe\Qwatcher\Traits; |
| 4 | 4 | |
| 5 | -use DB; |
|
| 6 | 5 | use Illuminate\Contracts\Bus\Dispatcher; |
| 7 | 6 | |
| 8 | 7 | trait WatchableDispatchesJobs |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * Insert or update Track table depend on TracksInterface sub class (Adapter) |
| 35 | 35 | * |
| 36 | 36 | * @param TracksInterface $tracks Sub class that implements TracksInterface |
| 37 | - * @return mixed |
|
| 37 | + * @return TracksInterface |
|
| 38 | 38 | */ |
| 39 | 39 | public static function tracks(TracksInterface $tracks) |
| 40 | 40 | { |
@@ -44,7 +44,6 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * Added sort order to $this->sortOrder string, use with builder |
| 46 | 46 | * |
| 47 | - * @param string $sortBy The sort string |
|
| 48 | 47 | * @return $this |
| 49 | 48 | */ |
| 50 | 49 | public function sortBy($sortColumn = 'id', $sortOrder = 'asc') |
@@ -228,7 +227,7 @@ discard block |
||
| 228 | 227 | * Filter sort order column string |
| 229 | 228 | * |
| 230 | 229 | * @param string $sortColumn The sort order column string |
| 231 | - * @return stirng |
|
| 230 | + * @return string |
|
| 232 | 231 | */ |
| 233 | 232 | protected function filterSortColumn($sortColumn) |
| 234 | 233 | { |
@@ -239,7 +238,7 @@ discard block |
||
| 239 | 238 | * Filter sort order string, allowed only asc, desc |
| 240 | 239 | * |
| 241 | 240 | * @param string $sortOrder The sort order string |
| 242 | - * @return stirng |
|
| 241 | + * @return string |
|
| 243 | 242 | */ |
| 244 | 243 | protected function filterSortOrder($sortOrder) |
| 245 | 244 | { |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php namespace Maqe\Qwatcher; |
| 2 | 2 | |
| 3 | 3 | use Illuminate\Database\Eloquent\Builder; |
| 4 | -use Illuminate\Database\Eloquent\Collection; |
|
| 5 | -use Illuminate\Pagination\LengthAwarePaginator; |
|
| 6 | 4 | use Maqe\Qwatcher\Tracks\Enums\StatusType; |
| 7 | 5 | use Maqe\Qwatcher\Tracks\TracksInterface; |
| 8 | 6 | use Maqe\Qwatcher\Tracks\Tracks; |
@@ -4,6 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | class FailedTracks extends TracksAbstract implements TracksInterface |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @param \Illuminate\Contracts\Queue\Job $job |
|
| 9 | + */ |
|
| 7 | 10 | public function __construct($id, $job = null, array $meta = []) |
| 8 | 11 | { |
| 9 | 12 | return $this->pushToTracks($id, $job); |
@@ -11,8 +11,8 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * Transform records in tracks collection |
| 13 | 13 | * |
| 14 | - * @param Tracks $tracks The tracks collection |
|
| 15 | - * @return Collection The tracks collection after transform |
|
| 14 | + * @param Tracks $track The tracks collection |
|
| 15 | + * @return Tracks The tracks collection after transform |
|
| 16 | 16 | */ |
| 17 | 17 | public function transform(Tracks $track) |
| 18 | 18 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * Get current Status as text, tracking by sequential of status datetime |
| 57 | 57 | * |
| 58 | - * @param $track The track object |
|
| 58 | + * @param Tracks $track The track object |
|
| 59 | 59 | * @return string |
| 60 | 60 | */ |
| 61 | 61 | public function getTrackStatus($track) |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | /** |
| 75 | 75 | * Get current Status prias text, tracking by sequential of status datetime |
| 76 | 76 | * |
| 77 | - * @param $track The track object |
|
| 77 | + * @param Tracks $track The track object |
|
| 78 | 78 | * @return string |
| 79 | 79 | */ |
| 80 | 80 | public function getTrackStatusTime($track) |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use App\Http\Controllers\Controller; |
| 4 | 4 | use Illuminate\Http\Request; |
| 5 | -use Maqe\Qwatcher\Tracks\Tracks; |
|
| 6 | 5 | use Qwatcher; |
| 7 | 6 | |
| 8 | 7 | class TracksController extends Controller |