@@ -7,7 +7,7 @@ |
||
| 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 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function fetch($id) |
| 42 | 42 | { |
| 43 | - $id = $this->uniqId + '-' + $id; |
|
| 43 | + $id = $this->uniqId + '-' +$id; |
|
| 44 | 44 | if ($this->contains($id)) { |
| 45 | 45 | return $this->cache->fetch($id); |
| 46 | 46 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function save($id, $data) |
| 60 | 60 | { |
| 61 | - $id = $this->uniqId + '-' + $id; |
|
| 61 | + $id = $this->uniqId + '-' +$id; |
|
| 62 | 62 | if (!$this->apcIsEnabled()) { |
| 63 | 63 | return false; |
| 64 | 64 | } |
@@ -296,7 +296,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -153,11 +153,11 @@ |
||
| 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 | } |
@@ -29,7 +29,7 @@ |
||
| 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; |
@@ -60,7 +60,7 @@ discard block |
||
| 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 |
||
| 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 |
@@ -23,7 +23,7 @@ |
||
| 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() |
@@ -158,7 +158,7 @@ |
||
| 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 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | ->scalarNode('class')->end() |
| 65 | 65 | ->scalarNode('name')->end() |
| 66 | 66 | ->scalarNode('cache')->defaultTrue()->end() |
| 67 | - ->scalarNode('cache_timeout')->defaultValue(7 * 24 * 60 * 1000)->end() //one week |
|
| 67 | + ->scalarNode('cache_timeout')->defaultValue(7*24*60*1000)->end() //one week |
|
| 68 | 68 | ->end() |
| 69 | 69 | ->end() |
| 70 | 70 | ->defaultValue([]) |