Completed
Push — master ( 8fe45b...3e4cf7 )
by Jeroen
08:37
created
src/Kunstmaan/FixturesBundle/Builder/MediaBuilder.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -93,6 +93,11 @@
 block discarded – undo
93 93
         $this->fileHandler->saveMedia($media);
94 94
     }
95 95
 
96
+    /**
97
+     * @param string $pathName
98
+     *
99
+     * @return string
100
+     */
96 101
     private function guessMimeType($pathName): ?string
97 102
     {
98 103
         if ($this->mimeTypeGuesser instanceof MimeTypeGuesserInterface) {
Please login to merge, or discard this patch.
MediaBundle/Validator/Constraints/HasGuessableExtensionValidator.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@  discard block
 block discarded – undo
70 70
         }
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $pathName
75
+     */
73 76
     private function guessMimeType($pathName)
74 77
     {
75 78
         if ($this->mimeTypeGuesser !== null) {
@@ -79,6 +82,9 @@  discard block
 block discarded – undo
79 82
         return $this->mimeTypes->guessMimeType($pathName);
80 83
     }
81 84
 
85
+    /**
86
+     * @param string|null $mimeType
87
+     */
82 88
     private function getExtension($mimeType)
83 89
     {
84 90
         if ($this->extensionGuesser !== null) {
Please login to merge, or discard this patch.
src/Kunstmaan/MediaBundle/Helper/File/FileHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -379,6 +379,9 @@
 block discarded – undo
379 379
         return $this->mimeTypes->guessMimeType($pathName);
380 380
     }
381 381
 
382
+    /**
383
+     * @param string|null $mimeType
384
+     */
382 385
     private function getExtensions($mimeType)
383 386
     {
384 387
         // NEXT_MAJOR: remove method and inline getExtensions call
Please login to merge, or discard this patch.
src/Kunstmaan/MediaBundle/Helper/Image/ImageHandler.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@
 block discarded – undo
18 18
 
19 19
     /**
20 20
      * @param int                                                $priority
21
-     * @param MimeTypeGuesserFactoryInterface|MimeTypesInterface $mimeTypeGuesserFactory
22
-     * @param ExtensionGuesserFactoryInterface|null              $extensionGuesserFactoryInterface
21
+     * @param \Symfony\Component\Mime\MimeTypes $mimeTypeGuesser
23 22
      * @param string                                             $aviaryApiKey
24 23
      */
25 24
     public function __construct($priority, $mimeTypeGuesser, $extensionGuesser, $aviaryApiKey)
Please login to merge, or discard this patch.