Skip to content

Commit f01ca66

Browse files
committed
Update ECS & dependencies
1 parent 052b0f2 commit f01ca66

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

src/LocalDate.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -786,13 +786,13 @@ public function toISOString(): string
786786
{
787787
// This code is optimized for high performance
788788
return ($this->year < 1000 && $this->year > -1000
789-
? (
790-
$this->year < 0
791-
? '-' . str_pad((string) -$this->year, 4, '0', STR_PAD_LEFT)
792-
: str_pad((string) $this->year, 4, '0', STR_PAD_LEFT)
793-
)
794-
: $this->year
789+
? (
790+
$this->year < 0
791+
? '-' . str_pad((string) -$this->year, 4, '0', STR_PAD_LEFT)
792+
: str_pad((string) $this->year, 4, '0', STR_PAD_LEFT)
795793
)
794+
: $this->year
795+
)
796796
. '-'
797797
. ($this->month < 10 ? '0' . $this->month : $this->month)
798798
. '-'

src/Month.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Represents a month-of-year such as January.
1111
*/
12-
enum Month : int implements JsonSerializable
12+
enum Month: int implements JsonSerializable
1313
{
1414
case JANUARY = 1;
1515
case FEBRUARY = 2;

src/YearMonth.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,13 @@ public function toISOString(): string
320320
{
321321
// This code is optimized for high performance
322322
return ($this->year < 1000 && $this->year > -1000
323-
? (
324-
$this->year < 0
325-
? '-' . str_pad((string) -$this->year, 4, '0', STR_PAD_LEFT)
326-
: str_pad((string) $this->year, 4, '0', STR_PAD_LEFT)
327-
)
328-
: $this->year
323+
? (
324+
$this->year < 0
325+
? '-' . str_pad((string) -$this->year, 4, '0', STR_PAD_LEFT)
326+
: str_pad((string) $this->year, 4, '0', STR_PAD_LEFT)
329327
)
328+
: $this->year
329+
)
330330
. '-'
331331
. ($this->month < 10 ? '0' . $this->month : $this->month);
332332
}

src/YearWeek.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,13 @@ public function toISOString(): string
314314
{
315315
// This code is optimized for high performance
316316
return ($this->year < 1000 && $this->year > -1000
317-
? (
318-
$this->year < 0
319-
? '-' . str_pad((string) -$this->year, 4, '0', STR_PAD_LEFT)
320-
: str_pad((string) $this->year, 4, '0', STR_PAD_LEFT)
321-
)
322-
: $this->year
317+
? (
318+
$this->year < 0
319+
? '-' . str_pad((string) -$this->year, 4, '0', STR_PAD_LEFT)
320+
: str_pad((string) $this->year, 4, '0', STR_PAD_LEFT)
323321
)
322+
: $this->year
323+
)
324324
. '-W'
325325
. ($this->week < 10 ? '0' . $this->week : $this->week);
326326
}

tools/ecs/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"require": {
3-
"symplify/easy-coding-standard": "^10.3",
4-
"slevomat/coding-standard": "^7.2",
5-
"squizlabs/php_codesniffer": "^3.7"
3+
"symplify/easy-coding-standard": "^12.1",
4+
"slevomat/coding-standard": "^8.15",
5+
"squizlabs/php_codesniffer": "^3.9"
66
},
77
"config": {
88
"allow-plugins": {

0 commit comments

Comments
 (0)