lancew/DojoList

View on GitHub
lib/limonade/abstract.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$route'.
Open

function before($route)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$errstr'.
Open

function not_found($errno, $errstr, $errfile=null, $errline=null)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$errline'.
Open

function server_error($errno, $errstr, $errfile=null, $errline=null)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$errfile'.
Open

function server_error($errno, $errstr, $errfile=null, $errline=null)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$errno'.
Open

function not_found($errno, $errstr, $errfile=null, $errline=null)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$errstr'.
Open

function server_error($errno, $errstr, $errfile=null, $errline=null)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$exit'.
Open

function before_exit($exit)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$errline'.
Open

function not_found($errno, $errstr, $errfile=null, $errline=null)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$errfile'.
Open

function not_found($errno, $errstr, $errfile=null, $errline=null)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$callback'.
Open

function autoload_controller($callback)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused local variables such as '$output'.
Open

  return $output;
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example:

class Foo {
      public function doSomething()
      {
          $i = 5; // Unused
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$route'.
Open

function after($output, $route)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$errno'.
Open

function server_error($errno, $errstr, $errfile=null, $errline=null)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$header'.
Open

function before_sending_header($header)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

Avoid unused parameters such as '$route'.
Open

function autorender($route)
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example:

class Foo
  {
      private function bar($howdy)
      {
          // $howdy is not used
      }
  }

Source: http://phpmd.org/rules/unusedcode.txt

The parameter $view_path is not named in camelCase.
Open

function before_render($content_or_func, $layout, $locals, $view_path)
{
  # transform $content_or_func, $layout, $locals or $view_path…
  return array($content_or_func, $layout, $locals, $view_path);
}
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example:

class ClassName {
      public function doSomething($user_name) {
      }
  }

Source: http://phpmd.org/rules/controversial.txt

The parameter $request_uri is not named in camelCase.
Open

function route_missing($request_method, $request_uri)
{
  halt(NOT_FOUND, "($request_method) $request_uri"); # by default
}
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example:

class ClassName {
      public function doSomething($user_name) {
      }
  }

Source: http://phpmd.org/rules/controversial.txt

The parameter $content_or_func is not named in camelCase.
Open

function before_render($content_or_func, $layout, $locals, $view_path)
{
  # transform $content_or_func, $layout, $locals or $view_path…
  return array($content_or_func, $layout, $locals, $view_path);
}
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example:

class ClassName {
      public function doSomething($user_name) {
      }
  }

Source: http://phpmd.org/rules/controversial.txt

The parameter $request_method is not named in camelCase.
Open

function route_missing($request_method, $request_uri)
{
  halt(NOT_FOUND, "($request_method) $request_uri"); # by default
}
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example:

class ClassName {
      public function doSomething($user_name) {
      }
  }

Source: http://phpmd.org/rules/controversial.txt

The variable $content_or_func is not named in camelCase.
Open

function before_render($content_or_func, $layout, $locals, $view_path)
{
  # transform $content_or_func, $layout, $locals or $view_path…
  return array($content_or_func, $layout, $locals, $view_path);
}
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

It is considered best practice to use the camelCase notation to name variables.

Example:

class ClassName {
      public function doSomething() {
          $data_module = new DataModule();
      }
  }

Source: http://phpmd.org/rules/controversial.txt

The variable $request_uri is not named in camelCase.
Open

function route_missing($request_method, $request_uri)
{
  halt(NOT_FOUND, "($request_method) $request_uri"); # by default
}
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

It is considered best practice to use the camelCase notation to name variables.

Example:

class ClassName {
      public function doSomething() {
          $data_module = new DataModule();
      }
  }

Source: http://phpmd.org/rules/controversial.txt

The variable $request_method is not named in camelCase.
Open

function route_missing($request_method, $request_uri)
{
  halt(NOT_FOUND, "($request_method) $request_uri"); # by default
}
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

It is considered best practice to use the camelCase notation to name variables.

Example:

class ClassName {
      public function doSomething() {
          $data_module = new DataModule();
      }
  }

Source: http://phpmd.org/rules/controversial.txt

The variable $view_path is not named in camelCase.
Open

function before_render($content_or_func, $layout, $locals, $view_path)
{
  # transform $content_or_func, $layout, $locals or $view_path…
  return array($content_or_func, $layout, $locals, $view_path);
}
Severity: Minor
Found in lib/limonade/abstract.php by phpmd

Since: PHPMD 0.2

It is considered best practice to use the camelCase notation to name variables.

Example:

class ClassName {
      public function doSomething() {
          $data_module = new DataModule();
      }
  }

Source: http://phpmd.org/rules/controversial.txt

There are no issues that match your filters.

Category
Status