Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelkucera committed Dec 30, 2015
1 parent c2ab2c8 commit a9fd641
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
17 changes: 10 additions & 7 deletions src/Monolog/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,25 @@

namespace Kucera\Monolog;

use Kucera\Monolog\Handler\BlueScreenHandler;
use Monolog\Logger;
use Tracy\BlueScreen;
use Tracy\Debugger;

class Factory
{

/**
* @param array $info
* @return \Tracy\BlueScreen
* @return BlueScreen
*/
public static function blueScreen(array $info = array())
{
$blueScreen = new \Tracy\BlueScreen();
$blueScreen = new BlueScreen();
$blueScreen->info = array_merge(array(
'PHP ' . PHP_VERSION,
isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : NULL,
'Tracy ' . \Tracy\Debugger::$version,
'Tracy ' . Debugger::$version,
), $info);
return $blueScreen;
}
Expand All @@ -30,13 +33,13 @@ public static function blueScreen(array $info = array())
* @param string $logDirectory
* @param int $level
* @param bool $bubble
* @param \Tracy\BlueScreen $blueScreen
* @return Handler\BlueScreenHandler
* @param BlueScreen $blueScreen
* @return BlueScreenHandler
*/
public static function blueScreenHandler($logDirectory, $level = Logger::DEBUG, $bubble = TRUE, \Tracy\BlueScreen $blueScreen = NULL)
public static function blueScreenHandler($logDirectory, $level = Logger::DEBUG, $bubble = TRUE, BlueScreen $blueScreen = NULL)
{
$blueScreen = $blueScreen ?: static::blueScreen();
return new Handler\BlueScreenHandler($blueScreen, $logDirectory, $level, $bubble);
return new BlueScreenHandler($blueScreen, $logDirectory, $level, $bubble);
}

}
7 changes: 4 additions & 3 deletions src/Monolog/Handler/BlueScreenHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@
namespace Kucera\Monolog\Handler;

use Monolog\Logger;
use Tracy\BlueScreen;

class BlueScreenHandler extends \Monolog\Handler\AbstractProcessingHandler
{

/** @var \Tracy\BlueScreen */
/** @var BlueScreen */
private $blueScreen;

/** @var string */
private $logDirectory;

/**
* @param \Tracy\BlueScreen $blueScreen
* @param BlueScreen $blueScreen
* @param bool $logDirectory
* @param int $level
* @param bool $bubble
*/
public function __construct(\Tracy\BlueScreen $blueScreen, $logDirectory, $level = Logger::DEBUG, $bubble = TRUE)
public function __construct(BlueScreen $blueScreen, $logDirectory, $level = Logger::DEBUG, $bubble = TRUE)
{
$logDirectory = realpath($logDirectory);
if ($logDirectory === FALSE) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Monolog/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Kucera\Monolog\Factory;

class BlueScreenFactoryTest extends TestCase
class BlueScreenFactoryTest extends \Kucera\Monolog\Tests\TestCase
{

public function testBlueScreen()
Expand Down

0 comments on commit a9fd641

Please sign in to comment.