@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | public function load(array $configs, ContainerBuilder $container) |
| 19 | 19 | { |
| 20 | - $fileLocator = new FileLocator(__DIR__ . '/../Resources/config'); |
|
| 20 | + $fileLocator = new FileLocator(__DIR__.'/../Resources/config'); |
|
| 21 | 21 | $loader = new YamlFileLoader($container, $fileLocator); |
| 22 | 22 | $loader->load('rabbitmq.yml'); |
| 23 | 23 | |
@@ -62,10 +62,10 @@ |
||
| 62 | 62 | $this->parameters['user'], |
| 63 | 63 | $this->parameters['password'], |
| 64 | 64 | $this->parameters['vhost'], |
| 65 | - false, // insist |
|
| 65 | + false, // insist |
|
| 66 | 66 | 'AMQPLAIN', // login_method |
| 67 | - null, // login_response |
|
| 68 | - 'en_US', // locale |
|
| 67 | + null, // login_response |
|
| 68 | + 'en_US', // locale |
|
| 69 | 69 | $this->parameters['connection_timeout'], |
| 70 | 70 | $this->parameters['read_write_timeout'], |
| 71 | 71 | $this->parameters['ssl_context'], |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | if (!$service instanceof RpcServiceInterface) { |
| 67 | 67 | throw new InvalidRpcServerClassException( |
| 68 | - 'Failed start RpcServer: %s is not instance of RpcServiceInterface'. $serviceName |
|
| 68 | + 'Failed start RpcServer: %s is not instance of RpcServiceInterface'.$serviceName |
|
| 69 | 69 | ); |
| 70 | 70 | } |
| 71 | 71 | list( |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | ); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - while(count($this->getChannel()->callbacks)) { |
|
| 87 | + while (count($this->getChannel()->callbacks)) { |
|
| 88 | 88 | $this->getChannel()->wait(); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 17 | 17 | { |
| 18 | - $loader->load(__DIR__ . '/config/config.yml'); |
|
| 18 | + $loader->load(__DIR__.'/config/config.yml'); |
|
| 19 | 19 | } |
| 20 | 20 | } |
| 21 | 21 | \ No newline at end of file |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function remove($name) |
| 50 | 50 | { |
| 51 | - foreach ((array) $name as $n) { |
|
| 51 | + foreach ((array)$name as $n) { |
|
| 52 | 52 | unset($this->methods[$n]); |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $this->setDefaults($data['defaults']); |
| 42 | 42 | |
| 43 | 43 | if (isset($data['compiled'])) { |
| 44 | - $this->compiled =$data['compiled']; |
|
| 44 | + $this->compiled = $data['compiled']; |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | $that = $this; |
| 148 | 148 | |
| 149 | 149 | $cache = $this->getConfigCacheFactory()->cache($this->options['cache_dir'].'/'.$class.'.php', |
| 150 | - function (ConfigCacheInterface $cache) use ($that, $class) { |
|
| 150 | + function(ConfigCacheInterface $cache) use ($that, $class) { |
|
| 151 | 151 | $dumper = $that->getMatcherDumperInstance(); |
| 152 | 152 | |
| 153 | 153 | $options = array( |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | $collection = new MethodCollection(); |
| 16 | 16 | $root = $this->getContainer()->getParameter('kernel.root_dir'); |
| 17 | - $resource = $root . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'rpc_routing.yml'; |
|
| 17 | + $resource = $root.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'rpc_routing.yml'; |
|
| 18 | 18 | $type = 'yaml'; |
| 19 | 19 | $importedRouters = $this->import($resource, $type); |
| 20 | 20 | $collection->addCollection($importedRouters); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function createCallback() |
| 43 | 43 | { |
| 44 | - $callback = function (AMQPMessage $message) { |
|
| 44 | + $callback = function(AMQPMessage $message) { |
|
| 45 | 45 | |
| 46 | 46 | $responseCollection = $this->rpcMessager->getResponseCollection(); |
| 47 | 47 | $requestCollection = $this->rpcMessager->getRequestCollection(); |