@@ -120,7 +120,7 @@ public function renderMessages(
120
120
* @param ProcessingErrorAggregatorInterface $errorAggregator
121
121
* @return array
122
122
*/
123
- public function getErrorMessages (ProcessingErrorAggregatorInterface $ errorAggregator )
123
+ public function getErrorMessages (ProcessingErrorAggregatorInterface $ errorAggregator ): array
124
124
{
125
125
$ messages = [];
126
126
$ rowMessages = $ errorAggregator ->getRowsGroupedByErrorCode ([], [AbstractEntity::ERROR_CODE_SYSTEM_EXCEPTION ]);
@@ -136,7 +136,7 @@ public function getErrorMessages(ProcessingErrorAggregatorInterface $errorAggreg
136
136
* @param ProcessingErrorAggregatorInterface $errorAggregator
137
137
* @return ProcessingError[]
138
138
*/
139
- public function getSystemExceptions (ProcessingErrorAggregatorInterface $ errorAggregator )
139
+ public function getSystemExceptions (ProcessingErrorAggregatorInterface $ errorAggregator ): array
140
140
{
141
141
return $ errorAggregator ->getErrorsByCode ([AbstractEntity::ERROR_CODE_SYSTEM_EXCEPTION ]);
142
142
}
@@ -147,7 +147,7 @@ public function getSystemExceptions(ProcessingErrorAggregatorInterface $errorAgg
147
147
* @param ProcessingErrorAggregatorInterface $errorAggregator
148
148
* @return string
149
149
*/
150
- public function createErrorReport (ProcessingErrorAggregatorInterface $ errorAggregator )
150
+ public function createErrorReport (ProcessingErrorAggregatorInterface $ errorAggregator ): string
151
151
{
152
152
$ this ->historyModel ->loadLastInsertItem ();
153
153
$ sourceFile = $ this ->reportHelper ->getReportAbsolutePath ($ this ->historyModel ->getImportedFile ());
@@ -166,7 +166,7 @@ public function createErrorReport(ProcessingErrorAggregatorInterface $errorAggre
166
166
* @param string $fileName
167
167
* @return string
168
168
*/
169
- public function createDownloadUrlImportHistoryFile ($ fileName )
169
+ public function createDownloadUrlImportHistoryFile ($ fileName ): string
170
170
{
171
171
return $ this ->backendUrl ->getUrl (self ::IMPORT_HISTORY_FILE_DOWNLOAD_ROUTE , ['filename ' => $ fileName ]);
172
172
}
0 commit comments