davaxi/AllMySMS

View on GitHub
src/Service/Message/OutGoing.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method callSMS has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function callSMS(SMS $sms, $simulate)
    {
        $data = $sms->getData();
        $this->checkSMSData($data);

Severity: Minor
Found in src/Service/Message/OutGoing.php - About 1 hr to fix

    Method sendMMS has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function sendMMS(MMS $mms)
        {
            $data = $mms->getData();
            $this->checkMMSData($data);
    
    
    Severity: Minor
    Found in src/Service/Message/OutGoing.php - About 1 hr to fix

      Missing class import via use statement (line '284', column '23').
      Open

                  throw new \LogicException('No SUBJECT defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '287', column '23').
      Open

                  throw new \LogicException('No HTML defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '234', column '23').
      Open

                  throw new \LogicException('No recipients defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '255', column '23').
      Open

                  throw new \LogicException('No mms type defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '265', column '23').
      Open

                  throw new \LogicException('No recipients defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '237', column '23').
      Open

                  throw new \LogicException('No message defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '268', column '23').
      Open

                  throw new \LogicException('No message defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '278', column '23').
      Open

                  throw new \LogicException('No FROM defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '252', column '23').
      Open

                  throw new \LogicException('No recipients defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '241', column '27').
      Open

                      throw new \InvalidArgumentException('Expected ' . $data['paramsLength'] . ' params for recipient ' . $recipient['number']);
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Missing class import via use statement (line '281', column '23').
      Open

                  throw new \LogicException('No TO defined');
      Severity: Minor
      Found in src/Service/Message/OutGoing.php by phpmd

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      There are no issues that match your filters.

      Category
      Status