From 80367dfcc51549636ba7dacd0eda1fa73bce4f8e Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Mon, 9 Jul 2012 16:46:59 -0500 Subject: [PATCH] [zen-49] Correct import statements across framework - Ran a script that would create multiple import statements out of multi-line import statements, and which would sort all import statements in alphabetic order. Script is at https://gist.github.com/3079222 and was run by dropping into the library/Zend folder and typing (in zsh) "for file in **/*.php;do php /path/to/replace-uses.php $file; done" --- src/Formatter/Xml.php | 4 ++-- src/Logger.php | 2 +- src/Writer/AbstractWriter.php | 2 +- src/Writer/Db.php | 4 ++-- src/Writer/Mail.php | 2 +- src/Writer/Stream.php | 2 +- src/Writer/Syslog.php | 4 ++-- src/Writer/WriterInterface.php | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Formatter/Xml.php b/src/Formatter/Xml.php index 27657cec..919c434c 100644 --- a/src/Formatter/Xml.php +++ b/src/Formatter/Xml.php @@ -10,10 +10,10 @@ namespace Zend\Log\Formatter; -use Traversable; -use Zend\Stdlib\ArrayUtils; use DOMDocument; use DOMElement; +use Traversable; +use Zend\Stdlib\ArrayUtils; /** * @category Zend diff --git a/src/Logger.php b/src/Logger.php index eafbe258..1b753b0a 100644 --- a/src/Logger.php +++ b/src/Logger.php @@ -11,9 +11,9 @@ namespace Zend\Log; use DateTime; -use Zend\Stdlib\SplPriorityQueue; use Traversable; use Zend\Stdlib\ArrayUtils; +use Zend\Stdlib\SplPriorityQueue; /** * Logging messages with a stack of backends diff --git a/src/Writer/AbstractWriter.php b/src/Writer/AbstractWriter.php index bb9b82ca..d180106b 100644 --- a/src/Writer/AbstractWriter.php +++ b/src/Writer/AbstractWriter.php @@ -10,9 +10,9 @@ namespace Zend\Log\Writer; +use Zend\Log\Exception; use Zend\Log\Filter; use Zend\Log\Formatter\FormatterInterface as Formatter; -use Zend\Log\Exception; /** * @category Zend diff --git a/src/Writer/Db.php b/src/Writer/Db.php index 7872ae7b..ebc6f6ef 100644 --- a/src/Writer/Db.php +++ b/src/Writer/Db.php @@ -10,9 +10,9 @@ namespace Zend\Log\Writer; -use Zend\Log\Formatter; -use Zend\Log\Exception; use Zend\Db\Adapter\Adapter; +use Zend\Log\Exception; +use Zend\Log\Formatter; /** * @category Zend diff --git a/src/Writer/Mail.php b/src/Writer/Mail.php index 61a7b229..7200bc14 100644 --- a/src/Writer/Mail.php +++ b/src/Writer/Mail.php @@ -10,8 +10,8 @@ namespace Zend\Log\Writer; -use Zend\Log\Formatter\Simple as SimpleFormatter; use Zend\Log\Exception; +use Zend\Log\Formatter\Simple as SimpleFormatter; use Zend\Mail\Message as MailMessage; use Zend\Mail\Transport; use Zend\Mail\Transport\Exception as TransportException; diff --git a/src/Writer/Stream.php b/src/Writer/Stream.php index 0c085414..9c4c55a7 100644 --- a/src/Writer/Stream.php +++ b/src/Writer/Stream.php @@ -10,8 +10,8 @@ namespace Zend\Log\Writer; -use Zend\Log\Formatter\Simple as SimpleFormatter; use Zend\Log\Exception; +use Zend\Log\Formatter\Simple as SimpleFormatter; /** * @category Zend diff --git a/src/Writer/Syslog.php b/src/Writer/Syslog.php index e8ae6275..2a9ad449 100644 --- a/src/Writer/Syslog.php +++ b/src/Writer/Syslog.php @@ -10,9 +10,9 @@ namespace Zend\Log\Writer; -use Zend\Log\Logger; -use Zend\Log\Formatter; use Zend\Log\Exception; +use Zend\Log\Formatter; +use Zend\Log\Logger; /** * Writes log messages to syslog diff --git a/src/Writer/WriterInterface.php b/src/Writer/WriterInterface.php index da37c638..9073775a 100644 --- a/src/Writer/WriterInterface.php +++ b/src/Writer/WriterInterface.php @@ -10,8 +10,8 @@ namespace Zend\Log\Writer; -use Zend\Log\Formatter\FormatterInterface as Formatter; use Zend\Log\Filter\FilterInterface as Filter; +use Zend\Log\Formatter\FormatterInterface as Formatter; /** * @category Zend