Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
[zen-49] Sort import statements
Browse files Browse the repository at this point in the history
- Import statements should be sorted alphabetically
- "implements" lists should as well
  • Loading branch information
weierophinney committed Jul 9, 2012
1 parent d5857c5 commit c2b67ca
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 48 deletions.
2 changes: 1 addition & 1 deletion src/Pattern/AbstractPattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace Zend\Cache\Pattern;

use Zend\Cache\Exception;
use Traversable;
use Zend\Cache\Exception;

/**
* @category Zend
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
use Zend\Cache\Storage\Capabilities;
use Zend\Cache\Storage\Event;
use Zend\Cache\Storage\ExceptionEvent;
use Zend\Cache\Storage\PostEvent;
use Zend\Cache\Storage\Plugin;
use Zend\Cache\Storage\PostEvent;
use Zend\Cache\Storage\StorageInterface;
use Zend\EventManager\EventManager;
use Zend\EventManager\EventsCapableInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Adapter/AbstractZendServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

use ArrayObject;
use stdClass;
use Zend\Cache\Storage\Capabilities;
use Zend\Cache\Exception;
use Zend\Cache\Storage\Capabilities;

/**
* @category Zend
Expand Down
6 changes: 3 additions & 3 deletions src/Storage/Adapter/Apc.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
use stdClass;
use Traversable;
use Zend\Cache\Exception;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\Capabilities;
use Zend\Cache\Storage\ClearByPrefixInterface;
use Zend\Cache\Storage\ClearByNamespaceInterface;
use Zend\Cache\Storage\FlushableInterface;
use Zend\Cache\Storage\IterableInterface;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\TotalSpaceCapableInterface;

/**
Expand All @@ -29,11 +29,11 @@
* @subpackage Storage
*/
class Apc extends AbstractAdapter implements
ClearByPrefixInterface,
AvailableSpaceCapableInterface,
ClearByNamespaceInterface,
ClearByPrefixInterface,
FlushableInterface,
IterableInterface,
AvailableSpaceCapableInterface,
TotalSpaceCapableInterface
{
/**
Expand Down
1 change: 0 additions & 1 deletion src/Storage/Adapter/ApcIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Zend\Cache\Storage\Adapter;

use APCIterator as BaseApcIterator;
use Zend\Cache\Storage\IterableInterface;
use Zend\Cache\Storage\IteratorInterface;

/**
Expand Down
28 changes: 14 additions & 14 deletions src/Storage/Adapter/Dba.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@

namespace Zend\Cache\Storage\Adapter;

use stdClass,
Zend\Cache\Exception,
Zend\Cache\Storage\Capabilities,
Zend\Cache\Storage\ClearByPrefixInterface,
Zend\Cache\Storage\ClearByNamespaceInterface,
Zend\Cache\Storage\FlushableInterface,
Zend\Cache\Storage\IterableInterface,
Zend\Cache\Storage\AvailableSpaceCapableInterface,
Zend\Cache\Storage\TotalSpaceCapableInterface,
Zend\Cache\Storage\OptimizableInterface,
Zend\Stdlib\ErrorHandler;
use stdClass;
use Zend\Cache\Exception;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\Capabilities;
use Zend\Cache\Storage\ClearByNamespaceInterface;
use Zend\Cache\Storage\ClearByPrefixInterface;
use Zend\Cache\Storage\FlushableInterface;
use Zend\Cache\Storage\IterableInterface;
use Zend\Cache\Storage\OptimizableInterface;
use Zend\Cache\Storage\TotalSpaceCapableInterface;
use Zend\Stdlib\ErrorHandler;

class Dba extends AbstractAdapter implements
TotalSpaceCapableInterface,
AvailableSpaceCapableInterface,
FlushableInterface,
ClearByNamespaceInterface,
ClearByPrefixInterface,
FlushableInterface,
IterableInterface,
OptimizableInterface,
IterableInterface
TotalSpaceCapableInterface
{
/**
* The DBA resource handle
Expand Down
5 changes: 2 additions & 3 deletions src/Storage/Adapter/DbaIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

namespace Zend\Cache\Storage\Adapter;

use Zend\Cache\Exception,
Zend\Cache\Storage\IterableInterface,
Zend\Cache\Storage\IteratorInterface;
use Zend\Cache\Exception;
use Zend\Cache\Storage\IteratorInterface;

/**
* @category Zend
Expand Down
8 changes: 4 additions & 4 deletions src/Storage/Adapter/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@
namespace Zend\Cache\Storage\Adapter;

use ArrayObject;
use Exception as BaseException;
use GlobIterator;
use stdClass;
use Exception as BaseException;
use Zend\Cache\Exception;
use Zend\Cache\Storage;
use Zend\Cache\Storage\StorageInterface;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\Capabilities;
use Zend\Cache\Storage\ClearExpiredInterface;
use Zend\Cache\Storage\ClearByNamespaceInterface;
use Zend\Cache\Storage\ClearByPrefixInterface;
use Zend\Cache\Storage\ClearExpiredInterface;
use Zend\Cache\Storage\FlushableInterface;
use Zend\Cache\Storage\IterableInterface;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\OptimizableInterface;
use Zend\Cache\Storage\StorageInterface;
use Zend\Cache\Storage\TaggableInterface;
use Zend\Cache\Storage\TotalSpaceCapableInterface;
use Zend\Stdlib\ErrorHandler;
Expand Down
1 change: 0 additions & 1 deletion src/Storage/Adapter/FilesystemIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Zend\Cache\Storage\Adapter;

use GlobIterator;
use Zend\Cache\Storage\IterableInterface;
use Zend\Cache\Storage\IteratorInterface;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Storage/Adapter/KeyListIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Zend\Cache\Storage\Adapter;

use Countable;
use Zend\Cache\Storage\IterableInterface;
use Zend\Cache\Storage\IteratorInterface;
use Zend\Cache\Storage\StorageInterface;

Expand Down
6 changes: 3 additions & 3 deletions src/Storage/Adapter/Memcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
use stdClass;
use Traversable;
use Zend\Cache\Exception;
use Zend\Cache\Storage\Event;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\CallbackEvent;
use Zend\Cache\Storage\Capabilities;
use Zend\Cache\Storage\Event;
use Zend\Cache\Storage\FlushableInterface;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\TotalSpaceCapableInterface;

/**
Expand All @@ -29,8 +29,8 @@
* @subpackage Storage
*/
class Memcached extends AbstractAdapter implements
FlushableInterface,
AvailableSpaceCapableInterface,
FlushableInterface,
TotalSpaceCapableInterface
{
/**
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
use ArrayObject;
use stdClass;
use Zend\Cache\Exception;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\Capabilities;
use Zend\Cache\Storage\ClearExpiredInterface;
use Zend\Cache\Storage\ClearByPrefixInterface;
use Zend\Cache\Storage\ClearExpiredInterface;
use Zend\Cache\Storage\FlushableInterface;
use Zend\Cache\Storage\IterableInterface;
use Zend\Cache\Storage\TaggableInterface;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\TotalSpaceCapableInterface;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Storage/Adapter/WinCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
use ArrayObject;
use stdClass;
use Zend\Cache\Exception;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\Capabilities;
use Zend\Cache\Storage\FlushableInterface;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\TotalSpaceCapableInterface;

/**
Expand All @@ -24,8 +24,8 @@
* @subpackage Storage
*/
class WinCache extends AbstractAdapter implements
FlushableInterface,
AvailableSpaceCapableInterface,
FlushableInterface,
TotalSpaceCapableInterface
{

Expand Down
11 changes: 6 additions & 5 deletions src/Storage/Adapter/ZendServerDisk.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

use ArrayObject;
use Zend\Cache\Exception;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\ClearByNamespaceInterface;
use Zend\Cache\Storage\FlushableInterface;
use Zend\Cache\Storage\AvailableSpaceCapableInterface;
use Zend\Cache\Storage\TotalSpaceCapableInterface;
use Zend\Stdlib\ErrorHandler;

Expand All @@ -23,10 +23,11 @@
* @package Zend_Cache
* @subpackage Storage
*/
class ZendServerDisk
extends AbstractZendServer
implements FlushableInterface, ClearByNamespaceInterface,
AvailableSpaceCapableInterface, TotalSpaceCapableInterface
class ZendServerDisk extends AbstractZendServer implements
AvailableSpaceCapableInterface,
ClearByNamespaceInterface,
FlushableInterface,
TotalSpaceCapableInterface
{

/**
Expand Down
7 changes: 4 additions & 3 deletions src/Storage/Adapter/ZendServerShm.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
* @package Zend_Cache
* @subpackage Storage
*/
class ZendServerShm
extends AbstractZendServer
implements FlushableInterface, ClearByNamespaceInterface, TotalSpaceCapableInterface
class ZendServerShm extends AbstractZendServer implements
ClearByNamespaceInterface,
FlushableInterface,
TotalSpaceCapableInterface
{

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Storage/IterableInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@

namespace Zend\Cache\Storage;

use IteratorAggregate;

/**
* @category Zend
* @package Zend_Cache
* @subpackage Storage
*
* @method IteratorInterface getIterator() Get the storage iterator
*/
interface IterableInterface extends \IteratorAggregate
interface IterableInterface extends IteratorAggregate
{
}
4 changes: 3 additions & 1 deletion src/Storage/IteratorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@

namespace Zend\Cache\Storage;

use Iterator;

/**
* @category Zend
* @package Zend_Cache
* @subpackage Storage
*/
interface IteratorInterface extends \Iterator
interface IteratorInterface extends Iterator
{

const CURRENT_AS_SELF = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Plugin/ClearExpiredByFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
namespace Zend\Cache\Storage\Plugin;

use Traversable;
use Zend\EventManager\EventManagerInterface;
use Zend\Cache\Exception;
use Zend\Cache\Storage\ClearExpiredInterface;
use Zend\Cache\Storage\StorageInterface;
use Zend\Cache\Storage\PostEvent;
use Zend\EventManager\EventManagerInterface;

/**
* @category Zend
Expand Down

0 comments on commit c2b67ca

Please sign in to comment.