Commit 89712cf2 authored by effulgentsia's avatar effulgentsia

Issue #2706669 by alexpott, tstoeckler: Fix...

Issue #2706669 by alexpott, tstoeckler: Fix Drupal.Functions.FunctionDeclaration.* coding standards in core
parent f664dfa1
...@@ -52,7 +52,7 @@ class DefaultHtmlRouteProvider implements EntityRouteProviderInterface, EntityHa ...@@ -52,7 +52,7 @@ class DefaultHtmlRouteProvider implements EntityRouteProviderInterface, EntityHa
* @param \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager * @param \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager
* The entity field manager. * The entity field manager.
*/ */
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) { public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) {
$this->entityTypeManager = $entity_type_manager; $this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager; $this->entityFieldManager = $entity_field_manager;
} }
......
...@@ -312,7 +312,7 @@ public function toArray() { ...@@ -312,7 +312,7 @@ public function toArray() {
/** /**
* Implements the magic __clone() method. * Implements the magic __clone() method.
*/ */
public function __clone() { public function __clone() {
foreach ($this->storage as $name => $value) { foreach ($this->storage as $name => $value) {
$this->storage[$name] = clone $value; $this->storage[$name] = clone $value;
} }
......
...@@ -91,7 +91,7 @@ public function testThemeBreakpoints() { ...@@ -91,7 +91,7 @@ public function testThemeBreakpoints() {
/** /**
* Test the custom breakpoint group provided by a theme and a module. * Test the custom breakpoint group provided by a theme and a module.
*/ */
public function testCustomBreakpointGroups () { public function testCustomBreakpointGroups() {
// Verify the breakpoint group for breakpoint_theme_test.group2 was created. // Verify the breakpoint group for breakpoint_theme_test.group2 was created.
$expected_breakpoints = array( $expected_breakpoints = array(
'breakpoint_theme_test.group2.narrow' => array( 'breakpoint_theme_test.group2.narrow' => array(
......
...@@ -164,7 +164,7 @@ public function testAuthorAutocomplete() { ...@@ -164,7 +164,7 @@ public function testAuthorAutocomplete() {
/** /**
* Check node/add when no node types exist. * Check node/add when no node types exist.
*/ */
function testNodeAddWithoutContentTypes () { function testNodeAddWithoutContentTypes() {
$this->drupalGet('node/add'); $this->drupalGet('node/add');
$this->assertResponse(200); $this->assertResponse(200);
$this->assertNoLinkByHref('/admin/structure/types/add'); $this->assertNoLinkByHref('/admin/structure/types/add');
......
...@@ -2262,7 +2262,7 @@ public function preExecute() { ...@@ -2262,7 +2262,7 @@ public function preExecute() {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function calculateCacheMetadata () { public function calculateCacheMetadata() {
$cache_metadata = new CacheableMetadata(); $cache_metadata = new CacheableMetadata();
// Iterate over ordinary views plugins. // Iterate over ordinary views plugins.
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
<rule ref="Drupal.ControlStructures.ElseIf"/> <rule ref="Drupal.ControlStructures.ElseIf"/>
<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.SpaceBeforeParenthesis"/>
<rule ref="Drupal.InfoFiles.AutoAddedKeys"/> <rule ref="Drupal.InfoFiles.AutoAddedKeys"/>
<rule ref="Drupal.InfoFiles.ClassFiles"/> <rule ref="Drupal.InfoFiles.ClassFiles"/>
<rule ref="Drupal.InfoFiles.DuplicateEntry"/> <rule ref="Drupal.InfoFiles.DuplicateEntry"/>
......
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