Skip to content

Commit c78bca3

Browse files
committed
Fix up CI
1 parent bd22690 commit c78bca3

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

classes/robot/crawler.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
7474
*/
7575
class crawler {
76-
76+
/** @var array Retrieved courses from get_recentcourses */
7777
private static $recentcourses = false;
7878

7979
/**
@@ -1311,9 +1311,7 @@ public function scrape($url) {
13111311

13121312
curl_setopt($s, CURLOPT_BUFFERSIZE, 128);
13131313
curl_setopt($s, CURLOPT_NOPROGRESS, false);
1314-
curl_setopt($s, CURLOPT_PROGRESSFUNCTION, function(
1315-
$downloadsize, $downloaded, $uploadsize, $uploaded
1316-
){
1314+
curl_setopt($s, CURLOPT_PROGRESSFUNCTION, function ($downloadsize, $downloaded, $uploadsize, $uploaded) {
13171315
// If $Downloaded exceeds bigfilesize, returning non-0 breaks the connection!
13181316
return ($downloaded > (1024 * 1000 * self::get_config()->bigfilesize)) ? 1 : 0;
13191317
});

report.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
$report = optional_param('report', '', PARAM_ALPHANUMEXT);
3333
$page = optional_param('page', 0, PARAM_INT);
3434
$perpage = optional_param('perpage', 50, PARAM_INT);
35-
$courseid = optional_param('course', 0, PARAM_INT);
36-
$retryid = optional_param('retryid', 0, PARAM_INT);
37-
$retryall = optional_param('retryall', 0, PARAM_BOOL);
35+
$courseid = optional_param('course', 0, PARAM_INT);
36+
$retryid = optional_param('retryid', 0, PARAM_INT);
37+
$retryall = optional_param('retryall', 0, PARAM_BOOL);
3838
$start = $page * $perpage;
3939

4040
$sqlfilter = '';
@@ -183,8 +183,13 @@
183183
redirect($url->raw_out(true), get_string('retryallmessage', 'tool_crawler'));
184184
}
185185
if (!empty($table->data)) {
186-
$retryallbutton = html_writer::link(new moodle_url($navurl->out(), array('retryall' => 1 )),
187-
get_string('retryall', 'tool_crawler'));
186+
$retryallbutton = html_writer::link(
187+
new moodle_url(
188+
$navurl->out(),
189+
['retryall' => 1]
190+
),
191+
get_string('retryall', 'tool_crawler')
192+
);
188193
}
189194
} else if ($report == 'queued') {
190195
$sql = " FROM {tool_crawler_url} a

0 commit comments

Comments
 (0)