commit d3c3f1109458f4b6dd2a8e7e32f31253e2c8c139 Author: Francesco Placella Date: Sat Jul 11 11:36:10 2015 +0200 yo diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php index 70e31bb..8aa4dc3 100644 --- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php +++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php @@ -110,7 +110,7 @@ public function post(EntityInterface $entity = NULL) { // 201 Created responses have an empty body. $url = $entity->urlInfo('canonical', ['absolute' => TRUE])->toString(TRUE); - $response = new ResourceResponse(NULL, 201, array('Location' => $url->getGeneratedUrl())); + $response = new ResourceResponse(NULL, 201, ['Location' => $url->getGeneratedUrl()]); $response->addCacheableDependency($url); return $response; } diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php index 7638a07..6eaeac4 100644 --- a/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -2398,7 +2398,7 @@ protected function clickLinkHelper($label, $index, $pattern) { * possible cases. * * @param string $path - * A path from the internal browser content.T + * A path from the internal browser content. * * @return string * The $path with $base_url prepended, if necessary.