Skip to content

Commit

Permalink
Fix sensiolab insight issue
Browse files Browse the repository at this point in the history
Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
  • Loading branch information
feryardiant committed Nov 29, 2015
1 parent 4351631 commit f08916c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions app/src/Handlers/NotFoundHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace App\Handlers;

use Slim\Handlers\NotFound;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;

class NotFoundHandler extends NotFound
Expand All @@ -13,7 +12,7 @@ class NotFoundHandler extends NotFound
protected function renderHtmlErrorMessage(ServerRequestInterface $request)
{
$homeUrl = (string)($request->getUri()->withPath('')->withQuery('')->withFragment(''));
$contentType = 'text/html';
// just comment it for now, $contentType = 'text/html';
$output = <<<END
<html>
<head>
Expand Down
1 change: 1 addition & 0 deletions app/src/Providers/DatabaseProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use Slim\PDO\Database;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use InvalidArgumentException;

class DatabaseProvider implements ServiceProviderInterface
{
Expand Down
3 changes: 1 addition & 2 deletions app/src/Providers/ViewProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use League\Plates\Engine;
use League\Plates\Extension\Asset;
use League\Plates\Extension\ExtensionInterface;
use Psr\Http\Message\ResponseInterface;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use InvalidArgumentException;
Expand Down Expand Up @@ -77,7 +76,7 @@ public function setAssetPath($assetPath)
/**
* Set Asset path from Plates Asset Extension
*
* @param \Psr\Http\Message\ResponseInterface $extension
* @param \League\Plates\Extension\ExtensionInterface $extension
* @return \League\Plates\Engine
*/
public function loadExtension(ExtensionInterface $extension)
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f08916c

Please sign in to comment.