Problem/Motivation
Method signature code style is mixed in the module. Example:
src/Form/MediaRevisionDeleteForm.php
public function __construct(
RevisionableStorageInterface $media_storage,
DateFormatterInterface $date_formatter
) {
$this->mediaStorage = $media_storage;
$this->dateFormatter = $date_formatter;
}
public function buildForm(array $form, FormStateInterface $form_state, $media_revision = NULL) {
$this->revision = $this->mediaStorage->loadRevision($media_revision);
$form = parent::buildForm($form, $form_state);
return $form;
}
Proposed resolution
Change all method signatures to single line.
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
ngkoutsaik commentedComment #3
ngkoutsaik commentedComment #4
bcizej commentedThanks for the patch but there is a method in test that is still not converted.
tests/src/Functional/MediaRevisionsUiTest.phpComment #5
bcizej commentedFixed the missing method.
Comment #6
Anonymous (not verified) commentedThanks for the patch,
I reviewed the patch and ran tests and everything works as expected.
Kind regards, Denis
Comment #8
bcizej commented