Completed
Push — master ( 58a0ae...4e0960 )
by Benjamin
16:27
created
DataTransformer/EntityToIdTransformer.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -30,6 +30,10 @@
 block discarded – undo
30 30
 
31 31
     private $unitOfWork;
32 32
 
33
+    /**
34
+     * @param string $class
35
+     * @param string $property
36
+     */
33 37
     public function __construct(EntityManager $em, $class, $property, $queryBuilder, $multiple)
34 38
     {
35 39
         if (!(null === $queryBuilder || $queryBuilder instanceof QueryBuilder || $queryBuilder instanceof \Closure)) {
Please login to merge, or discard this patch.
Twig/Extension/MediaPreviewExtension.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@
 block discarded – undo
60 60
         return (array_key_exists($mime, $this->previewIcon)) ? $this->previewIcon[$mime] : $this->previewIcon['unknown'];
61 61
     }
62 62
 
63
+    /**
64
+     * @param boolean $isIcon
65
+     */
63 66
     protected function generatePath($isIcon, $str)
64 67
     {
65 68
         if($isIcon === true) {
Please login to merge, or discard this patch.
DataFixtures/ORM/MediaProvider.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
         return $url;
49 49
     }
50 50
 
51
+    /**
52
+     * @param string $url
53
+     */
51 54
     protected function downloadMedia($url)
52 55
     {
53 56
         $filepath = sys_get_temp_dir().'/tmp.jpg';
Please login to merge, or discard this patch.
Command/MediaCleanupCommand.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function configure()
16 16
     {
17 17
         $this->setName('alpixel:media:cleanup')
18
-             ->setDescription('Cleaning unused media');
18
+                ->setDescription('Cleaning unused media');
19 19
     }
20 20
 
21 21
     public function execute(InputInterface $input, OutputInterface $output)
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
         $container = $this->getContainer();
24 24
 
25 25
         $container->get('doctrine.orm.entity_manager')
26
-                  ->getRepository('AlpixelMediaBundle:Media')
27
-                  ->findExpiredMedias();
26
+                    ->getRepository('AlpixelMediaBundle:Media')
27
+                    ->findExpiredMedias();
28 28
 
29 29
         $medias = $container->get('alpixel_media.manager')->cleanup();
30 30
         $output->writeln(sprintf('%s medias deleted', $medias));
Please login to merge, or discard this patch.
Entity/Media.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
     /**
151 151
      * Sets the value of uri.
152 152
      *
153
-     * @param string $name $uri the uri
154 153
      *
154
+     * @param string $uri
155 155
      * @return self
156 156
      */
157 157
     public function setUri($uri)
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
     /**
175 175
      * Sets the value of secretKey.
176 176
      *
177
-     * @param string $name $secretKey the secret key
178 177
      *
178
+     * @param string $secretKey
179 179
      * @return self
180 180
      */
181 181
     public function setSecretKey($secretKey)
@@ -198,8 +198,8 @@  discard block
 block discarded – undo
198 198
     /**
199 199
      * Sets the value of mime.
200 200
      *
201
-     * @param string $name $mime the mime
202 201
      *
202
+     * @param string|null $mime
203 203
      * @return self
204 204
      */
205 205
     public function setMime($mime)
@@ -222,8 +222,8 @@  discard block
 block discarded – undo
222 222
     /**
223 223
      * Sets the value of lifetime.
224 224
      *
225
-     * @param string $label $lifetime the lifetime
226 225
      *
226
+     * @param null|\DateTime $lifetime
227 227
      * @return self
228 228
      */
229 229
     public function setLifetime($lifetime)
Please login to merge, or discard this patch.