Migrate deprecated @codingStandards syntax

This commit is contained in:
Eric Lippmann 2025-10-21 16:30:00 +02:00
parent 96a8f00609
commit e7f0b449bb
4 changed files with 6 additions and 16 deletions

View file

@ -1,11 +1,8 @@
<?php
// Avoid complaints about missing namespace and invalid class name
// @codingStandardsIgnoreStart
class Zend_View_Helper_FormSimpleNote extends Zend_View_Helper_FormElement
class Zend_View_Helper_FormSimpleNote extends Zend_View_Helper_FormElement // phpcs:ignore
{
// @codingStandardsIgnoreEnd
public function formSimpleNote($name, $value = null)
{
$info = $this->_getInfo($name, $value);

View file

@ -2,11 +2,9 @@
/**
* @deprecated
* @codingStandardsIgnoreStart
*/
class Zend_View_Helper_RenderStateBadges extends Zend_View_Helper_Abstract
class Zend_View_Helper_RenderStateBadges extends Zend_View_Helper_Abstract // phpcs:ignore
{
// @codingStandardsIgnoreEnd
public function renderStateBadges($summary)
{
$html = '';
@ -23,7 +21,7 @@ class Zend_View_Helper_RenderStateBadges extends Zend_View_Helper_Abstract
. '" title="' . mt('monitoring', $state) . '">'
. $cnt . '</span>';
}
if ($html !== '') {
$html = '<div class="badges">' . $html . '</div>';
}

View file

@ -8,13 +8,11 @@ class SimpleNote extends FormElement
/**
* Always ignore this element
* @codingStandardsIgnoreStart
*
* @var boolean
*/
protected $_ignore = true;
// @codingStandardsIgnoreEnd
protected $_ignore = true; // phpcs:ignore
public function isValid($value, $context = null)
{
return true;

View file

@ -2,9 +2,6 @@
use PHPUnit\Framework\TestCase;
/**
* @codingStandardsIgnoreStart
*/
class PHPUnit_Framework_TestCase extends TestCase
class PHPUnit_Framework_TestCase extends TestCase // phpcs:ignore
{
}