@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | |
41 | 41 | /** @var array */ |
42 | 42 | private $searchSources = [ |
43 | - SlackEmoji::OBJECTS__MAG . ' Search on Google' => 'https://www.google.com/search?q=%s', |
|
44 | - SlackEmoji::OBJECTS__MAG . ' Search on StackOverflow' => 'https://stackoverflow.com/search?q=%s', |
|
45 | - SlackEmoji::OBJECTS__MAG . ' Search on Symfony.com' => 'https://symfony.com/search?q=%s', |
|
43 | + SlackEmoji::OBJECTS__MAG.' Search on Google' => 'https://www.google.com/search?q=%s', |
|
44 | + SlackEmoji::OBJECTS__MAG.' Search on StackOverflow' => 'https://stackoverflow.com/search?q=%s', |
|
45 | + SlackEmoji::OBJECTS__MAG.' Search on Symfony.com' => 'https://symfony.com/search?q=%s', |
|
46 | 46 | ]; |
47 | 47 | |
48 | 48 | /** |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $traceStep['line'] |
150 | 150 | ); |
151 | 151 | $trace[] = SlackMarkdown::inlineCode( |
152 | - $traceStep['class'] . $traceStep['type'] . $traceStep['function'] . '()' |
|
152 | + $traceStep['class'].$traceStep['type'].$traceStep['function'].'()' |
|
153 | 153 | ); |
154 | 154 | $trace[] = SlackMarkdown::newLine(); |
155 | 155 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | $container->setParameter('wowapps.slackbot.config', $config); |
45 | 45 | |
46 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
46 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
47 | 47 | $loader->load('services.yaml'); |
48 | 48 | } |
49 | 49 | } |
@@ -149,9 +149,9 @@ discard block |
||
149 | 149 | ]; |
150 | 150 | |
151 | 151 | foreach ($this->config['templates'] as $templateName => $templateConfig) { |
152 | - $tBody[] = [' ' . $templateName . ':', '']; |
|
152 | + $tBody[] = [' '.$templateName.':', '']; |
|
153 | 153 | foreach ($templateConfig as $key => $value) { |
154 | - $tBody[] = [' ' . $key, $value]; |
|
154 | + $tBody[] = [' '.$key, $value]; |
|
155 | 155 | } |
156 | 156 | } |
157 | 157 | |
@@ -204,19 +204,19 @@ discard block |
||
204 | 204 | ) |
205 | 205 | ->appendAction( |
206 | 206 | new AttachmentAction( |
207 | - SlackEmoji::PEOPLE__FEMALE_TECHNOLOGIST . ' View documentation', |
|
207 | + SlackEmoji::PEOPLE__FEMALE_TECHNOLOGIST.' View documentation', |
|
208 | 208 | 'https://wow-apps.github.io/symfony-slack-bot/docs' |
209 | 209 | ) |
210 | 210 | ) |
211 | 211 | ->appendAction( |
212 | 212 | new AttachmentAction( |
213 | - SlackEmoji::PEOPLE__SMILEY_CAT . ' View source on GitHub', |
|
213 | + SlackEmoji::PEOPLE__SMILEY_CAT.' View source on GitHub', |
|
214 | 214 | 'https://github.com/wow-apps/symfony-slack-bot' |
215 | 215 | ) |
216 | 216 | ) |
217 | 217 | ->appendAction( |
218 | 218 | new AttachmentAction( |
219 | - SlackEmoji::PEOPLE__GHOST . ' Button with confirmation', |
|
219 | + SlackEmoji::PEOPLE__GHOST.' Button with confirmation', |
|
220 | 220 | 'https://cdn.shopify.com/s/files/1/1034/8911/products/' |
221 | 221 | . 's_8422_9TLbAj9PUhSRVCVAKCz7sHZcVYdpGyBlack.png?v=1473238696', |
222 | 222 | AttachmentAction::STYLE_PRIMARY, |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | if ($linesNumber < 1 || $linesNumber > 5) { |
41 | 41 | throw new SlackbotException( |
42 | 42 | SlackbotException::E_WRONG_LINES_NUMBER, |
43 | - ['requested_lines_number: ' . $linesNumber, 'allowed_lines_number: from 1 to 5'] |
|
43 | + ['requested_lines_number: '.$linesNumber, 'allowed_lines_number: from 1 to 5'] |
|
44 | 44 | ); |
45 | 45 | } |
46 | 46 | |
@@ -122,8 +122,8 @@ discard block |
||
122 | 122 | throw new SlackbotException( |
123 | 123 | SlackbotException::E_INCORRECT_LIST_TYPE, |
124 | 124 | [ |
125 | - 'actual_type: ' . $listType, |
|
126 | - 'expected_type: ' . self::LIST_MARKER . ' or ' . self::LIST_NUMERIC, |
|
125 | + 'actual_type: '.$listType, |
|
126 | + 'expected_type: '.self::LIST_MARKER.' or '.self::LIST_NUMERIC, |
|
127 | 127 | ] |
128 | 128 | ); |
129 | 129 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | if (!in_array($request->getStatusCode(), self::ALLOWED_RESPONSE_STATUSES)) { |
72 | 72 | throw new SlackbotException( |
73 | 73 | SlackbotException::E_BAD_RESPONSE, |
74 | - ['status_code: ' . $request->getStatusCode()] |
|
74 | + ['status_code: '.$request->getStatusCode()] |
|
75 | 75 | ); |
76 | 76 | } |
77 | 77 |
@@ -86,8 +86,8 @@ |
||
86 | 86 | "[%d] %s\nRead more: %s\n%s", |
87 | 87 | $errorCode, |
88 | 88 | $this->errorMessages[$errorCode], |
89 | - 'https://wow-apps.github.io/symfony-slack-bot/docs/#/4x/exceptions/' . $errorCode, |
|
90 | - empty($additional) ? '' : 'Additional: ' . sprintf(' (%s)', implode(', ', $additional)) |
|
89 | + 'https://wow-apps.github.io/symfony-slack-bot/docs/#/4x/exceptions/'.$errorCode, |
|
90 | + empty($additional) ? '' : 'Additional: '.sprintf(' (%s)', implode(', ', $additional)) |
|
91 | 91 | ); |
92 | 92 | |
93 | 93 | parent::__construct($errorMessage, $errorCode); |