Skip to content

Commit cd34bba

Browse files
butschsteractions-user
authored andcommitted
Fix styling
1 parent bb1db31 commit cd34bba

9 files changed

Lines changed: 22 additions & 13 deletions

File tree

src/Expression.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Butschster\CronExpression;

src/Generator.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Butschster\CronExpression;
@@ -13,12 +14,12 @@
1314

1415
class Generator
1516
{
16-
use Minutes,
17-
Hours,
18-
Days,
19-
Weeks,
20-
Months,
21-
Years;
17+
use Minutes;
18+
use Hours;
19+
use Days;
20+
use Weeks;
21+
use Months;
22+
use Years;
2223

2324
public const SUNDAY = 0;
2425
public const MONDAY = 1;

src/Traits/Days.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Butschster\CronExpression\Traits;

src/Traits/Hours.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Butschster\CronExpression\Traits;
@@ -41,7 +42,7 @@ public function everySixHours(): self
4142
->hours('*/6');
4243
}
4344

44-
public function hours(string|int ...$hours): self
45+
public function hours(string | int ...$hours): self
4546
{
4647
$expression = clone $this->expression;
4748
$expression->setPart(CronExpression::HOUR, implode(',', $hours));

src/Traits/Minutes.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Butschster\CronExpression\Traits;
@@ -52,7 +53,7 @@ public function everyThirtyMinutes(): self
5253
return $this->minutes(0, 30);
5354
}
5455

55-
public function minutes(string|int ...$minutes): self
56+
public function minutes(string | int ...$minutes): self
5657
{
5758
$expression = clone $this->expression;
5859
$expression->setPart(CronExpression::MINUTE, implode(',', $minutes));

src/Traits/Months.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Butschster\CronExpression\Traits;
@@ -7,7 +8,7 @@
78

89
trait Months
910
{
10-
public function daysOfMonth(string|int ...$days): self
11+
public function daysOfMonth(string | int ...$days): self
1112
{
1213
$days = $days ?: [1];
1314

src/Traits/Weeks.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Butschster\CronExpression\Traits;
@@ -7,7 +8,7 @@
78

89
trait Weeks
910
{
10-
public function daysOfWeek(string|int...$dayOfWeek): self
11+
public function daysOfWeek(string | int...$dayOfWeek): self
1112
{
1213
$expression = clone $this->expression;
1314
$expression->setPart(CronExpression::WEEKDAY, implode(',', $dayOfWeek));

src/Traits/Years.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Butschster\CronExpression\Traits;
@@ -7,7 +8,7 @@
78

89
trait Years
910
{
10-
public function months(string|int ...$months): self
11+
public function months(string | int ...$months): self
1112
{
1213
$months = $months ?: [self::JAN];
1314

tests/GeneratorTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,10 @@ public function testYearly()
134134
$this->assertSame('8 15 5 4 *', $this->generator->yearlyOn(4, 5, 15, 8)->getExpression());
135135
}
136136

137-
function testMixedExpression()
137+
public function testMixedExpression()
138138
{
139-
$this->assertSame('* */2 5,10,15,20,25,30 3,6,9,12 1,3,5,0',
139+
$this->assertSame(
140+
'* */2 5,10,15,20,25,30 3,6,9,12 1,3,5,0',
140141
(string) $this->generator
141142
->yearly()
142143
->months(3, 6, 9, 12)

0 commit comments

Comments
 (0)