Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robfrawley committed Sep 26, 2016
1 parent 673897a commit eff326e
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 32 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": "~5.6 || ~7.0",
"php": "~7.0",
"psr/log": "~1.0",
"src-run/augustus-reflection-library": "~0.7"
},
Expand Down
5 changes: 0 additions & 5 deletions lib/LoggerAware.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@

namespace SR\Log;

/**
* Logger aware class using logger aware trait.
*/
class LoggerAware
{
use LoggerAwareTrait;
}

/* EOF */
5 changes: 0 additions & 5 deletions lib/LoggerAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
use Psr\Log\LoggerAwareInterface as BaseLoggerAwareInterface;
use Psr\Log\LoggerInterface;

/**
* Interface for logger aware implementations.
*/
interface LoggerAwareInterface extends BaseLoggerAwareInterface
{
/**
Expand All @@ -42,5 +39,3 @@ public function getLogger();
*/
public function setLogger(LoggerInterface $logger = null);
}

/* EOF */
5 changes: 0 additions & 5 deletions lib/LoggerAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

use Psr\Log\LoggerInterface;

/**
* Trait implementing logger aware interface.
*/
trait LoggerAwareTrait
{
/**
Expand Down Expand Up @@ -196,5 +193,3 @@ final private function sanitizeScope($scope)
return in_array($scope, get_class_methods($this->logger), true) ? $scope : false;
}
}

/* EOF */
5 changes: 0 additions & 5 deletions lib/StaticLoggerAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

use Psr\Log\LoggerInterface;

/**
* Interface for static logger aware implementations.
*/
interface StaticLoggerAwareInterface
{
/**
Expand All @@ -39,5 +36,3 @@ public static function getLogger();
*/
public static function setLogger(LoggerInterface $logger = null);
}

/* EOF */
5 changes: 0 additions & 5 deletions lib/StaticLoggerAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
use SR\Reflection\Inspect;
use SR\Reflection\Inspector\MethodInspector;

/**
* Trait implementing static logger aware interface.
*/
trait StaticLoggerAwareTrait
{
/**
Expand Down Expand Up @@ -171,5 +168,3 @@ final static protected function logDebug($message, array $context = [])
return static::$doScopedLog->invokeArgs(static::$loggerAware, [__FUNCTION__, $message, $context]);
}
}

/* EOF */
2 changes: 0 additions & 2 deletions tests/AbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,3 @@ protected function getLoggerMock(array $methods = [])
return $builder->getMockForAbstractClass();
}
}

/* EOF */
2 changes: 0 additions & 2 deletions tests/LoggerAwareTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ protected function getLoggerTraitMock()
->getMockForTrait();
}
}

/* EOF */
2 changes: 0 additions & 2 deletions tests/LoggerStaticAwareTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ protected function getLoggerTraitMock()
->getMockForTrait();
}
}

/* EOF */

0 comments on commit eff326e

Please sign in to comment.