@@ -144,7 +144,7 @@ public function analyze($registryBefore, $registryAfter)
144
144
* @param string $filePath
145
145
* @return string|null
146
146
*/
147
- private function getBaseDir ($ filePath )
147
+ private function getBaseDir ($ filePath ): ? string
148
148
{
149
149
$ currentDir = dirname ($ filePath );
150
150
while ($ currentDir !== '/ ' && $ currentDir !== false ) {
@@ -327,8 +327,9 @@ private function reportDuplicateNodes(string $file, array $nodes): void
327
327
*
328
328
* @param array $modules
329
329
* @param XmlRegistry $registryBefore
330
+ * @return void
330
331
*/
331
- private function reportRemovedFiles (array $ modules , XmlRegistry $ registryBefore )
332
+ private function reportRemovedFiles (array $ modules , XmlRegistry $ registryBefore ): void
332
333
{
333
334
foreach ($ modules as $ module ) {
334
335
$ beforeFile = $ registryBefore ->mapping [XmlRegistry::NODES_KEY ][$ module ];
@@ -341,8 +342,9 @@ private function reportRemovedFiles(array $modules, XmlRegistry $registryBefore)
341
342
*
342
343
* @param string $file
343
344
* @param NodeInterface[] $nodes
345
+ * @return void
344
346
*/
345
- private function reportRemovedNodes (string $ file , array $ nodes )
347
+ private function reportRemovedNodes (string $ file , array $ nodes ): void
346
348
{
347
349
foreach ($ nodes as $ node ) {
348
350
switch (true ) {
@@ -361,15 +363,14 @@ private function reportRemovedNodes(string $file, array $nodes)
361
363
}
362
364
}
363
365
364
- /**
365
- * @param string|null $baseDir
366
- * @param string $sectionId
367
- * @param string $groupId
368
- * @param string $fieldId
369
- * @param string $afterFile
370
- * @return array
371
- * @throws \Exception
372
- */
366
+ /**
367
+ * @param string|null $baseDir
368
+ * @param string $sectionId
369
+ * @param string $groupId
370
+ * @param string|null $fieldId
371
+ * @param string $afterFile
372
+ * @return array
373
+ */
373
374
private function isDuplicatedFieldInXml (
374
375
?string $ baseDir ,
375
376
string $ sectionId ,
0 commit comments