Completed
Pull Request — master (#374)
by Leny
06:07
created
Bundle/WidgetBundle/Builder/WidgetFormBuilder.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -236,6 +236,7 @@
 block discarded – undo
236 236
      * @param string $namespace        the namespace
237 237
      * @param string $formMode         the form mode
238 238
      * @param int    $position
239
+     * @param string $slotId
239 240
      *
240 241
      * @throws \Exception
241 242
      *
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Entity/Widget.php 1 patch
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.
Bundle/WidgetMapBundle/Entity/WidgetMap.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@
 block discarded – undo
112 112
         return $this->id;
113 113
     }
114 114
 
115
+    /**
116
+     * @param null|integer $id
117
+     */
115 118
     public function setId($id)
116 119
     {
117 120
         $this->id = $id;
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Builder/WidgetMapBuilder.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -106,6 +106,10 @@
 block discarded – undo
106 106
      * depending of the children parents and positions
107 107
      * @param WidgetMap $currentWidgetMap
108 108
      */
109
+
110
+    /**
111
+     * @param View $view
112
+     */
109 113
     protected function orderizeWidgetMap($currentWidgetMap, $builtWidgetMap, $slot, $widgetMaps, $view){
110 114
         $children = $currentWidgetMap->getChildren($view);
111 115
         foreach ($children as $child) {
Please login to merge, or discard this patch.
Bundle/CoreBundle/Handler/WidgetExceptionHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /**
22 22
      * Constructor.
23 23
      *
24
-     * @param SecurityContext $authorizationChecker
24
+     * @param AuthorizationChecker $authorizationChecker
25 25
      * @param TwigEngine      $twig
26 26
      * @param bool            $debug      The debug variable environment
27 27
      * @param TemplateMapper  $templating The victoire templating
Please login to merge, or discard this patch.
Bundle/MediaBundle/Form/FolderType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
                 'choices'   => ['media' => 'media', 'image' => 'image', 'slideshow' => 'slideshow', 'video' => 'video'],
43 43
                 ])
44 44
             ->add('parent', EntityType::class, ['class' => 'Victoire\Bundle\MediaBundle\Entity\Folder', 'required' => false,
45
-                'query_builder'                         => function (\Doctrine\ORM\EntityRepository $er) use ($folder, $type) {
45
+                'query_builder'                         => function(\Doctrine\ORM\EntityRepository $er) use ($folder, $type) {
46 46
                     $qb = $er->createQueryBuilder('folder');
47 47
 
48 48
                     if ($folder != null && $folder->getId() != null) {
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/WidgetType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         //we use the PRE_SUBMIT event to set the mode option
67 67
         $builder->addEventListener(
68 68
             FormEvents::PRE_SUBMIT,
69
-            function (FormEvent $event) use ($options) {
69
+            function(FormEvent $event) use ($options) {
70 70
                 //we get the raw data for the widget form
71 71
                 $rawData = $event->getData();
72 72
 
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Form/WidgetOptionsContainer.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
     }
38 38
 
39 39
     /**
40
-     * @param array $options
41 40
      */
42 41
     public function add($key, $value)
43 42
     {
Please login to merge, or discard this patch.
Bundle/CoreBundle/Command/WidgetCssGenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
             ->getQuery()
59 59
             ->getResult();
60 60
         $templates = [];
61
-        $recursiveGetTemplates = function ($template) use (&$recursiveGetTemplates, &$templates) {
61
+        $recursiveGetTemplates = function($template) use (&$recursiveGetTemplates, &$templates) {
62 62
             array_push($templates, $template);
63 63
             foreach ($template->getInheritors() as $template) {
64 64
                 if ($template instanceof Template) {
Please login to merge, or discard this patch.