Completed
Pull Request — master (#907)
by
unknown
28:01 queued 19:18
created
src/SWP/Bundle/CoreBundle/Controller/StaticThemeAssetsController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-     * @param $filePath
64
+     * @param string $filePath
65 65
      *
66 66
      * @return Response
67 67
      */
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Factory/ApiKeyFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @param UserInterface $user
39 39
      * @param string|null   $apiKeyValue
40 40
      *
41
-     * @return mixed
41
+     * @return ApiKeyInterface
42 42
      */
43 43
     public function create($user, $apiKeyValue = null)
44 44
     {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Consumer/AnalyticsEventConsumer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -177,6 +177,9 @@
 block discarded – undo
177 177
         return ArticleEventInterface::PAGEVIEW_SOURCE_EXTERNAL;
178 178
     }
179 179
 
180
+    /**
181
+     * @return string
182
+     */
180 183
     private function getFragmentFromUrl(string $url, string $fragment): ?string
181 184
     {
182 185
         $fragments = \parse_url($url);
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Controller/RouteController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -194,6 +194,9 @@
 block discarded – undo
194 194
         return $route;
195 195
     }
196 196
 
197
+    /**
198
+     * @param string $name
199
+     */
197 200
     private function ensureRouteExists($name)
198 201
     {
199 202
         if (null !== $this->get('swp.repository.route')->findOneByName($name)) {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Command/ThemeGenerateCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * @param InputInterface  $input
187 187
      * @param OutputInterface $output
188 188
      * @param Tenant          $tenant
189
-     * @param                 $themeDir
189
+     * @param                 string $themeDir
190 190
      * @param                 $themeName
191 191
      */
192 192
     protected function writeConfigFile(InputInterface $input, OutputInterface $output, Tenant $tenant, $themeDir, $themeName)
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 
279 279
     /**
280 280
      * @param Filesystem $filesystem
281
-     * @param $baseDir
281
+     * @param string $baseDir
282 282
      * @param $fileName
283 283
      *
284 284
      * @return string
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/ContentListController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -268,6 +268,9 @@
 block discarded – undo
268 268
         return $list;
269 269
     }
270 270
 
271
+    /**
272
+     * @param null|string $name
273
+     */
271 274
     private function ensureContentListExists($name)
272 275
     {
273 276
         if (null !== $this->get('swp.repository.content_list')->findOneByName($name)) {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/SlideshowItemController.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@  discard block
 block discarded – undo
61 61
         return new ResourcesListResponse($items);
62 62
     }
63 63
 
64
+    /**
65
+     * @param string $id
66
+     */
64 67
     private function findOr404($id): ?SlideshowInterface
65 68
     {
66 69
         if (null === $slideshow = $this->get('swp.repository.slideshow')->findOneById($id)) {
@@ -70,6 +73,9 @@  discard block
 block discarded – undo
70 73
         return $slideshow;
71 74
     }
72 75
 
76
+    /**
77
+     * @param string $id
78
+     */
73 79
     private function findArticleOr404($id)
74 80
     {
75 81
         if (null === $article = $this->get('swp.repository.article')->findOneById($id)) {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/AuthController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -235,6 +235,9 @@
 block discarded – undo
235 235
         ]);
236 236
     }
237 237
 
238
+    /**
239
+     * @param null|string $token
240
+     */
238 241
     private function generateOrGetApiKey(UserInterface $user, $token)
239 242
     {
240 243
         $apiKey = null;
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Serializer/TenantHandler.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,6 +102,6 @@
 block discarded – undo
102 102
                     'href' => $this->router->generate('swp_api_core_get_tenant', ['code' => $tenantCode]),
103 103
                 ],
104 104
             ],
105
-       ];
105
+        ];
106 106
     }
107 107
 }
Please login to merge, or discard this patch.