Skip to content

Commit 702e30b

Browse files
committed
No need to define the supportedTokenizers, it's in parent
And fix a small php82 warn.
1 parent 631fd31 commit 702e30b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

moodle/Sniffs/ControlStructures/ControlSignatureSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class ControlSignatureSniff extends AbstractPatternSniff {
3535

3636
public function __construct() {
3737
parent::__construct(true);
38-
$this->supportedTokenizers = array('PHP', 'JS');
3938
}
4039

4140
/** @var array A list of tokenizers this sniff supports. */

moodle/Util/MoodleUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected static function loadCoreComponent(string $moodleRoot): bool {
8888
if (!isset($CFG->dirroot)) { // No defined, let's start from scratch.
8989
$CFG = (object) [
9090
'dirroot' => $moodleRoot,
91-
'libdir' => "${moodleRoot}/lib",
91+
'libdir' => "{$moodleRoot}/lib",
9292
'admin' => 'admin',
9393
];
9494
}

0 commit comments

Comments
 (0)