Skip to content

Commit

Permalink
Fix coding standards for PHP-CS-Fixer v3.49.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nkl-kst committed Feb 5, 2024
1 parent 89ecaf8 commit 16cb8f4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Client/Endpoint/HighlightEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class HighlightEndpoint extends AbstractEndpoint
*
* @throws Exception
*/
public function latest(DateTime $day = null, string $league = null, string $sportQuery = null): array
public function latest(?DateTime $day = null, ?string $league = null, ?string $sportQuery = null): array
{
$filter = new HighlightFilter();
if ($day) {
Expand Down
4 changes: 2 additions & 2 deletions src/Client/Endpoint/ListEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function countries(): array
*
* @throws Exception
*/
public function leagues(string $countryQuery = null, string $sportQuery = null): array
public function leagues(?string $countryQuery = null, ?string $sportQuery = null): array
{
$endpoint = $countryQuery || $sportQuery ? self::ENDPOINT_SEARCH_LEAGUES : self::ENDPOINT_LEAGUES;

Expand Down Expand Up @@ -170,7 +170,7 @@ public function teams(int $leagueID): array
* @throws Exception
*/
public function teamsSearch(
string $leagueQuery = null, string $sportQuery = null, string $countryQuery = null): array
?string $leagueQuery = null, ?string $sportQuery = null, ?string $countryQuery = null): array
{
$filter = new ListFilter();
if ($leagueQuery) {
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Endpoint/LivescoreEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class LivescoreEndpoint extends AbstractEndpoint
*
* @throws Exception
*/
public function now(string $sport = null, int $leagueID = null): array
public function now(?string $sport = null, ?int $leagueID = null): array
{
$filter = new LivescoreFilter();
if ($leagueID) {
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Endpoint/LookupEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function statistics(int $eventID): array
*
* @throws Exception
*/
public function table(int $leagueID, string $season = null): ?Table
public function table(int $leagueID, ?string $season = null): ?Table
{
$filter = (new LookupFilter())->setLeagueID($leagueID);
if ($season) {
Expand Down
8 changes: 4 additions & 4 deletions src/Client/Endpoint/ScheduleEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ScheduleEndpoint extends AbstractEndpoint
*
* @throws Exception
*/
public function day(DateTime $day, string $sportQuery = null, string $leagueQuery = null): array
public function day(DateTime $day, ?string $sportQuery = null, ?string $leagueQuery = null): array
{
$filter = (new ScheduleFilter())->setDay($day);
if ($sportQuery) {
Expand Down Expand Up @@ -99,7 +99,7 @@ public function leagueLast(int $leagueID): array
*
* @throws Exception
*/
public function round(int $leagueID, int $round, string $season = null): array
public function round(int $leagueID, int $round, ?string $season = null): array
{
$filter = (new ScheduleFilter())->setID($leagueID)->setRound($round);
if ($season) {
Expand All @@ -123,7 +123,7 @@ public function round(int $leagueID, int $round, string $season = null): array
*
* @throws Exception
*/
public function season(int $leagueID, string $season = null): array
public function season(int $leagueID, ?string $season = null): array
{
$filter = (new ScheduleFilter())->setID($leagueID);
if ($season) {
Expand Down Expand Up @@ -184,7 +184,7 @@ public function teamLast(int $teamID): array
*
* @throws Exception
*/
public function television(DateTime $day, string $sportQuery = null, string $countryQuery = null): array
public function television(DateTime $day, ?string $sportQuery = null, ?string $countryQuery = null): array
{
$filter = (new ScheduleFilter())->setDay($day);
if ($sportQuery) {
Expand Down
4 changes: 2 additions & 2 deletions src/Client/Endpoint/SearchEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SearchEndpoint extends AbstractEndpoint
*
* @throws Exception
*/
public function events(string $eventQuery, string $season = null): array
public function events(string $eventQuery, ?string $season = null): array
{
$filter = (new SearchFilter())->setEventQuery($eventQuery);
if ($season) {
Expand Down Expand Up @@ -70,7 +70,7 @@ public function eventFile(string $file): ?Event
*
* @throws Exception
*/
public function players(string $playerQuery = null, string $teamQuery = null): array
public function players(?string $playerQuery = null, ?string $teamQuery = null): array
{
$filter = new SearchFilter();

Expand Down
2 changes: 1 addition & 1 deletion src/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getRateLimiter(): ?LimiterInterface
*
* @return $this This configuration
*/
public function setRateLimiter(LimiterInterface $rateLimiter = null): self
public function setRateLimiter(?LimiterInterface $rateLimiter = null): self
{
if (!$rateLimiter) {
// Default rate limit of 100 requests per minute
Expand Down

0 comments on commit 16cb8f4

Please sign in to comment.