Remove leading backslashes from the targets of use statements

- use \Exception;
+ use Exception;
This commit is contained in:
Alexander Klimov 2014-08-27 15:51:49 +02:00
parent 968fa36cfd
commit 7ff51caed0
53 changed files with 94 additions and 94 deletions

View File

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

View File

@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}} // {{{ICINGA_LICENSE_HEADER}}}
// {{{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\Web\Controller\ActionController;
use Icinga\Application\Icinga; use Icinga\Application\Icinga;
use Icinga\Logger\Logger; use Icinga\Logger\Logger;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
namespace Icinga\Web\Form\Decorator; 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 * Decorator to hide elements using a >noscript< tag instead of

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@
namespace Icinga\Module\Monitoring\Form\Command; namespace Icinga\Module\Monitoring\Form\Command;
use Zend_Controller_Request_Abstract; 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\AcknowledgeCommand;
use Icinga\Module\Monitoring\Command\SingleArgumentCommand; use Icinga\Module\Monitoring\Command\SingleArgumentCommand;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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