Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CS & fix security issues #114

Merged
merged 2 commits into from
Feb 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Entity/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ public function __construct()
}

/**
* @var null|int
* @var int|null
*/
protected $id;

/**
* @var null|string
* @var string|null
*/
protected $code;

/**
* @var null|string
* @var string|null
*/
protected $type;

Expand Down
6 changes: 3 additions & 3 deletions src/Entity/BlockImageInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

/*
* This file has been created by developers from BitBag.
* This file has been created by developers from BitBag.
* Feel free to contact us once you face any issues or want to start
* another great project.
* another great project.
* You can find more information about us on https://bitbag.shop and write us
* an email on [email protected].
* an email on [email protected].
*/

declare(strict_types=1);
Expand Down
20 changes: 10 additions & 10 deletions src/Entity/BlockInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,32 @@ interface BlockInterface extends
public function getType(): ?string;

/**
* @param null|string $type
* @param string|null $type
*/
public function setType(?string $type): void;

/**
* @return null|string
* @return string|null
*/
public function getCode(): ?string;

/**
* @param null|string $code
* @param string|null $code
*/
public function setCode(?string $code): void;

/**
* @return null|string
* @return string|null
*/
public function getName(): ?string;

/**
* @param null|string $name
* @param string|null $name
*/
public function setName(?string $name): void;

/**
* @return null|string
* @return string|null
*/
public function getContent(): ?string;

Expand All @@ -69,22 +69,22 @@ public function getContent(): ?string;
public function setContent(?string $content): void;

/**
* @return null|ImageInterface
* @return ImageInterface|null
*/
public function getImage(): ?ImageInterface;

/**
* @param null|ImageInterface $image
* @param ImageInterface|null $image
*/
public function setImage(?ImageInterface $image): void;

/**
* @return null|string
* @return string|null
*/
public function getLink(): ?string;

/**
* @param null|string $link
* @param string|null $link
*/
public function setLink(?string $link): void;
}
10 changes: 5 additions & 5 deletions src/Entity/BlockTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ class BlockTranslation extends AbstractTranslation implements BlockTranslationIn
protected $id;

/**
* @var null|string
* @var string|null
*/
protected $name = null;
protected $name;

/**
* @var null|string
* @var string|null
*/
protected $content;

/**
* @var null|BlockImageInterface
* @var BlockImageInterface|null
*/
protected $image;

/**
* @var null|string
* @var string|null
*/
protected $link;

Expand Down
10 changes: 5 additions & 5 deletions src/Entity/BlockTranslationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
interface BlockTranslationInterface extends ResourceInterface, TranslationInterface
{
/**
* @return null|string
* @return string|null
*/
public function getName(): ?string;

/**
* @param null|string $name
* @param string|null $name
*/
public function setName(?string $name): void;

/**
* @return null|string
* @return string|null
*/
public function getContent(): ?string;

Expand All @@ -48,12 +48,12 @@ public function getImage(): ?BlockImageInterface;
public function setImage(?BlockImageInterface $image): void;

/**
* @return null|string
* @return string|null
*/
public function getLink(): ?string;

/**
* @param null|string $link
* @param string|null $link
*/
public function setLink(?string $link): void;
}
4 changes: 2 additions & 2 deletions src/Entity/FrequentlyAskedQuestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class FrequentlyAskedQuestion implements FrequentlyAskedQuestionInterface
protected $id;

/**
* @var null|string
* @var string|null
*/
protected $code;

/**
* @var null|int
* @var int|null
*/
protected $position;

Expand Down
16 changes: 8 additions & 8 deletions src/Entity/FrequentlyAskedQuestionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,42 +19,42 @@
interface FrequentlyAskedQuestionInterface extends ResourceInterface, TranslatableInterface, ToggleableInterface
{
/**
* @return null|string
* @return string|null
*/
public function getCode(): ?string;

/**
* @param null|string $code
* @param string|null $code
*/
public function setCode(?string $code): void;

/**
* @return null|int
* @return int|null
*/
public function getPosition(): ?int;

/**
* @param null|int $position
* @param int|null $position
*/
public function setPosition(?int $position): void;

/**
* @return null|string
* @return string|null
*/
public function getQuestion(): ?string;

/**
* @param null|string $question
* @param string|null $question
*/
public function setQuestion(?string $question): void;

/**
* @return null|string
* @return string|null
*/
public function getAnswer(): ?string;

/**
* @param null|string $answer
* @param string|null $answer
*/
public function setAnswer(?string $answer): void;
}
4 changes: 2 additions & 2 deletions src/Entity/FrequentlyAskedQuestionTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ class FrequentlyAskedQuestionTranslation extends AbstractTranslation implements
protected $id;

/**
* @var null|string
* @var string|null
*/
protected $question;

/**
* @var null|string
* @var string|null
*/
protected $answer;

Expand Down
4 changes: 2 additions & 2 deletions src/Entity/FrequentlyAskedQuestionTranslationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
interface FrequentlyAskedQuestionTranslationInterface extends TranslationInterface, ResourceInterface
{
/**
* @return null|string
* @return string|null
*/
public function getQuestion(): ?string;

Expand All @@ -28,7 +28,7 @@ public function getQuestion(): ?string;
public function setQuestion(string $question): void;

/**
* @return null|string
* @return string|null
*/
public function getAnswer(): ?string;

Expand Down
4 changes: 2 additions & 2 deletions src/Entity/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ class Page implements PageInterface
}

/**
* @var null|int
* @var int|null
*/
protected $id;

/**
* @var null|string
* @var string|null
*/
protected $code;

Expand Down
22 changes: 11 additions & 11 deletions src/Entity/PageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,47 +26,47 @@ interface PageInterface extends
TimestampableInterface
{
/**
* @return null|string
* @return string|null
*/
public function getSlug(): ?string;

/**
* @param null|string $slug
* @param string|null $slug
*/
public function setSlug(?string $slug): void;

/**
* @return null|string
* @return string|null
*/
public function getCode(): ?string;

/**
* @param null|string $code
* @param string|null $code
*/
public function setCode(?string $code): void;

/**
* @return null|string
* @return string|null
*/
public function getMetaKeywords(): ?string;

/**
* @param null|string $metaKeywords
* @param string|null $metaKeywords
*/
public function setMetaKeywords(?string $metaKeywords): void;

/**
* @return null|string
* @return string|null
*/
public function getMetaDescription(): ?string;

/**
* @param null|string $metaDescription
* @param string|null $metaDescription
*/
public function setMetaDescription(?string $metaDescription): void;

/**
* @return null|string
* @return string|null
*/
public function getContent(): ?string;

Expand All @@ -76,12 +76,12 @@ public function getContent(): ?string;
public function setContent(?string $content): void;

/**
* @return null|string
* @return string|null
*/
public function getName(): ?string;

/**
* @param null|string $name
* @param string|null $name
*/
public function setName(?string $name): void;
}
10 changes: 5 additions & 5 deletions src/Entity/PageTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ class PageTranslation extends AbstractTranslation implements PageTranslationInte
protected $id;

/**
* @var null|string
* @var string|null
*/
protected $slug;

/**
* @var null|string
* @var string|null
*/
protected $name;

/**
* @var null|string
* @var string|null
*/
protected $content;

/**
* @var null|string
* @var string|null
*/
protected $metaKeywords;

/**
* @var null|string
* @var string|null
*/
protected $metaDescription;

Expand Down
Loading