Skip to content

Commit

Permalink
Fixed found issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Jan 13, 2016
1 parent 4662b45 commit c5b22d2
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function run()
http_response_code($response->getStatusCode());

// Gets the selected route and sets it as the content.
if (! $response->getBody()) {
if ( ! $response->getBody() || $response->getBody() == '') {
$response->getBody()->write($route);
}

Expand Down
8 changes: 4 additions & 4 deletions src/Components.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use Interop\Container\ContainerInterface;
use Rougin\Slytherin\IoC\ContainerInterface;
use Rougin\Slytherin\Debug\DebuggerInterface;
use Rougin\Slytherin\Dispatching\DispatcherInterface;
use Rougin\Slytherin\Debugger\DebuggerInterface;

/**
* Component Collection
Expand All @@ -26,7 +26,7 @@ class Components
/**
* Gets an instance of the container.
*
* @return \Interop\Container\ContainerInterface
* @return \Rougin\Slytherin\IoC\ContainerInterface
*/
public function getContainer()
{
Expand All @@ -36,7 +36,7 @@ public function getContainer()
/**
* Sets the container.
*
* @param \Interop\Container\ContainerInterface $container
* @param \Rougin\Slytherin\IoC\ContainerInterface $container
*/
public function setContainer(ContainerInterface $container)
{
Expand Down
2 changes: 0 additions & 2 deletions src/Debug/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Rougin\Slytherin\Debug;

use Rougin\Slytherin\Debug\DebuggerInterface;

/**
* Debugger
*
Expand Down
1 change: 0 additions & 1 deletion src/Debug/WhoopsDebugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Whoops\Run;
use Whoops\Handler\PrettyPageHandler;
use Rougin\Slytherin\Debug\DebuggerInterface;

/**
* Debugger
Expand Down
1 change: 0 additions & 1 deletion src/Dispatching/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use UnexpectedValueException;
use Rougin\Slytherin\Dispatching\RouterInterface;
use Rougin\Slytherin\Dispatching\DispatcherInterface;

/**
* Dispatcher
Expand Down
2 changes: 0 additions & 2 deletions src/Dispatching/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Rougin\Slytherin\Dispatching;

use Rougin\Slytherin\Dispatching\RouterInterface;

/**
* Dispatcher
*
Expand Down
1 change: 0 additions & 1 deletion src/IoC/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Rougin\Slytherin\IoC;

use ReflectionClass;
use Rougin\Slytherin\IoC\ContainerInterface;
use Rougin\Slytherin\IoC\Exception\NotFoundException;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Template/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use InvalidArgumentException;
use RecursiveIteratorIterator;
use RecursiveDirectoryIterator;
use Rougin\Slytherin\Template\RendererInterface;

/**
* Renderer
Expand Down
1 change: 0 additions & 1 deletion src/Template/TwigRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Rougin\Slytherin\Template;

use Twig_Environment;
use Rougin\Slytherin\Template\RendererInterface;

/**
* Renderer
Expand Down

0 comments on commit c5b22d2

Please sign in to comment.