Completed
Pull Request — master (#433)
by Paul
11:06 queued 04:27
created
Bundle/CoreBundle/Entity/View.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@
 block discarded – undo
369 369
     /**
370 370
      * Add widget.
371 371
      *
372
-     * @param Widget $widgetMap
372
+     * @param WidgetMap $widgetMap
373 373
      */
374 374
     public function addWidgetMap(WidgetMap $widgetMap)
375 375
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,7 @@
 block discarded – undo
6 6
 use Doctrine\Common\Collections\Collection;
7 7
 use Doctrine\ORM\Mapping as ORM;
8 8
 use Gedmo\Mapping\Annotation as Gedmo;
9
-use JMS\Serializer\Annotation as Serializer;
10 9
 use Symfony\Component\PropertyAccess\PropertyAccess;
11
-use Symfony\Component\Validator\Constraints as Assert;
12 10
 use Victoire\Bundle\BusinessPageBundle\Entity\BusinessTemplate;
13 11
 use Victoire\Bundle\I18nBundle\Entity\ViewTranslation;
14 12
 use Victoire\Bundle\TemplateBundle\Entity\Template;
Please login to merge, or discard this patch.
Bundle/BlogBundle/Entity/ArticleTranslation.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      *
64 64
      * @param string $name
65 65
      *
66
-     * @return View
66
+     * @return ArticleTranslation
67 67
      */
68 68
     public function setName($name)
69 69
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @param string $slug
79 79
      *
80
-     * @return View
80
+     * @return ArticleTranslation
81 81
      */
82 82
     public function setSlug($slug)
83 83
     {
@@ -109,9 +109,8 @@  discard block
 block discarded – undo
109 109
     /**
110 110
      * Set category.
111 111
      *
112
-     * @param string $category
113 112
      *
114
-     * @return Article
113
+     * @return ArticleTranslation
115 114
      */
116 115
     public function setDescription($description)
117 116
     {
Please login to merge, or discard this patch.
Bundle/BusinessPageBundle/Builder/BusinessPageBuilder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
     /**
216 216
      * @param VirtualBusinessPage $page
217 217
      * @param BusinessTemplate    $businessTemplate
218
-     * @param array               $businessProperties
218
+     * @param BusinessProperty[]               $businessProperties
219 219
      * @param EntityManager       $em
220 220
      * @param                     $entity
221 221
      *
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Victoire\Bundle\BusinessPageBundle\Entity\VirtualBusinessPage;
16 16
 use Victoire\Bundle\CoreBundle\Exception\IdentifierNotDefinedException;
17 17
 use Victoire\Bundle\CoreBundle\Helper\UrlBuilder;
18
-use Victoire\Bundle\I18nBundle\Entity\ViewTranslation;
19 18
 use Victoire\Bundle\ViewReferenceBundle\Builder\ViewReferenceBuilder;
20 19
 
21 20
 /**
Please login to merge, or discard this patch.
Bundle/FormBundle/Form/Type/UrlvalidatedType.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -2,18 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Victoire\Bundle\FormBundle\Form\Type;
4 4
 
5
-use A2lix\TranslationFormBundle\Form\Type\TranslationsFieldsType;
6 5
 use Symfony\Bundle\FrameworkBundle\Routing\Router;
7 6
 use Symfony\Component\Form\AbstractType;
8
-use Symfony\Component\Form\FormBuilderInterface;
9
-use Symfony\Component\Form\FormEvent;
10
-use Symfony\Component\Form\FormEvents;
11 7
 use Symfony\Component\Form\FormInterface;
12 8
 use Symfony\Component\Form\FormView;
13 9
 use Symfony\Component\OptionsResolver\OptionsResolver;
14 10
 use Victoire\Bundle\CoreBundle\Entity\View;
15
-use Victoire\Bundle\CoreBundle\Helper\UrlBuilder;
16
-use Victoire\Bundle\I18nBundle\Entity\ViewTranslation;
17 11
 
18 12
 /**
19 13
  * Form field with some slug validation and domain prefix
Please login to merge, or discard this patch.
Bundle/I18nBundle/Command/LegacyViewTranslationMigrationCommand.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Victoire\Bundle\I18nBundle\Command;
4 4
 
5
-use Doctrine\ORM\Tools\DisconnectedClassMetadataFactory;
6 5
 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
7 6
 use Symfony\Component\Console\Input\InputInterface;
8 7
 use Symfony\Component\Console\Input\InputOption;
9 8
 use Symfony\Component\Console\Output\OutputInterface;
10
-use Victoire\Bundle\CoreBundle\Entity\Link;
11
-use Victoire\Bundle\I18nBundle\Entity\ViewTranslation;
12 9
 use Victoire\Bundle\I18nBundle\Entity\ViewTranslationLegacy;
13 10
 
14 11
 class LegacyViewTranslationMigrationCommand extends ContainerAwareCommand
Please login to merge, or discard this patch.
Bundle/PageBundle/Entity/Traits/WebViewTrait.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -179,6 +179,9 @@
 block discarded – undo
179 179
         return PropertyAccess::createPropertyAccessor()->getValue($this->translate(), 'getUrl');
180 180
     }
181 181
 
182
+    /**
183
+     * @param string $name
184
+     */
182 185
     public function setUrl($name, $locale = null)
183 186
     {
184 187
         $this->translate($locale)->setUrl($name);
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Victoire\Bundle\PageBundle\Entity\Traits;
4 4
 
5
-use Doctrine\Common\Util\ClassUtils;
6 5
 use Symfony\Component\PropertyAccess\PropertyAccess;
7 6
 use Victoire\Bundle\CoreBundle\Annotations as VIC;
8
-use Victoire\Bundle\CoreBundle\Entity\WebViewInterface;
9
-use Victoire\Bundle\CoreBundle\Helper\UrlBuilder;
10 7
 use Victoire\Bundle\PageBundle\Entity\PageStatus;
11 8
 use Victoire\Bundle\SeoBundle\Entity\PageSeo;
12 9
 
Please login to merge, or discard this patch.
Bundle/QueryBundle/Helper/QueryHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Doctrine\ORM\Mapping\ManyToOne;
9 9
 use Doctrine\ORM\Mapping\OneToMany;
10 10
 use Doctrine\ORM\Mapping\OneToOne;
11
-use Doctrine\ORM\Query\Expr\Join;
12 11
 use Doctrine\ORM\QueryBuilder;
13 12
 use FOS\UserBundle\Model\UserInterface;
14 13
 use Knp\DoctrineBehaviors\Model\Translatable\Translatable;
Please login to merge, or discard this patch.
Bundle/ViewReferenceBundle/Helper/ViewReferenceHelper.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,12 +3,9 @@
 block discarded – undo
3 3
 namespace Victoire\Bundle\ViewReferenceBundle\Helper;
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6
-use Doctrine\ORM\EntityRepository;
7 6
 use Victoire\Bundle\BusinessPageBundle\Entity\BusinessPage;
8
-use Victoire\Bundle\BusinessPageBundle\Entity\VirtualBusinessPage;
9 7
 use Victoire\Bundle\CoreBundle\Entity\View;
10 8
 use Victoire\Bundle\CoreBundle\Entity\WebViewInterface;
11
-use Victoire\Bundle\I18nBundle\Entity\ViewTranslation;
12 9
 use Victoire\Bundle\ViewReferenceBundle\Builder\ViewReferenceBuilder;
13 10
 
14 11
 /**
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Twig/LinkExtension.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,6 @@
 block discarded – undo
190 190
      *
191 191
      * @param array  $parameters The link parameters (go to LinkTrait to have the list)
192 192
      * @param string $label      link label
193
-     * @param array  $attr       custom attributes
194 193
      *
195 194
      * @return string
196 195
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@
 block discarded – undo
268 268
             if (is_array($item)) {
269 269
                 $item = implode($item, ' ');
270 270
             }
271
-            $item = $key . '="' .$item.'"';
271
+            $item = $key.'="'.$item.'"';
272 272
         });
273 273
 
274 274
         return implode($attributes, ' ');
Please login to merge, or discard this patch.