Commit 1b3ffe2a authored by alexpott's avatar alexpott

Issue #2572707 by attiks, alexpott: Fix 'Drupal.Files.EndFileNewline' coding standard

parent ebe946b9
......@@ -169,4 +169,3 @@ public function getEdits() {
return $this->edits;
}
}
......@@ -56,4 +56,3 @@ public function __construct($from_lines, $to_lines, $mapped_from_lines, $mapped_
}
}
}
......@@ -86,4 +86,3 @@ protected function findFiles() {
}
}
......@@ -71,4 +71,3 @@ public function render() {
}
}
......@@ -34,4 +34,3 @@ public function get() {
}
}
......@@ -6,4 +6,3 @@
* Defines an exception class for Drupal\Core\Archiver\ArchiverInterface.
*/
class ArchiverException extends \Exception {}
......@@ -49,4 +49,3 @@ public function isChanged($key) {
}
}
......@@ -100,4 +100,3 @@ public function setOverride($name, array $values) {
return $this;
}
}
......@@ -132,4 +132,3 @@ protected function getAllFolders() {
return $this->folders;
}
}
......@@ -11,4 +11,3 @@
* developers should account for it separately.
*/
interface DatabaseException { }
......@@ -12,4 +12,4 @@ public function forUpdate($set = TRUE) {
// SQLite does not support FOR UPDATE so nothing to do.
return $this;
}
}
\ No newline at end of file
}
......@@ -531,4 +531,3 @@ public static function dayOfWeekName($date = NULL, $abbr = TRUE) {
}
}
......@@ -70,4 +70,3 @@ protected static function datetimeRangeYears($string, $date = NULL) {
}
}
......@@ -23,4 +23,3 @@ public function listing($entity_type) {
}
}
......@@ -68,4 +68,3 @@ public static function getSubscribedEvents() {
}
}
......@@ -84,4 +84,3 @@ public function setConfig($key, $value) {
return $this;
}
}
......@@ -60,4 +60,3 @@ interface InfoParserInterface {
public function parse($filename);
}
......@@ -82,4 +82,3 @@ public function addUninstallValidator(ModuleUninstallValidatorInterface $uninsta
public function validateUninstall(array $module_list);
}
......@@ -120,4 +120,3 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
return $values;
}
}
......@@ -14,4 +14,3 @@ class KeyValueExpirableFactory extends KeyValueFactory implements KeyValueExpira
const DEFAULT_SETTING = 'keyvalue_expirable_default';
}
......@@ -75,4 +75,3 @@ public function get($collection) {
}
}
......@@ -19,4 +19,3 @@ interface KeyValueFactoryInterface {
public function get($collection);
}
......@@ -42,4 +42,3 @@ public function check(Response $response, Request $request) {
}
}
......@@ -64,4 +64,3 @@ public function get($name, $reliable = FALSE) {
return $this->queues[$name];
}
}
......@@ -134,4 +134,3 @@ public function match($pathinfo) {
}
}
......@@ -35,4 +35,3 @@ public function get() {
}
}
......@@ -49,4 +49,3 @@ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch =
}
}
......@@ -43,4 +43,3 @@ public function setDateTime(DrupalDateTime $dateTime, $notify = TRUE) {
}
}
}
......@@ -81,4 +81,3 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
}
}
......@@ -100,4 +100,3 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
}
}
......@@ -196,4 +196,3 @@ function config_translation_config_schema_info_alter(&$definitions) {
}
}
}
......@@ -46,4 +46,3 @@ function field_third_party_test_field_formatter_settings_summary_alter(&$summary
$summary[] = 'field_test_field_formatter_settings_summary_alter';
return $summary;
}
......@@ -49,4 +49,3 @@ function testImportChange() {
$this->assertEqual($field->getLabel(), $new_label, 'field label updated');
}
}
......@@ -116,4 +116,3 @@ function testImportCreate() {
$this->assertTrue($field, 'Test import field 2b from sync exists');
}
}
......@@ -109,4 +109,3 @@ public function testImportDelete() {
$this->assertTrue(empty($deleted_storages), 'Fields are deleted');
}
}
......@@ -20,4 +20,3 @@ public function alter(ContainerBuilder $container) {
}
}
......@@ -29,4 +29,3 @@ public function testWidgetElement() {
}
}
......@@ -76,4 +76,3 @@ public function isLanguageAlterable();
public function isDefaultConfiguration();
}
......@@ -212,4 +212,3 @@ protected function language_get_browser_drupal_langcode_mappings() {
return $config->get('map');
}
}
......@@ -86,4 +86,3 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
return $element;
}
}
......@@ -75,4 +75,3 @@ public function validate($value, Constraint $constraint) {
}
}
}
......@@ -157,4 +157,3 @@ protected function predefinedConfiguredLanguages() {
}
}
......@@ -59,4 +59,3 @@ public function testViewAdd() {
}
}
......@@ -18,4 +18,3 @@ function quickedit_test_quickedit_render_field(EntityInterface $entity, $field_n
'#suffix' => '</div>',
);
}
......@@ -55,4 +55,3 @@ public function testDefaultFormatter() {
}
}
......@@ -82,4 +82,3 @@ function hook_search_plugin_alter(array &$definitions) {
/**
* @} End of "addtogroup hooks".
*/
......@@ -65,4 +65,3 @@ function template_preprocess_search_result(&$variables) {
'#context' => array('info' => $info),
);
}
......@@ -20,4 +20,3 @@ public function testWillDie() {
$this->assertTrue(TRUE, 'Assertion to ensure test pass');
}
}
......@@ -97,4 +97,3 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
}
}
......@@ -35,4 +35,3 @@
->execute();
}
}
......@@ -82,4 +82,3 @@ protected function assertDefinitionIdentical(array $definition, array $expected_
}
}
......@@ -43,4 +43,3 @@ protected function setUp() {
$this->emptyDiscovery = $discovery;
}
}
......@@ -128,4 +128,3 @@ public function testCacheFilename() {
}
}
......@@ -385,4 +385,3 @@ function template_preprocess_system_themes_page(&$variables) {
}
$variables['theme_groups'] = $groups;
}
......@@ -147,4 +147,3 @@
$connection->delete('router')
->condition('name', 'entity.block_content_type.%', 'LIKE')
->execute();
......@@ -20,4 +20,3 @@
$connection->insert('key_value')
->fields(['collection' => 'system.schema', 'name' => 'update_script_test', 'value' => serialize(8000)])
->execute();
......@@ -37,4 +37,3 @@
->condition('collection', '')
->condition('name', 'core.extension')
->execute();
......@@ -36,4 +36,3 @@
->condition('collection', '')
->condition('name', 'core.extension')
->execute();
......@@ -47,4 +47,3 @@ function database_test_query_alter(AlterableInterface $query) {
function database_test_query_database_test_alter_remove_range_alter(AlterableInterface $query) {
$query->range();
}
......@@ -6,4 +6,3 @@
* Provides an interface for test plugins.
*/
interface FruitInterface { }
......@@ -20,4 +20,3 @@ function twig_extension_test_theme($existing, $type, $theme, $path) {
),
);
}
......@@ -10,4 +10,3 @@
*/
function test_subsubtheme_preprocess_theme_test_template_test(&$variables) {
}
......@@ -144,4 +144,3 @@ function testTaxonomyTokenReplacement() {
}
}
}
......@@ -65,4 +65,3 @@ public function testMigrateTrackerNode() {
}
}
......@@ -48,4 +48,3 @@ function _update_cron_notify() {
}
}
}
......@@ -115,4 +115,3 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
}
}
......@@ -50,4 +50,3 @@ public function getPermissions();
public function moduleProvidesPermissions($module_name);
}
......@@ -163,4 +163,3 @@ public function getCacheTags() {
}
}
......@@ -278,4 +278,3 @@ public function testDelete() {
}
}
......@@ -350,4 +350,3 @@ public function testDeleteIfOwner() {
}
}
......@@ -45,4 +45,3 @@ public function getItems(ResultRow $values);
public function renderItems($items);
}
......@@ -190,4 +190,3 @@ protected static function fetchedFieldSort($a, $b) {
}
}
......@@ -215,4 +215,3 @@ protected function getGroupedExposedFilters() {
}
}
......@@ -71,4 +71,3 @@ public function testCreateView() {
$this->assertEqual($view->get('langcode'), 'it');
}
}
......@@ -360,4 +360,3 @@ protected function assertViewResultCommand(ViewAjaxResponse $response, $position
}
}
......@@ -352,4 +352,3 @@ public static function arrayKeyPlus($array) {
}
}
......@@ -18,6 +18,7 @@
<rule ref="Drupal.Commenting.DocCommentStar"/>
<rule ref="Drupal.Commenting.FileComment"/>
<rule ref="Drupal.ControlStructures.ElseIf"/>
<rule ref="Drupal.Files.EndFileNewline"/>
<rule ref="Drupal.Files.TxtFileLineLength"/>
<rule ref="Drupal.Functions.DiscouragedFunctions"/>
<rule ref="Drupal.Functions.FunctionDeclaration.SpaceAfter"/>
......
......@@ -112,4 +112,3 @@ public function providerTestModuleConfig() {
}
}
......@@ -117,4 +117,3 @@ function testConfigLanguageOverride() {
$this->assertEqual($override->get('value'), NULL);
}
}
......@@ -154,4 +154,3 @@ public function testGetPluginClassWithInterfaceAndInvalidClassWithObjectPluginDe
}
}
......@@ -320,4 +320,4 @@ public function testSerialize() {
$result = Html::serialize($document);
$this->assertSame('', $result);
}
}
\ No newline at end of file
}
......@@ -378,4 +378,3 @@ class ValidHandler implements HandlerInterface {
}
class InvalidHandler {
}
......@@ -144,4 +144,4 @@ function drupal_valid_test_ua($new_prefix = NULL) {
return FALSE;
}
}
}
\ No newline at end of file
}
......@@ -162,4 +162,3 @@ public function testHandleWithGetRequest() {
}
}
......@@ -161,4 +161,3 @@ public function log($level, $message, array $context = []) {
$this->channel->log(rand(0, 7), $message, $context);
}
}
......@@ -491,4 +491,3 @@ protected function setupNullCacheabilityMetadataValidation() {
}
}
......@@ -444,4 +444,3 @@ public function testGetUrlIfValidWithoutAccessCheck() {
}
}
......@@ -142,4 +142,3 @@ function drupal_phpunit_populate_class_loader() {
// make PHP 5 and 7 handle assertion failures the same way, but this call does
// not turn runtime assertions on if they weren't on already.
\Drupal\Component\Assertion\Handle::register();
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