Completed
Push — v3-ssp ( bdeb17...167089 )
by Sam
01:48
created

CacheHelpfulRobotDataCron::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
class CacheHelpfulRobotDataCron implements CronTask
4
{
5
6
    /**
7
     * Run at 1am every morning
8
     *
9
     * @return string
10
     */
11
    public function getSchedule()
12
    {
13
        return "0 1 * * *";
14
    }
15
16
    /**
17
     * Run the build task CacheHelpfulRobotDataTask
18
     * @return void
19
     */
20
    public function process() {
21
        $task = Injector::inst()->get('CacheHelpfulRobotDataTask');
22
        $task->run(new SS_HTTPRequest('GET', '/'));
23
    }
24
}
25