Page MenuHomeDevCentral

D116.diff
No OneTemporary

D116.diff

diff --git a/app/Providers/BrokerServiceProvider.php b/app/Providers/BrokerServiceProvider.php
--- a/app/Providers/BrokerServiceProvider.php
+++ b/app/Providers/BrokerServiceProvider.php
@@ -21,6 +21,8 @@
* Registers the application services.
*
* @return void
+ *
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
*/
public function register() {
$this->app->singleton('broker', function ($app) {
diff --git a/app/Providers/ReportServiceProvider.php b/app/Providers/ReportServiceProvider.php
--- a/app/Providers/ReportServiceProvider.php
+++ b/app/Providers/ReportServiceProvider.php
@@ -11,6 +11,8 @@
* Registers the application services.
*
* @return void
+ *
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
*/
public function register() {
$this->app->singleton('report', function ($app) {
diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -19,6 +19,7 @@
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
+ "phpmd/phpmd" : "@stable",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
diff --git a/ruleset.xml b/ruleset.xml
new file mode 100644
--- /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/plain
Expires
Mon, Nov 18, 15:31 (21 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250792
Default Alt Text
D116.diff (1 KB)

Event Timeline