Skip to content

Commit d0b54d4

Browse files
mchurchwardclaude
andcommitted
Fix broken namespace splits in responsetype files
The previous line-length fix used Python string escapes that caused backslashes in namespace paths (\responsetype, \response) to be misinterpreted as carriage returns, breaking the PHP syntax. Replaced the broken fragments with the correct multi-line form. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 87c3463 commit d0b54d4

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

classes/local/responsetype/boolean.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function insert_response($responsedata) {
8484
global $DB;
8585

8686
if (!$responsedata instanceof \mod_questionnaire\local\responsetype\response\response) {
87-
$response = \mod_questionnaire\localesponsetypeesponseesponse::response_from_webform(
87+
$response = \mod_questionnaire\local\responsetype\response\response::response_from_webform(
8888
$responsedata,
8989
[$this->question]
9090
);

classes/local/responsetype/date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function insert_response($responsedata) {
8181
global $DB;
8282

8383
if (!$responsedata instanceof \mod_questionnaire\local\responsetype\response\response) {
84-
$response = \mod_questionnaire\localesponsetypeesponseesponse::response_from_webform(
84+
$response = \mod_questionnaire\local\responsetype\response\response::response_from_webform(
8585
$responsedata,
8686
[$this->question]
8787
);

classes/local/responsetype/file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function insert_response($responsedata) {
166166
global $DB;
167167

168168
if (!$responsedata instanceof \mod_questionnaire\local\responsetype\response\response) {
169-
$response = \mod_questionnaire\localesponsetypeesponseesponse::response_from_webform(
169+
$response = \mod_questionnaire\local\responsetype\response\response::response_from_webform(
170170
$responsedata,
171171
[$this->question]
172172
);

classes/local/responsetype/rank.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function insert_response($responsedata) {
116116
global $DB;
117117

118118
if (!$responsedata instanceof \mod_questionnaire\local\responsetype\response\response) {
119-
$response = \mod_questionnaire\localesponsetypeesponseesponse::response_from_webform(
119+
$response = \mod_questionnaire\local\responsetype\response\response::response_from_webform(
120120
$responsedata,
121121
[$this->question]
122122
);

classes/local/responsetype/single.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function insert_response($responsedata) {
9999
global $DB;
100100

101101
if (!$responsedata instanceof \mod_questionnaire\local\responsetype\response\response) {
102-
$response = \mod_questionnaire\localesponsetypeesponseesponse::response_from_webform(
102+
$response = \mod_questionnaire\local\responsetype\response\response::response_from_webform(
103103
$responsedata,
104104
[$this->question]
105105
);

classes/local/responsetype/text.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function insert_response($responsedata) {
6666
global $DB;
6767

6868
if (!$responsedata instanceof \mod_questionnaire\local\responsetype\response\response) {
69-
$response = \mod_questionnaire\localesponsetypeesponseesponse::response_from_webform(
69+
$response = \mod_questionnaire\local\responsetype\response\response::response_from_webform(
7070
$responsedata,
7171
[$this->question]
7272
);

0 commit comments

Comments
 (0)