@@ -144,7 +144,7 @@ public function analyze($registryBefore, $registryAfter)
144144 * @param string $filePath
145145 * @return string|null
146146 */
147- private function getBaseDir ($ filePath )
147+ private function getBaseDir ($ filePath ): ? string
148148 {
149149 $ currentDir = dirname ($ filePath );
150150 while ($ currentDir !== '/ ' && $ currentDir !== false ) {
@@ -327,8 +327,9 @@ private function reportDuplicateNodes(string $file, array $nodes): void
327327 *
328328 * @param array $modules
329329 * @param XmlRegistry $registryBefore
330+ * @return void
330331 */
331- private function reportRemovedFiles (array $ modules , XmlRegistry $ registryBefore )
332+ private function reportRemovedFiles (array $ modules , XmlRegistry $ registryBefore ): void
332333 {
333334 foreach ($ modules as $ module ) {
334335 $ beforeFile = $ registryBefore ->mapping [XmlRegistry::NODES_KEY ][$ module ];
@@ -341,8 +342,9 @@ private function reportRemovedFiles(array $modules, XmlRegistry $registryBefore)
341342 *
342343 * @param string $file
343344 * @param NodeInterface[] $nodes
345+ * @return void
344346 */
345- private function reportRemovedNodes (string $ file , array $ nodes )
347+ private function reportRemovedNodes (string $ file , array $ nodes ): void
346348 {
347349 foreach ($ nodes as $ node ) {
348350 switch (true ) {
@@ -361,15 +363,14 @@ private function reportRemovedNodes(string $file, array $nodes)
361363 }
362364 }
363365
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+ */
373374 private function isDuplicatedFieldInXml (
374375 ?string $ baseDir ,
375376 string $ sectionId ,
0 commit comments