Skip to content

Commit

Permalink
style: composer cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Mar 29, 2024
1 parent 9c5d0a8 commit 6f46364
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/Config/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class GitHub extends BaseConfig
/**
* Repository paths
*
* @var array<string,string[]> In the format [organization, repository]
* @var array<string,list<string>> In the format [organization, repository]
*/
public $repos = [
'framework3' => ['bcit-ci', 'CodeIgniter'],
Expand All @@ -31,7 +31,7 @@ class GitHub extends BaseConfig
/**
* List of repos that track releases via tags
*
* @var string[]
* @var list<string>
*/
public $tagged = [
'framework3',
Expand Down
2 changes: 1 addition & 1 deletion app/Entities/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function link()
/**
* Returns all tags for this post.
*
* @return array|string[]
* @return array|list<string>
*/
public function getTags(): array
{
Expand Down
4 changes: 2 additions & 2 deletions app/Libraries/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
* If $category is present, will locate within a
* subfolder of that name.
*
* @return Post[]
* @return list<Post>
*
* @throws BlogException
*/
Expand Down Expand Up @@ -286,7 +286,7 @@ protected function readPost(string $folder, string $filename)
* Embed syntax:
* !video[ https://www.youtube.com/watch?v=1GYoEMiXcX0&feature=youtu.be ]
*
* @return string|string[]|null
* @return list<string>|string|null
*/
protected function parseVideoTags(?string $html = null)
{
Expand Down
14 changes: 7 additions & 7 deletions app/Libraries/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class GitHub
/**
* Converts tag parts into a browser URL.
*
* @param string[] $segments
* @param list<string> $segments
*/
public static function urlFromTag(array $segments, string $tag): string
{
Expand All @@ -67,7 +67,7 @@ public static function urlFromTag(array $segments, string $tag): string
/**
* Converts tag parts into a browser URL.
*
* @param Release[] $releases
* @param list<Release> $releases
*/
public static function sortReleases(array &$releases): void
{
Expand Down Expand Up @@ -134,7 +134,7 @@ protected function api(array $methods, array $segments): array
* and standardizes each result as a Release (releases)
* or ReleasePromise (tags).
*
* @return array<string,Release[]>
* @return array<string,list<Release>>
*/
public function getReleases(): array
{
Expand Down Expand Up @@ -165,7 +165,7 @@ public function getReleases(): array
*
* @param array $segments [organization, repository] from Config
*
* @return Release[]
* @return list<Release>
*/
private function fetchReleasesAsReleases(array $segments): array
{
Expand Down Expand Up @@ -193,7 +193,7 @@ private function fetchReleasesAsReleases(array $segments): array
*
* @param array $segments [organization, repository] from Config
*
* @return Release[]
* @return list<Release>
*/
private function fetchTagsAsReleases(array $segments): array
{
Expand Down Expand Up @@ -249,7 +249,7 @@ public function getCommit(array $segments): array
/**
* Retrieves repo details for each configured repository as a Repo.
*
* @return Repo[]
* @return list<Repo>
*/
public function getRepos(): array
{
Expand All @@ -269,7 +269,7 @@ public function getRepos(): array
/**
* Retrieves contributor information for a repository.
*
* @return array<string,Contributor[]>
* @return array<string,list<Contributor>>
*/
public function getContributors(): array
{
Expand Down

0 comments on commit 6f46364

Please sign in to comment.