Completed
Pull Request — 2.1 (#1176)
by Greg
12:38
created
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/Component/TemplatesSystem/Gimme/Context/Context.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,6 +75,9 @@  discard block
 block discarded – undo
75 75
      */
76 76
     private $configurationCache = [];
77 77
 
78
+    /**
79
+     * @param string $configsPath
80
+     */
78 81
     public function __construct(EventDispatcherInterface $dispatcher, Cache $metadataCache, $configsPath = null)
79 82
     {
80 83
         $this->metadataCache = $metadataCache;
@@ -312,7 +315,7 @@  discard block
 block discarded – undo
312 315
     }
313 316
 
314 317
     /**
315
-     * @param array $keys
318
+     * @param string[] $keys
316 319
      *
317 320
      * @return string
318 321
      */
@@ -344,7 +347,7 @@  discard block
 block discarded – undo
344 347
     /**
345 348
      * @param string $id
346 349
      *
347
-     * @return null|true
350
+     * @return null|boolean
348 351
      */
349 352
     public function restoreTemporaryUnset($id)
350 353
     {
Please login to merge, or discard this patch.
src/SWP/Component/TemplatesSystem/Twig/Extension/ContainerExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 class ContainerExtension extends AbstractExtension
24 24
 {
25 25
     /**
26
-     * @return array|\Twig\TokenParser\TokenParserInterface[]
26
+     * @return ContainerTokenParser[]
27 27
      */
28 28
     public function getTokenParsers()
29 29
     {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/SlideshowController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -93,6 +93,9 @@
 block discarded – undo
93 93
         return new SingleResourceResponse($list);
94 94
     }
95 95
 
96
+    /**
97
+     * @param string $id
98
+     */
96 99
     private function findArticleOr404($id)
97 100
     {
98 101
         if (null === $article = $this->get('swp.repository.article')->findOneById($id)) {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Resolver/ArticleResolver.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@
 block discarded – undo
62 62
         return $result;
63 63
     }
64 64
 
65
+    /**
66
+     * @return string
67
+     */
65 68
     private function getFragmentFromUrl(string $url, string $fragment): ?string
66 69
     {
67 70
         $fragments = \parse_url($url);
Please login to merge, or discard this patch.
Bundle/CoreBundle/Theme/Locator/TenantThemesConfigurationFileLocator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -44,6 +44,9 @@
 block discarded – undo
44 44
         return iterator_to_array($this->doLocateFilesNamed($name));
45 45
     }
46 46
 
47
+    /**
48
+     * @param string $name
49
+     */
47 50
     private function doLocateFilesNamed($name)
48 51
     {
49 52
         $this->assertNameIsNotEmpty($name);
Please login to merge, or discard this patch.
src/SWP/Component/TemplatesSystem/Gimme/Event/MetaEvent.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
         $this->propertyName = $propertyName;
33 33
     }
34 34
 
35
+    /**
36
+     * @return \SWP\Bundle\CoreBundle\Model\ArticleInterface
37
+     */
35 38
     public function getData()
36 39
     {
37 40
         return $this->data;
Please login to merge, or discard this patch.
SWP/Bundle/StorageBundle/EventListener/ORMMappedSuperclassSubscriber.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@  discard block
 block discarded – undo
73 73
         }
74 74
     }
75 75
 
76
+    /**
77
+     * @param string $className
78
+     */
76 79
     private function getResourceByClass($className)
77 80
     {
78 81
         foreach ($this->resources as $resource) {
@@ -86,7 +89,7 @@  discard block
 block discarded – undo
86 89
 
87 90
     /**
88 91
      * @param ClassMetadataInfo $metadata
89
-     * @param $configuration
92
+     * @param \Doctrine\ORM\Configuration $configuration
90 93
      */
91 94
     private function setAssociationMappings(ClassMetadataInfo $metadata, $configuration)
92 95
     {
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Manager/MediaManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@
 block discarded – undo
98 98
         return $uri;
99 99
     }
100 100
 
101
+    /**
102
+     * @param string $fileName
103
+     */
101 104
     public function saveFile(UploadedFile $uploadedFile, $fileName): void
102 105
     {
103 106
         $filePath = $this->assetLocationResolver->getMediaBasePath().'/'.$fileName.'.'.$this->guessExtension($uploadedFile);
Please login to merge, or discard this patch.