Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3752079
D116.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D116.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D116: PHPMD: unused ruleset
Attached
Detach File
Event Timeline
Log In to Comment