Skip to content

Commit 5cd1908

Browse files
The added white space after commas.
1 parent 0888f42 commit 5cd1908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/model/custom_element.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,13 @@ public function validate(): array {
226226
}
227227

228228
$matches = [];
229-
preg_match('/[a-z]+-[a-z\\-]+/',$this->cename,$matches);
229+
preg_match('/[a-z]+-[a-z\\-]+/', $this->cename, $matches);
230230
if (empty($matches)) {
231231
$errors['cename'] = get_string('ce_form_error_cename_lettershyphens', 'local_ce');
232232
}
233233

234234
$matches = [];
235-
preg_match('/[A-Z]+/',$this->cename,$matches);
235+
preg_match('/[A-Z]+/', $this->cename, $matches);
236236
if (!empty($matches)) {
237237
$errors['cename'] = get_string('ce_form_error_cename_nouppercase', 'local_ce');
238238
}

0 commit comments

Comments
 (0)