Reformat code

This commit is contained in:
Molkobain
2020-09-30 15:33:15 +02:00
parent ce001a8097
commit 57fda98981
6 changed files with 126 additions and 176 deletions

View File

@@ -25,13 +25,12 @@ use Combodo\iTop\Application\UI\iUIBlock;
/**
* Class PageContentWithSideContent
*
* @author Guillaume Lajarige <guillaume.lajarige@combodo.com>
* @author Guillaume Lajarige <guillaume.lajarige@combodo.com>
* @package Combodo\iTop\Application\UI\Layout\PageContent
* @internal
* @since 2.8.0
* @since 2.8.0
*/
class PageContentWithSideContent extends PageContent
{
class PageContentWithSideContent extends PageContent {
// Overloaded constants
public const BLOCK_CODE = 'ibo-page-content-with-side-content';
public const HTML_TEMPLATE_REL_PATH = 'layouts/page-content/with-side-content';
@@ -44,8 +43,7 @@ class PageContentWithSideContent extends PageContent
*
* @param string|null $sId
*/
public function __construct(?string $sId = null)
{
public function __construct(?string $sId = null) {
parent::__construct($sId);
$this->SetSideBlocks([]);
@@ -58,8 +56,7 @@ class PageContentWithSideContent extends PageContent
*
* @return $this
*/
public function SetSideBlocks(array $aBlocks)
{
public function SetSideBlocks(array $aBlocks) {
$this->SetContentAreaBlocks(static::ENUM_CONTENT_AREA_SIDE, $aBlocks);
return $this;
@@ -71,8 +68,7 @@ class PageContentWithSideContent extends PageContent
* @return \Combodo\iTop\Application\UI\iUIBlock[]
* @throws \Exception
*/
public function GetSideBlocks()
{
public function GetSideBlocks() {
return $this->GetContentAreaBlocks(static::ENUM_CONTENT_AREA_SIDE);
}
@@ -84,9 +80,9 @@ class PageContentWithSideContent extends PageContent
*
* @return $this
*/
public function AddSideBlock(iUIBlock $oBlock)
{
public function AddSideBlock(iUIBlock $oBlock) {
$this->AddBlockToContentArea(static::ENUM_CONTENT_AREA_SIDE, $oBlock);
return $this;
}
@@ -98,8 +94,7 @@ class PageContentWithSideContent extends PageContent
*
* @return $this
*/
public function RemoveSideBlock(string $sBlockId)
{
public function RemoveSideBlock(string $sBlockId) {
$this->RemoveBlockFromContentArea(static::ENUM_CONTENT_AREA_SIDE, $sBlockId);
return $this;