|
@@ 253-260 (lines=8) @@
|
| 250 |
|
$ends = JsonApiRuleSerializer::getRuleEndIndexes($this->getTypeRule()); |
| 251 |
|
$this->executeEnds($ends); |
| 252 |
|
|
| 253 |
|
if (count($this->getErrors()) > 0) { |
| 254 |
|
$title = $this->formatMessage(ErrorCodes::INVALID_VALUE); |
| 255 |
|
foreach ($this->getErrors()->get() as $error) { |
| 256 |
|
$this->getJsonApiErrorCollection() |
| 257 |
|
->addDataTypeError($title, $this->getMessage($error), $this->getErrorStatus()); |
| 258 |
|
} |
| 259 |
|
$this->getErrors()->clear(); |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
return $this; |
| 263 |
|
} |
|
@@ 290-297 (lines=8) @@
|
| 287 |
|
$ends = JsonApiRuleSerializer::getRuleEndIndexes($this->getIdRule()); |
| 288 |
|
$this->executeEnds($ends); |
| 289 |
|
|
| 290 |
|
if (count($this->getErrors()) > 0) { |
| 291 |
|
$title = $this->formatMessage(ErrorCodes::INVALID_VALUE); |
| 292 |
|
foreach ($this->getErrors()->get() as $error) { |
| 293 |
|
$this->getJsonApiErrorCollection() |
| 294 |
|
->addDataIdError($title, $this->getMessage($error), $this->getErrorStatus()); |
| 295 |
|
} |
| 296 |
|
$this->getErrors()->clear(); |
| 297 |
|
} |
| 298 |
|
|
| 299 |
|
return $this; |
| 300 |
|
} |