@@ -129,9 +129,7 @@ public static function findLastStoryFor(int $authorId): ?Story
129129 return $ storiesFound [\count ($ storiesFound ) - 1 ] ?? null ;
130130 }
131131
132- /**
133- * @return array<int, User>
134- */
132+ /** @return array<int, User> */
135133 public static function findLikes (int $ storyId , int $ limit ): array
136134 {
137135 $ likes = self ::$ storyLikes [$ storyId ] ?? [];
@@ -166,9 +164,7 @@ public static function findLatestStory(): ?Story
166164 return self ::$ stories [\count (self ::$ stories ) - 1 ] ?? null ;
167165 }
168166
169- /**
170- * @return array<int, Story>
171- */
167+ /** @return array<int, Story> */
172168 public static function findStories (int $ limit , ?int $ afterId = null ): array
173169 {
174170 $ start = $ afterId !== null
@@ -178,9 +174,7 @@ public static function findStories(int $limit, ?int $afterId = null): array
178174 return \array_slice (\array_values (self ::$ stories ), $ start , $ limit );
179175 }
180176
181- /**
182- * @return array<int, Comment>
183- */
177+ /** @return array<int, Comment> */
184178 public static function findComments (int $ storyId , int $ limit = 5 , ?int $ afterId = null ): array
185179 {
186180 $ storyComments = self ::$ storyComments [$ storyId ] ?? [];
@@ -196,9 +190,7 @@ public static function findComments(int $storyId, int $limit = 5, ?int $afterId
196190 );
197191 }
198192
199- /**
200- * @return array<int, Comment>
201- */
193+ /** @return array<int, Comment> */
202194 public static function findReplies (int $ commentId , int $ limit = 5 , ?int $ afterId = null ): array
203195 {
204196 $ commentReplies = self ::$ commentReplies [$ commentId ] ?? [];
@@ -228,9 +220,7 @@ public static function countReplies(int $commentId): int
228220 : 0 ;
229221 }
230222
231- /**
232- * @return array<int, Story|User>
233- */
223+ /** @return array<int, Story|User> */
234224 public static function findStoryMentions (int $ storyId ): array
235225 {
236226 return self ::$ storyMentions [$ storyId ] ?? [];
0 commit comments