Skip to content

Commit 54645eb

Browse files
Merge pull request #633 from RoboJackets/renovate/slevomat-coding-standard-8.x
Update dependency slevomat/coding-standard to v8.16.0
2 parents 1f16ef9 + c45ce2b commit 54645eb

File tree

7 files changed

+40
-41
lines changed

7 files changed

+40
-41
lines changed

app/Http/Controllers/SyncController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class SyncController
2222
{
23-
private const ONE_DAY = 24 * 60 * 60;
23+
private const int ONE_DAY = 24 * 60 * 60;
2424

2525
public function sync(Request $request): JsonResponse
2626
{

app/Services/ClickUp.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class ClickUp extends Service
1717
{
18-
private const ALMOST_TWO_WEEKS = (7 * 24 * 60 * 60) - 60;
18+
private const int ALMOST_TWO_WEEKS = (7 * 24 * 60 * 60) - 60;
1919

2020
/**
2121
* A Guzzle client configured for ClickUp.

app/Services/GitHub.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class GitHub extends Service
2020
{
21-
private const FIFTY_NINE_MINUTES = 59 * 60;
21+
private const int FIFTY_NINE_MINUTES = 59 * 60;
2222

2323
/**
2424
* A Guzzle client configured for GitHub.

app/Services/SUMS.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
class SUMS extends Service
1010
{
11-
public const MEMBER_EXISTS = 'BG member already exists';
11+
public const string MEMBER_EXISTS = 'BG member already exists';
1212

13-
public const MEMBER_NOT_EXISTS = 'BG member does not exist';
13+
public const string MEMBER_NOT_EXISTS = 'BG member does not exist';
1414

15-
public const SUCCESS = 'Success';
15+
public const string SUCCESS = 'Success';
1616

17-
public const USER_NOT_FOUND = 'User not found';
17+
public const string USER_NOT_FOUND = 'User not found';
1818

1919
/**
2020
* A Guzzle client configured for SUMS.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"phpstan/phpstan-deprecation-rules": "2.0.1",
4545
"phpstan/phpstan-strict-rules": "2.0.3",
4646
"psalm/plugin-laravel": "3.0.1",
47-
"slevomat/coding-standard": "8.15.0",
47+
"slevomat/coding-standard": "8.16.0",
4848
"spatie/laravel-ignition": "2.9.1",
4949
"squizlabs/php_codesniffer": "3.11.3",
5050
"laravel/pail": "1.2.2"

composer.lock

+29-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
2-
<ruleset name="Apiary Ruleset" namespace="RoboJackets">
3-
<description>Apiary ruleset</description>
2+
<ruleset name="JEDI Ruleset" namespace="RoboJackets">
3+
<description>JEDI ruleset</description>
44

55
<config name="installed_paths" value="../../slevomat/coding-standard"/>
66

@@ -277,9 +277,8 @@
277277
<exclude-pattern>/stubs/</exclude-pattern>
278278
</rule>
279279

280-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
280+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
281281
<properties>
282-
<property name="withSpaces" value="no"/>
283282
<property name="shortNullable" value="yes"/>
284283
<property name="nullPosition" value="last"/>
285284
</properties>

0 commit comments

Comments
 (0)