Skip to content

Commit db15e3e

Browse files
author
Artur Weigandt
committed
refactor: fix code with dead code prepared sets
1 parent 2d63c88 commit db15e3e

File tree

17 files changed

+60
-87
lines changed

17 files changed

+60
-87
lines changed

.rector.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
// uncomment to reach your current PHP version
1313
//->withPhpSets()
1414
->withPhp74Sets()
15+
->withPhpVersion(70400)
1516
->withTypeCoverageLevel(1)
16-
->withDeadCodeLevel(0)
1717
->withCodeQualityLevel(0)
18+
->withPreparedSets(
19+
true
20+
)
1821
;

src/Redmine/Api/CustomField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CustomField extends AbstractApi
2323
/**
2424
* @var null|array<int,string>
2525
*/
26-
private $customFieldNames = null;
26+
private $customFieldNames;
2727

2828
/**
2929
* List custom fields.

src/Redmine/Api/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Group extends AbstractApi
2929
/**
3030
* @var null|array<int,string>
3131
*/
32-
private $groupNames = null;
32+
private $groupNames;
3333

3434
/**
3535
* List groups.

src/Redmine/Api/IssueStatus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class IssueStatus extends AbstractApi
2323
/**
2424
* @var array<int,string>
2525
*/
26-
private $issueStatusNames = null;
26+
private $issueStatusNames;
2727

2828
/**
2929
* List issue statuses.

src/Redmine/Api/Project.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Project extends AbstractApi
3030
/**
3131
* @var null|array<int,string>
3232
*/
33-
private $projectNames = null;
33+
private $projectNames;
3434

3535
/**
3636
* List projects.

src/Redmine/Api/Role.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Role extends AbstractApi
2525
/**
2626
* @var null|array<int,string>
2727
*/
28-
private $roleNames = null;
28+
private $roleNames;
2929

3030
/**
3131
* List roles.

src/Redmine/Api/TimeEntryActivity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TimeEntryActivity extends AbstractApi
2323
/**
2424
* @var null|array<string>
2525
*/
26-
private $timeEntryActivityNames = null;
26+
private $timeEntryActivityNames;
2727

2828
/**
2929
* List time entry activities.

src/Redmine/Api/Tracker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Tracker extends AbstractApi
2323
/**
2424
* @var null|array<int,string>
2525
*/
26-
private $trackerNames = null;
26+
private $trackerNames;
2727

2828
/**
2929
* List trackers.

src/Redmine/Api/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class User extends AbstractApi
2929
/**
3030
* @var null|array<int,string>
3131
*/
32-
private $userLogins = null;
32+
private $userLogins;
3333

3434
/**
3535
* List users.

src/Redmine/Exception/UnexpectedResponseException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class UnexpectedResponseException extends RuntimeException implements Redm
1919
/**
2020
* @var Response|null
2121
*/
22-
private $response = null;
22+
private $response;
2323

2424
public static function create(Response $response, ?Throwable $prev = null): self
2525
{

0 commit comments

Comments
 (0)