Revert "Remove leading backslashes from the targets of use statements"

This reverts commit 87a59675011a4cf284d8e44c4fb66042ad84c39f.

At least 'modules/doc/run.php' issues a warning about "The use statement with non-compound name 'Zend_Controller_Router_Route' has no effect"
This commit is contained in:
Eric Lippmann 2014-08-27 12:24:11 +02:00
parent 24983c344c
commit 1dea19504f
55 changed files with 96 additions and 96 deletions
application
library/Icinga
modules
test/php
application/forms/Config/Authentication
library/Icinga

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Zend_Config;
use \Zend_Config;
use Icinga\Web\Url;
use Icinga\Logger\Logger;
use Icinga\Config\PreservingIniWriter;

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Zend_Controller_Action_Exception as ActionException;
use \Zend_Controller_Action_Exception as ActionException;
use Icinga\Web\Controller\ActionController;
use Icinga\Application\Icinga;
use Icinga\Logger\Logger;

@ -4,8 +4,8 @@
namespace Icinga\Form\Config\Authentication;
use Zend_Config;
use Zend_Form_Element_Checkbox;
use \Zend_Config;
use \Zend_Form_Element_Checkbox;
use Icinga\Web\Form;
use Icinga\Data\ResourceFactory;
use Icinga\Web\Form\Decorator\HelpText;

@ -4,8 +4,8 @@
namespace Icinga\Form\Config\Authentication;
use Exception;
use Zend_Config;
use \Exception;
use \Zend_Config;
use Icinga\Data\ResourceFactory;
use Icinga\Authentication\DbConnection;
use Icinga\Authentication\Backend\DbUserBackend;

@ -4,8 +4,8 @@
namespace Icinga\Form\Config\Authentication;
use Exception;
use Zend_Config;
use \Exception;
use \Zend_Config;
use Icinga\Web\Form;
use Icinga\Data\ResourceFactory;
use Icinga\Authentication\Backend\LdapUserBackend;

@ -4,7 +4,7 @@
namespace Icinga\Form\Config\Authentication;
use Zend_Config;
use \Zend_Config;
use Icinga\Web\Form;
/**

@ -4,7 +4,7 @@
namespace Icinga\Form\Config;
use Zend_Config;
use \Zend_Config;
use Icinga\Web\Form;
use Icinga\Application\Icinga;
use Icinga\Web\Form\Validator\WritablePathValidator;

@ -4,15 +4,15 @@
namespace Icinga\Form\Preference;
use DateTimeZone;
use Zend_Config;
use Zend_Form_Element_Text;
use Zend_Form_Element_Select;
use Zend_View_Helper_DateFormat;
use Icinga\Web\Form;
use Icinga\Web\Form\Validator\TimeFormatValidator;
use Icinga\Web\Form\Validator\DateFormatValidator;
use Icinga\Util\Translator;
use \DateTimeZone;
use \Zend_Config;
use \Zend_Form_Element_Text;
use \Zend_Form_Element_Select;
use \Zend_View_Helper_DateFormat;
use \Icinga\Web\Form;
use \Icinga\Web\Form\Validator\TimeFormatValidator;
use \Icinga\Web\Form\Validator\DateFormatValidator;
use \Icinga\Util\Translator;
/**
* General user preferences

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Zend_View_Helper_FormElement;
use \Zend_View_Helper_FormElement;
/**
* Helper to generate a "datetime" element

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Zend_View_Helper_FormElement;
use \Zend_View_Helper_FormElement;
/**
* Helper to generate a "datetime" element

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Icinga\Util\Translator;
use \Icinga\Util\Translator;
if (extension_loaded('gettext')) {
function t($messageId)

@ -4,8 +4,8 @@
namespace Icinga\Chart\Primitive;
use DomElement;
use Icinga\Chart\Render\RenderContext;
use \DomElement;
use \Icinga\Chart\Render\RenderContext;
use Icinga\Chart\Format;
/**

@ -4,7 +4,7 @@
namespace Icinga\Protocol\Commandpipe\Transport;
use Zend_Config;
use \Zend_Config;
/**
* Interface for Transport classes handling the concrete access to the command pipe

@ -8,7 +8,7 @@ use Icinga\Protocol\Ldap\Exception as LdapException;
use Icinga\Application\Platform;
use Icinga\Application\Config;
use Icinga\Logger\Logger;
use Zend_Config;
use \Zend_Config;
/**
* Backend class managing all the LDAP stuff for you.

@ -4,10 +4,10 @@
namespace Icinga\Protocol\Statusdat\View;
use Iterator;
use Countable;
use ArrayAccess;
use Exception;
use \Iterator;
use \Countable;
use \ArrayAccess;
use \Exception;
/**
* Wrapper around an array of monitoring objects that can be enhanced with an optional

@ -4,7 +4,7 @@
namespace Icinga\User\Preferences;
use Zend_Config;
use \Zend_Config;
use Icinga\User;
use Icinga\User\Preferences;
use Icinga\Data\ResourceFactory;

@ -4,7 +4,7 @@
namespace Icinga\Web\Form\Decorator;
use Zend_Form_Decorator_Abstract;
use \Zend_Form_Decorator_Abstract;
/**
* Decorator to hide elements using a >noscript< tag instead of

@ -5,9 +5,9 @@
namespace Icinga\Web\Form\Element;
use Icinga\Web\Form\Validator\DateTimeValidator;
use Zend_Form_Element_Text;
use Zend_Form_Element;
use Icinga\Util\DateTimeFactory;
use \Zend_Form_Element_Text;
use \Zend_Form_Element;
use \Icinga\Util\DateTimeFactory;
/**
* Datetime form element which returns the input as Unix timestamp after the input has been proven valid. Utilizes

@ -4,8 +4,8 @@
namespace Icinga\Web\Form\Element;
use Icinga\Web\Form\Validator\TriStateValidator;
use Zend_Form_Element_Xhtml;
use \Icinga\Web\Form\Validator\TriStateValidator;
use \Zend_Form_Element_Xhtml;
/**
* A checkbox that can display three different states:

@ -4,7 +4,7 @@
namespace Icinga\Web\Form\Validator;
use Zend_Validate_Abstract;
use \Zend_Validate_Abstract;
/**
* Validator that checks if a textfield contains a correct date format

@ -4,9 +4,9 @@
namespace Icinga\Web\Form\Validator;
use Icinga\Util\DateTimeFactory;
use Zend_Validate_Abstract;
use Icinga\Exception\ProgrammingError;
use \Icinga\Util\DateTimeFactory;
use \Zend_Validate_Abstract;
use \Icinga\Exception\ProgrammingError;
/**
* Validator that checks if a textfield contains a correct date format

@ -4,7 +4,7 @@
namespace Icinga\Web\Form\Validator;
use Zend_Validate_Abstract;
use \Zend_Validate_Abstract;
/**
* Validator that checks if a textfield contains a correct time format

@ -4,7 +4,7 @@
namespace Icinga\Web\Form\Validator;
use Zend_Validate_Abstract;
use \Zend_Validate_Abstract;
class TriStateValidator extends Zend_Validate_Abstract
{

@ -4,8 +4,8 @@
namespace Icinga\Web\Form\Validator;
use Zend_Validate_Abstract;
use Icinga\Application\Config as IcingaConfig;
use \Zend_Validate_Abstract;
use \Icinga\Application\Config as IcingaConfig;
/**
* Validator that interprets the value as a path and checks if it's writable

@ -4,8 +4,8 @@
namespace Icinga\Web\Hook;
use Icinga\Web\Request;
use Zend_View;
use \Icinga\Web\Request;
use \Zend_View;
/**
* Hook to extend topbar items

@ -4,9 +4,9 @@
namespace Icinga\Web\Session;
use Exception;
use ArrayIterator;
use IteratorAggregate;
use \Exception;
use \ArrayIterator;
use \IteratorAggregate;
/**
* Container for session values

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Zend_Controller_Action_Exception;
use \Zend_Controller_Action_Exception;
use Icinga\Application\Icinga;
use Icinga\Module\Doc\DocController;

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Zend_Controller_Action_Exception;
use \Zend_Controller_Action_Exception;
use Icinga\Application\Icinga;
use Icinga\Module\Doc\DocController;
use Icinga\Module\Doc\Exception\DocException;

@ -1,6 +1,6 @@
<?php
use Zend_Controller_Router_Route;
use \Zend_Controller_Router_Route;
use Icinga\Application\Icinga;
if (Icinga::app()->isCli()) {

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Exception;
use \Exception;
use Icinga\Config\PreservingIniWriter;
use Icinga\Web\Controller\ModuleActionController;

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Icinga\Module\Monitoring\Command\Meta;
use \Icinga\Module\Monitoring\Command\Meta;
/**
* Class MonitoringCommands

@ -2,9 +2,9 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use DateTime;
use DateInterval;
use Zend_Config;
use \DateTime;
use \DateInterval;
use \Zend_Config;
use Icinga\Web\Url;
use Icinga\Util\Format;
use Icinga\Application\Config;

@ -4,10 +4,10 @@
namespace Icinga\Module\Monitoring\Form\Command;
use Icinga\Web\Form\Element\DateTimePicker;
use Icinga\Protocol\Commandpipe\Comment;
use Icinga\Util\DateTimeFactory;
use Icinga\Module\Monitoring\Command\AcknowledgeCommand;
use \Icinga\Web\Form\Element\DateTimePicker;
use \Icinga\Protocol\Commandpipe\Comment;
use \Icinga\Util\DateTimeFactory;
use \Icinga\Module\Monitoring\Command\AcknowledgeCommand;
/**
* Form for problem acknowledgements

@ -4,10 +4,10 @@
namespace Icinga\Module\Monitoring\Form\Command;
use Icinga\Web\Form\Element\TriStateCheckbox;
use Icinga\Web\Form;
use Zend_Form_Element_Hidden;
use Zend_Form;
use \Icinga\Web\Form\Element\TriStateCheckbox;
use \Icinga\Web\Form;
use \Zend_Form_Element_Hidden;
use \Zend_Form;
/**
* A form to edit multiple command flags of multiple commands at once. When some commands have

@ -5,7 +5,7 @@
namespace Icinga\Module\Monitoring\Form\Command;
use Zend_Controller_Request_Abstract;
use Zend_Form_Element_Hidden;
use \Zend_Form_Element_Hidden;
use Icinga\Module\Monitoring\Command\AcknowledgeCommand;
use Icinga\Module\Monitoring\Command\SingleArgumentCommand;

@ -4,7 +4,7 @@
namespace Icinga\Module\Monitoring\Form\Command;
use Icinga\Exception\ProgrammingError;
use \Icinga\Exception\ProgrammingError;
/**
* Form for submitting passive check results

@ -4,7 +4,7 @@
namespace Icinga\Module\Monitoring\Form\Config\Backend;
use Zend_Config;
use \Zend_Config;
/**
* Extended EditBackendForm for creating new Backends

@ -4,8 +4,8 @@
namespace Icinga\Module\Monitoring\Form\Config\Instance;
use Icinga\Web\Form;
use Zend_Config;
use \Icinga\Web\Form;
use \Zend_Config;
/**
* Form for creating new instances

@ -4,8 +4,8 @@
namespace Icinga\Module\Monitoring\Form\Config\Instance;
use Zend_Config;
use Icinga\Web\Form;
use \Zend_Config;
use \Icinga\Web\Form;
/**
* Form for editing existing instances

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Zend_View_Helper_Abstract;
use \Zend_View_Helper_Abstract;
use Icinga\Module\Monitoring\Object\AbstractObject;
class Zend_View_Helper_ResolveMacros extends Zend_View_Helper_Abstract

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Icinga\Module\Monitoring\Backend;
use \Icinga\Module\Monitoring\Backend;
use Icinga\Util\Format;
$backend = Backend::getInstance($params->shift('backend'));

@ -4,7 +4,7 @@
namespace Icinga\Module\Monitoring\Backend\Ido\Query;
use Zend_Db_Select;
use \Zend_Db_Select;
class StatusSummaryQuery extends IdoQuery
{

@ -4,7 +4,7 @@
namespace Icinga\Module\Monitoring\Exception;
use Exception;
use \Exception;
class UnsupportedBackendException extends Exception
{

@ -4,7 +4,7 @@
namespace Icinga\Module\Monitoring\Timeline;
use DateTime;
use \DateTime;
use Icinga\Web\Url;
use Icinga\Exception\ProgrammingError;

@ -4,10 +4,10 @@
namespace Icinga\Module\Monitoring\Timeline;
use DateTime;
use Exception;
use ArrayIterator;
use IteratorAggregate;
use \DateTime;
use \Exception;
use \ArrayIterator;
use \IteratorAggregate;
use Icinga\Data\Filter\Filter;
use Icinga\Web\Hook;
use Icinga\Web\Session;

@ -4,7 +4,7 @@
namespace Tests\Icinga\Module\Monitoring\Application\Views\Helpers;
use Zend_View_Helper_MonitoringFlags;
use \Zend_View_Helper_MonitoringFlags;
use Icinga\Test\BaseTestCase;
require_once realpath(BaseTestCase::$moduleDir . '/monitoring/application/views/helpers/MonitoringFlags.php');

@ -4,7 +4,7 @@
namespace Test\Modules\Monitoring\Application\Views\Helpers;
use Zend_View_Helper_MonitoringProperties;
use \Zend_View_Helper_MonitoringProperties;
use Icinga\Test\BaseTestCase;
require_once realpath(BaseTestCase::$moduleDir . '/monitoring/application/views/helpers/MonitoringProperties.php');

@ -4,8 +4,8 @@
namespace Tests\Icinga\Modules\Monitoring\Application\Views\Helpers;
use Mockery;
use Zend_View_Helper_ResolveMacros;
use \Mockery;
use \Zend_View_Helper_ResolveMacros;
use Icinga\Test\BaseTestCase;
require_once realpath(BaseTestCase::$moduleDir . '/monitoring/application/views/helpers/ResolveMacros.php');

@ -4,7 +4,7 @@
namespace Icinga\Module\Translation\Cli;
use Exception;
use \Exception;
use Icinga\Cli\Command;
/**

@ -4,8 +4,8 @@
namespace Tests\Icinga\Form\Config\Authentication;
use Mockery;
use Zend_Config;
use \Mockery;
use \Zend_Config;
use Icinga\Test\BaseTestCase;
use Icinga\Form\Config\Authentication\ReorderForm;

@ -5,7 +5,7 @@
namespace Tests\Icinga\Application;
use Icinga\Test\BaseTestCase;
use Icinga\Application\Config as IcingaConfig;
use \Icinga\Application\Config as IcingaConfig;
class ConfigTest extends BaseTestCase
{

@ -4,8 +4,8 @@
namespace Tests\Icinga\Chart;
use DOMXPath;
use DOMDocument;
use \DOMXPath;
use \DOMDocument;
use Icinga\Chart\GridChart;
use Icinga\Test\BaseTestCase;

@ -4,8 +4,8 @@
namespace Tests\Icinga\Chart;
use DOMXPath;
use DOMDocument;
use \DOMXPath;
use \DOMDocument;
use Icinga\Chart\PieChart;
use Icinga\Test\BaseTestCase;

@ -4,7 +4,7 @@
namespace Tests\Icinga\Protocol\Commandpipe;
use Zend_Config;
use \Zend_Config;
use Icinga\Test\BaseTestCase;
use Icinga\Protocol\Commandpipe\Comment;
use Icinga\Protocol\Commandpipe\CommandPipe;

@ -4,7 +4,7 @@
namespace Tests\Icinga\Protocol\Ldap;
use Zend_Config;
use \Zend_Config;
use Icinga\Test\BaseTestCase;
use Icinga\Protocol\Ldap\Connection;