Skip to content

Commit 4aba65c

Browse files
committed
Set constant visibility
1 parent 8c02e74 commit 4aba65c

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

lib/Job/Status.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
*/
1414
class Status
1515
{
16-
const STATUS_WAITING = 1;
17-
const STATUS_RUNNING = 2;
18-
const STATUS_FAILED = 3;
19-
const STATUS_COMPLETE = 4;
16+
public const STATUS_WAITING = 1;
17+
public const STATUS_RUNNING = 2;
18+
public const STATUS_FAILED = 3;
19+
public const STATUS_COMPLETE = 4;
2020

2121
/**
2222
* @var string The prefix of the job status id.

lib/Redis.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ class Redis
2626
/**
2727
* A default host to connect to
2828
*/
29-
const DEFAULT_HOST = 'localhost';
29+
protected const DEFAULT_HOST = 'localhost';
3030

3131
/**
3232
* The default Redis port
3333
*/
34-
const DEFAULT_PORT = 6379;
34+
protected const DEFAULT_PORT = 6379;
3535

3636
/**
3737
* The default Redis Database number
3838
*/
39-
const DEFAULT_DATABASE = 0;
39+
protected const DEFAULT_DATABASE = 0;
4040

4141
/**
4242
* Connection driver

lib/Resque.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
*/
1515
class Resque
1616
{
17-
const VERSION = '1.2';
17+
public const VERSION = '1.2';
1818

19-
const DEFAULT_INTERVAL = 5;
19+
public const DEFAULT_INTERVAL = 5;
2020

2121
/**
2222
* @var Redis Instance of Resque\Redis that talks to redis.

lib/Scheduler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class Scheduler
1818
{
19-
const VERSION = "0.1";
19+
public const VERSION = "0.1";
2020

2121
/**
2222
* Enqueue a job in a given number of seconds from now.

lib/Worker/SchedulerWorker.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
*/
1818
class SchedulerWorker
1919
{
20-
const LOG_NONE = 0;
21-
const LOG_NORMAL = 1;
22-
const LOG_VERBOSE = 2;
20+
public const LOG_NONE = 0;
21+
public const LOG_NORMAL = 1;
22+
public const LOG_VERBOSE = 2;
2323

2424
/**
2525
* @var int Current log level of this worker.

test/Resque/Tests/RedisTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ public function validDsnStringProvider()
4242
// Input , Expected output
4343
array('', array(
4444
'localhost',
45-
Redis::DEFAULT_PORT,
45+
6379,
4646
false,
4747
false, false,
4848
array(),
4949
)),
5050
array('localhost', array(
5151
'localhost',
52-
Redis::DEFAULT_PORT,
52+
6379,
5353
false,
5454
false, false,
5555
array(),
@@ -70,14 +70,14 @@ public function validDsnStringProvider()
7070
)),
7171
array('redis://foobar', array(
7272
'foobar',
73-
Redis::DEFAULT_PORT,
73+
6379,
7474
false,
7575
false, false,
7676
array(),
7777
)),
7878
array('redis://foobar/', array(
7979
'foobar',
80-
Redis::DEFAULT_PORT,
80+
6379,
8181
false,
8282
false, false,
8383
array(),

0 commit comments

Comments
 (0)