Commit e95e2267 authored by anon's avatar anon

by anon: Coding standards

parent c02791c7
......@@ -4,7 +4,6 @@ namespace Drupal\linkit\Element;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Render\Element;
use Drupal\Core\Render\Element\FormElement;
use Drupal\Core\Render\Element\Textfield;
use Drupal\Core\Url;
......
......@@ -2,7 +2,6 @@
namespace Drupal\Tests\linkit\Functional\Controller;
use Drupal\Core\Url;
use Drupal\Tests\linkit\Functional\LinkitBrowserTestBase;
use Drupal\Tests\linkit\ProfileCreationTrait;
......
......@@ -45,4 +45,4 @@ abstract class LinkitBrowserTestBase extends BrowserTestBase {
$this->webUser = $this->drupalCreateUser();
}
}
\ No newline at end of file
}
......@@ -135,4 +135,4 @@ class MatcherAdminTest extends LinkitBrowserTestBase {
$this->assertFalse($updated_profile->getMatchers()->has($plugin_uuid), 'The user matcher is deleted from the profile');
}
}
\ No newline at end of file
}
......@@ -125,4 +125,4 @@ class ProfileAdminTest extends LinkitBrowserTestBase {
$this->assertSession()->responseNotContains($profile->label());
}
}
\ No newline at end of file
}
......@@ -80,4 +80,4 @@ trait AssertLinkitFilterTrait {
return $this->filter->process($input, $langcode);
}
}
\ No newline at end of file
}
......@@ -29,4 +29,4 @@ class ProfileTest extends LinkitKernelTestBase {
$this->assertEquals('bar', $profile->getDescription());
}
}
\ No newline at end of file
}
......@@ -244,4 +244,4 @@ class LinkitAutocompleteTest extends LinkitKernelTestBase {
array_unshift($this->langcodes, \Drupal::languageManager()->getDefaultLanguage()->getId());
}
}
\ No newline at end of file
}
......@@ -129,4 +129,4 @@ class LinkitFilterEntityTest extends LinkitKernelTestBase {
$this->assertLinkitFilterWithTitle($file);
}
}
\ No newline at end of file
}
......@@ -60,12 +60,12 @@ abstract class LinkitKernelTestBase extends KernelTestBase {
}
$account = User::create($values + array(
'name' => $this->randomMachineName(),
'status' => 1,
));
'name' => $this->randomMachineName(),
'status' => 1,
));
$account->enforceIsNew();
$account->save();
return $account;
}
}
\ No newline at end of file
}
......@@ -21,4 +21,4 @@ trait AssertResultUriTrait {
}
}
}
\ No newline at end of file
}
......@@ -99,4 +99,4 @@ class FileMatcherTest extends LinkitKernelTestBase {
$this->assertEquals(2, count($matches), 'Correct number of matches with multiple file extension filter.');
}
}
\ No newline at end of file
}
......@@ -149,4 +149,4 @@ class NodeMatcherTest extends LinkitKernelTestBase {
$this->assertEquals(4, count($matches), 'Correct number of matches');
}
}
\ No newline at end of file
}
......@@ -134,17 +134,17 @@ class TermMatcherTest extends LinkitKernelTestBase {
$termStorage = \Drupal::entityTypeManager()->getStorage('taxonomy_term');
$term = $termStorage->create($values + [
'name' => $this->randomMachineName(),
'description' => [
'value' => $this->randomMachineName(),
// Use the first available text format.
'format' => $format->id(),
],
'vid' => $vocabulary->id(),
'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
]);
'name' => $this->randomMachineName(),
'description' => [
'value' => $this->randomMachineName(),
// Use the first available text format.
'format' => $format->id(),
],
'vid' => $vocabulary->id(),
'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
]);
$term->save();
return $term;
}
}
\ No newline at end of file
}
......@@ -122,4 +122,4 @@ class UserMatcherTest extends LinkitKernelTestBase {
$this->assertEquals(1, count($matches), 'Correct number of matches');
}
}
\ No newline at end of file
}
......@@ -41,4 +41,4 @@ trait ProfileCreationTrait {
return $profile;
}
}
\ No newline at end of file
}
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