rugk/xenforo-threema-gateway

View on GitHub
docs/examples/MessageCallback.php

Summary

Maintainability
A
1 hr
Test Coverage

Method testCallbackPostSave has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public static function testCallbackPostSave(ThreemaGateway_Handler_Action_Callback $handler,
                                        Threema\MsgApi\Helpers\ReceiveMessageResult $receiveResult,
                                        Threema\MsgApi\Messages\ThreemaMessage $threemaMsg,
                                        &$output,
                                        $messageSaved,
Severity: Minor
Found in docs/examples/MessageCallback.php - About 45 mins to fix

    Method testCallbackPreSave has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public static function testCallbackPreSave(ThreemaGateway_Handler_Action_Callback $handler,
                                            Threema\MsgApi\Helpers\ReceiveMessageResult $receiveResult,
                                            Threema\MsgApi\Messages\ThreemaMessage $threemaMsg,
                                            &$output,
                                            &$saveMessage,
    Severity: Minor
    Found in docs/examples/MessageCallback.php - About 45 mins to fix

      Avoid unused parameters such as '$receiveResult'.
      Open

                                              Threema\MsgApi\Helpers\ReceiveMessageResult $receiveResult,
      Severity: Minor
      Found in docs/examples/MessageCallback.php by phpmd

      UnusedFormalParameter

      Since: 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 https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$threemaMsg'.
      Open

                                              Threema\MsgApi\Messages\ThreemaMessage $threemaMsg,
      Severity: Minor
      Found in docs/examples/MessageCallback.php by phpmd

      UnusedFormalParameter

      Since: 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 https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$debugMode'.
      Open

                                              $debugMode)
      Severity: Minor
      Found in docs/examples/MessageCallback.php by phpmd

      UnusedFormalParameter

      Since: 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 https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$debugMode'.
      Open

                                              $debugMode)
      Severity: Minor
      Found in docs/examples/MessageCallback.php by phpmd

      UnusedFormalParameter

      Since: 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 https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      There are no issues that match your filters.

      Category
      Status