Skip to content

Commit

Permalink
CS and composer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bytehead committed Aug 27, 2018
1 parent 261247a commit 5aa5fbe
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 31 deletions.
63 changes: 36 additions & 27 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@

{
"name":"oneup/contao-sentry-bundle",
"description":"This bundle provides an easy integration of sentry.io for Contao 4.4.x and newer.",
"keywords":["contao", "sentry", "error", "tracking", "raven"],
"type":"contao-bundle",
"homepage":"https://github.com/1up-lab/contao-sentry-bundle",
"license":"MIT",
"authors":[
"name": "oneup/contao-sentry-bundle",
"type": "contao-bundle",
"description": "This bundle provides an easy integration of sentry.io for Contao 4.4.x and newer.",
"keywords": [
"contao",
"sentry",
"error",
"tracking",
"raven"
],
"homepage": "https://github.com/1up-lab/contao-sentry-bundle",
"license": "MIT",
"authors": [
{
"name":"David Greminger",
"email":"dg@1up.io",
"homepage":"https://github.com/bytehead",
"role":"Developer"
"name": "David Greminger",
"email": "dg@1up.io",
"homepage": "https://github.com/bytehead",
"role": "Developer"
}
],
"support":{
"email":"hello@1up.io",
"issues":"https://github.com/1up-lab/contao-sentry-bundle/issues",
"irc":"irc://irc.freenode.org/contao.dev",
"source":"https://github.com/1up-lab/contao-sentry-bundle"
},
"require":{
"php":">=7.1",
"contao/core-bundle":"^4.4",
"require": {
"php": ">=7.1",
"contao/core-bundle": "^4.4",
"sentry/sentry-symfony": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "~6.5",
"contao/manager-plugin": "^2.0",
"sentry/sentry": "^0.9",
"friendsofphp/php-cs-fixer": "^2.13",
"phpunit/phpunit": "~6.5",
"sentry/sentry": "^1.0",
"symfony/config": "^3.3 || ^4.0",
"symfony/dependency-injection": "^3.3 || ^4.0",
"twig/twig": "^2.4"
},
"config": {
"sort-packages": true
},
"extra": {
"contao-manager-plugin": "Oneup\\Contao\\SentryBundle\\ContaoManager\\Plugin"
},
"autoload": {
"psr-4": {
"Oneup\\Contao\\SentryBundle\\": "src"
Expand All @@ -46,9 +52,12 @@
"Oneup\\Contao\\SentryBundle\\": "/tests/"
}
},
"extra": {
"contao-manager-plugin": "Oneup\\Contao\\SentryBundle\\ContaoManager\\Plugin"
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"support": {
"email": "hello@1up.io",
"issues": "https://github.com/1up-lab/contao-sentry-bundle/issues",
"irc": "irc://irc.freenode.org/contao.dev",
"source": "https://github.com/1up-lab/contao-sentry-bundle"
}
}
3 changes: 1 addition & 2 deletions src/DependencyInjection/OneupContaoSentryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

class OneupContaoSentryExtension extends Extension
{

/**
* Loads a specific configuration.
*
Expand All @@ -22,7 +21,7 @@ class OneupContaoSentryExtension extends Extension
*/
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
}
}
1 change: 0 additions & 1 deletion src/Twig/AppExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

class AppExtension extends Twig_Extension
{

/**
* Returns a list of filters to add to the existing list.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/AppRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ public function sentryLastEventIdFilter(): ?string
*/
public function sentryDsn(): string
{
return sprintf('https://' . $this->client->public_key . '@sentry.io/' . $this->client->project);
return sprintf('https://'.$this->client->public_key.'@sentry.io/'.$this->client->project);
}
}

0 comments on commit 5aa5fbe

Please sign in to comment.