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

@ -27,7 +27,7 @@ class FormEditor {
/** @var CustomFieldsResponseBuilder */
private $custom_fields_response_builder;
function __construct(
public function __construct(
PageRenderer $page_renderer,
FeaturesController $features_controller,
CustomFieldsRepository $custom_fields_repository,
@ -39,7 +39,7 @@ class FormEditor {
$this->custom_fields_response_builder = $custom_fields_response_builder;
}
function render() {
public function render() {
$id = (isset($_GET['id']) ? (int)$_GET['id'] : 0);
$form = Form::findOne($id);
if ($form instanceof Form) {