Completed
Push — master ( 5ac386...ef9fce )
by Paul
09:44
created
Bundle/BlogBundle/Form/CategoryType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
          */
41 41
         $builder->addEventListener(
42 42
             FormEvents::PRE_SET_DATA,
43
-            function ($event) {
43
+            function($event) {
44 44
                 $entity = $event->getData();
45 45
 
46 46
                 if ($entity !== null) {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
          */
63 63
         $builder->addEventListener(
64 64
             FormEvents::PRE_SUBMIT,
65
-            function ($event) {
65
+            function($event) {
66 66
                 $rawData = $event->getData();
67 67
                 if (isset($rawData['children'])) {
68 68
                     $addChildren = true;
Please login to merge, or discard this patch.
Bundle/BusinessPageBundle/Transformer/VirtualToBusinessPageTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 class VirtualToBusinessPageTransformer
9 9
 {
10
-    public function transform(VirtualBusinessPage &$sourceObject)
10
+    public function transform(VirtualBusinessPage & $sourceObject)
11 11
     {
12 12
         $bp = new BusinessPage();
13 13
 
Please login to merge, or discard this patch.
Bundle/MediaBundle/Entity/Folder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             return $this->children;
297 297
         }
298 298
 
299
-        return $this->children->filter(function (Folder $entry) {
299
+        return $this->children->filter(function(Folder $entry) {
300 300
             if ($entry->isDeleted()) {
301 301
                 return false;
302 302
             }
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             return $this->media;
365 365
         }
366 366
 
367
-        return $this->media->filter(function (Media $entry) {
367
+        return $this->media->filter(function(Media $entry) {
368 368
             if ($entry->isDeleted()) {
369 369
                 return false;
370 370
             }
Please login to merge, or discard this patch.
Bundle/MediaBundle/Entity/Media.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,11 +153,11 @@
 block discarded – undo
153 153
         if ($size < 1024) {
154 154
             return $size.'b';
155 155
         } else {
156
-            $help = $size / 1024;
156
+            $help = $size/1024;
157 157
             if ($help < 1024) {
158 158
                 return round($help, 1).'kb';
159 159
             } else {
160
-                return round(($help / 1024), 1).'mb';
160
+                return round(($help/1024), 1).'mb';
161 161
             }
162 162
         }
163 163
     }
Please login to merge, or discard this patch.
Bundle/TwigBundle/Repository/ErrorPageRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         if (!$page && $deepMode) {
30 30
             // Check for a same family error
31 31
             // for example, for a 404 code, if the 404 error page doesn't exist, we check for a 400 errorPage
32
-            $page = $this->findOneByCode(floor($code / 100) * 100);
32
+            $page = $this->findOneByCode(floor($code/100)*100);
33 33
         }
34 34
 
35 35
         return $page;
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Form/WidgetStyleType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 'required' => false,
61 61
                 'mapped'   => false,
62 62
             ])
63
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
63
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
64 64
                 /*
65 65
                  * Generate form fields for each part of form
66 66
                  * Example, generate Static content, XS and SM as color forms
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
                         'data-refreshOnChange' => 'true',
119 119
                     ],
120 120
                 ])
121
-                ->get('containerBackgroundType'.$key)->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($key) {
121
+                ->get('containerBackgroundType'.$key)->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($key) {
122 122
                     self::generateBackgroundFields($event->getForm()->getParent(), $key, $event->getData());
123 123
                 });
124 124
         }
125 125
 
126 126
         // add theme field
127
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
127
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
128 128
             $data = $event->getData();
129 129
             $form = $event->getForm();
130 130
             //guess the bundle name
Please login to merge, or discard this patch.
Tests/Features/Context/FeatureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function iWaitSeconds($nbr)
25 25
     {
26
-        $this->getSession()->wait($nbr * 1000);
26
+        $this->getSession()->wait($nbr*1000);
27 27
     }
28 28
 
29 29
     public function getSymfonyProfile()
Please login to merge, or discard this patch.
Bundle/CoreBundle/Route/RouteLoader.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         return $collection;
30 30
     }
31 31
 
32
-    protected function addVictoireRouting(RouteCollection &$collection)
32
+    protected function addVictoireRouting(RouteCollection & $collection)
33 33
     {
34 34
         $resources = [
35 35
             '@VictoireAnalyticsBundle/Controller/',
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         }
50 50
     }
51 51
 
52
-    protected function addWidgetsRouting(RouteCollection &$collection)
52
+    protected function addWidgetsRouting(RouteCollection & $collection)
53 53
     {
54 54
         foreach ($this->widgets as $widgetParams) {
55 55
             $controllerResource = '@VictoireWidget'.$widgetParams['name'].'Bundle/Controller/';
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
     }
62 62
 
63
-    protected function addShowBusinessPageByIdAction(RouteCollection &$collection)
63
+    protected function addShowBusinessPageByIdAction(RouteCollection & $collection)
64 64
     {
65 65
         $pattern = '/victoire-dcms-public/show-business-page-by-id/{entityId}/{type}';
66 66
         $defaults = [
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $collection->add($routeName, $route);
75 75
     }
76 76
 
77
-    protected function addShowPageByIdRoute(RouteCollection &$collection)
77
+    protected function addShowPageByIdRoute(RouteCollection & $collection)
78 78
     {
79 79
         $pattern = '/victoire-dcms-public/show-page-by-id/{viewId}/{entityId}';
80 80
         $defaults = [
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $collection->add($routeName, $route);
93 93
     }
94 94
 
95
-    protected function addShowPageRoute(RouteCollection &$collection)
95
+    protected function addShowPageRoute(RouteCollection & $collection)
96 96
     {
97 97
         // prepare a new route
98 98
         $pattern = '/{url}';
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $collection->add('victoire_core_page_show', $route);
109 109
     }
110 110
 
111
-    protected function addShowHomePageRoute(RouteCollection &$collection)
111
+    protected function addShowHomePageRoute(RouteCollection & $collection)
112 112
     {
113 113
         // prepare a new route
114 114
         $pattern = '/';
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Helper/WidgetHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
                 if (array_key_exists('cache_timout', $widgetParams)) {
159 159
                     return $widgetParams['cache_timout'];
160 160
                 } else {
161
-                    return 7 * 24 * 60 * 1000; // one week by default
161
+                    return 7*24*60*1000; // one week by default
162 162
                 }
163 163
             }
164 164
         }
Please login to merge, or discard this patch.