ScrapeUpcomingReleasesCommand::getOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
use Illuminate\Console\Command;
4
use Indatus\Dispatcher\Drivers\Cron\Scheduler;
5
6
class ScrapeUpcomingReleasesCommand extends Command {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
7
8
	/**
9
	 * The console command name.
10
	 *
11
	 * @var string
12
	 */
13
	protected $name = 'scrape:releases';
14
15
	/**
16
	 * The console command description.
17
	 *
18
	 * @var string
19
	 */
20
	protected $description = 'Scrape upcoming relases.';
21
22
	/**
23
	 * Execute the console command.
24
	 *
25
	 * @return mixed
26
	 */
27
	public function fire() {
28
		Queue::push('MovieScraperWorker');
29
	}
30
31
	/**
32
	 * Get the console command arguments.
33
	 *
34
	 * @return array
35
	 */
36 9
	protected function getArguments() {
37
		return [
38 9
		];
39
	}
40
41
	/**
42
	 * Get the console command options.
43
	 *
44
	 * @return array
45
	 */
46 9
	protected function getOptions() {
47
		return [
48 9
		];
49
	}
50
51
	/**
52
	 * User to run the command as
53
	 * @return string Defaults to false to run as default user
54
	 */
55
	public function user() {
56
		return false;
57
	}
58
59
	/**
60
	 * Environment(s) under which the given command should run
61
	 * Defaults to '*' for all environments
62
	 * @return string|array
63
	 */
64
	public function environment() {
65
		return '*';
66
	}
67
}
68