Issue #2572707 by attiks, alexpott: Fix 'Drupal.Files.EndFileNewline' coding standard
parent
ebe946b9e7
commit
1b3ffe2ab8
|
@ -169,4 +169,3 @@ class Diff {
|
|||
return $this->edits;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,4 +56,3 @@ class MappedDiff extends Diff {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -86,4 +86,3 @@ class YamlDiscovery implements DiscoverableInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -71,4 +71,3 @@ class DataCommand implements CommandInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -34,4 +34,3 @@ class AppRootFactory {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,4 +6,3 @@ namespace Drupal\Core\Archiver;
|
|||
* Defines an exception class for Drupal\Core\Archiver\ArchiverInterface.
|
||||
*/
|
||||
class ArchiverException extends \Exception {}
|
||||
|
||||
|
|
|
@ -49,4 +49,3 @@ class ConfigCrudEvent extends Event {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -100,4 +100,3 @@ class ConfigModuleOverridesEvent extends Event {
|
|||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -132,4 +132,3 @@ class ExtensionInstallStorage extends InstallStorage {
|
|||
return $this->folders;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,4 +11,3 @@ namespace Drupal\Core\Database;
|
|||
* developers should account for it separately.
|
||||
*/
|
||||
interface DatabaseException { }
|
||||
|
||||
|
|
|
@ -12,4 +12,4 @@ class Select extends QuerySelect {
|
|||
// SQLite does not support FOR UPDATE so nothing to do.
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -531,4 +531,3 @@ class DateHelper {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -70,4 +70,3 @@ abstract class DateElementBase extends FormElement {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -23,4 +23,3 @@ class EntityListController extends ControllerBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -68,4 +68,3 @@ class EntityRouteProviderSubscriber implements EventSubscriberInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -84,4 +84,3 @@ abstract class ExecutablePluginBase extends ContextAwarePluginBase implements Ex
|
|||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,4 +60,3 @@ interface InfoParserInterface {
|
|||
public function parse($filename);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -82,4 +82,3 @@ interface ModuleInstallerInterface {
|
|||
public function validateUninstall(array $module_list);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -120,4 +120,3 @@ class BooleanItem extends FieldItemBase implements OptionsProviderInterface {
|
|||
return $values;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,4 +14,3 @@ class KeyValueExpirableFactory extends KeyValueFactory implements KeyValueExpira
|
|||
const DEFAULT_SETTING = 'keyvalue_expirable_default';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -75,4 +75,3 @@ class KeyValueFactory implements KeyValueFactoryInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -19,4 +19,3 @@ interface KeyValueFactoryInterface {
|
|||
public function get($collection);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -42,4 +42,3 @@ class DenyNoCacheRoutes implements ResponsePolicyInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -64,4 +64,3 @@ class QueueFactory implements ContainerAwareInterface {
|
|||
return $this->queues[$name];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -134,4 +134,3 @@ class AccessAwareRouter implements AccessAwareRouterInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -35,4 +35,3 @@ class SitePathFactory {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -49,4 +49,3 @@ class KernelPreHandle implements HttpKernelInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -43,4 +43,3 @@ class DateTimeIso8601 extends StringData implements DateTimeInterface {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -76,4 +76,3 @@ class TestAccessBlock extends BlockBase implements ContainerFactoryPluginInterfa
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -81,4 +81,3 @@ class BookSettingsForm extends ConfigFormBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -100,4 +100,3 @@ class ConfigImportForm extends FormBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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 @@ class FieldImportChangeTest extends FieldKernelTestBase {
|
|||
$this->assertEqual($field->getLabel(), $new_label, 'field label updated');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -116,4 +116,3 @@ class FieldImportCreateTest extends FieldKernelTestBase {
|
|||
$this->assertTrue($field, 'Test import field 2b from sync exists');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -109,4 +109,3 @@ class FieldImportDeleteTest extends FieldKernelTestBase {
|
|||
$this->assertTrue(empty($deleted_storages), 'Fields are deleted');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -90,5 +90,3 @@ class FilterFormat extends DrupalSqlBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -20,4 +20,3 @@ class HalServiceProvider implements ServiceModifierInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -29,4 +29,3 @@ class ImageFieldWidgetTest extends ImageFieldTestBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -76,4 +76,3 @@ interface ContentLanguageSettingsInterface extends ConfigEntityInterface {
|
|||
public function isDefaultConfiguration();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -212,4 +212,3 @@ class NegotiationBrowserForm extends ConfigFormBase {
|
|||
return $config->get('map');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -86,4 +86,3 @@ class LinkSeparateFormatter extends LinkFormatter {
|
|||
return $element;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -75,4 +75,3 @@ class LinkTypeConstraint extends Constraint implements ConstraintValidatorInterf
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -157,4 +157,3 @@ class LocaleDefaultConfigStorage {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -59,4 +59,3 @@ class NodeRevisionWizardTest extends WizardTestBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -18,4 +18,3 @@ function quickedit_test_quickedit_render_field(EntityInterface $entity, $field_n
|
|||
'#suffix' => '</div>',
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -55,4 +55,3 @@ class FieldRdfaDatatypeCallbackTest extends FieldRdfaTestBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -31,4 +31,3 @@ class ConfigEntityNormalizerTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -20,4 +20,3 @@ class SimpletestPhpunitRunCommandTestWillDie extends UnitTestCase {
|
|||
$this->assertTrue(TRUE, 'Assertion to ensure test pass');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -97,4 +97,3 @@ class StatisticsSettingsForm extends ConfigFormBase {
|
|||
parent::submitForm($form, $form_state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,4 +35,3 @@ if ($views) {
|
|||
->execute();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -82,4 +82,3 @@ abstract class DiscoveryTestBase extends KernelTestBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -43,4 +43,3 @@ class StaticDiscoveryTest extends DiscoveryTestBase {
|
|||
$this->emptyDiscovery = $discovery;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -128,4 +128,3 @@ class TwigEnvironmentTest extends KernelTestBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -385,4 +385,3 @@ function template_preprocess_system_themes_page(&$variables) {
|
|||
}
|
||||
$variables['theme_groups'] = $groups;
|
||||
}
|
||||
|
||||
|
|
|
@ -147,4 +147,3 @@ $connection->delete('router')
|
|||
$connection->delete('router')
|
||||
->condition('name', 'entity.block_content_type.%', 'LIKE')
|
||||
->execute();
|
||||
|
||||
|
|
|
@ -20,4 +20,3 @@ $connection->update('config')
|
|||
$connection->insert('key_value')
|
||||
->fields(['collection' => 'system.schema', 'name' => 'update_script_test', 'value' => serialize(8000)])
|
||||
->execute();
|
||||
|
||||
|
|
|
@ -37,4 +37,3 @@ $connection->update('config')
|
|||
->condition('collection', '')
|
||||
->condition('name', 'core.extension')
|
||||
->execute();
|
||||
|
||||
|
|
|
@ -36,4 +36,3 @@ $connection->update('config')
|
|||
->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 @@ namespace Drupal\plugin_test\Plugin\plugin_test\fruit;
|
|||
* Provides an interface for test plugins.
|
||||
*/
|
||||
interface FruitInterface { }
|
||||
|
||||
|
|
|
@ -28,4 +28,3 @@ class PageCacheAcceptHeaderController {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,4 +17,3 @@ class TrustedHostsTestController {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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 @@ class TokenReplaceTest extends TaxonomyTestBase {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -65,4 +65,3 @@ class MigrateTrackerNodeTest extends MigrateDrupal7TestBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -48,4 +48,3 @@ function _update_cron_notify() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -115,4 +115,3 @@ class UserPasswordResetForm extends FormBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -50,4 +50,3 @@ interface PermissionHandlerInterface {
|
|||
public function moduleProvidesPermissions($module_name);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -163,4 +163,3 @@ class Role extends AccessPluginBase implements CacheableDependencyInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -278,4 +278,3 @@ class PrivateTempStoreTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -350,4 +350,3 @@ class SharedTempStoreTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -45,4 +45,3 @@ interface MultiItemsFieldHandlerInterface extends FieldHandlerInterface {
|
|||
public function renderItems($items);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -190,4 +190,3 @@ class ViewsDataHelper {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -215,4 +215,3 @@ class FilterBooleanOperatorTest extends ViewsKernelTestBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -71,4 +71,3 @@ class WizardPluginBaseKernelTest extends ViewsKernelTestBase {
|
|||
$this->assertEqual($view->get('langcode'), 'it');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -360,4 +360,3 @@ class ViewAjaxControllerTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -352,4 +352,3 @@ class RearrangeFilter extends ViewsFormBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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 @@ class DefaultConfigTest extends KernelTestBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -117,4 +117,3 @@ class ConfigLanguageOverrideTest extends KernelTestBase {
|
|||
$this->assertEqual($override->get('value'), NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -154,4 +154,3 @@ class DefaultFactoryTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -320,4 +320,4 @@ class HtmlTest extends UnitTestCase {
|
|||
$result = Html::serialize($document);
|
||||
$this->assertSame('', $result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -378,4 +378,3 @@ class ValidHandler implements HandlerInterface {
|
|||
}
|
||||
class InvalidHandler {
|
||||
}
|
||||
|
||||
|
|
|
@ -144,4 +144,4 @@ namespace {
|
|||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -162,4 +162,3 @@ class CustomPageExceptionHtmlSubscriberTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -161,4 +161,3 @@ class NaughtyRecursiveLogger implements LoggerInterface {
|
|||
$this->channel->log(rand(0, 7), $message, $context);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -491,4 +491,3 @@ class LocalTaskManagerTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -444,4 +444,3 @@ class PathValidatorTest extends UnitTestCase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue