Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Applied fixes from FlintCI (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh authored and OskarStark committed Jul 22, 2019
1 parent 7f38d61 commit ce8ed93
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
2 changes: 0 additions & 2 deletions src/CmsManager/BaseCmsDashboardManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public function getDashboardById(int $id): DashboardInterface

/**
* @param mixed $value
*
* @return DashboardInterface
*/
abstract protected function getDashboardBy(string $fieldName, $value): DashboardInterface;
}
15 changes: 0 additions & 15 deletions src/Controller/BlockAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
*/
final class BlockAdminController extends Controller
{
/**
* @param Request $request
*
* @return Response
*/
public function savePositionAction(Request $request): Response
{
$this->setSubject($request->get('block_id'));
Expand Down Expand Up @@ -117,12 +112,8 @@ public function createAction(Request $request = null)
}

/**
* @param Request $request
*
* @throws HttpException
* @throws NotFoundHttpException
*
* @return Response
*/
public function switchParentAction(Request $request): Response
{
Expand All @@ -147,11 +138,7 @@ public function switchParentAction(Request $request): Response
}

/**
* @param Request $request
*
* @throws NotFoundHttpException
*
* @return Response
*/
public function composePreviewAction(Request $request): Response
{
Expand All @@ -178,8 +165,6 @@ public function composePreviewAction(Request $request): Response
* @param mixed $blockId
*
* @throws NotFoundHttpException
*
* @return BaseBlock
*/
private function setSubject($blockId): BaseBlock
{
Expand Down
2 changes: 0 additions & 2 deletions src/DependencyInjection/SonataDashboardExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ public function registerParameters(ContainerBuilder $container, array $config):

/**
* Registers doctrine mapping on concrete dashboard entities.
*
* @param array $config
*/
public function registerDoctrineMapping(array $config): void
{
Expand Down
14 changes: 0 additions & 14 deletions src/Model/DashboardInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ interface DashboardInterface
{
/**
* Returns the id.
*
* @return int|null
*/
public function getId(): ?int;

Expand All @@ -37,7 +35,6 @@ public function setId(?int $id);
/**
* Set enabled.
*
* @param bool $enabled
*
* @return $this
*/
Expand All @@ -53,7 +50,6 @@ public function getEnabled(): bool;
/**
* Set name.
*
* @param string|null $name
*
* @return $this
*/
Expand All @@ -69,7 +65,6 @@ public function getName(): ?string;
/**
* Set createdAt.
*
* @param \DateTime|null $createdAt
*
* @return $this
*/
Expand Down Expand Up @@ -98,9 +93,6 @@ public function setUpdatedAt(?\DateTime $updatedAt);
*/
public function getUpdatedAt(): ?\DateTime;

/**
* @return bool
*/
public function isDefault(): bool;

/**
Expand All @@ -113,7 +105,6 @@ public function setDefault($default);
/**
* Add blocs.
*
* @param DashboardBlockInterface $block
*
* @return $this
*/
Expand All @@ -126,14 +117,9 @@ public function addBlocks(DashboardBlockInterface $block);
*/
public function getBlocks();

/**
* @return bool
*/
public function getEdited(): bool;

/**
* @param bool $edited
*
* @return $this
*/
public function setEdited(bool $edited);
Expand Down

0 comments on commit ce8ed93

Please sign in to comment.