Skip to content
This repository has been archived by the owner on Jan 30, 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
  • Loading branch information
weierophinney committed Jul 9, 2012
1 parent 9341c48 commit 62fffaa
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 21 deletions.
3 changes: 1 addition & 2 deletions src/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace Zend\Json;

use Zend\Json\Exception\RuntimeException;
use Zend\Json\Exception\InvalidArgumentException;
use Zend\Json\Exception\RuntimeException;

/**
* Decode JSON encoded string to PHP variable constructs
Expand Down Expand Up @@ -550,4 +550,3 @@ protected static function _utf162utf8($utf16)
return '';
}
}

3 changes: 1 addition & 2 deletions src/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace Zend\Json;

use Zend\Json\Exception\RecursionException;
use Zend\Json\Exception\InvalidArgumentException;
use Zend\Json\Exception\RecursionException;

/**
* Encode PHP constructs to JSON
Expand Down Expand Up @@ -568,4 +568,3 @@ protected static function _utf82utf16($utf8)
return '';
}
}

5 changes: 2 additions & 3 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* @category Zend
* @package Zend_Json
*/
class InvalidArgumentException
extends \InvalidArgumentException
implements ExceptionInterface
class InvalidArgumentException extends \InvalidArgumentException implements
ExceptionInterface
{}
4 changes: 1 addition & 3 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@
* @category Zend
* @package Zend_Json
*/
class RuntimeException
extends \RuntimeException
implements ExceptionInterface
class RuntimeException extends \RuntimeException implements ExceptionInterface
{}
2 changes: 1 addition & 1 deletion src/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace Zend\Json;

use Zend\Json\Exception\RuntimeException;
use Zend\Json\Exception\RecursionException;
use Zend\Json\Exception\RuntimeException;

/**
* Class for encoding to and decoding from JSON.
Expand Down
4 changes: 3 additions & 1 deletion src/Server/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@

namespace Zend\Json\Server;

use Zend\Server\Cache as ServerCache;

/**
* Zend_Json_Server_Cache: cache Zend_Json_Server server definition and SMD
*
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
class Cache extends \Zend\Server\Cache
class Cache extends ServerCache
{
/**
* Cache a service map description (SMD) to a file
Expand Down
1 change: 0 additions & 1 deletion src/Server/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,3 @@ public function __toString()
return $this->toJson();
}
}

5 changes: 2 additions & 3 deletions src/Server/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @package Zend_Json
* @subpackage Server
*/
class InvalidArgumentException
extends Exception\InvalidArgumentException
implements ExceptionInterface
class InvalidArgumentException extends Exception\InvalidArgumentException implements
ExceptionInterface
{}
5 changes: 2 additions & 3 deletions src/Server/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @package Zend_Json
* @subpackage Server
*/
class RuntimeException
extends Exception\RuntimeException
implements ExceptionInterface
class RuntimeException extends Exception\RuntimeException implements
ExceptionInterface
{}
1 change: 1 addition & 0 deletions src/Server/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Zend\Json\Server;

use Zend\Json;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Smd.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

namespace Zend\Json\Server;

use Zend\Json\Server\Exception\InvalidArgumentException;
use Zend\Json\Server\Exception\RuntimeException;

Expand Down Expand Up @@ -458,4 +459,3 @@ public function __toString()
return $this->toJson();
}
}

3 changes: 2 additions & 1 deletion src/Server/Smd/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
*/

namespace Zend\Json\Server\Smd;
use Zend\Json\Server\Smd;

use Zend\Json\Server;
use Zend\Json\Server\Exception\InvalidArgumentException;
use Zend\Json\Server\Smd;

/**
* Create Service Mapping Description for a method
Expand Down

0 comments on commit 62fffaa

Please sign in to comment.