mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
different files: style
This commit is contained in:
parent
1c395037c3
commit
1d4b508ff3
@ -1,7 +1,11 @@
|
||||
<?php
|
||||
|
||||
// Avoid complaints about missing namespace and invalid class name
|
||||
// @codingStandardsIgnoreStart
|
||||
class Zend_View_Helper_FormSimpleNote extends Zend_View_Helper_FormElement
|
||||
{
|
||||
// @codingStandardsIgnoreEnd
|
||||
|
||||
public function formSimpleNote($name, $value = null)
|
||||
{
|
||||
$info = $this->_getInfo($name, $value);
|
||||
|
@ -31,7 +31,7 @@ class PropertyModifierGetHostByName extends PropertyModifierHook
|
||||
{
|
||||
$host = gethostbyname($value);
|
||||
if (strlen(@inet_pton($host)) !== 4) {
|
||||
switch($this->getSetting('on_failure')) {
|
||||
switch ($this->getSetting('on_failure')) {
|
||||
case 'null':
|
||||
return null;
|
||||
case 'keep':
|
||||
|
@ -5,8 +5,15 @@ namespace Icinga\Module\Director\Web\Form\Element;
|
||||
class SimpleNote extends FormElement
|
||||
{
|
||||
public $helper = 'formSimpleNote';
|
||||
|
||||
|
||||
/**
|
||||
* Always ignore this element
|
||||
* @codingStandardsIgnoreStart
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $_ignore = true;
|
||||
// @codingStandardsIgnoreEnd
|
||||
|
||||
public function isValid($value, $context = null)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user