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