@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | if (!empty($this->encryption)) { |
156 | 156 | if ($this->comments) { |
157 | 157 | $this->spacer() |
158 | - ->comment('Our PGP key'); |
|
158 | + ->comment('Our PGP key'); |
|
159 | 159 | } |
160 | 160 | |
161 | 161 | $this->line('Encryption: ' . trim($this->encryption)); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | if (!empty($this->disclosure)) { |
165 | 165 | if ($this->comments) { |
166 | 166 | $this->spacer() |
167 | - ->comment('Our disclosure policy'); |
|
167 | + ->comment('Our disclosure policy'); |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | $this->line('Disclosure: ' . trim(ucfirst($this->disclosure))); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | if (!empty($this->acknowledgement)) { |
174 | 174 | if ($this->comments) { |
175 | 175 | $this->spacer() |
176 | - ->comment('Our public acknowledgement'); |
|
176 | + ->comment('Our public acknowledgement'); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | $this->line('Acknowledgement: ' . trim($this->acknowledgement)); |
@@ -181,19 +181,19 @@ discard block |
||
181 | 181 | |
182 | 182 | if ($this->debug) { |
183 | 183 | $this->spacer() |
184 | - ->comment() |
|
185 | - ->comment( |
|
186 | - 'Generated by "' . (defined('LARAVEL_SECURITY_TXT_VERSION') ? 'laravel' : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? 'wordpress' : 'php')) . '-security-txt"' . |
|
187 | - (defined('LARAVEL_SECURITY_TXT_VERSION') ? ' v' . LARAVEL_SECURITY_TXT_VERSION : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? ' v' . WORDPRESS_SECURITY_TXT_VERSION : (defined('PHP_SECURITY_TXT_VERSION') ? ' v' . PHP_SECURITY_TXT_VERSION : ''))) . |
|
188 | - ' (https://github.com/austinheap/' . (defined('LARAVEL_SECURITY_TXT_VERSION') ? 'laravel' : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? 'wordpress' : 'php')) . '-security-txt' . (defined('LARAVEL_SECURITY_TXT_VERSION') ? '/releases/tag/v' . LARAVEL_SECURITY_TXT_VERSION : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? '/releases/tag/v' . WORDPRESS_SECURITY_TXT_VERSION : (defined('PHP_SECURITY_TXT_VERSION') ? '/releases/tag/v' . PHP_SECURITY_TXT_VERSION : ''))) . ')'); |
|
184 | + ->comment() |
|
185 | + ->comment( |
|
186 | + 'Generated by "' . (defined('LARAVEL_SECURITY_TXT_VERSION') ? 'laravel' : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? 'wordpress' : 'php')) . '-security-txt"' . |
|
187 | + (defined('LARAVEL_SECURITY_TXT_VERSION') ? ' v' . LARAVEL_SECURITY_TXT_VERSION : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? ' v' . WORDPRESS_SECURITY_TXT_VERSION : (defined('PHP_SECURITY_TXT_VERSION') ? ' v' . PHP_SECURITY_TXT_VERSION : ''))) . |
|
188 | + ' (https://github.com/austinheap/' . (defined('LARAVEL_SECURITY_TXT_VERSION') ? 'laravel' : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? 'wordpress' : 'php')) . '-security-txt' . (defined('LARAVEL_SECURITY_TXT_VERSION') ? '/releases/tag/v' . LARAVEL_SECURITY_TXT_VERSION : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? '/releases/tag/v' . WORDPRESS_SECURITY_TXT_VERSION : (defined('PHP_SECURITY_TXT_VERSION') ? '/releases/tag/v' . PHP_SECURITY_TXT_VERSION : ''))) . ')'); |
|
189 | 189 | if (defined('LARAVEL_SECURITY_TXT_VERSION') || defined('WORDPRESS_SECURITY_TXT_VERSION')) { |
190 | 190 | $this->comment( |
191 | 191 | 'using "php-security-txt"' . (defined('PHP_SECURITY_TXT_VERSION') ? ' v' . PHP_SECURITY_TXT_VERSION : '') . |
192 | 192 | ' (https://github.com/austinheap/php-security-txt' . (defined('PHP_SECURITY_TXT_VERSION') ? '/releases/tag/v' . PHP_SECURITY_TXT_VERSION : '') . ')'); |
193 | 193 | } |
194 | 194 | $this->comment('in ' . round((microtime(true) - $time) * 1000, 6) . ' seconds on ' . date('c') . '.') |
195 | - ->comment() |
|
196 | - ->spacer(); |
|
195 | + ->comment() |
|
196 | + ->spacer(); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | $output = implode(PHP_EOL, $this->lines); |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | $comment = trim($comment); |
53 | 53 | |
54 | 54 | if (!empty($comment)) { |
55 | - $comment = ' ' . $comment; |
|
55 | + $comment = ' '.$comment; |
|
56 | 56 | } |
57 | 57 | |
58 | - return $this->line(trim('#' . $comment)); |
|
58 | + return $this->line(trim('#'.$comment)); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | } |
150 | 150 | |
151 | 151 | foreach (array_keys($this->contacts) as $contact) { |
152 | - $this->line('Contact: ' . trim($contact)); |
|
152 | + $this->line('Contact: '.trim($contact)); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | if (!empty($this->encryption)) { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | ->comment('Our PGP key'); |
159 | 159 | } |
160 | 160 | |
161 | - $this->line('Encryption: ' . trim($this->encryption)); |
|
161 | + $this->line('Encryption: '.trim($this->encryption)); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | if (!empty($this->disclosure)) { |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | ->comment('Our disclosure policy'); |
168 | 168 | } |
169 | 169 | |
170 | - $this->line('Disclosure: ' . trim(ucfirst($this->disclosure))); |
|
170 | + $this->line('Disclosure: '.trim(ucfirst($this->disclosure))); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | if (!empty($this->acknowledgement)) { |
@@ -176,22 +176,22 @@ discard block |
||
176 | 176 | ->comment('Our public acknowledgement'); |
177 | 177 | } |
178 | 178 | |
179 | - $this->line('Acknowledgement: ' . trim($this->acknowledgement)); |
|
179 | + $this->line('Acknowledgement: '.trim($this->acknowledgement)); |
|
180 | 180 | } |
181 | 181 | |
182 | 182 | if ($this->debug) { |
183 | 183 | $this->spacer() |
184 | 184 | ->comment() |
185 | 185 | ->comment( |
186 | - 'Generated by "' . (defined('LARAVEL_SECURITY_TXT_VERSION') ? 'laravel' : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? 'wordpress' : 'php')) . '-security-txt"' . |
|
187 | - (defined('LARAVEL_SECURITY_TXT_VERSION') ? ' v' . LARAVEL_SECURITY_TXT_VERSION : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? ' v' . WORDPRESS_SECURITY_TXT_VERSION : (defined('PHP_SECURITY_TXT_VERSION') ? ' v' . PHP_SECURITY_TXT_VERSION : ''))) . |
|
188 | - ' (https://github.com/austinheap/' . (defined('LARAVEL_SECURITY_TXT_VERSION') ? 'laravel' : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? 'wordpress' : 'php')) . '-security-txt' . (defined('LARAVEL_SECURITY_TXT_VERSION') ? '/releases/tag/v' . LARAVEL_SECURITY_TXT_VERSION : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? '/releases/tag/v' . WORDPRESS_SECURITY_TXT_VERSION : (defined('PHP_SECURITY_TXT_VERSION') ? '/releases/tag/v' . PHP_SECURITY_TXT_VERSION : ''))) . ')'); |
|
186 | + 'Generated by "'.(defined('LARAVEL_SECURITY_TXT_VERSION') ? 'laravel' : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? 'wordpress' : 'php')).'-security-txt"'. |
|
187 | + (defined('LARAVEL_SECURITY_TXT_VERSION') ? ' v'.LARAVEL_SECURITY_TXT_VERSION : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? ' v'.WORDPRESS_SECURITY_TXT_VERSION : (defined('PHP_SECURITY_TXT_VERSION') ? ' v'.PHP_SECURITY_TXT_VERSION : ''))). |
|
188 | + ' (https://github.com/austinheap/'.(defined('LARAVEL_SECURITY_TXT_VERSION') ? 'laravel' : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? 'wordpress' : 'php')).'-security-txt'.(defined('LARAVEL_SECURITY_TXT_VERSION') ? '/releases/tag/v'.LARAVEL_SECURITY_TXT_VERSION : (defined('WORDPRESS_SECURITY_TXT_VERSION') ? '/releases/tag/v'.WORDPRESS_SECURITY_TXT_VERSION : (defined('PHP_SECURITY_TXT_VERSION') ? '/releases/tag/v'.PHP_SECURITY_TXT_VERSION : ''))).')'); |
|
189 | 189 | if (defined('LARAVEL_SECURITY_TXT_VERSION') || defined('WORDPRESS_SECURITY_TXT_VERSION')) { |
190 | 190 | $this->comment( |
191 | - 'using "php-security-txt"' . (defined('PHP_SECURITY_TXT_VERSION') ? ' v' . PHP_SECURITY_TXT_VERSION : '') . |
|
192 | - ' (https://github.com/austinheap/php-security-txt' . (defined('PHP_SECURITY_TXT_VERSION') ? '/releases/tag/v' . PHP_SECURITY_TXT_VERSION : '') . ')'); |
|
191 | + 'using "php-security-txt"'.(defined('PHP_SECURITY_TXT_VERSION') ? ' v'.PHP_SECURITY_TXT_VERSION : ''). |
|
192 | + ' (https://github.com/austinheap/php-security-txt'.(defined('PHP_SECURITY_TXT_VERSION') ? '/releases/tag/v'.PHP_SECURITY_TXT_VERSION : '').')'); |
|
193 | 193 | } |
194 | - $this->comment('in ' . round((microtime(true) - $time) * 1000, 6) . ' seconds on ' . date('c') . '.') |
|
194 | + $this->comment('in '.round((microtime(true) - $time) * 1000, 6).' seconds on '.date('c').'.') |
|
195 | 195 | ->comment() |
196 | 196 | ->spacer(); |
197 | 197 | } |