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,11 +13,11 @@ class TimestampListener {
/** @var Carbon */
private $now;
function __construct(WPFunctions $wp) {
public function __construct(WPFunctions $wp) {
$this->now = Carbon::createFromTimestamp($wp->currentTime('timestamp'));
}
function prePersist(LifecycleEventArgs $event_args) {
public function prePersist(LifecycleEventArgs $event_args) {
$entity = $event_args->getEntity();
$entity_traits = $this->getEntityTraits($entity);
@@ -30,7 +30,7 @@ class TimestampListener {
}
}
function preUpdate(LifecycleEventArgs $event_args) {
public function preUpdate(LifecycleEventArgs $event_args) {
$entity = $event_args->getEntity();
$entity_traits = $this->getEntityTraits($entity);

View File

@@ -10,11 +10,11 @@ class ValidationListener {
/** @var ValidatorInterface */
private $validator;
function __construct(ValidatorInterface $validator) {
public function __construct(ValidatorInterface $validator) {
$this->validator = $validator;
}
function onFlush(OnFlushEventArgs $event_args) {
public function onFlush(OnFlushEventArgs $event_args) {
$unit_of_work = $event_args->getEntityManager()->getUnitOfWork();
foreach ($unit_of_work->getScheduledEntityInsertions() as $entity) {