Skip to content

Commit ee52d26

Browse files
committed
Rename variables
1 parent d6a3fa1 commit ee52d26

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Validation/ValidationError.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ValidationError
2222
/**
2323
* @var string|null
2424
*/
25-
protected $code = null;
25+
protected $code;
2626

2727
/**
2828
* Constructor.
@@ -103,14 +103,14 @@ public function toArray(): array
103103
'message' => $this->getMessage(),
104104
];
105105

106-
$field = $this->getField();
107-
if ($field !== null) {
108-
$result['field'] = $field;
106+
$fieldName = $this->getField();
107+
if ($fieldName !== null) {
108+
$result['field'] = $fieldName;
109109
}
110110

111-
$code = $this->getCode();
112-
if ($code !== null) {
113-
$result['code'] = $code;
111+
$errorCode = $this->getCode();
112+
if ($errorCode !== null) {
113+
$result['code'] = $errorCode;
114114
}
115115

116116
return $result;

0 commit comments

Comments
 (0)