@@ -31,11 +31,6 @@ public function __construct(FormInteractor $formInteractor)
3131 }
3232
3333 /**
34- * @param FormInterface $form
35- * @param HelperSet $helperSet
36- * @param InputInterface $input
37- * @param OutputInterface $output
38- *
3934 * @throws CanNotInteractWithForm If the input isn't interactive
4035 * @throws FormNotReadyForInteraction If the "collection" form hasn't the option "allow_add"
4136 *
@@ -94,18 +89,11 @@ public function interactWith(
9489 return $ submittedData ;
9590 }
9691
97- /**
98- * @param HelperSet $helperSet
99- * @param InputInterface $input
100- * @param OutputInterface $output
101- *
102- * @return string
103- */
10492 private function askIfContinueToAdd (
10593 HelperSet $ helperSet ,
10694 InputInterface $ input ,
10795 OutputInterface $ output
108- ) {
96+ ): string {
10997 return $ this ->questionHelper ($ helperSet )->ask (
11098 $ input ,
11199 $ output ,
@@ -116,12 +104,7 @@ private function askIfContinueToAdd(
116104 );
117105 }
118106
119- /**
120- * @param HelperSet $helperSet
121- *
122- * @return QuestionHelper
123- */
124- private function questionHelper (HelperSet $ helperSet )
107+ private function questionHelper (HelperSet $ helperSet ): QuestionHelper
125108 {
126109 $ helper = $ helperSet ->get ('question ' );
127110
@@ -132,11 +115,7 @@ private function questionHelper(HelperSet $helperSet)
132115 return $ helper ;
133116 }
134117
135- /**
136- * @param FormInterface $form
137- * @param OutputInterface $output
138- */
139- private function printHeader (FormInterface $ form , OutputInterface $ output )
118+ private function printHeader (FormInterface $ form , OutputInterface $ output ): void
140119 {
141120 $ output ->writeln (
142121 strtr (
@@ -148,11 +127,7 @@ private function printHeader(FormInterface $form, OutputInterface $output)
148127 );
149128 }
150129
151- /**
152- * @param int $entryNumber
153- * @param OutputInterface $output
154- */
155- private function printEditEntryHeader ($ entryNumber , OutputInterface $ output )
130+ private function printEditEntryHeader (int $ entryNumber , OutputInterface $ output ): void
156131 {
157132 $ output ->writeln (
158133 strtr (
@@ -164,11 +139,7 @@ private function printEditEntryHeader($entryNumber, OutputInterface $output)
164139 );
165140 }
166141
167- /**
168- * @param int $entryNumber
169- * @param OutputInterface $output
170- */
171- private function printAddEntryHeader ($ entryNumber , OutputInterface $ output )
142+ private function printAddEntryHeader (int $ entryNumber , OutputInterface $ output ): void
172143 {
173144 $ output ->writeln (
174145 strtr (
@@ -180,20 +151,12 @@ private function printAddEntryHeader($entryNumber, OutputInterface $output)
180151 );
181152 }
182153
183- /**
184- * @param HelperSet $helperSet
185- * @param InputInterface $input
186- * @param OutputInterface $output
187- * @param int $entryNumber
188- *
189- * @return string
190- */
191154 private function askIfExistingEntryShouldBeAdded (
192155 HelperSet $ helperSet ,
193156 InputInterface $ input ,
194157 OutputInterface $ output ,
195- $ entryNumber
196- ) {
158+ int $ entryNumber
159+ ): string {
197160 return $ this ->questionHelper ($ helperSet )->ask (
198161 $ input ,
199162 $ output ,
0 commit comments