@@ -84,7 +84,7 @@ |
||
84 | 84 | { |
85 | 85 | $question = new Question('<question>Choose record.</question> (#id): '); |
86 | 86 | |
87 | - $question->setValidator(function ($id) { |
|
87 | + $question->setValidator(function($id) { |
|
88 | 88 | try { |
89 | 89 | return $this->sectionHistoryManager->read(Id::fromInt((int) $id)); |
90 | 90 | } catch (SectionHistoryNotFoundException $exception) { |
@@ -86,7 +86,7 @@ |
||
86 | 86 | private function getField(InputInterface $input, OutputInterface $output): ?Field |
87 | 87 | { |
88 | 88 | $question = new Question('<question>What record do you want to delete?</question> (#id): '); |
89 | - $question->setValidator(function ($id) { |
|
89 | + $question->setValidator(function($id) { |
|
90 | 90 | try { |
91 | 91 | return $this->fieldManager->read(Id::fromInt((int) $id)); |
92 | 92 | } catch (FieldNotFoundException $exception) { |
@@ -72,7 +72,7 @@ |
||
72 | 72 | private function getField(InputInterface $input, OutputInterface $output): Field |
73 | 73 | { |
74 | 74 | $question = new Question('<question>What record do you want to update?</question> (#id): '); |
75 | - $question->setValidator(function ($id) { |
|
75 | + $question->setValidator(function($id) { |
|
76 | 76 | try { |
77 | 77 | return $this->fieldManager->read(Id::fromInt((int) $id)); |
78 | 78 | } catch (FieldNotFoundException $exception) { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | private function getApplicationRecord(InputInterface $input, OutputInterface $output): ?ApplicationInterface |
69 | 69 | { |
70 | 70 | $question = new Question('<question>What record do you want to delete?</question> (#id): '); |
71 | - $question->setValidator(function ($id) { |
|
71 | + $question->setValidator(function($id) { |
|
72 | 72 | try { |
73 | 73 | return $this->applicationManager->read(Id::fromInt((int) $id)); |
74 | 74 | } catch (ApplicationNotFoundException $exception) { |
@@ -102,7 +102,7 @@ |
||
102 | 102 | private function getFieldType(InputInterface $input, OutputInterface $output): FieldType |
103 | 103 | { |
104 | 104 | $question = new Question('<question>What record do you want to delete?</question> (#id): '); |
105 | - $question->setValidator(function ($id) { |
|
105 | + $question->setValidator(function($id) { |
|
106 | 106 | try { |
107 | 107 | return $this->fieldTypeManager->read(Id::fromInt((int) $id)); |
108 | 108 | } catch (FieldTypeNotFoundException $exception) { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | private function getLanguageRecord(InputInterface $input, OutputInterface $output): ?LanguageInterface |
65 | 65 | { |
66 | 66 | $question = new Question('<question>What record do you want to delete?</question> (#id): '); |
67 | - $question->setValidator(function ($id) { |
|
67 | + $question->setValidator(function($id) { |
|
68 | 68 | try { |
69 | 69 | return $this->languageManager->read(Id::fromInt((int) $id)); |
70 | 70 | } catch (LanguageNotFoundException $exception) { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | private function getApplicationRecord(InputInterface $input, OutputInterface $output): ApplicationInterface |
74 | 74 | { |
75 | 75 | $question = new Question('<question>What record do you want to update?</question> (#id): '); |
76 | - $question->setValidator(function ($id) { |
|
76 | + $question->setValidator(function($id) { |
|
77 | 77 | try { |
78 | 78 | return $this->applicationManager->read(Id::fromInt((int) $id)); |
79 | 79 | } catch (ApplicationNotFoundException $exception) { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | private function getFieldType(InputInterface $input, OutputInterface $output): FieldType |
72 | 72 | { |
73 | 73 | $question = new Question('<question>What record do you want to update?</question> (#id): '); |
74 | - $question->setValidator(function ($id) { |
|
74 | + $question->setValidator(function($id) { |
|
75 | 75 | try { |
76 | 76 | return $this->fieldTypeManager->read(Id::fromInt((int) $id)); |
77 | 77 | } catch (FieldTypeNotFoundException $exception) { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $fieldType->getFullyQualifiedClassName() . |
97 | 97 | '): ' |
98 | 98 | ); |
99 | - $updateQuestion->setValidator(function ($fullyQualifiedClassName) { |
|
99 | + $updateQuestion->setValidator(function($fullyQualifiedClassName) { |
|
100 | 100 | return FullyQualifiedClassName::fromString($fullyQualifiedClassName); |
101 | 101 | }); |
102 | 102 |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | protected function getSection(InputInterface $input, OutputInterface $output): ?SectionInterface |
74 | 74 | { |
75 | 75 | $question = new Question('<question>Choose record.</question> (#id): '); |
76 | - $question->setValidator(function ($id) { |
|
76 | + $question->setValidator(function($id) { |
|
77 | 77 | try { |
78 | 78 | return $this->sectionManager->read(Id::fromInt((int) $id)); |
79 | 79 | } catch (SectionNotFoundException $exception) { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | protected function getSections(InputInterface $input, OutputInterface $output): array |
98 | 98 | { |
99 | 99 | $question = new Question('<question>Choose record.</question> (#id): '); |
100 | - $question->setValidator(function ($id) { |
|
100 | + $question->setValidator(function($id) { |
|
101 | 101 | try { |
102 | 102 | if ($id === self::ALL) { |
103 | 103 | return $this->sectionManager->readAll(); |