@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $dom = new DOMDocument(); |
| 40 | 40 | |
| 41 | 41 | // https://stackoverflow.com/a/8218649/3121455 |
| 42 | - $dom->loadHTML('<?xml encoding="utf-8" ?>' . $html); |
|
| 42 | + $dom->loadHTML('<?xml encoding="utf-8" ?>'.$html); |
|
| 43 | 43 | |
| 44 | 44 | $xpath = new DOMXPath($dom); |
| 45 | 45 | $nodes = $xpath->query('//@*'); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | $optionsResolver->setDefault( |
| 44 | 44 | 'default_locale', |
| 45 | - function (Options $options, $previousValue) { |
|
| 45 | + function(Options $options, $previousValue) { |
|
| 46 | 46 | if (!is_array($options['locales']) || !in_array($previousValue, $options['locales'])) { |
| 47 | 47 | throw new InvalidOptionsException( |
| 48 | 48 | 'Value of the "default_locale" option is not present in locales array' |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | foreach ($transitions as $transition) { |
| 113 | 113 | $transitionName = $transition->getName(); |
| 114 | - $queueNames[] = $this->queuePrefix . $transitionName; |
|
| 114 | + $queueNames[] = $this->queuePrefix.$transitionName; |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | $this->distribute($payload, $queueNames); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $transition = array_shift($transitions); |
| 137 | 137 | |
| 138 | 138 | $transitionName = $transition->getName(); |
| 139 | - $queueName = $this->queuePrefix . $transitionName; |
|
| 139 | + $queueName = $this->queuePrefix.$transitionName; |
|
| 140 | 140 | |
| 141 | 141 | return $this->get($dtoClass, $queueName); |
| 142 | 142 | } |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | } catch (Exception $e) { |
| 166 | 166 | $channel->txRollback(); |
| 167 | 167 | |
| 168 | - $channel->close()->then(function () { |
|
| 168 | + $channel->close()->then(function() { |
|
| 169 | 169 | $this->amqpClient->disconnect(); |
| 170 | 170 | }); |
| 171 | 171 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function load(array $configs, ContainerBuilder $container) |
| 51 | 51 | { |
| 52 | - $locator = new FileLocator(__DIR__ . implode(DIRECTORY_SEPARATOR, ['', '..', 'Resources'])); |
|
| 52 | + $locator = new FileLocator(__DIR__.implode(DIRECTORY_SEPARATOR, ['', '..', 'Resources'])); |
|
| 53 | 53 | $loader = new YamlFileLoader($container, $locator); |
| 54 | 54 | |
| 55 | 55 | $configFiles = [ |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | ]; |
| 64 | 64 | |
| 65 | 65 | foreach ($configFiles as $configFile) { |
| 66 | - $loader->load('config' . DIRECTORY_SEPARATOR . $configFile); |
|
| 66 | + $loader->load('config'.DIRECTORY_SEPARATOR.$configFile); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $configuration = new Configuration(); |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | ->end() |
| 94 | 94 | ->end() |
| 95 | 95 | ->beforeNormalization() |
| 96 | - ->ifTrue(function ($v) { |
|
| 96 | + ->ifTrue(function($v) { |
|
| 97 | 97 | if (!$v['enabled']) { |
| 98 | 98 | return false; |
| 99 | 99 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | foreach ($roadmaps as $roadmapName => $roadmap) { |
| 70 | 70 | $message .= "\n <info>$roadmapName</info>\n"; |
| 71 | - $message .= ' Type: ' . get_class($roadmap) . "\n"; |
|
| 71 | + $message .= ' Type: '.get_class($roadmap)."\n"; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | $message .= "\nNew roadmaps can be registered in <comment>roadmaps.yml</comment>"; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function load(array $configs, ContainerBuilder $container) |
| 32 | 32 | { |
| 33 | - $locator = new FileLocator(__DIR__ . implode(DIRECTORY_SEPARATOR, ['', '..', 'Resources'])); |
|
| 33 | + $locator = new FileLocator(__DIR__.implode(DIRECTORY_SEPARATOR, ['', '..', 'Resources'])); |
|
| 34 | 34 | $loader = new YamlFileLoader($container, $locator); |
| 35 | 35 | |
| 36 | 36 | $configFiles = [ |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | ]; |
| 52 | 52 | |
| 53 | 53 | foreach ($configFiles as $configFile) { |
| 54 | - $loader->load('config' . DIRECTORY_SEPARATOR . $configFile); |
|
| 54 | + $loader->load('config'.DIRECTORY_SEPARATOR.$configFile); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | $configuration = new Configuration(); |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | |
| 235 | 235 | $propertyConfig = array_filter( |
| 236 | 236 | self::PROPERTY_MAP, |
| 237 | - function (array $propertyConfig) use ($propertyTo) { |
|
| 237 | + function(array $propertyConfig) use ($propertyTo) { |
|
| 238 | 238 | return $propertyTo === $propertyConfig[0]; |
| 239 | 239 | } |
| 240 | 240 | ); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | $parsedDto = new ParsedDto(); |
| 64 | 64 | $parsedDto->setVacancy($rawDto); |
| 65 | 65 | |
| 66 | - $scannerDto = $this->scanner instanceof MultistrategicScanner |
|
| 66 | + $scannerDto = $this->scanner instanceof MultistrategicScanner |
|
| 67 | 67 | ? new MultistrategicScannerDto() |
| 68 | 68 | : new ScannerDto(); |
| 69 | 69 | |