Skip to content

Commit 26ccfc8

Browse files
committed
convert to camelcase
1 parent 50f53cc commit 26ccfc8

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/Normalizers/NormalizeJson.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public function run()
3838
if ($result) {
3939
/* decoded is array */
4040
if (is_array($decoded)) {
41-
$array_value = '';
42-
array_walk_recursive($decoded, function ($value, $key) use (&$array_value) {
43-
$array_value .= $key.' '.$value;
41+
$arrayValue = '';
42+
array_walk_recursive($decoded, function ($value, $key) use (&$arrayValue) {
43+
$arrayValue .= $key.' '.$value;
4444
});
45-
$this->value = $array_value;
45+
$this->value = $arrayValue;
4646
}
4747
}
4848

src/Normalizers/NormalizeSQLHex.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public function run()
3737
if (preg_match_all('/(?:(?:\A|[^\d])0x[a-f\d]{3,}[a-f\d]*)+/im', $this->value, $matches)) {
3838
foreach ($matches[0] as $match) {
3939
$converted = '';
40-
foreach (str_split($match, 2) as $hex_index) {
41-
if (preg_match('/[a-f\d]{2,3}/i', $hex_index)) {
42-
$converted .= chr(hexdec($hex_index));
40+
foreach (str_split($match, 2) as $hexIndex) {
41+
if (preg_match('/[a-f\d]{2,3}/i', $hexIndex)) {
42+
$converted .= chr(hexdec($hexIndex));
4343
}
4444
}
4545
$this->value = str_replace($match, $converted, $this->value);

src/Normalizers/NormalizeSerialize.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ public function run()
5252
}
5353

5454
if (is_array($decoded)) {
55-
$array_value = '';
56-
array_walk_recursive($decoded, function ($value, $key) use (&$array_value) {
57-
$array_value .= $key.' '.$value;
55+
$arrayValue = '';
56+
array_walk_recursive($decoded, function ($value, $key) use (&$arrayValue) {
57+
$arrayValue .= $key.' '.$value;
5858
});
59-
$decoded = $array_value;
59+
$decoded = $arrayValue;
6060
}
6161

6262
return $decoded;

0 commit comments

Comments
 (0)