22
33namespace Yireo \ExtensionChecker \ComponentCollector ;
44
5- use Magento \Framework \Exception \FileSystemException ;
6- use Magento \Framework \Exception \NotFoundException ;
75use Yireo \ExtensionChecker \Component \Component ;
86use Yireo \ExtensionChecker \Component \ComponentFactory ;
97use Yireo \ExtensionChecker \PhpClass \ComponentCollector ;
@@ -26,9 +24,8 @@ public function __construct(
2624
2725 /**
2826 * @param string $content
27+ * @param bool $hardRequirement
2928 * @return Component[]
30- * @throws FileSystemException
31- * @throws NotFoundException
3229 */
3330 protected function findComponentsByModuleName (string $ content , bool $ hardRequirement = false ): array
3431 {
@@ -47,9 +44,8 @@ protected function findComponentsByModuleName(string $content, bool $hardRequire
4744
4845 /**
4946 * @param string $content
47+ * @param bool $hardRequirement
5048 * @return Component[]
51- * @throws FileSystemException
52- * @throws NotFoundException
5349 */
5450 protected function findComponentsByClassName (string $ content , bool $ hardRequirement = false ): array
5551 {
@@ -79,9 +75,8 @@ protected function findComponentsByClassName(string $content, bool $hardRequirem
7975 /**
8076 * @param string $contents
8177 * @param array $patterns
78+ * @param bool $hardRequirement
8279 * @return Component[]
83- * @throws FileSystemException
84- * @throws NotFoundException
8580 */
8681 protected function findComponentsByPattern (string $ contents , array $ patterns , bool $ hardRequirement = false ): array
8782 {
0 commit comments