@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * @author Austin Heap <[email protected]> |
6 | 6 | * @version v0.4.0 |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace AustinHeap\Security\Txt; |
11 | 11 | |
@@ -120,21 +120,21 @@ discard block |
||
120 | 120 | if (is_null(config($key, null))) { |
121 | 121 | $this->addLogEntry('"'.__CLASS__.'" cannot process null value for key "'.$key.'".', 'debug'); |
122 | 122 | continue; |
123 | - } elseif (! function_exists($mapping['validator'])) { |
|
123 | + } elseif (!function_exists($mapping['validator'])) { |
|
124 | 124 | $this->addLogEntry('"'.__CLASS__.'" cannot find "validator" function named "'.$mapping['validator'].'".', 'warning'); |
125 | 125 | continue; |
126 | - } elseif (! $mapping['validator'](config($key))) { |
|
126 | + } elseif (!$mapping['validator'](config($key))) { |
|
127 | 127 | $this->addLogEntry('"'.__CLASS__.'" failed the "validator" function named "'.$mapping['validator'].'".', 'warning'); |
128 | 128 | continue; |
129 | 129 | } elseif (array_key_exists('self', $mapping) && is_bool($mapping['self']) && $mapping['self'] === true) { |
130 | - if (! method_exists($this, $mapping['setter'])) { |
|
130 | + if (!method_exists($this, $mapping['setter'])) { |
|
131 | 131 | $this->addLogEntry('"'.__CLASS__.'" cannot find mapping "setter" method on object "'.get_class($this).'" named "'.$mapping['setter'].'".', 'error'); |
132 | 132 | continue; |
133 | 133 | } |
134 | 134 | |
135 | 135 | $this->{$mapping['setter']}(config($key)); |
136 | 136 | } else { |
137 | - if (! method_exists($this->writer, $mapping['setter'])) { |
|
137 | + if (!method_exists($this->writer, $mapping['setter'])) { |
|
138 | 138 | $this->addLogEntry('"'.__CLASS__.'" cannot find mapping "setter" method on object "'.get_class($this->writer).'" named "'.$mapping['setter'].'".', 'error'); |
139 | 139 | continue; |
140 | 140 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | if ($this->cache) { |
196 | 196 | $text = cache($this->cacheKey, null); |
197 | 197 | |
198 | - if (! is_null($text)) { |
|
198 | + if (!is_null($text)) { |
|
199 | 199 | return $text; |
200 | 200 | } |
201 | 201 | } |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | */ |
372 | 372 | public function hasWriter(): bool |
373 | 373 | { |
374 | - return ! is_null($this->writer); |
|
374 | + return !is_null($this->writer); |
|
375 | 375 | } |
376 | 376 | |
377 | 377 | /** |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | */ |
382 | 382 | public function getWriter(): Writer |
383 | 383 | { |
384 | - if (! $this->hasWriter()) { |
|
384 | + if (!$this->hasWriter()) { |
|
385 | 385 | throw new Exception('Writer not set.'); |
386 | 386 | } |
387 | 387 |