Completed
Push — master ( 9bc139...ce3b36 )
by Austin
03:19
created
src/Writer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.