Skip to content

Commit

Permalink
Fix: Run 'make coding-standards'
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 28, 2022
1 parent eed5246 commit 9895b1f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Exception/InvalidRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class InvalidRange extends \InvalidArgumentException implements Exception
{
public static function startYearGreaterThanEndYear(
Year $start,
Year $end
Year $end,
): self {
return new self(\sprintf(
'Start year "%s" can not be greater than end year "%s".',
Expand All @@ -30,7 +30,7 @@ public static function startYearGreaterThanEndYear(

public static function startYearGreaterThanCurrentYear(
Year $start,
Year $current
Year $current,
): self {
return new self(\sprintf(
'Start year "%s" can not be greater than current year "%s".',
Expand Down
4 changes: 2 additions & 2 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private function __construct(
string $name,
Template $template,
Period $period,
Holder $holder
Holder $holder,
) {
$this->name = $name;
$this->period = $period;
Expand All @@ -39,7 +39,7 @@ public static function create(
string $name,
Template $template,
Period $period,
Holder $holder
Holder $holder,
): self {
if ('' === \trim($name)) {
throw Exception\InvalidFile::emptyFileName();
Expand Down
6 changes: 3 additions & 3 deletions src/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private function __construct(
Period $period,
Holder $holder,
?File $file,
Url $url
Url $url,
) {
$this->template = $template;
$this->period = $period;
Expand All @@ -40,7 +40,7 @@ public static function createWithReferenceToLicenseFile(
Period $period,
Holder $holder,
File $file,
Url $url
Url $url,
): self {
return new self(
$template,
Expand All @@ -55,7 +55,7 @@ public static function createWithoutReferenceToLicenseFile(
Template $template,
Period $range,
Holder $holder,
Url $url
Url $url,
): self {
return new self(
$template,
Expand Down
4 changes: 2 additions & 2 deletions src/Range.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private function __construct(string $value)
*/
public static function including(
Year $start,
Year $end
Year $end,
): Period {
if ($start->greaterThan($end)) {
throw Exception\InvalidRange::startYearGreaterThanEndYear(
Expand All @@ -52,7 +52,7 @@ public static function including(
*/
public static function since(
Year $start,
\DateTimeZone $timeZone
\DateTimeZone $timeZone,
): Period {
$now = new \DateTimeImmutable(
'now',
Expand Down
6 changes: 3 additions & 3 deletions src/Type/MIT.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private function __construct(
Template $headerTemplate,
Period $period,
Holder $holder,
Url $url
Url $url,
) {
$file = File::create(
$name,
Expand All @@ -56,7 +56,7 @@ public static function markdown(
string $name,
Period $period,
Holder $holder,
Url $url
Url $url,
): self {
return new self(
$name,
Expand All @@ -72,7 +72,7 @@ public static function text(
string $name,
Period $period,
Holder $holder,
Url $url
Url $url,
): self {
return new self(
$name,
Expand Down
4 changes: 2 additions & 2 deletions src/Type/None.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private function __construct(
Template $headerTemplate,
Period $period,
Holder $holder,
Url $url
Url $url,
) {
$header = Header::createWithoutReferenceToLicenseFile(
$headerTemplate,
Expand All @@ -42,7 +42,7 @@ private function __construct(
public static function text(
Period $period,
Holder $holder,
Url $url
Url $url,
): self {
return new self(
Template::fromFile(__DIR__ . '/../../resource/header/without-reference-to-license-file.txt'),
Expand Down

0 comments on commit 9895b1f

Please sign in to comment.