summaryrefslogtreecommitdiffstats
path: root/core/modules/rest
diff options
context:
space:
mode:
authorAlex Pott2016-05-08 15:05:38 (GMT)
committerAlex Pott2016-05-08 15:05:38 (GMT)
commit133c212ed9d3b2fad28d53e04858fc1421db3233 (patch)
treed057b3b612c5f3d3287edb6f9c8cd2414804c375 /core/modules/rest
parent95ed8ce29d955c8b44440ce10236d26e79ec2077 (diff)
Issue #2719695 by alexpott, Mile23: Fix 'Drupal.Classes.ClassDeclaration.CloseBraceAfterBody' coding standard
Diffstat (limited to 'core/modules/rest')
-rw-r--r--core/modules/rest/src/LinkManager/RelationLinkManager.php1
-rw-r--r--core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php1
-rw-r--r--core/modules/rest/src/Plugin/Deriver/EntityDeriver.php1
-rw-r--r--core/modules/rest/src/Plugin/Type/ResourcePluginManager.php1
-rw-r--r--core/modules/rest/src/Plugin/rest/resource/EntityResource.php1
-rw-r--r--core/modules/rest/src/RequestHandler.php1
-rw-r--r--core/modules/rest/src/ResourceResponse.php1
-rw-r--r--core/modules/rest/src/Tests/CsrfTest.php1
-rw-r--r--core/modules/rest/src/Tests/DeleteTest.php1
-rw-r--r--core/modules/rest/src/Tests/NodeTest.php1
-rw-r--r--core/modules/rest/src/Tests/RESTTestBase.php1
-rw-r--r--core/modules/rest/src/Tests/Views/StyleSerializerTest.php1
-rw-r--r--core/modules/rest/tests/src/Kernel/RequestHandlerTest.php1
-rw-r--r--core/modules/rest/tests/src/Unit/CollectRoutesTest.php1
14 files changed, 13 insertions, 1 deletions
diff --git a/core/modules/rest/src/LinkManager/RelationLinkManager.php b/core/modules/rest/src/LinkManager/RelationLinkManager.php
index 988e57c..297ffd9 100644
--- a/core/modules/rest/src/LinkManager/RelationLinkManager.php
+++ b/core/modules/rest/src/LinkManager/RelationLinkManager.php
@@ -138,4 +138,5 @@ class RelationLinkManager extends LinkManagerBase implements RelationLinkManager
// and only clear it when the fields cache is cleared.
$this->cache->set('rest:links:relations', $data, Cache::PERMANENT, array('entity_field_info'));
}
+
}
diff --git a/core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php b/core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php
index 3873358..484ca76 100644
--- a/core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php
+++ b/core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php
@@ -36,4 +36,5 @@ interface TypeLinkManagerInterface extends ConfigurableLinkManagerInterface {
* bundle. Otherwise, returns false.
*/
public function getTypeInternalIds($type_uri, $context = array());
+
}
diff --git a/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php b/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php
index 52e31f0..6a6ddae 100644
--- a/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php
+++ b/core/modules/rest/src/Plugin/Deriver/EntityDeriver.php
@@ -93,4 +93,5 @@ class EntityDeriver implements ContainerDeriverInterface {
}
return $this->derivatives;
}
+
}
diff --git a/core/modules/rest/src/Plugin/Type/ResourcePluginManager.php b/core/modules/rest/src/Plugin/Type/ResourcePluginManager.php
index 97fbf1c..9a3587c 100644
--- a/core/modules/rest/src/Plugin/Type/ResourcePluginManager.php
+++ b/core/modules/rest/src/Plugin/Type/ResourcePluginManager.php
@@ -42,4 +42,5 @@ class ResourcePluginManager extends DefaultPluginManager {
return $this->createInstance($options['id']);
}
}
+
}
diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
index e81ee09..6ec5f26 100644
--- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
+++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
@@ -245,5 +245,4 @@ class EntityResource extends ResourceBase {
return $route;
}
-
}
diff --git a/core/modules/rest/src/RequestHandler.php b/core/modules/rest/src/RequestHandler.php
index 9efdb35..c585166 100644
--- a/core/modules/rest/src/RequestHandler.php
+++ b/core/modules/rest/src/RequestHandler.php
@@ -131,4 +131,5 @@ class RequestHandler implements ContainerAwareInterface {
public function csrfToken() {
return new Response(\Drupal::csrfToken()->get('rest'), 200, array('Content-Type' => 'text/plain'));
}
+
}
diff --git a/core/modules/rest/src/ResourceResponse.php b/core/modules/rest/src/ResourceResponse.php
index 6d30415..20a7e78 100644
--- a/core/modules/rest/src/ResourceResponse.php
+++ b/core/modules/rest/src/ResourceResponse.php
@@ -49,4 +49,5 @@ class ResourceResponse extends Response implements CacheableResponseInterface {
public function getResponseData() {
return $this->responseData;
}
+
}
diff --git a/core/modules/rest/src/Tests/CsrfTest.php b/core/modules/rest/src/Tests/CsrfTest.php
index 3835ab8..f98abad 100644
--- a/core/modules/rest/src/Tests/CsrfTest.php
+++ b/core/modules/rest/src/Tests/CsrfTest.php
@@ -114,4 +114,5 @@ class CsrfTest extends RESTTestBase {
),
);
}
+
}
diff --git a/core/modules/rest/src/Tests/DeleteTest.php b/core/modules/rest/src/Tests/DeleteTest.php
index 3d97540..ccba38e 100644
--- a/core/modules/rest/src/Tests/DeleteTest.php
+++ b/core/modules/rest/src/Tests/DeleteTest.php
@@ -72,4 +72,5 @@ class DeleteTest extends RESTTestBase {
$this->assertEqual($account->id(), $user->id(), 'User still exists in the database.');
$this->assertResponse(405);
}
+
}
diff --git a/core/modules/rest/src/Tests/NodeTest.php b/core/modules/rest/src/Tests/NodeTest.php
index 357109c..7f0ed81 100644
--- a/core/modules/rest/src/Tests/NodeTest.php
+++ b/core/modules/rest/src/Tests/NodeTest.php
@@ -194,4 +194,5 @@ class NodeTest extends RESTTestBase {
$this->assertResponse(400);
$this->assertResponseBody('{"error":"A string must be provided as a bundle value."}');
}
+
}
diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php
index 099957e..71b1a08 100644
--- a/core/modules/rest/src/Tests/RESTTestBase.php
+++ b/core/modules/rest/src/Tests/RESTTestBase.php
@@ -425,4 +425,5 @@ abstract class RESTTestBase extends WebTestBase {
protected function assertResponseBody($expected, $message = '', $group = 'REST Response') {
return $this->assertIdentical($expected, $this->responseBody, $message ? $message : strtr('Response body @expected (expected) is equal to @response (actual).', array('@expected' => var_export($expected, TRUE), '@response' => var_export($this->responseBody, TRUE))), $group);
}
+
}
diff --git a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
index 04dfa12..a884342 100644
--- a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
+++ b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
@@ -785,4 +785,5 @@ class StyleSerializerTest extends PluginTestBase {
$expected = ['mul-l1-l2', 'mul-l1-orig', 'mul-l2-l1', 'mul-l2-orig', 'mul-none'];
$this->assertIdentical($names, $expected, 'The translated content was found in the JSON.');
}
+
}
diff --git a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
index d5d46f3..6c19ca4 100644
--- a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
+++ b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
@@ -133,4 +133,5 @@ class StubRequestHandlerResourcePlugin extends ResourceBase {
function get() {}
function patch() {}
+
}
diff --git a/core/modules/rest/tests/src/Unit/CollectRoutesTest.php b/core/modules/rest/tests/src/Unit/CollectRoutesTest.php
index 4cc1e7d..53ebbd5 100644
--- a/core/modules/rest/tests/src/Unit/CollectRoutesTest.php
+++ b/core/modules/rest/tests/src/Unit/CollectRoutesTest.php
@@ -133,4 +133,5 @@ class CollectRoutesTest extends UnitTestCase {
$this->assertEquals(count($requirements_1), 0, 'First route has no requirement.');
$this->assertEquals(count($requirements_2), 2, 'Views route with rest export had the format and method requirements added.');
}
+
}