Skip to content

Commit 22b41a0

Browse files
committed
Add visibility to all constants
1 parent d2c962f commit 22b41a0

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Diff for: src/Application.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*/
1010
class Application extends BaseApplication
1111
{
12-
const NAME = 'Trakt to YTS';
13-
const VERSION = '@git-version@';
12+
public const NAME = 'Trakt to YTS';
13+
public const VERSION = '@git-version@';
1414

1515
/**
1616
* Application constructor.

Diff for: src/Quality.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ class Quality
1010
/**
1111
* 1080p quality
1212
*/
13-
const Q_1080P = '1080p';
13+
public const Q_1080P = '1080p';
1414
/**
1515
* 720p quality
1616
*/
17-
const Q_720P = '720p';
17+
public const Q_720P = '720p';
1818
/**
1919
* 3D quality
2020
*/
21-
const Q_3D = '3D';
21+
public const Q_3D = '3D';
2222
}

Diff for: src/ScrapeCommand.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
*/
1616
class ScrapeCommand extends Command
1717
{
18-
const ALLOWED_QUALITIES = [
18+
public const ALLOWED_QUALITIES = [
1919
Quality::Q_1080P,
2020
Quality::Q_720P,
2121
Quality::Q_3D,
2222
];
23-
const STATUS_DOWNLOADED = 'downloaded';
24-
const STATUS_FAILED = 'failed';
25-
const STATUS_NO_RELEASE = 'no-release';
26-
const TRAKT_API_URI = 'https://api.trakt.tv';
27-
const TRAKT_MAIN_URI = 'https://trakt.tv';
28-
const YTS_API_URI = 'https://yts.am/api/v2';
23+
public const STATUS_DOWNLOADED = 'downloaded';
24+
public const STATUS_FAILED = 'failed';
25+
public const STATUS_NO_RELEASE = 'no-release';
26+
public const TRAKT_API_URI = 'https://api.trakt.tv';
27+
public const TRAKT_MAIN_URI = 'https://trakt.tv';
28+
public const YTS_API_URI = 'https://yts.am/api/v2';
2929

3030
/**
3131
* A Trakt API key

0 commit comments

Comments
 (0)