Skip to content

Commit 360beb6

Browse files
committed
static analysis fixes
1 parent 9f35307 commit 360beb6

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

plugins/collection-view/src/Serializer.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public function __construct(
4545
mixed $serialize,
4646
private ?ServerRequest $request = null,
4747
private ?PaginatorHelper $paginator = null
48-
)
49-
{
48+
) {
5049
$this->config = Configure::read('CollectionView');
5150

5251
if ($serialize instanceof ResultSetInterface || $serialize instanceof PaginatedResultSet) {
@@ -115,6 +114,10 @@ public function getData(): mixed
115114
return $this->data;
116115
}
117116

117+
/**
118+
* @param mixed $data The data to be serialized
119+
* @return void
120+
*/
118121
public function setData(mixed $data): void
119122
{
120123
$this->data = $data;

plugins/hal-view/src/JsonSerializer.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ public function __construct(
3939
mixed $serialize,
4040
private ?ServerRequest $request = null,
4141
private ?PaginatorHelper $paginator = null
42-
)
43-
{
42+
) {
4443
$hal = $this->recursion($serialize);
4544

4645
if ($hal instanceof ResultSetInterface || $hal instanceof PaginatedResultSet) {
@@ -86,6 +85,10 @@ public function getData(): mixed
8685
return $this->data;
8786
}
8887

88+
/**
89+
* @param mixed $data The data to be serialized
90+
* @return void
91+
*/
8992
public function setData(mixed $data): void
9093
{
9194
$this->data = $data;

plugins/json-ld-view/src/JsonSerializer.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ public function __construct(
5757
mixed $serialize,
5858
private ?ServerRequest $request = null,
5959
private ?PaginatorHelper $paginator = null
60-
)
61-
{
60+
) {
6261
$jsonLd = $this->recursion($serialize);
6362
$this->config = Configure::read('JsonLdView');
6463
if (isset($this->config['isHydra']) && $this->config['isHydra']) {
@@ -108,6 +107,10 @@ public function getData(): ?array
108107
return $this->data;
109108
}
110109

110+
/**
111+
* @param mixed $data The data to be serialized
112+
* @return void
113+
*/
111114
public function setData(mixed $data): void
112115
{
113116
$this->data = $data;

0 commit comments

Comments
 (0)