Skip to content

Commit

Permalink
Refactor: move Db class inside Checker
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 29, 2018
1 parent 8708910 commit 5d301c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
@@ -1,8 +1,8 @@
<?php

namespace ErrorHeroModule\Spec\Handler\Writer;
namespace ErrorHeroModule\Spec\Handler\Writer\Checker;

use ErrorHeroModule\Handler\Writer\Db;
use ErrorHeroModule\Handler\Writer\Checker\Db;
use Kahlan\Plugin\Double;
use ReflectionProperty;
use Zend\Db\ResultSet\ResultSet;
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/Logging.php
Expand Up @@ -133,7 +133,7 @@ private function isExists($errorFile, $errorLine, $errorMessage, $url)
foreach ($writers as $writer) {
if ($writer instanceof Db) {
try {
$handlerWriterDb = new Writer\Db($writer, $this->configLoggingSettings, $this->logWritersConfig);
$handlerWriterDb = new Writer\Checker\Db($writer, $this->configLoggingSettings, $this->logWritersConfig);
if ($handlerWriterDb->isExists($errorFile, $errorLine, $errorMessage, $url)) {
return true;
}
Expand Down
@@ -1,6 +1,6 @@
<?php

namespace ErrorHeroModule\Handler\Writer;
namespace ErrorHeroModule\Handler\Writer\Checker;

use ReflectionProperty;
use Zend\Db\ResultSet\ResultSet;
Expand Down

0 comments on commit 5d301c6

Please sign in to comment.