Skip to content

Commit

Permalink
Cleanup: Change @codingStandardsIgnore tags to phpcs:disable
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Aug 20, 2024
1 parent aa0f152 commit 34f5551
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/behat/behat_block_people.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class behat_block_people extends behat_base {
// @codingStandardsIgnoreStart
// phpcs:disable moodle.Files.LineLength.TooLong
/**
* Checks, that the specified user is listed in the section with the specified role within the block People.
*
Expand All @@ -50,7 +50,6 @@ class behat_block_people extends behat_base {
* @param string $rolename
*/
public function user_should_be_listed_in_role_section($username, $rolename) {
// @codingStandardsIgnoreEnd

// Teacher entries without link.
$elementxpath = "//section[contains(concat(' ',normalize-space(@class),' '),' block_people ')]";
Expand All @@ -68,7 +67,7 @@ public function user_should_be_listed_in_role_section($username, $rolename) {
[$elementxpath, "xpath_element"]);
}

// @codingStandardsIgnoreStart
// phpcs:disable moodle.Files.LineLength.TooLong
/**
* Checks, that the specified user is not listed in the section with the specified role within the block People.
*
Expand All @@ -78,7 +77,6 @@ public function user_should_be_listed_in_role_section($username, $rolename) {
* @param string $rolename
*/
public function user_should_not_be_listed_in_role_section($username, $rolename) {
// @codingStandardsIgnoreEnd

$elementxpath = "//section[contains(concat(' ',normalize-space(@class),' '),' block_people ')]";
$elementxpath .= "//h6[contains(text(),'{$rolename}')]";
Expand Down

0 comments on commit 34f5551

Please sign in to comment.