Skip to content
Snippets Groups Projects
Commit e563d5b3 authored by Meysam Zandy's avatar Meysam Zandy
Browse files

Fix some errors in code

parent 412fd672
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
/**
* @file
* + * Clean restful api.
* Clean restful api.
*/
use Drupal\Core\Routing\RouteMatchInterface;
......
......@@ -931,6 +931,7 @@ class Fields {
* Reference Control .
*
* @param \Drupal\node\NodeInterface $node
* node interface
* @param string $key
* Key Param.
* @param array $values
......
......@@ -16,14 +16,14 @@ class Node {
*
* @var mixed
*/
private $body ;
private $body;
/**
* Define message.
*
* @var string
*/
private $message ;
private $message;
/**
* Define status Message.
......@@ -50,9 +50,9 @@ class Node {
*/
public function getNode(NodeInterface $node): JsonResponse {
$this->body = MainHelper::rebuildFields($node);
$this->body = MainHelper::rebuildFields($node);
return MainHelper::returnDataInJson($this->body, $this->message, $this->statusCode, $this->statusMessage);
return MainHelper::returnDataInJson($this->body, $this->message, $this->statusCode, $this->statusMessage);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment