Skip to content
Snippets Groups Projects
Commit 8ec8dbb6 authored by Patrick Kenny's avatar Patrick Kenny
Browse files

Issue #3438018 by ptmkenny: Fix coding standards

parent d346c741
No related branches found
No related tags found
1 merge request!8Fix coding standards
Pipeline #266902 passed with warnings
......@@ -2,8 +2,8 @@
namespace Drupal\jsonapi_include\EventSubscriber;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Cache\CacheableResponseInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\jsonapi\Routing\Routes;
use Drupal\jsonapi_include\JsonapiParseInterface;
......
......@@ -33,7 +33,7 @@ class JsonapiParse implements JsonapiParseInterface {
public function parse($response) {
// @todo Remove in the release 2.0 with removed the deprecated srings input.
if (!$response instanceof Response) {
@trigger_error('Parsing strings is deprecated deprecated in jsonapi_include:8.x-1.7 and is removed from jsonapi_include:8.x-2.0. Pass the full Response object instead. See https://www.drupal.org/project/jsonapi_include/issues/3374410', E_USER_DEPRECATED);
@trigger_error('Parsing strings is deprecated in jsonapi_include:8.x-1.7 and is removed from jsonapi_include:8.x-2.0. Pass the full Response object instead. See https://www.drupal.org/project/jsonapi_include/issues/3374410', E_USER_DEPRECATED);
$content = $this->parseJsonContent($response);
return Json::encode($content);
}
......@@ -100,6 +100,8 @@ class JsonapiParse implements JsonapiParseInterface {
*
* @param array|mixed $resource
* The resource.
* @param string $key
* The key.
*
* @return array
* The result.
......@@ -123,7 +125,6 @@ class JsonapiParse implements JsonapiParseInterface {
*
* @param array|mixed $resource
* The resource to verify.
*
* @param string $key
* Relationship key.
*
......@@ -143,7 +144,6 @@ class JsonapiParse implements JsonapiParseInterface {
*
* @param array|mixed $data
* The data for resolve.
*
* @param string $key
* Relationship key.
*
......@@ -164,7 +164,6 @@ class JsonapiParse implements JsonapiParseInterface {
*
* @param array|mixed $links
* The data for resolve.
*
* @param string $key
* Relationship key.
*
......@@ -192,7 +191,6 @@ class JsonapiParse implements JsonapiParseInterface {
*
* @param array|mixed $resource
* The data for resolve.
*
* @param string $parent_key
* The parent key for relationship.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment