diff --git a/core/modules/node/node.pages.inc b/core/modules/node/node.pages.inc index 45ff09f..d6d49b4 100644 --- a/core/modules/node/node.pages.inc +++ b/core/modules/node/node.pages.inc @@ -181,7 +181,7 @@ function node_revision_overview($node) { '#type' => 'table', '#rows' => $rows, '#header' => $header, - '#attached' => array ( + '#attached' => array( 'css' => array(drupal_get_path('module', 'node') . '/css/node.admin.css'), ), ); diff --git a/core/modules/node/node.views.inc b/core/modules/node/node.views.inc index 6e745dd..a624b1e 100644 --- a/core/modules/node/node.views.inc +++ b/core/modules/node/node.views.inc @@ -69,7 +69,7 @@ function node_views_data() { 'group' => t('Content'), 'id' => 'node', 'link_to_node default' => TRUE, - ), + ), 'sort' => array( 'id' => 'standard', ), @@ -550,7 +550,7 @@ function node_views_data() { 'field' => array( 'field' => 'title', 'id' => 'node_revision', - ), + ), 'sort' => array( 'id' => 'standard', ), diff --git a/core/modules/node/src/NodeViewBuilder.php b/core/modules/node/src/NodeViewBuilder.php index 606ef36..e153e20 100644 --- a/core/modules/node/src/NodeViewBuilder.php +++ b/core/modules/node/src/NodeViewBuilder.php @@ -176,7 +176,7 @@ protected function alterBuild(array &$build, EntityInterface $entity, EntityView parent::alterBuild($build, $entity, $display, $view_mode, $langcode); if ($entity->id()) { $build['#contextual_links']['node'] = array( - 'route_parameters' =>array('node' => $entity->id()), + 'route_parameters' => array('node' => $entity->id()), 'metadata' => array('changed' => $entity->getChangedTime()), ); } diff --git a/core/modules/node/src/Tests/NodeTitleTest.php b/core/modules/node/src/Tests/NodeTitleTest.php index 9b503ff..46f84da 100644 --- a/core/modules/node/src/Tests/NodeTitleTest.php +++ b/core/modules/node/src/Tests/NodeTitleTest.php @@ -52,7 +52,7 @@ function testNodeTitle() { // Test tag. $this->drupalGet('node/' . $node->id()); $xpath = '//title'; - $this->assertEqual(current($this->xpath($xpath)), $node->label() .' | Drupal', 'Page title is equal to node title.', 'Node'); + $this->assertEqual(current($this->xpath($xpath)), $node->label() . ' | Drupal', 'Page title is equal to node title.', 'Node'); // Test breadcrumb in comment preview. $this->drupalGet('comment/reply/node/' . $node->id() . '/comment'); diff --git a/core/modules/node/src/Tests/NodeViewLanguageTest.php b/core/modules/node/src/Tests/NodeViewLanguageTest.php index f2bdf7f..a3ab731 100644 --- a/core/modules/node/src/Tests/NodeViewLanguageTest.php +++ b/core/modules/node/src/Tests/NodeViewLanguageTest.php @@ -46,7 +46,7 @@ public function testViewLanguage() { $node = $this->drupalCreateNode(array('langcode' => 'es')); $this->drupalGet($node->getSystemPath()); - $this->assertText('Spanish','The language field is displayed properly.'); + $this->assertText('Spanish', 'The language field is displayed properly.'); } } diff --git a/core/modules/node/src/Tests/Views/RevisionRelationships.php b/core/modules/node/src/Tests/Views/RevisionRelationships.php index 4968048..ccef956 100644 --- a/core/modules/node/src/Tests/Views/RevisionRelationships.php +++ b/core/modules/node/src/Tests/Views/RevisionRelationships.php @@ -20,7 +20,7 @@ class RevisionRelationships extends ViewTestBase { * * @var array */ - public static $modules = array('node' ,'node_test_views'); + public static $modules = array('node', 'node_test_views'); protected function setUp() { parent::setUp();