| @@ -15,7 +15,6 @@ | ||
| 15 | 15 | /** | 
| 16 | 16 | * define supported types. | 
| 17 | 17 | * | 
| 18 | - * @param array $types supported types (text, media, date) | |
| 19 | 18 | **/ | 
| 20 | 19 | public function __construct($data) | 
| 21 | 20 |      { | 
| @@ -41,7 +41,7 @@ | ||
| 41 | 41 | /** | 
| 42 | 42 | * Get SubscribedEvents. | 
| 43 | 43 | * | 
| 44 | - * @return array | |
| 44 | + * @return string[] | |
| 45 | 45 | */ | 
| 46 | 46 | public function getSubscribedEvents() | 
| 47 | 47 |      { | 
| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | * | 
| 37 | 37 | * @param Event $event | 
| 38 | 38 | * | 
| 39 | - * @return Ambigous <\Knp\Menu\ItemInterface, NULL> | |
| 39 | + * @return \Knp\Menu\ItemInterface <\Knp\Menu\ItemInterface, NULL> | |
| 40 | 40 | */ | 
| 41 | 41 | public function addGlobal(Event $event) | 
| 42 | 42 |      { | 
| @@ -432,7 +432,7 @@ | ||
| 432 | 432 | /** | 
| 433 | 433 | * Set image. | 
| 434 | 434 | * | 
| 435 | - * @param string|Media $image | |
| 435 | + * @param Media $image | |
| 436 | 436 | * | 
| 437 | 437 | * @return $this | 
| 438 | 438 | */ | 
| @@ -40,7 +40,7 @@ discard block | ||
| 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 | ||
| 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; | 
| @@ -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 | } |