@@ -89,7 +89,7 @@ |
||
| 89 | 89 | $slackMessage = new SlackMessage(); |
| 90 | 90 | |
| 91 | 91 | $quoteText = [ |
| 92 | - 'This is ' . $this->formatBold('test') . ' message sent by SlackBot', |
|
| 92 | + 'This is '.$this->formatBold('test').' message sent by SlackBot', |
|
| 93 | 93 | $this->formatCode([ |
| 94 | 94 | '<?php', |
| 95 | 95 | '$someString = \'Hello world!\';', |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | protected function randomString(int $length = 6): string |
| 34 | 34 | { |
| 35 | 35 | $str = ''; |
| 36 | - $characters = array_merge(range('A','Z'), range('a','z'), range('0','9')); |
|
| 36 | + $characters = array_merge(range('A', 'Z'), range('a', 'z'), range('0', '9')); |
|
| 37 | 37 | $max = count($characters) - 1; |
| 38 | 38 | for ($i = 0; $i < $length; $i++) { |
| 39 | 39 | $rand = mt_rand(0, $max); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $expect = "\n"; |
| 77 | 77 | foreach ($lines as $line) { |
| 78 | - $expect .= "• " . $line . "\n"; |
|
| 78 | + $expect .= "• ".$line."\n"; |
|
| 79 | 79 | } |
| 80 | 80 | $actual = $this->formatListMarker($lines); |
| 81 | 81 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | public function testEscapeCharacters() |
| 141 | 141 | { |
| 142 | - $expect = $testString = $this->randomString() . '<&>'; |
|
| 142 | + $expect = $testString = $this->randomString().'<&>'; |
|
| 143 | 143 | $expect = str_replace('&', '&', $expect); |
| 144 | 144 | $expect = str_replace('<', '<', $expect); |
| 145 | 145 | $expect = str_replace('>', '>', $expect); |
@@ -67,10 +67,10 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | foreach ($list as $key => $value) { |
| 70 | - $list[$key] = "• " . $value; |
|
| 70 | + $list[$key] = "• ".$value; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - return "\n" . implode("\n", $list) . "\n"; |
|
| 73 | + return "\n".implode("\n", $list)."\n"; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $n = 0; |
| 88 | 88 | $output = "\n"; |
| 89 | 89 | foreach ($list as $value) { |
| 90 | - $output .= ++$n . ". " . $value . "\n"; |
|
| 90 | + $output .= ++$n.". ".$value."\n"; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | return $output; |