Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
digedag committed Mar 1, 2024
1 parent d2157af commit d101c12
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Classes/Decorator/MatchNoteDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MatchNoteDecorator
private $profileDecorator;
private $profileProvider;

public function __construct(ProfileDecorator $profileDecorator = null, MatchProfileProvider $profileProvider)
public function __construct(?ProfileDecorator $profileDecorator = null, MatchProfileProvider $profileProvider)
{
$this->profileDecorator = $profileDecorator ?: new ProfileDecorator($this);
$this->profileProvider = $profileProvider ?: new MatchProfileProvider();
Expand Down
2 changes: 1 addition & 1 deletion Classes/Decorator/ProfileDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ProfileDecorator
{
private $matchNoteDecorator;

public function __construct(MatchNoteDecorator $matchNoteDecorator = null)
public function __construct(?MatchNoteDecorator $matchNoteDecorator = null)
{
$this->matchNoteDecorator = $matchNoteDecorator ?: new MatchNoteDecorator($this, new MatchProfileProvider());
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Frontend/Action/ClubList.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ClubList extends AbstractAction
/** @var ClubRepository */
private $clubRepo;

public function __construct(ClubRepository $repo = null)
public function __construct(?ClubRepository $repo = null)
{
$this->clubRepo = $repo ?: new ClubRepository();
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Frontend/Action/ProfileList.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ProfileList extends AbstractAction
{
private $profileRepo;

public function __construct(ProfileRepository $repo = null)
public function __construct(?ProfileRepository $repo = null)
{
$this->profileRepo = $repo ?: new ProfileRepository();
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Frontend/Action/StadiumList.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class StadiumList extends AbstractAction
{
private $repo;

public function __construct(StadiumRepository $repo = null)
public function __construct(?StadiumRepository $repo = null)
{
$this->repo = $repo ?: new StadiumRepository();
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Frontend/Action/TeamList.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TeamList extends AbstractAction
{
private $repo;

public function __construct(TeamRepository $repo = null)
public function __construct(?TeamRepository $repo = null)
{
$this->repo = $repo ?: new TeamRepository();
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Statistics/Service/PlayerStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class PlayerStatistics implements StatsServiceInterface
/** @var ProfileService */
protected $profileSrv;

public function __construct(TeamRepository $teamRepo = null, ProfileService $profileSrv = null)
public function __construct(?TeamRepository $teamRepo = null, ?ProfileService $profileSrv = null)
{
$this->teamRepo = $teamRepo ?: new TeamRepository();
$this->profileSrv = $profileSrv ?: new ProfileService();
Expand Down
2 changes: 1 addition & 1 deletion Classes/Statistics/Statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Statistics
private $serviceKeys;
private $servicesArrCnt;

public function __construct(MatchNoteRepository $mnRepo = null)
public function __construct(?MatchNoteRepository $mnRepo = null)
{
$this->matchRepo = new MatchRepository();
$this->matchNodeRepo = $mnRepo ?: new MatchNoteRepository();
Expand Down
2 changes: 1 addition & 1 deletion Classes/Table/DefaultMatchProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class DefaultMatchProvider implements IMatchProvider
* @param string $confId ConfId des Views
* @param MatchRepository $matchRepo
*/
public function __construct($configurations, $confId, MatchRepository $matchRepo = null)
public function __construct($configurations, $confId, ?MatchRepository $matchRepo = null)
{
$this->configurations = $configurations;
$this->confId = $confId;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Utility/MatchProfileProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MatchProfileProvider
private $players = [];
protected $profiles;

public function __construct(ProfileRepository $profileRepo = null)
public function __construct(?ProfileRepository $profileRepo = null)
{
$this->profileRepo = $profileRepo ?: new ProfileRepository();
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Utility/MatchTicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MatchTicker
private static $cache = [];
private $mnRepo;

public function __construct(MatchNoteRepository $mnRepo = null)
public function __construct(?MatchNoteRepository $mnRepo = null)
{
$this->mnRepo = $mnRepo ?: new MatchNoteRepository();
}
Expand Down

0 comments on commit d101c12

Please sign in to comment.