CLEANUP: Scrutinizer issues

This commit is contained in:
Daniel Siepmann 2016-12-20 16:54:46 +01:00
parent 467a181567
commit 77555e359f
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 9 additions and 4 deletions

View file

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

View file

@ -164,7 +164,12 @@ class RelationResolver implements Singleton
{ {
foreach ($items as $item) { foreach ($items as $item) {
if ($item[1] === $value) { 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; protected $tableName;
/** /**
* @var ConfigurationContaineInterfacer * @var ConfigurationContainerInterface
*/ */
protected $configuration; protected $configuration;
@ -69,7 +69,7 @@ class TcaTableService
/** /**
* @param string $tableName * @param string $tableName
* @param ConfigurationContainer $configuration * @param ConfigurationContainerInterface $configuration
*/ */
public function __construct( public function __construct(
$tableName, $tableName,