Page MenuHomeDevCentral

No OneTemporary

diff --git a/app/Providers/BrokerServiceProvider.php b/app/Providers/BrokerServiceProvider.php
index 886b8ee..2bd8f70 100644
--- a/app/Providers/BrokerServiceProvider.php
+++ b/app/Providers/BrokerServiceProvider.php
@@ -1,38 +1,40 @@
<?php
namespace Nasqueron\Notifications\Providers;
use Illuminate\Support\ServiceProvider;
use Keruald\Broker\AMQPBroker as Broker;
use Config;
class BrokerServiceProvider extends ServiceProvider {
/**
* Bootstraps the application services.
*
* @return void
*/
public function boot() {
}
/**
* Registers the application services.
*
* @return void
+ *
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
*/
public function register() {
$this->app->singleton('broker', function ($app) {
$broker = new Broker();
$broker->connect(
Config::get('broker.connections.amqp.host'),
Config::get('broker.connections.amqp.port'),
Config::get('broker.connections.amqp.username'),
Config::get('broker.connections.amqp.password'),
Config::get('broker.connections.amqp.vhost')
);
return $broker;
});
}
}
diff --git a/app/Providers/ReportServiceProvider.php b/app/Providers/ReportServiceProvider.php
index f0844a1..eb9bebb 100644
--- a/app/Providers/ReportServiceProvider.php
+++ b/app/Providers/ReportServiceProvider.php
@@ -1,20 +1,22 @@
<?php
namespace Nasqueron\Notifications\Providers;
use Illuminate\Support\ServiceProvider;
use Nasqueron\Notifications\Actions\ActionsReport;
class ReportServiceProvider extends ServiceProvider {
/**
* Registers the application services.
*
* @return void
+ *
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
*/
public function register() {
$this->app->singleton('report', function ($app) {
return new ActionsReport();
});
}
}
diff --git a/composer.json b/composer.json
index 2763a80..5d5e498 100644
--- a/composer.json
+++ b/composer.json
@@ -1,59 +1,60 @@
{
"name": "nasqueron/notifications",
"description": "Nasqueron notifications center",
"keywords": [
"nasqueron",
"activemq",
"AMQP",
"notifications"
],
"license": "BSD-2-Clause",
"type": "project",
"require": {
"php": ">=5.6.0",
"laravel/framework": "5.1.*",
"keruald/github": ">=0.2.0",
"keruald/broker": ">=0.1.0",
"netresearch/jsonmapper": "~0.1.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
+ "phpmd/phpmd" : "@stable",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"Nasqueron\\Notifications\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
}
}
diff --git a/ruleset.xml b/ruleset.xml
new file mode 100644
index 0000000..9badd86
--- /dev/null
+++ b/ruleset.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<ruleset name="Nasqueron PHPMD rule set"
+ xmlns="http://pmd.sf.net/ruleset/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
+ http://pmd.sf.net/ruleset_xml_schema.xsd"
+ xsi:noNamespaceSchemaLocation="
+ http://pmd.sf.net/ruleset_xml_schema.xsd">
+ <description>
+ The PHPMD rule set for Nasqueron projects.
+ </description>
+
+ <rule ref="rulesets/unusedcode.xml" />
+</ruleset>

File Metadata

Mime Type
text/x-diff
Expires
Wed, Mar 18, 10:48 (3 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3517988
Default Alt Text
(4 KB)

Event Timeline