Performance, bug and design fixes

This commit is contained in:
Dennis Eichhorn 2016-04-30 22:50:49 +02:00
parent 2e3c475a8f
commit 02e5185e74
4 changed files with 3 additions and 20 deletions

View File

@ -297,7 +297,7 @@ class FileLogger implements LoggerInterface
}
if (self::$verbose) {
echo $message . "\n";
echo $message , "\n";
}
}

View File

@ -59,23 +59,6 @@ class Response extends ResponseAbstract implements RenderableInterface
$this->response = $response;
}
/**
* Push a specific response ID.
*
* @param int $id Response ID
*
* @return void
*
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public function pushResponseId(int $id)
{
ob_start();
echo $this->response[$id];
ob_end_flush();
}
/**
* Remove response by ID.
*

View File

@ -32,7 +32,6 @@ use phpOMS\Utils\Parser\Php\ArrayParser;
*/
class InstallerAbstract
{
/**
* Install module.
*
@ -71,6 +70,7 @@ class InstallerAbstract
$appRoutes = include $destRoutePath;
/** @noinspection PhpIncludeInspection */
$moduleRoutes = include $srcRoutePath;
$appRoutes = array_merge_recursive($appRoutes, $moduleRoutes);
if(is_writable($destRoutePath)) {

View File

@ -135,7 +135,7 @@ abstract class ModuleAbstract
{
$lang = [];
if (($path = realpath($oldPath = __DIR__ . '/../../Modules/' . static::MODULE_NAME . '/Theme/' . $destination . '/Lang/' . $language . '.lang.php')) === false) {
throw new PathException($oldPath);
return $lang;
}
/** @noinspection PhpIncludeInspection */