Skip to content

Commit d40023c

Browse files
Apply php-cs-fixer rule for array_key_exists()
1 parent 2c5d2df commit d40023c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Field/FileFormField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function setValue($value)
6060

6161
// copy to a tmp location
6262
$tmp = sys_get_temp_dir().'/'.strtr(substr(base64_encode(hash('sha256', uniqid(mt_rand(), true), true)), 0, 7), '/', '_');
63-
if (array_key_exists('extension', $info)) {
63+
if (\array_key_exists('extension', $info)) {
6464
$tmp .= '.'.$info['extension'];
6565
}
6666
if (is_file($tmp)) {

FormFieldRegistry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function remove($name)
5757
$target = &$this->fields;
5858
while (\count($segments) > 1) {
5959
$path = array_shift($segments);
60-
if (!array_key_exists($path, $target)) {
60+
if (!\array_key_exists($path, $target)) {
6161
return;
6262
}
6363
$target = &$target[$path];
@@ -80,7 +80,7 @@ public function &get($name)
8080
$target = &$this->fields;
8181
while ($segments) {
8282
$path = array_shift($segments);
83-
if (!array_key_exists($path, $target)) {
83+
if (!\array_key_exists($path, $target)) {
8484
throw new \InvalidArgumentException(sprintf('Unreachable field "%s"', $path));
8585
}
8686
$target = &$target[$path];

0 commit comments

Comments
 (0)