diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 56b321e..ca92884 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -3,9 +3,9 @@ filter: - 'Configuration/*' - 'Documentation/*' - 'Resources/*' + - 'Tests/*' paths: - 'Classes/*' - - 'Tests/*' tools: php_cpd: diff --git a/Classes/Domain/Index/TcaIndexer/RelationResolver.php b/Classes/Domain/Index/TcaIndexer/RelationResolver.php index 1ece8ec..2dd5dd7 100644 --- a/Classes/Domain/Index/TcaIndexer/RelationResolver.php +++ b/Classes/Domain/Index/TcaIndexer/RelationResolver.php @@ -164,7 +164,12 @@ class RelationResolver implements Singleton { foreach ($items as $item) { if ($item[1] === $value) { - return LocalizationUtility::translate($item[0], ''); + $newValue = LocalizationUtility::translate($item[0], ''); + + if ($newValue === null) { + return ''; + } + return $newValue; } } diff --git a/Classes/Domain/Index/TcaIndexer/TcaTableService.php b/Classes/Domain/Index/TcaIndexer/TcaTableService.php index ddf8e00..3f2d697 100644 --- a/Classes/Domain/Index/TcaIndexer/TcaTableService.php +++ b/Classes/Domain/Index/TcaIndexer/TcaTableService.php @@ -43,7 +43,7 @@ class TcaTableService protected $tableName; /** - * @var ConfigurationContaineInterfacer + * @var ConfigurationContainerInterface */ protected $configuration; @@ -69,7 +69,7 @@ class TcaTableService /** * @param string $tableName - * @param ConfigurationContainer $configuration + * @param ConfigurationContainerInterface $configuration */ public function __construct( $tableName,