Skip to content

Commit 87c3463

Browse files
mchurchwardclaude
andcommitted
Fix all Moodle PHPCS code style violations
- Remove blank line after opening brace in all classes/local/db/ persistent records, classes/questionnaire.php, and classes/local/response/manager.php - Add missing @var doc comment to manager.php; convert constructor property promotion to explicit declaration; remove decorative // --- separator lines - Split long lines (>132 chars) in responsetype classes and mobile.php - Fix multi-line function call formatting in questiontypes_test.php - Remove double blank lines in db/upgrade.php - Move questionnaire_testable class to its own file (tests/questionnaire_testable.php) to fix PSR1 MultipleClasses violation - Add one-line phpdoc descriptions to all test methods in questionnaire_test.php; fix inline comment capitalization and punctuation throughout; convert indented TODO block to block comment Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b90447e commit 87c3463

31 files changed

+183
-112
lines changed

classes/local/db/choice_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2626
*/
2727
class choice_record extends \core\persistent {
28-
2928
/** @var string The table name. */
3029
public const TABLE = 'questionnaire_quest_choice';
3130

classes/local/db/dependency_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3030
*/
3131
class dependency_record extends \core\persistent {
32-
3332
/** @var string The table name. */
3433
public const TABLE = 'questionnaire_dependency';
3534

classes/local/db/feedback_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2929
*/
3030
class feedback_record extends \core\persistent {
31-
3231
/** @var string The table name. */
3332
public const TABLE = 'questionnaire_feedback';
3433

classes/local/db/feedback_section_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2929
*/
3030
class feedback_section_record extends \core\persistent {
31-
3231
/** @var string The table name. */
3332
public const TABLE = 'questionnaire_fb_sections';
3433

classes/local/db/question_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2828
*/
2929
class question_record extends \core\persistent {
30-
3130
/** @var string The table name. */
3231
public const TABLE = 'questionnaire_question';
3332

classes/local/db/question_type_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2929
*/
3030
class question_type_record extends \core\persistent {
31-
3231
/** @var string The table name. */
3332
public const TABLE = 'questionnaire_question_type';
3433

classes/local/db/questionnaire_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2626
*/
2727
class questionnaire_record extends \core\persistent {
28-
2928
/** @var string The table name. */
3029
public const TABLE = 'questionnaire';
3130

classes/local/db/response_bool_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2828
*/
2929
class response_bool_record extends \core\persistent {
30-
3130
/** @var string The table name. */
3231
public const TABLE = 'questionnaire_response_bool';
3332

classes/local/db/response_date_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2828
*/
2929
class response_date_record extends \core\persistent {
30-
3130
/** @var string The table name. */
3231
public const TABLE = 'questionnaire_response_date';
3332

classes/local/db/response_file_record.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2929
*/
3030
class response_file_record extends \core\persistent {
31-
3231
/** @var string The table name. */
3332
public const TABLE = 'questionnaire_response_file';
3433

0 commit comments

Comments
 (0)