Skip to content

Commit

Permalink
Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 (#51)
Browse files Browse the repository at this point in the history
* Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1

Bumps [aglipanci/laravel-pint-action](https://github.com/aglipanci/laravel-pint-action) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/aglipanci/laravel-pint-action/releases)
- [Commits](aglipanci/laravel-pint-action@2.3.0...2.3.1)

---
updated-dependencies:
- dependency-name: aglipanci/laravel-pint-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Trigger workflow

* Fix styling

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Baspa <[email protected]>
Co-authored-by: Baspa <[email protected]>
  • Loading branch information
3 people committed Jan 2, 2024
1 parent 2dba200 commit d603f0f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/[email protected].0
uses: aglipanci/[email protected].1

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/SeoScan.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private static function getRoutes(): Collection
return $routes;
}

private function calculateScoreForModel(string $model, string $scope = null): void
private function calculateScoreForModel(string $model, ?string $scope = null): void
{
$items = new $model;

Expand Down Expand Up @@ -198,7 +198,7 @@ private function calculateScoreForModel(string $model, string $scope = null): vo
});
}

private function saveScoreToDatabase(SeoScore $seo, string $url, object $model = null): void
private function saveScoreToDatabase(SeoScore $seo, string $url, ?object $model = null): void
{
$score = $seo->getScore();

Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/TransitionWords.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function getTransitionWords(): array
return self::$transitionWords;
}

public static function getTransitionWordsOnly(string $locale = null): array
public static function getTransitionWordsOnly(?string $locale = null): array
{
$transitionWords = self::$transitionWords;

Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/Scan.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Scan implements ShouldQueue

public $timeout = 60 * 60 * 3;

public function handle(string $url = null): void
public function handle(?string $url = null): void
{
if (! $url) {
Artisan::call('seo:scan');
Expand Down
4 changes: 2 additions & 2 deletions src/Seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(
) {
}

public function check(string $url, ProgressBar $progress = null, bool $useJavascript = false): SeoScore
public function check(string $url, ?ProgressBar $progress = null, bool $useJavascript = false): SeoScore
{
$this->progress = $progress;
$this->url = $url;
Expand Down Expand Up @@ -80,7 +80,7 @@ private function visitPage(string $url): object
return $response;
}

private function runChecks(Response $response, string $javascriptResponse = null): void
private function runChecks(Response $response, ?string $javascriptResponse = null): void
{
$checks = self::orderedCheckClasses();

Expand Down
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function bytesToHumanReadable(int $bytes): string
}

if (! function_exists('addBaseIfRelativeUrl')) {
function addBaseIfRelativeUrl(string $url, string $checkedUrl = null): string
function addBaseIfRelativeUrl(string $url, ?string $checkedUrl = null): string
{
if (! Str::startsWith($url, '/')) {
return $url;
Expand Down

0 comments on commit d603f0f

Please sign in to comment.