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

Commit

Permalink
Revert "Merge branch 'livedocx-2.0' of http://github.com/jonathanmaro…
Browse files Browse the repository at this point in the history
…n/zf2 into merges/jonathanmaron-livedocx"

This reverts commit 239626850ab598a70f0b6008bdeb002c6f81a39f, reversing
changes made to 3addea5bec77bafc51fa1a9605a1c31a10f442f8.
  • Loading branch information
weierophinney committed Nov 2, 2010
2 parents b56c3c3 + 122c95e commit 66f51dc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/Filter/Priority.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Priority extends AbstractFilter
* @param string $operator Comparison operator
* @throws \Zend\Log\Exception\InvalidArgumentException
*/
public function __construct($priority, $operator = \NULL)
public function __construct($priority, $operator = null)
{
if (! is_integer($priority)) {
throw new \Zend\Log\Exception\InvalidArgumentException('Priority must be an integer');
Expand Down Expand Up @@ -88,7 +88,7 @@ static public function factory($config = array())
}

return new self(
$config['priority'],
(int) $config['priority'],
$config['operator']
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ protected function _constructFromConfig($type, $config, $namespace)
);
}

return call_user_func(array($className, 'factory'), $params);
return $className::factory($params);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static public function factory($config = array())
*
* @throws \Zend\Log\Exception\InvalidArgumentException
*/
public function setFormatter(Zend_Log_Formatter_Interface $formatter)
public function setFormatter(\Zend\Log\Formatter $formatter)
{
throw new Log\Exception\InvalidArgumentException(get_class() . ' does not support formatting');
}
Expand Down
28 changes: 14 additions & 14 deletions src/Writer/Firebug.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @uses \Zend\Log\Logger
* @uses \Zend\Log\Formatter\Firebug
* @uses \Zend\Log\Writer\AbstractWriter
* @uses \Zend\Wildfire\Plugin\FirePhp\FirePhp
* @uses \Zend\Wildfire\Plugin\FirePhp
* @category Zend
* @package Zend_Log
* @subpackage Writer
Expand All @@ -46,20 +46,20 @@ class Firebug extends AbstractWriter
* Maps logging priorities to logging display styles
* @var array
*/
protected $_priorityStyles = array(Log\Logger::EMERG => FirePhp\FirePhp::ERROR,
Log\Logger::ALERT => FirePhp\FirePhp::ERROR,
Log\Logger::CRIT => FirePhp\FirePhp::ERROR,
Log\Logger::ERR => FirePhp\FirePhp::ERROR,
Log\Logger::WARN => FirePhp\FirePhp::WARN,
Log\Logger::NOTICE => FirePhp\FirePhp::INFO,
Log\Logger::INFO => FirePhp\FirePhp::INFO,
Log\Logger::DEBUG => FirePhp\FirePhp::LOG);
protected $_priorityStyles = array(Log\Logger::EMERG => FirePhp::ERROR,
Log\Logger::ALERT => FirePhp::ERROR,
Log\Logger::CRIT => FirePhp::ERROR,
Log\Logger::ERR => FirePhp::ERROR,
Log\Logger::WARN => FirePhp::WARN,
Log\Logger::NOTICE => FirePhp::INFO,
Log\Logger::INFO => FirePhp::INFO,
Log\Logger::DEBUG => FirePhp::LOG);

/**
* The default logging style for un-mapped priorities
* @var string
*/
protected $_defaultPriorityStyle = FirePhp\FirePhp::LOG;
protected $_defaultPriorityStyle = FirePhp::LOG;

/**
* Flag indicating whether the log writer is enabled
Expand Down Expand Up @@ -189,9 +189,9 @@ protected function _write($event)

$label = isset($event['firebugLabel'])?$event['firebugLabel']:null;

FirePhp\FirePhp::getInstance()->send($message,
$label,
$type,
array('traceOffset'=>6));
FirePhp::getInstance()->send($message,
$label,
$type,
array('traceOffset'=>6));
}
}

0 comments on commit 66f51dc

Please sign in to comment.