Completed
Push — master ( 4de43c...7a7d43 )
by Paul
06:26
created
Bundle/SitemapBundle/Domain/Export/SitemapExportHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         $ids = [$tree->getViewId()];
59 59
 
60
-        $getChildrenIds = function (ViewReference $tree) use (&$getChildrenIds, $ids) {
60
+        $getChildrenIds = function(ViewReference $tree) use (&$getChildrenIds, $ids) {
61 61
             foreach ($tree->getChildren() as $child) {
62 62
                 $ids[] = $child->getViewId();
63 63
                 $ids = array_merge($ids, $getChildrenIds($child));
Please login to merge, or discard this patch.
Bundle/CriteriaBundle/DataSource/RequestDataSource.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
             'options' => [
43 43
                 'choices'           => $this->availableLocales,
44 44
                 'choices_as_values' => true,
45
-                'choice_label'      => function ($value) {
45
+                'choice_label'      => function($value) {
46 46
                     return $value;
47 47
                 },
48 48
             ],
Please login to merge, or discard this patch.
Bundle/CriteriaBundle/DataSource/DomainNameDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             'options' => [
60 60
                 'choices'           => $this->getDomainName(),
61 61
                 'choices_as_values' => true,
62
-                'choice_label'      => function ($value) {
62
+                'choice_label'      => function($value) {
63 63
                     return $value;
64 64
                 },
65 65
             ],
Please login to merge, or discard this patch.
Bundle/CriteriaBundle/Form/Type/CriteriaType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         $builder->addEventListener(
26 26
             FormEvents::PRE_SET_DATA,
27
-            function (FormEvent $event) use ($options) {
27
+            function(FormEvent $event) use ($options) {
28 28
                 //we get the raw data for the widget form
29 29
                 $name = $event->getData()->getName();
30 30
                 $formParams = $options['dataSources']->getDataSource($name)->{$options['dataSources']->getDataSourceParameters($name)['method'].'FormParams'}();
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
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
             ->getQuery()
119 119
             ->getResult();
120 120
         $templates = [];
121
-        $recursiveGetTemplates = function ($template) use (&$recursiveGetTemplates, &$templates) {
121
+        $recursiveGetTemplates = function($template) use (&$recursiveGetTemplates, &$templates) {
122 122
             array_push($templates, $template);
123 123
             foreach ($template->getInheritors() as $_template) {
124 124
                 if ($_template instanceof Template) {
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/AdditionnalPropertiesType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $businessEntity = $options['businessEntity'];
28 28
         $getMethod = $businessEntity->getGetMethod();
29 29
         preg_match_all('/{{([a-zA-Z]+)}}/', $getMethod, $matches);
30
-        $identifiers = array_map(function ($property) {
30
+        $identifiers = array_map(function($property) {
31 31
             return $property->getName();
32 32
         },
33 33
             $businessEntity->getBusinessIdentifiers()->toArray()
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/WidgetType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         //we use the PRE_SUBMIT event to set the mode option
74 74
         $builder->addEventListener(
75 75
             FormEvents::PRE_SUBMIT,
76
-            function (FormEvent $event) use ($options) {
76
+            function(FormEvent $event) use ($options) {
77 77
                 //we get the raw data for the widget form
78 78
                 $rawData = $event->getData();
79 79
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         ]);
118 118
         $builder->addEventListener(
119 119
             FormEvents::PRE_SET_DATA,
120
-            function (FormEvent $event) use ($options) {
120
+            function(FormEvent $event) use ($options) {
121 121
                 $dataSources = $options['dataSources']->getDataSources();
122 122
                 $widget = $event->getData();
123 123
                 foreach ($dataSources as $alias => $dataSource) {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         );
132 132
         $builder->addEventListener(
133 133
             FormEvents::POST_SUBMIT,
134
-            function (FormEvent $event) {
134
+            function(FormEvent $event) {
135 135
                 $widget = $event->getData();
136 136
                 /** @var Criteria $criteria */
137 137
                 foreach ($widget->getCriterias() as $criteria) {
Please login to merge, or discard this patch.
Bundle/APIBusinessEntityBundle/Resolver/APIBusinessEntityResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $getMethod = $businessEntity->getGetMethod();
51 51
         preg_match_all('/{{([a-zA-Z]+)}}/', $getMethod, $matches);
52 52
         // build an array with businessIdentifiers properties names
53
-        $identifiers = array_map(function ($property) {
53
+        $identifiers = array_map(function($property) {
54 54
             return $property->getName();
55 55
         },
56 56
             $businessEntity->getBusinessIdentifiers()->toArray()
Please login to merge, or discard this patch.
Bundle/SitemapBundle/Controller/SitemapController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Victoire\Bundle\SitemapBundle\Controller;
4 4
 
5
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
6 5
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
7 6
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
8 7
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
Please login to merge, or discard this patch.