Commit fb007a52 authored by alexpott's avatar alexpott

Issue #2080655 by chertzog: Remove Unused local variable from...

Issue #2080655 by chertzog: Remove Unused local variable  from /core/modules/locale/lib/Drupal/locale/Tests/LocaleConfigTranslationTest.php.
parent 9a7ef5d0
......@@ -53,7 +53,6 @@ function testConfigTranslation() {
'direction' => '0',
);
$this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
$language = new Language(array('id' => $langcode));
// Set path prefix.
$edit = array( "prefix[$langcode]" => $langcode );
$this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
......
......@@ -526,7 +526,7 @@ public function testUserHooks() {
function testEntityNGRollback() {
// Create a block.
try {
$entity = entity_create('entity_test', array('name' => 'fail_insert'))->save();
entity_create('entity_test', array('name' => 'fail_insert'))->save();
$this->fail('Expected exception has not been thrown.');
}
catch (\Exception $e) {
......
......@@ -507,7 +507,7 @@ public function getContainedStrings(TypedDataInterface $wrapper, $depth, array &
}
}
elseif ($wrapper instanceof \Drupal\Core\TypedData\ComplexDataInterface) {
foreach ($wrapper as $name => $property) {
foreach ($wrapper as $property) {
$this->getContainedStrings($property, $depth + 1, $strings);
}
}
......
......@@ -3099,7 +3099,6 @@ function hook_tokens_alter(array &$replacements, array $context) {
else {
$langcode = NULL;
}
$sanitize = !empty($options['sanitize']);
if ($context['type'] == 'node' && !empty($context['data']['node'])) {
$node = $context['data']['node'];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment