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

Commit

Permalink
Merge pull request #13 from austinheap/analysis-zYaLR9
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
austinheap committed Nov 22, 2017
2 parents 920ab05 + 7f06e66 commit 014db83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SecurityTxtHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ public function buildWriter(array $keys = null): self
if (is_null(config($key, null))) {
$this->addLogEntry('"'.__CLASS__.'" cannot process null value for key "'.$key.'".', 'debug');
continue;
} else if (! function_exists($mapping['validator'])) {
} elseif (! function_exists($mapping['validator'])) {
$this->addLogEntry('"'.__CLASS__.'" cannot find "validator" function named "'.$mapping['validator'].'".', 'warning');
continue;
} else if (! $mapping['validator'](config($key))) {
} elseif (! $mapping['validator'](config($key))) {
$this->addLogEntry('"'.__CLASS__.'" failed the "validator" function named "'.$mapping['validator'].'".', 'warning');
continue;
} else if (array_key_exists('self', $mapping) && is_bool($mapping['self']) && $mapping['self'] === true) {
} elseif (array_key_exists('self', $mapping) && is_bool($mapping['self']) && $mapping['self'] === true) {
if (! method_exists($this, $mapping['setter'])) {
$this->addLogEntry('"'.__CLASS__.'" cannot find mapping "setter" method on object "'.get_class($this).'" named "'.$mapping['setter'].'".', 'error');
continue;
Expand Down

0 comments on commit 014db83

Please sign in to comment.