Add public keyword to methods

[MAILPOET-2413]
This commit is contained in:
Amine Ben hammou
2019-12-26 12:56:49 +01:00
committed by wxa
parent ec409042d5
commit 43df66d162
823 changed files with 4440 additions and 4440 deletions

View File

@ -13,7 +13,7 @@ class PostTransformer {
/** @var string */
private $image_position;
function __construct($args, PostTransformerContentsExtractor $extractor = null) {
public function __construct($args, PostTransformerContentsExtractor $extractor = null) {
$this->args = $args;
$this->with_layout = isset($args['withLayout']) ? (bool)filter_var($args['withLayout'], FILTER_VALIDATE_BOOLEAN) : false;
$this->image_position = 'left';
@ -23,7 +23,7 @@ class PostTransformer {
$this->extractor = $extractor;
}
function getDivider() {
public function getDivider() {
if (empty($this->with_layout)) {
return $this->args['divider'];
}
@ -32,7 +32,7 @@ class PostTransformer {
]);
}
function transform($post) {
public function transform($post) {
if (empty($this->with_layout)) {
return $this->getStructure($post);
}