Completed
Branch master (75c2f3)
by Benjamin
04:19
created
src/Alpixel/Bundle/MediaBundle/DataTransformer/EntityToIdTransformer.php 2 patches
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.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -5,15 +5,10 @@
 block discarded – undo
5 5
 use Alpixel\Bundle\MediaBundle\Entity\Media;
6 6
 use Doctrine\Common\Collections\Collection;
7 7
 use Doctrine\ORM\EntityManager;
8
-use Doctrine\ORM\NoResultException;
9 8
 use Doctrine\ORM\QueryBuilder;
10 9
 use Symfony\Component\Form\DataTransformerInterface;
11
-use Symfony\Component\Form\Exception\FormException;
12 10
 use Symfony\Component\Form\Exception\TransformationFailedException;
13 11
 use Symfony\Component\Form\Exception\UnexpectedTypeException;
14
-use Symfony\Component\Form\FormError;
15
-use Symfony\Component\Form\FormInterface;
16
-use Symfony\Component\PropertyAccess\PropertyAccessor;
17 12
 
18 13
 /**
19 14
  * Data transformation class
Please login to merge, or discard this patch.
src/Alpixel/Bundle/MediaBundle/Entity/Media.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * Sets the value of uri.
128 128
      *
129
-     * @param string $name $uri the uri
130 129
      *
130
+     * @param string $uri
131 131
      * @return self
132 132
      */
133 133
     public function setUri($uri)
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
     /**
151 151
      * Sets the value of secretKey.
152 152
      *
153
-     * @param string $name $secretKey the secret key
154 153
      *
154
+     * @param string $secretKey
155 155
      * @return self
156 156
      */
157 157
     public function setSecretKey($secretKey)
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
     /**
175 175
      * Sets the value of mime.
176 176
      *
177
-     * @param string $name $mime the mime
178 177
      *
178
+     * @param string $mime
179 179
      * @return self
180 180
      */
181 181
     public function setMime($mime)
@@ -198,8 +198,8 @@  discard block
 block discarded – undo
198 198
     /**
199 199
      * Sets the value of lifetime.
200 200
      *
201
-     * @param string $label $lifetime the lifetime
202 201
      *
202
+     * @param null|\DateTime $lifetime
203 203
      * @return self
204 204
      */
205 205
     public function setLifetime($lifetime)
Please login to merge, or discard this patch.
src/Alpixel/Bundle/MediaBundle/Form/MediaType.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,7 @@  discard block
 block discarded – undo
4 4
 use Alpixel\Bundle\MediaBundle\DataTransformer\EntityToIdTransformer;
5 5
 use Alpixel\Bundle\MediaBundle\Entity\Media;
6 6
 use Alpixel\Bundle\MediaBundle\EventListener\MediaEvent;
7
-use Alpixel\Bundle\MediaBundle\EventListener\MediaListener;
8 7
 use Symfony\Bridge\Doctrine\RegistryInterface;
9
-use Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher;
10
-use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher;
11
-use Symfony\Component\EventDispatcher\EventDispatcher;
12 8
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
13 9
 use Symfony\Component\Form\AbstractType;
14 10
 use Symfony\Component\Form\FormBuilderInterface;
@@ -16,7 +12,6 @@  discard block
 block discarded – undo
16 12
 use Symfony\Component\Form\FormEvents;
17 13
 use Symfony\Component\Form\FormInterface;
18 14
 use Symfony\Component\Form\FormView;
19
-use Symfony\Component\HttpKernel\Kernel;
20 15
 use Symfony\Component\OptionsResolver\OptionsResolverInterface;
21 16
 
22 17
 class MediaType extends AbstractType
Please login to merge, or discard this patch.
src/Alpixel/Bundle/MediaBundle/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.