@@ -10,6 +10,9 @@ |
||
| 10 | 10 | { |
| 11 | 11 | private $configFilename; |
| 12 | 12 | |
| 13 | + /** |
|
| 14 | + * @param string $env |
|
| 15 | + */ |
|
| 13 | 16 | public function __construct($env, $debug, $configFilename) |
| 14 | 17 | { |
| 15 | 18 | parent::__construct($env, $debug); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $this->cacheDir = $cacheDir = tempnam(sys_get_temp_dir(), 'raven-bundle-test'); |
| 20 | 20 | unlink($cacheDir); |
| 21 | 21 | |
| 22 | - register_shutdown_function(function () use ($cacheDir) { |
|
| 22 | + register_shutdown_function(function() use ($cacheDir) { |
|
| 23 | 23 | $fs = new Filesystem(); |
| 24 | 24 | $fs->remove($cacheDir); |
| 25 | 25 | }); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | return call_user_func_array(array($this->client, __FUNCTION__), func_get_args()); |
| 45 | 45 | } |
| 46 | - public function message($message, $params=array(), $level=self::INFO, $stack=false, $vars = null) |
|
| 46 | + public function message($message, $params = array(), $level = self::INFO, $stack = false, $vars = null) |
|
| 47 | 47 | { |
| 48 | 48 | return call_user_func_array(array($this->client, __FUNCTION__), func_get_args()); |
| 49 | 49 | } |
@@ -52,11 +52,11 @@ discard block |
||
| 52 | 52 | // this one is deprecated, so we don't decorate it |
| 53 | 53 | return call_user_func_array(array($this->client, __FUNCTION__), func_get_args()); |
| 54 | 54 | } |
| 55 | - public function captureMessage($message, $params=array(), $level_or_options=array(), $stack=false, $vars = null) |
|
| 55 | + public function captureMessage($message, $params = array(), $level_or_options = array(), $stack = false, $vars = null) |
|
| 56 | 56 | { |
| 57 | 57 | return call_user_func_array(array($this->client, __FUNCTION__), func_get_args()); |
| 58 | 58 | } |
| 59 | - public function captureQuery($query, $level=self::INFO, $engine = '') |
|
| 59 | + public function captureQuery($query, $level = self::INFO, $engine = '') |
|
| 60 | 60 | { |
| 61 | 61 | return call_user_func_array(array($this->client, __FUNCTION__), func_get_args()); |
| 62 | 62 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | { |
| 93 | 93 | return call_user_func_array(array($this->client, __FUNCTION__), func_get_args()); |
| 94 | 94 | } |
| 95 | - public function set_user_data($id, $email=null, $data=array()) |
|
| 95 | + public function set_user_data($id, $email = null, $data = array()) |
|
| 96 | 96 | { |
| 97 | 97 | return call_user_func_array(array($this->client, __FUNCTION__), func_get_args()); |
| 98 | 98 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $configuration = new Configuration(); |
| 18 | 18 | $config = $this->processConfiguration($configuration, $configs); |
| 19 | 19 | |
| 20 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 20 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 21 | 21 | $loader->load('services.yml'); |
| 22 | 22 | |
| 23 | 23 | $container->getDefinition('cm_raven.raven_client')->setDecoratedService($config['client_id']); |