Should the return type not be array<string|string[]>?
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Should the return type not be array<string|string[]>?
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
35
{
36
$id = $multipartMessage[1];
37
$type = $multipartMessage[2];
38
$message = array_slice($multipartMessage, 3);
39
40
return [ $id, $type, $message ];
41
}
42
43
/**
44
* @param string $id
45
* @param string $type
46
* @return string[]
47
*/
48
protected function prepareBinderMessage($id, $type)
49
{
50
return [ $id, $this->id, $type ];
51
}
52
53
/**
54
* @param string $id
55
* @param string $type
56
* @return string[]
57
*/
58
protected function prepareConnectorMessage($id, $type)
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.