diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/HTTPStatusCode.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/HTTPStatusCode.php index d7ef322..c35b5a5 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/HTTPStatusCode.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/HTTPStatusCode.php @@ -41,7 +41,7 @@ public function buildOptionsForm(&$form, &$form_state) { // Get all possible status code defined by symfony. $options = Response::$statusTexts; - // Add the http status code, so it's easier for people to find it. + // Add the HTTP status code, so it's easier for people to find it. array_walk($options, function($title, $code) use(&$options) { $title = t($title); $options[$code] = t('@title (@code)', array('@title' => $title, '@code' => $code)); diff --git a/core/modules/views/lib/Drupal/views/Tests/Handler/AreaHTTPStatusCodeTest.php b/core/modules/views/lib/Drupal/views/Tests/Handler/AreaHTTPStatusCodeTest.php index 587f592..3e49153 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Handler/AreaHTTPStatusCodeTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Handler/AreaHTTPStatusCodeTest.php @@ -23,19 +23,19 @@ public static function getInfo() { } /** - * Test tha area handler. + * Tests the area handler. */ public function testHTTPStatusCodeHandler() { $this->drupalGet('test-http-status-code'); $this->assertResponse(200); - // Change the http status code to 403. + // Change the HTTP status code to 403. $view = views_get_view('test_http_status_code'); $display = &$view->storage->getDisplay('default'); $display['display_options']['empty']['http_status_code']['status_code'] = 418; $view->save(); - // Test that the http response is "I'm a teapot". + // Test that the HTTP response is "I'm a teapot". $this->drupalGet('test-http-status-code'); $this->assertResponse(418); }