mirror of
https://github.com/filp/whoops.git
synced 2026-09-05 15:08:19 +00:00
Fix some FQNs, typehints and unused code/vars
This commit is contained in:
@@ -62,7 +62,7 @@ class XmlResponseHandler extends Handler
|
||||
|
||||
/**
|
||||
* @param SimpleXMLElement $node Node to append data to, will be modified in place
|
||||
* @param array|Traversable $data
|
||||
* @param array|\Traversable $data
|
||||
* @return SimpleXMLElement The modified node, for chaining
|
||||
*/
|
||||
private static function addDataToNode(\SimpleXMLElement $node, $data)
|
||||
@@ -93,7 +93,7 @@ class XmlResponseHandler extends Handler
|
||||
/**
|
||||
* The main function for converting to an XML document.
|
||||
*
|
||||
* @param array|Traversable $data
|
||||
* @param array|\Traversable $data
|
||||
* @return string XML
|
||||
*/
|
||||
private static function toXml($data)
|
||||
|
||||
@@ -265,7 +265,7 @@ class TemplateHelper
|
||||
* Sets a single template variable, by its name:
|
||||
*
|
||||
* @param string $variableName
|
||||
* @param mixd $variableValue
|
||||
* @param mixed $variableValue
|
||||
*/
|
||||
public function setVariable($variableName, $variableValue)
|
||||
{
|
||||
|
||||
@@ -49,7 +49,7 @@ class FrameCollectionTest extends TestCase
|
||||
|
||||
/**
|
||||
* @param array $frames
|
||||
* @return Whoops\Exception\FrameCollection
|
||||
* @return \Whoops\Exception\FrameCollection
|
||||
*/
|
||||
private function getFrameCollectionInstance($frames = null)
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ class InspectorTest extends TestCase
|
||||
|
||||
/**
|
||||
* @param Exception $exception|null
|
||||
* @return Whoops\Exception\Inspector
|
||||
* @return \Whoops\Exception\Inspector
|
||||
*/
|
||||
protected function getInspectorInstance($exception = null)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ use Whoops\TestCase;
|
||||
class JsonResponseHandlerTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @return Whoops\Handler\JsonResponseHandler
|
||||
* @return \Whoops\Handler\JsonResponseHandler
|
||||
*/
|
||||
private function getHandler()
|
||||
{
|
||||
|
||||
@@ -14,9 +14,9 @@ use Whoops\Exception\Frame;
|
||||
class PlainTextHandlerTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @throws InvalidArgumentException If argument is not null or a LoggerInterface
|
||||
* @param Psr\Log\LoggerInterface|null $logger
|
||||
* @return Whoops\Handler\PlainTextHandler
|
||||
* @throws \InvalidArgumentException If argument is not null or a LoggerInterface
|
||||
* @param \Psr\Log\LoggerInterface|null $logger
|
||||
* @return \Whoops\Handler\PlainTextHandler
|
||||
*/
|
||||
private function getHandler($logger = null)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ class PlainTextHandlerTest extends TestCase
|
||||
/**
|
||||
* @covers Whoops\Handler\PlainTextHandler::__construct
|
||||
* @covers Whoops\Handler\PlainTextHandler::setLogger
|
||||
* @expectedException InvalidArgumentException
|
||||
* @expectedException \InvalidArgumentException
|
||||
*/
|
||||
public function testConstructor()
|
||||
{
|
||||
|
||||
@@ -156,7 +156,7 @@ class PrettyPageHandlerTest extends TestCase
|
||||
$expected3 = ['oh my' => 'how times have changed!'];
|
||||
|
||||
// Test inspector parameter in data table callback
|
||||
$table4 = function (\Whoops\Exception\Inspector $inspector) use ($expected1) {
|
||||
$table4 = function (\Whoops\Exception\Inspector $inspector) {
|
||||
return array(
|
||||
'Exception class' => get_class($inspector->getException()),
|
||||
'Exception message' => $inspector->getExceptionMessage(),
|
||||
|
||||
Reference in New Issue
Block a user