lancew/DojoList

View on GitHub
controllers/dojo.php

Summary

Maintainability
C
1 day
Test Coverage

Dojo_Editform_end accesses the super-global variable $_POST.
Open

function Dojo_Editform_end() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Create_add accesses the super-global variable $_POST.
Open

function Dojo_Create_add() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Create_add accesses the super-global variable $_FILES.
Open

function Dojo_Create_add() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Editform_end accesses the super-global variable $_POST.
Open

function Dojo_Editform_end() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Create_add accesses the super-global variable $_POST.
Open

function Dojo_Create_add() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Delete_end accesses the super-global variable $_POST.
Open

function Dojo_Delete_end() 
{
    if ($_POST["recaptcha_response_field"] ) {
        $Dojo_Name = params('dojo');
        Delete_dojo($Dojo_Name);
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Create_add accesses the super-global variable $_POST.
Open

function Dojo_Create_add() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Editform_end accesses the super-global variable $_SERVER.
Open

function Dojo_Editform_end() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Editform_end accesses the super-global variable $_POST.
Open

function Dojo_Editform_end() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Create_add accesses the super-global variable $_POST.
Open

function Dojo_Create_add() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Editform_end accesses the super-global variable $_SERVER.
Open

function Dojo_Editform_end() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Editform_end accesses the super-global variable $_POST.
Open

function Dojo_Editform_end() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Create_add accesses the super-global variable $_POST.
Open

function Dojo_Create_add() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Create_add accesses the super-global variable $_POST.
Open

function Dojo_Create_add() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Create_add accesses the super-global variable $_SERVER.
Open

function Dojo_Create_add() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Dojo_Editform_end accesses the super-global variable $_POST.
Open

function Dojo_Editform_end() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php by phpmd

Since: PHPMD 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example:

class Foo {
      public function bar() {
          $name = $_POST['foo'];
      }
  }

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

Function Dojo_Editform_end has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
Open

function Dojo_Editform_end() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Minor
Found in controllers/dojo.php - About 4 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method Dojo_Editform_end has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Dojo_Editform_end() 
{
    if (!Validate_form($_POST) ) {
        $resp = recaptcha_check_answer(
            option('recaptcha_private_key'),
Severity: Major
Found in controllers/dojo.php - About 3 hrs to fix

    The function Dojo_Editform_end() has 131 lines of code. Current threshold is set to 100. Avoid really long methods.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    The function Dojo_Editform_end() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 0.1

    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

    Example:

    // Cyclomatic Complexity = 11
      class Foo {
      1   public function example() {
      2       if ($a == $b) {
      3           if ($a1 == $b1) {
                      fiddle();
      4           } elseif ($a2 == $b2) {
                      fiddle();
                  } else {
                      fiddle();
                  }
      5       } elseif ($c == $d) {
      6           while ($c == $d) {
                      fiddle();
                  }
      7        } elseif ($e == $f) {
      8           for ($n = 0; $n < $h; $n++) {
                      fiddle();
                  }
              } else {
                  switch ($z) {
      9               case 1:
                          fiddle();
                          break;
      10              case 2:
                          fiddle();
                          break;
      11              case 3:
                          fiddle();
                          break;
                      default:
                          fiddle();
                          break;
                  }
              }
          }
      }

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

    The method Dojo_Editform_end uses an else expression. Else is never necessary and you can simplify the code to work without else.
    Open

            } else {
                // set the error code so that we can display it
                halt('Failed to edit Dojo: '.$resp->error);
    
            }
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 1.4.0

    An if expression with an else branch is never necessary. You can rewrite the conditions in a way that the else is not necessary and the code becomes simpler to read. To achieve this use early return statements. To achieve this you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example:

    class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

    The method Dojo_Create_add uses an else expression. Else is never necessary and you can simplify the code to work without else.
    Open

        } else {
            set('Errors', Validate_form($_POST));
            return render('dojo/validation_error.html.php');
        }
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 1.4.0

    An if expression with an else branch is never necessary. You can rewrite the conditions in a way that the else is not necessary and the code becomes simpler to read. To achieve this use early return statements. To achieve this you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example:

    class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

    The method Dojo_Editform_end uses an else expression. Else is never necessary and you can simplify the code to work without else.
    Open

        } else {
            set('Errors', Validate_form($_POST));
            return render('dojo/validation_error.html.php');
        }
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 1.4.0

    An if expression with an else branch is never necessary. You can rewrite the conditions in a way that the else is not necessary and the code becomes simpler to read. To achieve this use early return statements. To achieve this you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example:

    class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

    The method Dojo_Delete_end uses an else expression. Else is never necessary and you can simplify the code to work without else.
    Open

        } else {
            halt('no recaptcha provided');
        }
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 1.4.0

    An if expression with an else branch is never necessary. You can rewrite the conditions in a way that the else is not necessary and the code becomes simpler to read. To achieve this use early return statements. To achieve this you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example:

    class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

    The method Dojo_Create_add uses an else expression. Else is never necessary and you can simplify the code to work without else.
    Open

            } else {
                // set the error code so that we can display it
                halt('Failed to add new Dojo: '.$resp->error);
    
            }
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 1.4.0

    An if expression with an else branch is never necessary. You can rewrite the conditions in a way that the else is not necessary and the code becomes simpler to read. To achieve this use early return statements. To achieve this you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example:

    class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

    The method Dojo_Editform_end uses an else expression. Else is never necessary and you can simplify the code to work without else.
    Open

                    } else {
                        $newxml .= $dojo->asXML();
                    }
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 1.4.0

    An if expression with an else branch is never necessary. You can rewrite the conditions in a way that the else is not necessary and the code becomes simpler to read. To achieve this use early return statements. To achieve this you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example:

    class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

    The function Dojo_Editform_end() contains an exit expression.
    Open

                $fh = fopen($myFile, 'w') or die("can't open file");
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 0.2

    An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

    Example:

    class Foo {
          public function bar($param)  {
              if ($param === 42) {
                  exit(23);
              }
          }
      }

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

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

        $dojo_data = '';
    Severity: Minor
    Found in controllers/dojo.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 variables with short names like $to. Configured minimum length is 3.
    Open

                $to      = $DojoOrigEmail;
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 0.2

    Detects when a field, local, or parameter has a very short name.

    Example:

    class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

    Avoid variables with short names like $fh. Configured minimum length is 3.
    Open

                $fh = fopen($myFile, 'w') or die("can't open file");
    Severity: Minor
    Found in controllers/dojo.php by phpmd

    Since: PHPMD 0.2

    Detects when a field, local, or parameter has a very short name.

    Example:

    class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

    The variable $clean_field is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $rss_array is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_delete() 
    {
        $DojoName = params('dojo');
        set('DojoName', $DojoName);
        return html('dojo/delete_recaptcha.html.php');
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_editform() 
    {
        $DojoName = params('dojo');
        $DojoName = str_replace('%20', ' ', $DojoName);
        $xml = Find_Dojo_all();
    Severity: Minor
    Found in controllers/dojo.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 $source_url is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $rss_array is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Create_add() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $clean_value is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $Dojo_Name is not named in camelCase.
    Open

    function Dojo_Delete_end() 
    {
        if ($_POST["recaptcha_response_field"] ) {
            $Dojo_Name = params('dojo');
            Delete_dojo($Dojo_Name);
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Create_add() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_editform() 
    {
        $DojoName = params('dojo');
        $DojoName = str_replace('%20', ' ', $DojoName);
        $xml = Find_Dojo_all();
    Severity: Minor
    Found in controllers/dojo.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 $dojo_data is not named in camelCase.
    Open

    function Dojo_editform() 
    {
        $DojoName = params('dojo');
        $DojoName = str_replace('%20', ' ', $DojoName);
        $xml = Find_Dojo_all();
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $clean_value is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $html_dojoname is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoOrigEmail is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_delete() 
    {
        $DojoName = params('dojo');
        set('DojoName', $DojoName);
        return html('dojo/delete_recaptcha.html.php');
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_editform() 
    {
        $DojoName = params('dojo');
        $DojoName = str_replace('%20', ' ', $DojoName);
        $xml = Find_Dojo_all();
    Severity: Minor
    Found in controllers/dojo.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 $DojoOrigEmail is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoOrigEmail is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $Dojo_Name is not named in camelCase.
    Open

    function Dojo_Delete_end() 
    {
        if ($_POST["recaptcha_response_field"] ) {
            $Dojo_Name = params('dojo');
            Delete_dojo($Dojo_Name);
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $html_dojoname is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $source_url is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $Dojo_Name is not named in camelCase.
    Open

    function Dojo_Delete_end() 
    {
        if ($_POST["recaptcha_response_field"] ) {
            $Dojo_Name = params('dojo');
            Delete_dojo($Dojo_Name);
    Severity: Minor
    Found in controllers/dojo.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 $clean_field is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_editform() 
    {
        $DojoName = params('dojo');
        $DojoName = str_replace('%20', ' ', $DojoName);
        $xml = Find_Dojo_all();
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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 $DojoName is not named in camelCase.
    Open

    function Dojo_Editform_end() 
    {
        if (!Validate_form($_POST) ) {
            $resp = recaptcha_check_answer(
                option('recaptcha_private_key'),
    Severity: Minor
    Found in controllers/dojo.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