Line exceeds maximum limit of 180 characters; contains 276 characters

Line exceeds maximum limit of 180 characters; contains 276 characters

by استيكرات ميسون -
Number of replies: 1

Line exceeds maximum limit of 180 characters; contains 276 characters

this is my code

<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>;.

/**
 * Version details.
 *
 * @package    format_AdSys
 * @copyright  2019
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
defined('MOODLE_INTERNAL') || die();

$settings->add(
        new admin_setting_configtextarea(
        'format_AdSys/registered_due_date_modules', get_string('registeredduedatemodules', 'format_AdSys'), get_string('registeredduedatemodules_help', 'format_AdSys'), 'assign:duedate, lesson:deadline, lucson:deadline, quiz:timeclose, scorm:timeclose, workshop:submissionend'
        )
);

please help 

Average of ratings: -
In reply to استيكرات ميسون

Re: Line exceeds maximum limit of 180 characters; contains 276 characters

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Umm... I'm not quite sure where the confusion lies.

"Line exceeds maximum limit of 180 characters; contains 276 characters"

This states exactly what the problem is.

One of your lines of code is more than 180 characters long, it should not be.

Add a new line somewhere sensible in that very long line and the code checker error will go away.


Average of ratings: Useful (1)