Skip to content
Permalink
Browse files

Apply fixes from StyleCI

  • Loading branch information...
jbelien authored and StyleCIBot committed Jun 8, 2019
1 parent 29008cd commit 9e79690793d9c64f4837cd2051f8f95709b8d8ed
@@ -12,14 +12,14 @@
declare(strict_types=1);
chdir(__DIR__.'/../');
chdir(__DIR__ . '/../');
require 'vendor/autoload.php';
$config = include 'config/config.php';
if (!isset($config['config_cache_path'])) {
echo 'No configuration cache path found'.PHP_EOL;
echo 'No configuration cache path found' . PHP_EOL;
exit(0);
}
@@ -39,10 +39,10 @@ class_exists(\Zend\Expressive\Swoole\ConfigProvider::class)
// - `*.global.php`
// - `local.php`
// - `*.local.php`
new PhpFileProvider(realpath(__DIR__).'/autoload/{{,*.}global,{,*.}local}.php'),
new PhpFileProvider(realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php'),
// Load development config if it exists
new PhpFileProvider(realpath(__DIR__).'/development.config.php'),
new PhpFileProvider(realpath(__DIR__) . '/development.config.php'),
], $cacheConfig['config_cache_path']);
return $aggregator->getMergedConfig();
@@ -5,7 +5,7 @@
use Zend\ServiceManager\ServiceManager;
// Load configuration
$config = require __DIR__.'/config.php';
$config = require __DIR__ . '/config.php';
$dependencies = $config['dependencies'];
$dependencies['services']['config'] = $config;
@@ -29,16 +29,16 @@ public function handle(ServerRequestInterface $request): ResponseInterface
}
if (!is_null($fname)) {
if (file_exists($directory.'/'.$fname.'.EML')) {
return new XmlResponse(file_get_contents($directory.'/'.$fname.'.EML'), 200, [
if (file_exists($directory . '/' . $fname . '.EML')) {
return new XmlResponse(file_get_contents($directory . '/' . $fname . '.EML'), 200, [
'Cache-Control' => 'max-age=300, public',
]);
} else {
return new EmptyResponse(404);
}
}
$glob = glob($directory.'/*.EML');
$glob = glob($directory . '/*.EML');
$files = array_map(function ($path) {
return basename($path);
}, $glob);
@@ -42,6 +42,6 @@ public static function fromArray(array $record): self
public function getDateTime() : DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -42,6 +42,6 @@ public static function fromArray(array $record): self
public function getDateTime() : DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -39,6 +39,6 @@ public static function fromArray(array $record): self
public function getDateTime() : DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -39,6 +39,6 @@ public static function fromArray(array $record): self
public function getDateTime() : DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -42,6 +42,6 @@ public static function fromArray(array $record): self
public function getDateTime() : DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -48,6 +48,6 @@ public static function fromArray(array $record): self
public function getDateTime(): DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -45,6 +45,6 @@ public static function fromArray(array $record): self
public function getDateTime() : DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -48,6 +48,6 @@ public static function fromArray(array $record): self
public function getDateTime(): DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -48,6 +48,6 @@ public static function fromArray(array $record): self
public function getDateTime(): DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -48,9 +48,9 @@ public function __construct(int $year, string $type, int $status, string $level,
}
if ($this->status === 0 && in_array($this->level, ['K', 'M', 'I']) && !is_null($this->c)) {
$this->file = $directory.sprintf('R%d%s%s_%s.%s', $this->status, $this->level, $this->nis, $this->c, $this->type);
$this->file = $directory . sprintf('R%d%s%s_%s.%s', $this->status, $this->level, $this->nis, $this->c, $this->type);
} else {
$this->file = $directory.sprintf('R%d%s%s.%s', $this->status, $this->level, $this->nis, $this->type);
$this->file = $directory . sprintf('R%d%s%s.%s', $this->status, $this->level, $this->nis, $this->type);
}
$this->metadata = $this->readG();
@@ -54,6 +54,6 @@ public static function fromArray(array $record): self
public function getDateTime(): DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}
@@ -48,6 +48,6 @@ public static function fromArray(array $record): self
public function getDateTime() : DateTime
{
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date.' '.$this->time);
return DateTime::createFromFormat('d/m/Y H:i:s', $this->date . ' ' . $this->time);
}
}

0 comments on commit 9e79690

Please sign in to comment.
You can’t perform that action at this time.