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

Commit

Permalink
Merge branch 'master' into markup
Browse files Browse the repository at this point in the history
Conflicts:
	library/Zend/Markup/Parser/Textile.php
	library/Zend/Markup/Renderer/AbstractRenderer.php
	library/Zend/Markup/Renderer/Html.php
  • Loading branch information
kokx committed Oct 30, 2010
2 parents 96e1d5b + bbae534 commit 369dd16
Show file tree
Hide file tree
Showing 41 changed files with 155 additions and 188 deletions.
7 changes: 2 additions & 5 deletions src/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @package Zend_Log
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -25,12 +24,10 @@
namespace Zend\Log;

/**
* @uses \Zend\Exception
* @category Zend
* @package Zend_Log
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
class Exception extends \Zend\Exception
{}
interface Exception
{}
7 changes: 7 additions & 0 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
namespace Zend\Log\Exception;

class InvalidArgumentException
extends \InvalidArgumentException
implements \Zend\Log\Exception
{}
7 changes: 7 additions & 0 deletions src/Exception/NotImplementedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
namespace Zend\Log\Exception;

class NotImplementedException
extends \InvalidArgumentException
implements \Zend\Log\Exception
{}
7 changes: 7 additions & 0 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
namespace Zend\Log\Exception;

class RuntimeException
extends \RuntimeException
implements \Zend\Log\Exception
{}
2 changes: 0 additions & 2 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @package Zend_Log
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -29,7 +28,6 @@
* @package Zend_Log
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
interface Factory
{
Expand Down
2 changes: 0 additions & 2 deletions src/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -31,7 +30,6 @@
* @subpackage Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
interface Filter
{
Expand Down
8 changes: 3 additions & 5 deletions src/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Writer
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -28,15 +27,14 @@
Zend\Log\Filter;

/**
* @uses \Zend\Log\Exception
* @uses \Zend\Log\Exception\InvalidArgumentException
* @uses \Zend\Log\Filter\FilterInterface
* @uses \Zend\Log\FactoryInterface
* @category Zend
* @package Zend_Log
* @subpackage Writer
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
abstract class AbstractFilter implements Filter, Factory
{
Expand All @@ -45,7 +43,7 @@ abstract class AbstractFilter implements Filter, Factory
*
* @param array|\Zend\Config\Config $config \Zend\Config\Config or Array
* @return array
* @throws \Zend\Log\Exception
* @throws \Zend\Log\Exception\InvalidArgumentException
*/
static protected function _parseConfig($config)
{
Expand All @@ -54,7 +52,7 @@ static protected function _parseConfig($config)
}

if (!is_array($config)) {
throw new \Zend\Log\Exception('Configuration must be an array or instance of Zend\\Config\\Config');
throw new \Zend\Log\Exception\InvalidArgumentException('Configuration must be an array or instance of Zend\Config\Config');
}

return $config;
Expand Down
9 changes: 3 additions & 6 deletions src/Filter/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -26,14 +25,13 @@
namespace Zend\Log\Filter;

/**
* @uses \Zend\Log\Exception
* @uses \Zend\Log\Exception\InvalidArgumentException
* @uses \Zend\Log\Filter\AbstractFilter
* @category Zend
* @package Zend_Log
* @subpackage Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
class Message extends AbstractFilter
{
Expand All @@ -46,12 +44,12 @@ class Message extends AbstractFilter
* Filter out any log messages not matching $regexp.
*
* @param string $regexp Regular expression to test the log message
* @throws \Zend\Log\Exception
* @throws \Zend\Log\Exception\InvalidArgumentException
*/
public function __construct($regexp)
{
if (@preg_match($regexp, '') === false) {
throw new \Zend\Log\Exception("Invalid regular expression '$regexp'");
throw new \Zend\Log\Exception\InvalidArgumentException("Invalid regular expression '$regexp'");
}
$this->_regexp = $regexp;
}
Expand All @@ -61,7 +59,6 @@ public function __construct($regexp)
*
* @param array|\Zend\Config\Config $config
* @return \Zend\Log\Filter\Message
* @throws \Zend\Log\Exception
*/
static public function factory($config = array())
{
Expand Down
12 changes: 5 additions & 7 deletions src/Filter/Priority.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -26,14 +25,13 @@
namespace Zend\Log\Filter;

/**
* @uses \Zend\Log\Exception
* @uses \Zend\Log\Exception\InvalidArgumentException
* @uses \Zend\Log\Filter\AbstractFilter
* @category Zend
* @package Zend_Log
* @subpackage Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
class Priority extends AbstractFilter
{
Expand All @@ -53,12 +51,12 @@ class Priority extends AbstractFilter
*
* @param integer $priority Priority
* @param string $operator Comparison operator
* @throws \Zend\Log\Exception
* @throws \Zend\Log\Exception\InvalidArgumentException
*/
public function __construct($priority, $operator = null)
{
if (! is_integer($priority)) {
throw new \Zend\Log\Exception('Priority must be an integer');
throw new \Zend\Log\Exception\InvalidArgumentException('Priority must be an integer');
}

$this->_priority = $priority;
Expand All @@ -70,7 +68,7 @@ public function __construct($priority, $operator = null)
*
* @param array|\Zend\Config\Config $config
* @return \Zend\Log\Filter\Priority
* @throws \Zend\Log\Exception
* @throws \Zend\Log\Exception\InvalidArgumentException
*/
static public function factory($config = array())
{
Expand All @@ -86,7 +84,7 @@ static public function factory($config = array())
}

if (!is_numeric($config['priority'])) {
throw new \Zend\Log\Exception('Priority must be an integer.');
throw new \Zend\Log\Exception\InvalidArgumentException('Priority must be an integer.');
}

return new self(
Expand Down
3 changes: 0 additions & 3 deletions src/Filter/SuppressFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -32,7 +31,6 @@
* @subpackage Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
class SuppressFilter extends AbstractFilter
{
Expand Down Expand Up @@ -71,7 +69,6 @@ public function accept($event)
*
* @param array|\Zend\Config\Config $config
* @return \Zend\Log\Filter\Suppress
* @throws \Zend\Log\Exception
*/
static public function factory($config = array())
{
Expand Down
2 changes: 0 additions & 2 deletions src/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Formatter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -31,7 +30,6 @@
* @subpackage Formatter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
interface Formatter
{
Expand Down
1 change: 0 additions & 1 deletion src/Formatter/Firebug.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Formatter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
8 changes: 3 additions & 5 deletions src/Formatter/Simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Formatter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -27,14 +26,13 @@
use \Zend\Log\Formatter;

/**
* @uses \Zend\Log\Exception
* @uses \Zend\Log\Exception\InvalidArgumentException
* @uses \Zend\Log\Formatter\FormatterInterface
* @category Zend
* @package Zend_Log
* @subpackage Formatter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
class Simple implements Formatter
{
Expand All @@ -49,7 +47,7 @@ class Simple implements Formatter
* Class constructor
*
* @param null|string $format Format specifier for log messages
* @throws \Zend\Log\Exception
* @throws \Zend\Log\Exception\InvalidArgumentException
*/
public function __construct($format = null)
{
Expand All @@ -58,7 +56,7 @@ public function __construct($format = null)
}

if (! is_string($format)) {
throw new \Zend\Log\Exception('Format must be a string');
throw new \Zend\Log\Exception\InvalidArgumentException('Format must be a string');
}

$this->_format = $format;
Expand Down
2 changes: 0 additions & 2 deletions src/Formatter/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Formatter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -36,7 +35,6 @@
* @subpackage Formatter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
class Xml implements Formatter
{
Expand Down
Loading

0 comments on commit 369dd16

Please sign in to comment.