YetiForceCompany/YetiForceCRM

View on GitHub
app/Pdf/Drivers/Base.php

Summary

Maintainability
C
1 day
Test Coverage
C
77%

Function parseParams has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
Open

    public function parseParams(array $params)
    {
        foreach ($params as $param => $value) {
            switch ($param) {
                case 'margin-top':
Severity: Minor
Found in app/Pdf/Drivers/Base.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

Base has 29 functions (exceeds 20 allowed). Consider refactoring.
Open

abstract class Base
{
    /** @var string Driver name */
    const DRIVER_NAME = self::DRIVER_NAME;

Severity: Minor
Found in app/Pdf/Drivers/Base.php - About 3 hrs to fix

    Method parseParams has 64 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function parseParams(array $params)
        {
            foreach ($params as $param => $value) {
                switch ($param) {
                    case 'margin-top':
    Severity: Major
    Found in app/Pdf/Drivers/Base.php - About 2 hrs to fix

      The method parseParams() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10.
      Open

          public function parseParams(array $params)
          {
              foreach ($params as $param => $value) {
                  switch ($param) {
                      case 'margin-top':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpmd

      CyclomaticComplexity

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

      Class "Base" has 29 methods, which is greater than 20 authorized. Split it into smaller classes.
      Open

      abstract class Base
      Severity: Major
      Found in app/Pdf/Drivers/Base.php by sonar-php

      A class that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor the class into smaller ones which focus on well defined topics.

      Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed.
      Open

          public function parseParams(array $params)
      Severity: Critical
      Found in app/Pdf/Drivers/Base.php by sonar-php

      Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

      See

      The method parseParams uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

                          } else {
                              $this->setBottomMargin($this->defaultMargins['bottom']);
                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though 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 https://phpmd.org/rules/cleancode.html#elseexpression

      The method parseParams uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

                          } else {
                              $this->setFooterMargin($this->defaultMargins['footer']);
                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though 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 https://phpmd.org/rules/cleancode.html#elseexpression

      The method parseParams uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

                          } else {
                              $this->setTopMargin($this->defaultMargins['top']);
                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though 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 https://phpmd.org/rules/cleancode.html#elseexpression

      The method parseParams uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

                          } else {
                              $this->setHeaderMargin($this->defaultMargins['header']);
                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though 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 https://phpmd.org/rules/cleancode.html#elseexpression

      The method parseParams uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

                          } else {
                              $this->setLeftMargin($this->defaultMargins['left']);
                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though 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 https://phpmd.org/rules/cleancode.html#elseexpression

      Avoid using static access to class '\App\Fields\File' in method 'setFileName'.
      Open

              $this->fileName = \App\Fields\File::sanitizeUploadFileName($fileName);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpmd

      StaticAccess

      Since: 1.4.0

      Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

      Example

      class Foo
      {
          public function bar()
          {
              Bar::baz();
          }
      }

      Source https://phpmd.org/rules/cleancode.html#staticaccess

      The method parseParams uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

                          } else {
                              $this->setRightMargin($this->defaultMargins['right']);
                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though 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 https://phpmd.org/rules/cleancode.html#elseexpression

      Define a constant instead of duplicating this literal "bottom" 3 times.
      Open

              'bottom' => 40,
      Severity: Critical
      Found in app/Pdf/Drivers/Base.php by sonar-php

      Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

      On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

      Noncompliant Code Example

      With the default threshold of 3:

      function run() {
        prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
        execute('action1');
        release('action1');
      }
      

      Compliant Solution

      ACTION_1 = 'action1';
      
      function run() {
        prepare(ACTION_1);
        execute(ACTION_1);
        release(ACTION_1);
      }
      

      Exceptions

      To prevent generating some false-positives, literals having less than 5 characters are excluded.

      Define a constant instead of duplicating this literal "footer" 3 times.
      Open

              'footer' => 10,
      Severity: Critical
      Found in app/Pdf/Drivers/Base.php by sonar-php

      Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

      On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

      Noncompliant Code Example

      With the default threshold of 3:

      function run() {
        prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
        execute('action1');
        release('action1');
      }
      

      Compliant Solution

      ACTION_1 = 'action1';
      
      function run() {
        prepare(ACTION_1);
        execute(ACTION_1);
        release(ACTION_1);
      }
      

      Exceptions

      To prevent generating some false-positives, literals having less than 5 characters are excluded.

      Define a constant instead of duplicating this literal "right" 3 times.
      Open

              'right' => 30,
      Severity: Critical
      Found in app/Pdf/Drivers/Base.php by sonar-php

      Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

      On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

      Noncompliant Code Example

      With the default threshold of 3:

      function run() {
        prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
        execute('action1');
        release('action1');
      }
      

      Compliant Solution

      ACTION_1 = 'action1';
      
      function run() {
        prepare(ACTION_1);
        execute(ACTION_1);
        release(ACTION_1);
      }
      

      Exceptions

      To prevent generating some false-positives, literals having less than 5 characters are excluded.

      Define a constant instead of duplicating this literal "header" 3 times.
      Open

              'header' => 10,
      Severity: Critical
      Found in app/Pdf/Drivers/Base.php by sonar-php

      Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

      On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

      Noncompliant Code Example

      With the default threshold of 3:

      function run() {
        prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
        execute('action1');
        release('action1');
      }
      

      Compliant Solution

      ACTION_1 = 'action1';
      
      function run() {
        prepare(ACTION_1);
        execute(ACTION_1);
        release(ACTION_1);
      }
      

      Exceptions

      To prevent generating some false-positives, literals having less than 5 characters are excluded.

      Doc-block of $orientation in setPageSize is phpdoc param type string which is not a permitted replacement of the nullable param type ?string declared in the signature ('?T' should be documented as 'T|null' or '?T')
      Open

           * @param string $orientation
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phan

      Saw an @param annotation for headerHtml, but the param list of function loadWatermark() : static is empty
      Open

           * @param string $headerHtml
      Severity: Info
      Found in app/Pdf/Drivers/Base.php by phan

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var object PDF generator instance. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string Watermark text type */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string Watermark image type */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'bottom' => 40,
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'footer' => 10,
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string HTML body. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $fileName;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param float $margin
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          const WATERMARK_TYPE_TEXT = 0;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'left' => 30,
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'header' => 10,
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public static function isActive(): bool;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param array $margins ['top'=>40,'bottom'=>40,'left'=>30,'right'=>30,'header'=>10,'footer'=>10]
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          const WATERMARK_TYPE_IMAGE = 1;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          ];
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var \Vtiger_PDF_Model PDF model instance. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string HTML header. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $header;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string HTML footer. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string File name. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $fontSize;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set left margin.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string Charset. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $footerMargin = 10;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public $defaultMargins = [
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $charset;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $body;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $watermark;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $headerMargin = 10;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set document margins.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set bottom margin.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param float $margin
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var array Default margins in mm. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'right' => 30,
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $pdf;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $template;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $font;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set top margin.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param float $margin
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          protected $footer;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var int Footer margin . */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string Driver name */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setHeaderMargin(float $margin);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setPageSize(string $format, string $orientation = null);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      'right' => $this->template->get('margin_right'),
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      'bottom' => $this->template->get('margin_bottom'),
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      'left' => $this->template->get('margin_left'),
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setHeader(string $headerHtml);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setFooter(string $footerHtml);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $mode     Output mode, default: `D`,  `I` = show in browser , `D` = download  , `F` = save to file
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      'footer' => $this->template->get('footer_height'),
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->setFooter($this->template->parseVariables($this->template->getFooter() ?? ''));
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          const DRIVER_NAME = self::DRIVER_NAME;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var int Header margin. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $headerHtml
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function output($filePath = '', $mode = 'D'): void;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->setFileName($this->template->parseVariables($this->template->get('filename')) ?? '');
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set input charset.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function parseParams(array $params)
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if (is_numeric($value)) {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              'top' => 40,
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Check if the driver is active.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setBottomMargin(float $margin);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setFooterMargin(float $margin);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set header content.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      'top' => $this->template->get('margin_top'),
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->parseParams($this->template->getParameters());
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set PDF template model.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->template = $template;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Get PDF template model.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this->body;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this->fileName;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Parse and set options.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          } else {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'margin-bottom':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setRightMargin($this->defaultMargins['right']);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'creator':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var mixed Default font size. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setLeftMargin(float $margin);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $title
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->setPageSize($this->template->getFormat(), $this->template->getOrientation());
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      'header' => $this->template->get('header_height'),
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->loadWatermark();
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->setBody($this->template->parseVariables($this->template->getBody() ?? ''));
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Get HTML body content.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return string
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  switch ($param) {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'header_height':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'footer_height':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setFooterMargin($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'subject':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          $this->setKeywords(explode(',', $value));
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setCreator(string $creator);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $charset
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set HTML body content for exporting to PDF.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function getBody(): string
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return string
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          } else {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setHeaderMargin($this->defaultMargins['header']);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'author':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      default:
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string HTML watermark. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setTopMargin(float $margin);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param float $margin
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setSubject(string $subject);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Load template data to PDF instance.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->setHeader($this->template->parseVariables($this->template->getHeader() ?? ''));
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param \Vtiger_PDF_Model $template
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Get input charset.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              foreach ($params as $param => $value) {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if (is_numeric($value)) {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if (is_numeric($value)) {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $format
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $orientation
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setAuthor(string $author);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set footer content.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $footerHtml
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->charset = $charset;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Get pdf filename.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $fileName
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->fontSize = $size;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if (is_numeric($value)) {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'margin-right':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set right margin.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setRightMargin(float $margin);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $headerHtml
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return void
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function getTemplate(): \Vtiger_PDF_Model
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function getFileName()
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setBottomMargin($this->defaultMargins['bottom']);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          $this->setSubject($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set header margin.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param float $margin
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set footer margin.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $creator
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return void
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function setTemplate(\Vtiger_PDF_Model $template)
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $family
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          } else {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          $this->setAuthor($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /** @var string Default font. */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return bool
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setMargins(array $margins);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param float $margin
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set Title of the document.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set Title of the document.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Output content to PDF.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              if (1 !== $this->template->get('margin_chkbox')) {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $html
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function setBody(string $html)
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param mixed  $size
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set Title of the document.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set Title of the document.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  $this->setMargins([
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return string
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->body = $html;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $filePath Path name for saving pdf file
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function getInputCharset(): string
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set pdf filename.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set font.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          } else {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setLeftMargin($this->defaultMargins['left']);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setFooterMargin($this->defaultMargins['footer']);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          $this->setCreator($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setKeywords(array $keywords);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setBottomMargin($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set Title of the document.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $author
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string[] $keywords
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Load watermark.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function loadTemplateData(): void
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return \Vtiger_PDF_Model
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * Set page size and orientation.
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function setTitle(string $title);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param string $subject
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          abstract public function loadWatermark();
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  ]);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function setInputCharset(string $charset)
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function setFileName(string $fileName)
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->fileName = \App\Fields\File::sanitizeUploadFileName($fileName);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @param array $params
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           * @return $this
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setTopMargin($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'margin-left':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setLeftMargin($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setRightMargin($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setHeaderMargin($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          } else {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          } else {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this->template;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          public function setFont(string $family, $size)
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                              $this->setTopMargin($this->defaultMargins['top']);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if (is_numeric($value)) {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this->charset;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              $this->font = $family;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'margin-top':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          if (is_numeric($value)) {
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'title':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          $this->setTitle($value);
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                      case 'keywords':
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                  }
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

              return $this;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      Spaces must be used to indent lines; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Pdf/Drivers/Base.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status