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

Commit

Permalink
CS cleanup of exception classes
Browse files Browse the repository at this point in the history
- Ensure all have docblocks
- Only interfaces need to be on following line of class/interface
  declarations (PSR-1/2)
  • Loading branch information
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 31 deletions.
7 changes: 3 additions & 4 deletions src/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class BadMethodCallException
extends \BadMethodCallException
implements ExceptionInterface
class BadMethodCallException extends \BadMethodCallException implements
ExceptionInterface
{
}
}
5 changes: 2 additions & 3 deletions src/Exception/ExtensionNotLoadedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class ExtensionNotLoadedException
extends RuntimeException
class ExtensionNotLoadedException extends RuntimeException
{
}
}
7 changes: 3 additions & 4 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class InvalidArgumentException
extends \InvalidArgumentException
implements ExceptionInterface
class InvalidArgumentException extends \InvalidArgumentException implements
ExceptionInterface
{
}
}
6 changes: 2 additions & 4 deletions src/Exception/LogicException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class LogicException
extends \LogicException
implements ExceptionInterface
class LogicException extends \LogicException implements ExceptionInterface
{
}
}
6 changes: 2 additions & 4 deletions src/Exception/OutOfCapacityException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class OutOfCapacityException
extends \OverflowException
implements ExceptionInterface
class OutOfCapacityException extends \OverflowException implements ExceptionInterface
{
}
}
6 changes: 2 additions & 4 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class RuntimeException
extends \RuntimeException
implements ExceptionInterface
class RuntimeException extends \RuntimeException implements ExceptionInterface
{
}
}
7 changes: 3 additions & 4 deletions src/Exception/UnexpectedValueException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class UnexpectedValueException
extends \UnexpectedValueException
implements ExceptionInterface
class UnexpectedValueException extends \UnexpectedValueException implements
ExceptionInterface
{
}
}
7 changes: 3 additions & 4 deletions src/Exception/UnsupportedMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class UnsupportedMethodCallException
extends \BadMethodCallException
implements ExceptionInterface
class UnsupportedMethodCallException extends \BadMethodCallException implements
ExceptionInterface
{
}
}

0 comments on commit 3e547a9

Please sign in to comment.