Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 014db83

Browse files
authored
Merge pull request #13 from austinheap/analysis-zYaLR9
Apply fixes from StyleCI
2 parents 920ab05 + 7f06e66 commit 014db83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SecurityTxtHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ public function buildWriter(array $keys = null): self
120120
if (is_null(config($key, null))) {
121121
$this->addLogEntry('"'.__CLASS__.'" cannot process null value for key "'.$key.'".', 'debug');
122122
continue;
123-
} else if (! function_exists($mapping['validator'])) {
123+
} elseif (! function_exists($mapping['validator'])) {
124124
$this->addLogEntry('"'.__CLASS__.'" cannot find "validator" function named "'.$mapping['validator'].'".', 'warning');
125125
continue;
126-
} else if (! $mapping['validator'](config($key))) {
126+
} elseif (! $mapping['validator'](config($key))) {
127127
$this->addLogEntry('"'.__CLASS__.'" failed the "validator" function named "'.$mapping['validator'].'".', 'warning');
128128
continue;
129-
} else if (array_key_exists('self', $mapping) && is_bool($mapping['self']) && $mapping['self'] === true) {
129+
} elseif (array_key_exists('self', $mapping) && is_bool($mapping['self']) && $mapping['self'] === true) {
130130
if (! method_exists($this, $mapping['setter'])) {
131131
$this->addLogEntry('"'.__CLASS__.'" cannot find mapping "setter" method on object "'.get_class($this).'" named "'.$mapping['setter'].'".', 'error');
132132
continue;

0 commit comments

Comments
 (0)