Test Setup Failed
Push — dev ( 4b6a4b...41aa79 )
by Herberto
11:52 queued 04:13
created
src/Core/Component/Blog/Application/Query/DQL/FindLatestPostsQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      * to code readability.
55 55
      * However, by using `__invoke()` we lose code completion, so in the end I prefer to use this `execute()` method.
56 56
      *
57
-     * @return LatestPostWithAuthorAndTagsDto[]
57
+     * @return ResultCollectionInterface
58 58
      */
59 59
     public function execute(int $limit = self::NUM_ITEMS): ResultCollectionInterface
60 60
     {
Please login to merge, or discard this patch.
Core/Component/Blog/Application/Query/DQL/FindPostsBySearchRequestQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     /**
47 47
      * @throws \Exception
48 48
      *
49
-     * @return PostsBySearchRequestDto[]
49
+     * @return ResultCollectionInterface
50 50
      */
51 51
     public function execute(string $queryString, int $limit = self::NUM_ITEMS): ResultCollectionInterface
52 52
     {
Please login to merge, or discard this patch.
src/Core/Component/User/Application/Repository/DQL/UserRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     }
72 72
 
73 73
     /**
74
-     * @return User[]
74
+     * @return ResultCollectionInterface
75 75
      */
76 76
     public function findAll(array $orderByList = ['id' => 'DESC'], int $maxResults = null): ResultCollectionInterface
77 77
     {
Please login to merge, or discard this patch.
TemplateEngine/Twig/Extension/SourceCode/SourceCodeExtension.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@
 block discarded – undo
37 37
      */
38 38
     private $controller;
39 39
 
40
+    /**
41
+     * @param callable $controller
42
+     */
40 43
     public function setController(?callable $controller): void
41 44
     {
42 45
         $this->controller = $controller;
Please login to merge, or discard this patch.
src/Core/Component/Blog/Application/Repository/DQL/CommentRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-     * @return Comment[]
45
+     * @return ResultCollectionInterface
46 46
      */
47 47
     public function findAllByPostId(
48 48
         PostId $postId,
Please login to merge, or discard this patch.
src/Core/Component/Blog/Application/Repository/DQL/PostRepository.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     }
63 63
 
64 64
     /**
65
-     * @return Post[]
65
+     * @return ResultCollectionInterface
66 66
      */
67 67
     public function findAll(array $orderByList = ['id' => 'DESC'], int $maxResults = null): ResultCollectionInterface
68 68
     {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @return Post[]
83
+     * @return ResultCollectionInterface
84 84
      */
85 85
     public function findAllByUserId(
86 86
         UserId $userId,
Please login to merge, or discard this patch.
src/Core/Component/Blog/Application/Repository/DQL/TagRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-     * @return Tag[]
48
+     * @return ResultCollectionInterface
49 49
      */
50 50
     public function findAllByPostId(
51 51
         PostId $postId,
Please login to merge, or discard this patch.
src/Core/Component/Blog/Domain/Post/Post.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -272,6 +272,9 @@  discard block
 block discarded – undo
272 272
             : $this->tags->clear();
273 273
     }
274 274
 
275
+    /**
276
+     * @param Comment[] $list
277
+     */
275 278
     private function contains($item, $list): bool
276 279
     {
277 280
         // we need to cast the list to array because it might just actually be a doctrine collection
@@ -279,6 +282,7 @@  discard block
 block discarded – undo
279 282
     }
280 283
 
281 284
     /**
285
+     * @param Comment[] $list
282 286
      * @return false|int|string
283 287
      */
284 288
     private function getKey($item, $list)
Please login to merge, or discard this patch.
src/Presentation/Console/Component/User/AddUserCommand.php 2 patches
Doc Comments   -24 removed lines patch added patch discarded remove patch
@@ -238,27 +238,3 @@
 block discarded – undo
238 238
     private function getCommandHelp(): string
239 239
     {
240 240
         return <<<'HELP'
241
-            The <info>%command.name%</info> command creates new users and saves them in the database:
242
-
243
-              <info>php %command.full_name%</info> <comment>username password email</comment>
244
-
245
-            By default the command creates regular users. To create administrator users,
246
-            add the <comment>--admin</comment> option:
247
-
248
-              <info>php %command.full_name%</info> username password email mobile <comment>--admin</comment>
249
-
250
-            If you omit any of the three required arguments, the command will ask you to
251
-            provide the missing values:
252
-
253
-              # command will ask you for the email
254
-              <info>php %command.full_name%</info> <comment>username password</comment>
255
-
256
-              # command will ask you for the email and password
257
-              <info>php %command.full_name%</info> <comment>username</comment>
258
-
259
-              # command will ask you for all arguments
260
-              <info>php %command.full_name%</info>
261
-
262
-            HELP;
263
-    }
264
-}
Please login to merge, or discard this patch.
Unused Use Statements   -24 removed lines patch added patch discarded remove patch
@@ -238,27 +238,3 @@
 block discarded – undo
238 238
     private function getCommandHelp(): string
239 239
     {
240 240
         return <<<'HELP'
241
-            The <info>%command.name%</info> command creates new users and saves them in the database:
242
-
243
-              <info>php %command.full_name%</info> <comment>username password email</comment>
244
-
245
-            By default the command creates regular users. To create administrator users,
246
-            add the <comment>--admin</comment> option:
247
-
248
-              <info>php %command.full_name%</info> username password email mobile <comment>--admin</comment>
249
-
250
-            If you omit any of the three required arguments, the command will ask you to
251
-            provide the missing values:
252
-
253
-              # command will ask you for the email
254
-              <info>php %command.full_name%</info> <comment>username password</comment>
255
-
256
-              # command will ask you for the email and password
257
-              <info>php %command.full_name%</info> <comment>username</comment>
258
-
259
-              # command will ask you for all arguments
260
-              <info>php %command.full_name%</info>
261
-
262
-            HELP;
263
-    }
264
-}
Please login to merge, or discard this patch.