Merge pull request #39 from DanielSiepmann/feature/cleanup

CLEANUP: Scrutinizer issues
This commit is contained in:
Daniel Siepmann 2016-12-20 17:02:39 +01:00 committed by GitHub
commit 162d8ae9bd
3 changed files with 9 additions and 4 deletions

View file

@ -3,9 +3,9 @@ filter:
- 'Configuration/*'
- 'Documentation/*'
- 'Resources/*'
- 'Tests/*'
paths:
- 'Classes/*'
- 'Tests/*'
tools:
php_cpd:

View file

@ -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;
}
}

View file

@ -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,