YetiForceCompany/YetiForcePDF

View on GitHub
lib/Layout/TableRowBox.php

Summary

Maintainability
C
1 day
Test Coverage

Function spanColumns has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
Open

    public function spanColumns()
    {
        $colSpans = [];
        foreach ($this->getChildren() as $column) {
            if ($column->getColSpan() > 1) {
Severity: Minor
Found in lib/Layout/TableRowBox.php - About 4 hrs to fix

Cognitive Complexity

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

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

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

Further reading

Method appendTableCellBox has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function appendTableCellBox($childDomElement, $element, $style, $parentBlock)
    {
        $colSpan = 1;
        $style->setRule('display', 'block');
        $attributeColSpan = $childDomElement->getAttribute('colspan');
Severity: Major
Found in lib/Layout/TableRowBox.php - About 2 hrs to fix

    Method spanColumns has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function spanColumns()
        {
            $colSpans = [];
            foreach ($this->getChildren() as $column) {
                if ($column->getColSpan() > 1) {
    Severity: Minor
    Found in lib/Layout/TableRowBox.php - About 1 hr to fix

      The method spanColumns() has an NPath complexity of 788. The configured NPath complexity threshold is 200.
      Open

          public function spanColumns()
          {
              $colSpans = [];
              foreach ($this->getChildren() as $column) {
                  if ($column->getColSpan() > 1) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      NPathComplexity

      Since: 0.1

      The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

      Example

      class Foo {
          function bar() {
              // lots of complicated code
          }
      }

      Source https://phpmd.org/rules/codesize.html#npathcomplexity

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

          public function spanColumns()
          {
              $colSpans = [];
              foreach ($this->getChildren() as $column) {
                  if ($column->getColSpan() > 1) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.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

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

          public function spanColumns()
      Severity: Critical
      Found in lib/Layout/TableRowBox.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

      Missing class import via use statement (line '140', column '17').
      Open

              $style = (new \YetiForcePDF\Style\Style())
      Severity: Minor
      Found in lib/Layout/TableRowBox.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 '233', column '22').
      Open

              $clearStyle = (new \YetiForcePDF\Style\Style())
      Severity: Minor
      Found in lib/Layout/TableRowBox.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 '254', column '23').
      Open

                  $clearStyle = (new \YetiForcePDF\Style\Style())
      Severity: Minor
      Found in lib/Layout/TableRowBox.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

      Avoid using static access to class '\YetiForcePDF\Math' in method 'spanColumns'.
      Open

                          $spannedWidth = Math::add($spannedWidth, Math::mul((string) (\count($columns)), $column->getStyle()->getRules('border-spacing')));
      Severity: Minor
      Found in lib/Layout/TableRowBox.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

      Avoid using static access to class '\YetiForcePDF\Math' in method 'spanColumns'.
      Open

                          $spannedWidth = Math::sub($spannedWidth, $column->getStyle()->getRules('border-spacing'));
      Severity: Minor
      Found in lib/Layout/TableRowBox.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

      Avoid using static access to class '\YetiForcePDF\Math' in method 'spanColumns'.
      Open

                          $spannedWidth = Math::add($spannedWidth, $column->getDimensions()->getWidth());
      Severity: Minor
      Found in lib/Layout/TableRowBox.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

      Avoid using static access to class '\YetiForcePDF\Math' in method 'spanColumns'.
      Open

                          $spannedWidth = Math::add($spannedWidth, Math::mul((string) (\count($columns)), $column->getStyle()->getRules('border-spacing')));
      Severity: Minor
      Found in lib/Layout/TableRowBox.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

      Avoid using static access to class '\YetiForcePDF\Math' in method 'spanColumns'.
      Open

                      $sourceDmns->setWidth(Math::add($sourceDmns->getWidth(), $spannedWidth));
      Severity: Minor
      Found in lib/Layout/TableRowBox.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

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

              $style->setRule('display', 'block');
      Severity: Critical
      Found in lib/Layout/TableRowBox.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.

      Rename "$rowSpan" which has the same name as the field declared at line 28.
      Open

              $rowSpan = 1;
      Severity: Major
      Found in lib/Layout/TableRowBox.php by sonar-php

      Shadowing fields with a local variable is a bad practice that reduces code readability: it makes it confusing to know whether the field or the variable is being used.

      Noncompliant Code Example

      class Foo {
        public $myField;
      
        public function doSomething() {
          $myField = 0;
          ...
        }
      }
      

      See

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

              $style->setRule('display', 'block');
      Severity: Critical
      Found in lib/Layout/TableRowBox.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.

      Avoid unused parameters such as '$parentBlock'.
      Open

          public function appendTableCellBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$parentBlock'.
      Open

          public function appendBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$style'.
      Open

          public function appendInlineBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$childDomElement'.
      Open

          public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$childDomElement'.
      Open

          public function appendInlineBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$childDomElement'.
      Open

          public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$element'.
      Open

          public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$style'.
      Open

          public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$parentBlock'.
      Open

          public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$parentBlock'.
      Open

          public function appendInlineBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$element'.
      Open

          public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$element'.
      Open

          public function appendInlineBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$style'.
      Open

          public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$element'.
      Open

          public function appendBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$parentBlock'.
      Open

          public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$childDomElement'.
      Open

          public function appendBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

      Avoid unused parameters such as '$style'.
      Open

          public function appendBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpmd

      UnusedFormalParameter

      Since: 0.2

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

      Example

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

      Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

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

              $this->rowSpan = $rowSpan;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @return int
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * We shouldn't append table wrapper here.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              foreach ($colSpans as $index => $columns) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              for ($i = 0; $i < $colSpan; ++$i) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function setRowSpan(int $rowSpan)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function setRowSpanUp(int $rowSpanUp)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $style
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $element
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  if ($column->getColSpan() > 1) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                          $column->setColSpanned($colSpansCount - $index)->setRenderable(false);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param int $rowSpan
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param int $rowSpanUp
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $this->rowSpanUp = $rowSpanUp;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $element
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * Create column box.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function createColumnBox()
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @return $this
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $colSpansCount = \count($colSpans);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $tableAuto = 'auto' === $this->getParent()->getParent()->getParent()->getStyle()->getRules('width');
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $style
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              return $box;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $source = array_shift($columns);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          protected $rowSpanUp = 0;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              return $this->rowSpan;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * Get row span up.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $style
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $element
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * We shouldn't append inline box here.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $childDomElement
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function appendInlineBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      $currentColumn = $column;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      for ($i = 0; $i < $spanCount; ++$i) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              return $this;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $parentBlock
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @throws \InvalidArgumentException
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setDocument($this->document)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @return $this
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function appendTableCellBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * Set row span.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function getRowSpan()
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              return $this;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              return $this->rowSpanUp;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $childDomElement
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $parentBlock
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $box = (new TableColumnBox())
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setDocument($this->document)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      if (isset($column) && null !== $column) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @var int
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param int $rowSpan
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $childDomElement
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $style
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $colSpans = [];
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      $colSpans[] = $spans;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  foreach ($columns as $column) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function appendBlockBox($childDomElement, $element, $style, $parentBlock)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->parseInline();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setStyle($style)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $this->appendChild($box);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      $spans = [$column];
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      if ($separate && null === $column->getNext() && !$tableAuto) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @return $this
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * Set row span up.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @return $this
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $childDomElement
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $element
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $parentBlock
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                          $currentColumn = $currentColumn->getNext();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $rowSpan = 1;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          protected $rowSpan = 1;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function getRowSpanUp()
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              foreach ($this->getChildren() as $column) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      $spanCount = $column->getColSpan() - 1;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                          $spannedWidth = Math::sub($spannedWidth, $column->getStyle()->getRules('border-spacing'));
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * We shouldn't append inline block box here.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setParent($this)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->init();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                          $spannedWidth = Math::add($spannedWidth, $column->getDimensions()->getWidth());
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @var int
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @return int
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $box->getStyle()->init();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                          $spans[] = $currentColumn;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      if ($separate && $tableAuto) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * Get row span.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * We shouldn't append block box here.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param mixed $parentBlock
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $style = (new \YetiForcePDF\Style\Style())
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * Span columns.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          public function spanColumns()
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      $cell->getDimensions()->setWidth($sourceDmns->getInnerWidth());
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $clearStyle = (new \YetiForcePDF\Style\Style())
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $spanBox = (new TableCellBox())
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->setParent($column)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->setStyle(clone $style)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                          $cellStyle->setRule('border-right-width', $cellStyle->getRules('border-left-width'));
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      $sourceDmns->setWidth(Math::add($sourceDmns->getWidth(), $spannedWidth));
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $attributeColSpan = $childDomElement->getAttribute('colspan');
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $colSpan = (int) $attributeColSpan;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setParent($this)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setParent($column)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->setElement(clone $element)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @return $this
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setDocument($this->document)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setStyle($clearStyle)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $column->appendChild($spanBox);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      if (null === $source->getNext()) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      $cell = $source->getFirstChild();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              return $this;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * Append table cell box element.
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param Element                       $element
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param \YetiForcePDF\Layout\BlockBox $parentBlock
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $colSpan = 1;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $style->setRule('display', 'block');
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $attributeRowSpan = $childDomElement->getAttribute('rowspan');
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $column->setColSpan($colSpan)->setRowSpan($rowSpan);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              --$colSpan;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              return $box;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      $separate = 'separate' === $column->getStyle()->getRules('border-collapse');
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              if ($attributeColSpan) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setDocument($this->document)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $this->appendChild($column);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $box = (new TableCellBox())
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setElement($element)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setStyle($style)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $column = (new TableColumnBox())
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $column->getStyle()->init()->setRule('display', 'block');
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      $sourceDmns = $source->getDimensions();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->setDocument($this->document)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->init();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              if ($attributeRowSpan) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->init();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $column->appendChild($box);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->setDocument($this->document)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->setDocument($this->document)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->setSpanned(true)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param \DOMElement                   $childDomElement
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $column->getStyle()->init()->setRule('display', 'block');
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $box->getStyle()->init();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $column = (new TableColumnBox())
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->init();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->setParent($this)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                          $cellStyle = $cell->getStyle();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $rowSpan = (int) $attributeRowSpan;
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->parseInline();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->setDocument($this->document)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $column->setColSpan(-1);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $this->appendChild($column);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      foreach ($columns as $column) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

           * @param Style                         $style
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $clearStyle = (new \YetiForcePDF\Style\Style())
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  ->parseInline();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->setStyle($clearStyle)
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                      ->init();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

      Line exceeds 120 characters; contains 150 characters
      Open

                          $spannedWidth = Math::add($spannedWidth, Math::mul((string) (\count($columns)), $column->getStyle()->getRules('border-spacing')));
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                          $cell = $source->getFirstChild();
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  $spannedWidth = '0';
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                  if (null !== $column) {
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

                          $spannedWidth = Math::add($spannedWidth, Math::mul((string) (\count($columns)), $column->getStyle()->getRules('border-spacing')));
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

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

              $box->buildTree($box);
      Severity: Minor
      Found in lib/Layout/TableRowBox.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status