Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien authored and StyleCIBot committed Jun 8, 2019
1 parent 13f047a commit 44e27b6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/routes.php
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

use Psr\Container\ContainerInterface;
use Zend\Expressive\Application;
Expand Down
4 changes: 2 additions & 2 deletions src/App/Handler/FormatR/ResultHandler.php
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace App\Handler\FormatR;

Expand Down Expand Up @@ -104,7 +104,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface

foreach ($count0 as $nis => $count) {
$fname1 = sprintf('R1%s%s.%s', $level, $nis, $type);
$fname0 = sprintf('R0%s%s_%s.%s', $level, $nis, str_pad((string)$count, 3, '0', STR_PAD_LEFT), $type);
$fname0 = sprintf('R0%s%s_%s.%s', $level, $nis, str_pad((string) $count, 3, '0', STR_PAD_LEFT), $type);

if (!in_array($fname1, $files)) {
$files[] = $fname0;
Expand Down
6 changes: 3 additions & 3 deletions src/App/Reader/FormatR/Result.php
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace App\Reader\FormatR;

Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/App/Reader/FormatR/Result/C.php
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace App\Reader\FormatR\Result;

Expand Down
4 changes: 2 additions & 2 deletions src/App/Reader/FormatR/Result/G.php
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace App\Reader\FormatR\Result;

Expand Down Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion src/App/Reader/FormatR/Result/L.php
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace App\Reader\FormatR\Result;

Expand Down
2 changes: 1 addition & 1 deletion src/App/Reader/FormatR/Result/S.php
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace App\Reader\FormatR\Result;

Expand Down

0 comments on commit 44e27b6

Please sign in to comment.