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

8.2.x
Alex Pott 2016-04-27 11:05:37 +01:00
parent ebe946b9e7
commit 1b3ffe2ab8
93 changed files with 4 additions and 93 deletions

View File

@ -169,4 +169,3 @@ class Diff {
return $this->edits;
}
}

View File

@ -56,4 +56,3 @@ class MappedDiff extends Diff {
}
}
}

View File

@ -86,4 +86,3 @@ class YamlDiscovery implements DiscoverableInterface {
}
}

View File

@ -71,4 +71,3 @@ class DataCommand implements CommandInterface {
}
}

View File

@ -34,4 +34,3 @@ class AppRootFactory {
}
}

View File

@ -6,4 +6,3 @@ namespace Drupal\Core\Archiver;
* Defines an exception class for Drupal\Core\Archiver\ArchiverInterface.
*/
class ArchiverException extends \Exception {}

View File

@ -49,4 +49,3 @@ class ConfigCrudEvent extends Event {
}
}

View File

@ -100,4 +100,3 @@ class ConfigModuleOverridesEvent extends Event {
return $this;
}
}

View File

@ -132,4 +132,3 @@ class ExtensionInstallStorage extends InstallStorage {
return $this->folders;
}
}

View File

@ -11,4 +11,3 @@ namespace Drupal\Core\Database;
* developers should account for it separately.
*/
interface DatabaseException { }

View File

@ -12,4 +12,4 @@ class Select extends QuerySelect {
// SQLite does not support FOR UPDATE so nothing to do.
return $this;
}
}
}

View File

@ -531,4 +531,3 @@ class DateHelper {
}
}

View File

@ -70,4 +70,3 @@ abstract class DateElementBase extends FormElement {
}
}

View File

@ -23,4 +23,3 @@ class EntityListController extends ControllerBase {
}
}

View File

@ -68,4 +68,3 @@ class EntityRouteProviderSubscriber implements EventSubscriberInterface {
}
}

View File

@ -84,4 +84,3 @@ abstract class ExecutablePluginBase extends ContextAwarePluginBase implements Ex
return $this;
}
}

View File

@ -60,4 +60,3 @@ interface InfoParserInterface {
public function parse($filename);
}

View File

@ -82,4 +82,3 @@ interface ModuleInstallerInterface {
public function validateUninstall(array $module_list);
}

View File

@ -120,4 +120,3 @@ class BooleanItem extends FieldItemBase implements OptionsProviderInterface {
return $values;
}
}

View File

@ -14,4 +14,3 @@ class KeyValueExpirableFactory extends KeyValueFactory implements KeyValueExpira
const DEFAULT_SETTING = 'keyvalue_expirable_default';
}

View File

@ -75,4 +75,3 @@ class KeyValueFactory implements KeyValueFactoryInterface {
}
}

View File

@ -19,4 +19,3 @@ interface KeyValueFactoryInterface {
public function get($collection);
}

View File

@ -42,4 +42,3 @@ class DenyNoCacheRoutes implements ResponsePolicyInterface {
}
}

View File

@ -64,4 +64,3 @@ class QueueFactory implements ContainerAwareInterface {
return $this->queues[$name];
}
}

View File

@ -134,4 +134,3 @@ class AccessAwareRouter implements AccessAwareRouterInterface {
}
}

View File

@ -35,4 +35,3 @@ class SitePathFactory {
}
}

View File

@ -49,4 +49,3 @@ class KernelPreHandle implements HttpKernelInterface {
}
}

View File

@ -43,4 +43,3 @@ class DateTimeIso8601 extends StringData implements DateTimeInterface {
}
}
}

View File

@ -76,4 +76,3 @@ class TestAccessBlock extends BlockBase implements ContainerFactoryPluginInterfa
}
}

View File

@ -81,4 +81,3 @@ class BookSettingsForm extends ConfigFormBase {
}
}

View File

@ -100,4 +100,3 @@ class ConfigImportForm extends FormBase {
}
}

View File

@ -196,4 +196,3 @@ function config_translation_config_schema_info_alter(&$definitions) {
}
}
}

View File

@ -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;
}

View File

@ -49,4 +49,3 @@ class FieldImportChangeTest extends FieldKernelTestBase {
$this->assertEqual($field->getLabel(), $new_label, 'field label updated');
}
}

View File

@ -116,4 +116,3 @@ class FieldImportCreateTest extends FieldKernelTestBase {
$this->assertTrue($field, 'Test import field 2b from sync exists');
}
}

View File

@ -109,4 +109,3 @@ class FieldImportDeleteTest extends FieldKernelTestBase {
$this->assertTrue(empty($deleted_storages), 'Fields are deleted');
}
}

View File

@ -90,5 +90,3 @@ class FilterFormat extends DrupalSqlBase {
}
}

View File

@ -20,4 +20,3 @@ class HalServiceProvider implements ServiceModifierInterface {
}
}

View File

@ -29,4 +29,3 @@ class ImageFieldWidgetTest extends ImageFieldTestBase {
}
}

View File

@ -76,4 +76,3 @@ interface ContentLanguageSettingsInterface extends ConfigEntityInterface {
public function isDefaultConfiguration();
}

View File

@ -212,4 +212,3 @@ class NegotiationBrowserForm extends ConfigFormBase {
return $config->get('map');
}
}

View File

@ -86,4 +86,3 @@ class LinkSeparateFormatter extends LinkFormatter {
return $element;
}
}

View File

@ -75,4 +75,3 @@ class LinkTypeConstraint extends Constraint implements ConstraintValidatorInterf
}
}
}

View File

@ -157,4 +157,3 @@ class LocaleDefaultConfigStorage {
}
}

View File

@ -59,4 +59,3 @@ class NodeRevisionWizardTest extends WizardTestBase {
}
}

View File

@ -18,4 +18,3 @@ function quickedit_test_quickedit_render_field(EntityInterface $entity, $field_n
'#suffix' => '</div>',
);
}

View File

@ -55,4 +55,3 @@ class FieldRdfaDatatypeCallbackTest extends FieldRdfaTestBase {
}
}

View File

@ -82,4 +82,3 @@ function hook_search_plugin_alter(array &$definitions) {
/**
* @} End of "addtogroup hooks".
*/

View File

@ -65,4 +65,3 @@ function template_preprocess_search_result(&$variables) {
'#context' => array('info' => $info),
);
}

View File

@ -31,4 +31,3 @@ class ConfigEntityNormalizerTest extends UnitTestCase {
}
}

View File

@ -20,4 +20,3 @@ class SimpletestPhpunitRunCommandTestWillDie extends UnitTestCase {
$this->assertTrue(TRUE, 'Assertion to ensure test pass');
}
}

View File

@ -97,4 +97,3 @@ class StatisticsSettingsForm extends ConfigFormBase {
parent::submitForm($form, $form_state);
}
}

View File

@ -35,4 +35,3 @@ if ($views) {
->execute();
}
}

View File

@ -82,4 +82,3 @@ abstract class DiscoveryTestBase extends KernelTestBase {
}
}

View File

@ -43,4 +43,3 @@ class StaticDiscoveryTest extends DiscoveryTestBase {
$this->emptyDiscovery = $discovery;
}
}

View File

@ -128,4 +128,3 @@ class TwigEnvironmentTest extends KernelTestBase {
}
}

View File

@ -385,4 +385,3 @@ function template_preprocess_system_themes_page(&$variables) {
}
$variables['theme_groups'] = $groups;
}

View File

@ -147,4 +147,3 @@ $connection->delete('router')
$connection->delete('router')
->condition('name', 'entity.block_content_type.%', 'LIKE')
->execute();

View File

@ -20,4 +20,3 @@ $connection->update('config')
$connection->insert('key_value')
->fields(['collection' => 'system.schema', 'name' => 'update_script_test', 'value' => serialize(8000)])
->execute();

View File

@ -37,4 +37,3 @@ $connection->update('config')
->condition('collection', '')
->condition('name', 'core.extension')
->execute();

View File

@ -36,4 +36,3 @@ $connection->update('config')
->condition('collection', '')
->condition('name', 'core.extension')
->execute();

View File

@ -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();
}

View File

@ -6,4 +6,3 @@ namespace Drupal\plugin_test\Plugin\plugin_test\fruit;
* Provides an interface for test plugins.
*/
interface FruitInterface { }

View File

@ -28,4 +28,3 @@ class PageCacheAcceptHeaderController {
}
}
}

View File

@ -17,4 +17,3 @@ class TrustedHostsTestController {
}
}

View File

@ -20,4 +20,3 @@ function twig_extension_test_theme($existing, $type, $theme, $path) {
),
);
}

View File

@ -10,4 +10,3 @@
*/
function test_subsubtheme_preprocess_theme_test_template_test(&$variables) {
}

View File

@ -144,4 +144,3 @@ class TokenReplaceTest extends TaxonomyTestBase {
}
}
}

View File

@ -65,4 +65,3 @@ class MigrateTrackerNodeTest extends MigrateDrupal7TestBase {
}
}

View File

@ -48,4 +48,3 @@ function _update_cron_notify() {
}
}
}

View File

@ -115,4 +115,3 @@ class UserPasswordResetForm extends FormBase {
}
}

View File

@ -50,4 +50,3 @@ interface PermissionHandlerInterface {
public function moduleProvidesPermissions($module_name);
}

View File

@ -163,4 +163,3 @@ class Role extends AccessPluginBase implements CacheableDependencyInterface {
}
}

View File

@ -278,4 +278,3 @@ class PrivateTempStoreTest extends UnitTestCase {
}
}

View File

@ -350,4 +350,3 @@ class SharedTempStoreTest extends UnitTestCase {
}
}

View File

@ -45,4 +45,3 @@ interface MultiItemsFieldHandlerInterface extends FieldHandlerInterface {
public function renderItems($items);
}

View File

@ -190,4 +190,3 @@ class ViewsDataHelper {
}
}

View File

@ -215,4 +215,3 @@ class FilterBooleanOperatorTest extends ViewsKernelTestBase {
}
}

View File

@ -71,4 +71,3 @@ class WizardPluginBaseKernelTest extends ViewsKernelTestBase {
$this->assertEqual($view->get('langcode'), 'it');
}
}

View File

@ -360,4 +360,3 @@ class ViewAjaxControllerTest extends UnitTestCase {
}
}

View File

@ -352,4 +352,3 @@ class RearrangeFilter extends ViewsFormBase {
}
}

View File

@ -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"/>

View File

@ -112,4 +112,3 @@ class DefaultConfigTest extends KernelTestBase {
}
}

View File

@ -117,4 +117,3 @@ class ConfigLanguageOverrideTest extends KernelTestBase {
$this->assertEqual($override->get('value'), NULL);
}
}

View File

@ -154,4 +154,3 @@ class DefaultFactoryTest extends UnitTestCase {
}
}

View File

@ -320,4 +320,4 @@ class HtmlTest extends UnitTestCase {
$result = Html::serialize($document);
$this->assertSame('', $result);
}
}
}

View File

@ -378,4 +378,3 @@ class ValidHandler implements HandlerInterface {
}
class InvalidHandler {
}

View File

@ -144,4 +144,4 @@ namespace {
return FALSE;
}
}
}
}

View File

@ -162,4 +162,3 @@ class CustomPageExceptionHtmlSubscriberTest extends UnitTestCase {
}
}

View File

@ -161,4 +161,3 @@ class NaughtyRecursiveLogger implements LoggerInterface {
$this->channel->log(rand(0, 7), $message, $context);
}
}

View File

@ -491,4 +491,3 @@ class LocalTaskManagerTest extends UnitTestCase {
}
}

View File

@ -444,4 +444,3 @@ class PathValidatorTest extends UnitTestCase {
}
}

View File

@ -142,4 +142,3 @@ date_default_timezone_set('Australia/Sydney');
// 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();