YetiForceCompany/YetiForcePDF

View on GitHub
lib/Layout/Box.php

Summary

Maintainability
F
6 days
Test Coverage

File Box.php has 679 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

declare(strict_types=1);
/**
 * Box class.
Severity: Major
Found in lib/Layout/Box.php - About 1 day to fix

    Box has 62 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Box extends \YetiForcePDF\Base
    {
        /**
         * Id of this box (should be cloned to track inline wrapped elements).
         *
    Severity: Major
    Found in lib/Layout/Box.php - About 1 day to fix

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

          protected function addBorderInstructions(array $element, string $pdfX, string $pdfY, string $width, string $height)
          {
              if ('none' === $this->getStyle()->getRules('display')) {
                  return $element;
              }
      Severity: Major
      Found in lib/Layout/Box.php - About 3 hrs to fix

        The class Box has 16 public methods. Consider refactoring Box to keep number of public methods under 10.
        Open

        class Box extends \YetiForcePDF\Base
        {
            /**
             * Id of this box (should be cloned to track inline wrapped elements).
             *
        Severity: Minor
        Found in lib/Layout/Box.php by phpmd

        TooManyPublicMethods

        Since: 0.1

        A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

        By default it ignores methods starting with 'get' or 'set'.

        Example

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

        The class Box has an overall complexity of 157 which is very high. The configured complexity threshold is 50.
        Open

        class Box extends \YetiForcePDF\Base
        {
            /**
             * Id of this box (should be cloned to track inline wrapped elements).
             *
        Severity: Minor
        Found in lib/Layout/Box.php by phpmd

        Function alignText has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
        Open

            public function alignText()
            {
                if ($this instanceof LineBox) {
                    $textAlign = $this->getParent()->getStyle()->getRules('text-align');
                    if ('right' === $textAlign) {
        Severity: Minor
        Found in lib/Layout/Box.php - About 1 hr 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

        The class Box has 19 fields. Consider redesigning Box to keep the number of fields under 15.
        Open

        class Box extends \YetiForcePDF\Base
        {
            /**
             * Id of this box (should be cloned to track inline wrapped elements).
             *
        Severity: Minor
        Found in lib/Layout/Box.php by phpmd

        TooManyFields

        Since: 0.1

        Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.

        Example

        class Person {
           protected $one;
           private $two;
           private $three;
           [... many more fields ...]
        }

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

        Function getChildren has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
        Open

            public function getChildren(bool $onlyRenderable = false, bool $onlyForMeasurment = false): array
            {
                if (!$onlyRenderable && !$onlyForMeasurment) {
                    return $this->children;
                }
        Severity: Minor
        Found in lib/Layout/Box.php - About 1 hr 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

        Function removeChild has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
        Open

            public function removeChild(self $child)
            {
                $oldChildren = $this->children; // copy children
                $this->children = [];
                foreach ($oldChildren as $currentChild) {
        Severity: Minor
        Found in lib/Layout/Box.php - About 1 hr 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

        The class Box has 58 public methods and attributes. Consider reducing the number of public items to less than 45.
        Open

        class Box extends \YetiForcePDF\Base
        {
            /**
             * Id of this box (should be cloned to track inline wrapped elements).
             *
        Severity: Minor
        Found in lib/Layout/Box.php by phpmd

        ExcessivePublicCount

        Since: 0.1

        A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.

        Example

        public class Foo {
            public $value;
            public $something;
            public $var;
            // [... more more public attributes ...]
        
            public function doWork() {}
            public function doMoreWork() {}
            public function doWorkAgain() {}
            // [... more more public methods ...]
        }

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

        Function getBoxesByType has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
        Open

            public function getBoxesByType(string $shortClassName, string $until = '')
            {
                $boxes = [];
                $untilWas = 0;
                $allChildren = [];
        Severity: Minor
        Found in lib/Layout/Box.php - About 55 mins 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

        Function setRenderable has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            public function setRenderable(bool $renderable = true, bool $forceUpdate = false)
            {
                $changed = $this->renderable !== $renderable;
                if (!$this->renderable && $renderable) {
                    $this->restoreRenderableState();
        Severity: Minor
        Found in lib/Layout/Box.php - About 45 mins 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 addBorderInstructions has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            protected function addBorderInstructions(array $element, string $pdfX, string $pdfY, string $width, string $height)
        Severity: Minor
        Found in lib/Layout/Box.php - About 35 mins to fix

          Function applyStyleHeight has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

              public function applyStyleHeight()
              {
                  $height = $this->getStyle()->getRules('height');
                  if ('auto' === $height) {
                      return $this;
          Severity: Minor
          Found in lib/Layout/Box.php - About 35 mins 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

          Function iterateChildren has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

              public function iterateChildren(callable $fn, bool $reverse = false, bool $deep = true)
              {
                  $allChildren = [];
                  if ($deep) {
                      $this->getAllChildren($allChildren);
          Severity: Minor
          Found in lib/Layout/Box.php - About 35 mins 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

          Function containContent has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

              public function containContent()
              {
                  if ($this instanceof TextBox && '' === trim($this->getTextContent())) {
                      return false;
                  }
          Severity: Minor
          Found in lib/Layout/Box.php - About 25 mins 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

          Function addBorderInstructions has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

              protected function addBorderInstructions(array $element, string $pdfX, string $pdfY, string $width, string $height)
              {
                  if ('none' === $this->getStyle()->getRules('display')) {
                      return $element;
                  }
          Severity: Minor
          Found in lib/Layout/Box.php - About 25 mins 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

          The method addBorderInstructions() has an NPath complexity of 512. The configured NPath complexity threshold is 200.
          Open

              protected function addBorderInstructions(array $element, string $pdfX, string $pdfY, string $width, string $height)
              {
                  if ('none' === $this->getStyle()->getRules('display')) {
                      return $element;
                  }
          Severity: Minor
          Found in lib/Layout/Box.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 class Box has 1198 lines of code. Current threshold is 1000. Avoid really long classes.
          Open

          class Box extends \YetiForcePDF\Base
          {
              /**
               * Id of this box (should be cloned to track inline wrapped elements).
               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

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

              public function getChildren(bool $onlyRenderable = false, bool $onlyForMeasurment = false): array
              {
                  if (!$onlyRenderable && !$onlyForMeasurment) {
                      return $this->children;
                  }
          Severity: Minor
          Found in lib/Layout/Box.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

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

              protected function addBorderInstructions(array $element, string $pdfX, string $pdfY, string $width, string $height)
              {
                  if ('none' === $this->getStyle()->getRules('display')) {
                      return $element;
                  }
          Severity: Minor
          Found in lib/Layout/Box.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 "Box" has 62 methods, which is greater than 20 authorized. Split it into smaller classes.
          Open

          class Box extends \YetiForcePDF\Base
          Severity: Major
          Found in lib/Layout/Box.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.

          Reduce the number of returns of this function 4, down to the maximum allowed 3.
          Open

              public function getClosestByType(string $className)
          Severity: Major
          Found in lib/Layout/Box.php by sonar-php

          Having too many return statements in a function increases the function's essential complexity because the flow of execution is broken each time a return statement is encountered. This makes it harder to read and understand the logic of the function.

          Noncompliant Code Example

          With the default threshold of 3:

          function myFunction(){ // Noncompliant as there are 4 return statements
            if (condition1) {
              return true;
            } else {
              if (condition2) {
                return false;
              } else {
                return true;
              }
            }
            return false;
          }
          

          Reduce the number of returns of this function 4, down to the maximum allowed 3.
          Open

              public function containContent()
          Severity: Major
          Found in lib/Layout/Box.php by sonar-php

          Having too many return statements in a function increases the function's essential complexity because the flow of execution is broken each time a return statement is encountered. This makes it harder to read and understand the logic of the function.

          Noncompliant Code Example

          With the default threshold of 3:

          function myFunction(){ // Noncompliant as there are 4 return statements
            if (condition1) {
              return true;
            } else {
              if (condition2) {
                return false;
              } else {
                return true;
              }
            }
            return false;
          }
          

          Reduce the number of returns of this function 4, down to the maximum allowed 3.
          Open

              public function applyStyleHeight()
          Severity: Major
          Found in lib/Layout/Box.php by sonar-php

          Having too many return statements in a function increases the function's essential complexity because the flow of execution is broken each time a return statement is encountered. This makes it harder to read and understand the logic of the function.

          Noncompliant Code Example

          With the default threshold of 3:

          function myFunction(){ // Noncompliant as there are 4 return statements
            if (condition1) {
              return true;
            } else {
              if (condition2) {
                return false;
              } else {
                return true;
              }
            }
            return false;
          }
          

          The method setRenderable has a boolean flag argument $forceUpdate, which is a certain sign of a Single Responsibility Principle violation.
          Open

              public function setRenderable(bool $renderable = true, bool $forceUpdate = false)
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          BooleanArgumentFlag

          Since: 1.4.0

          A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

          Example

          class Foo {
              public function bar($flag = true) {
              }
          }

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

          The method getChildren has a boolean flag argument $onlyForMeasurment, which is a certain sign of a Single Responsibility Principle violation.
          Open

              public function getChildren(bool $onlyRenderable = false, bool $onlyForMeasurment = false): array
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          BooleanArgumentFlag

          Since: 1.4.0

          A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

          Example

          class Foo {
              public function bar($flag = true) {
              }
          }

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

          The method getAllChildren has a boolean flag argument $withCurrent, which is a certain sign of a Single Responsibility Principle violation.
          Open

              public function getAllChildren(&$allChildren = [], bool $withCurrent = true)
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          BooleanArgumentFlag

          Since: 1.4.0

          A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

          Example

          class Foo {
              public function bar($flag = true) {
              }
          }

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

          The method setStyle has a boolean flag argument $init, which is a certain sign of a Single Responsibility Principle violation.
          Open

              public function setStyle(Style $style, bool $init = true)
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          BooleanArgumentFlag

          Since: 1.4.0

          A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

          Example

          class Foo {
              public function bar($flag = true) {
              }
          }

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

          The method setRenderable has a boolean flag argument $renderable, which is a certain sign of a Single Responsibility Principle violation.
          Open

              public function setRenderable(bool $renderable = true, bool $forceUpdate = false)
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          BooleanArgumentFlag

          Since: 1.4.0

          A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

          Example

          class Foo {
              public function bar($flag = true) {
              }
          }

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

          The method iterateChildren has a boolean flag argument $reverse, which is a certain sign of a Single Responsibility Principle violation.
          Open

              public function iterateChildren(callable $fn, bool $reverse = false, bool $deep = true)
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          BooleanArgumentFlag

          Since: 1.4.0

          A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

          Example

          class Foo {
              public function bar($flag = true) {
              }
          }

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

          The method iterateChildren has a boolean flag argument $deep, which is a certain sign of a Single Responsibility Principle violation.
          Open

              public function iterateChildren(callable $fn, bool $reverse = false, bool $deep = true)
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          BooleanArgumentFlag

          Since: 1.4.0

          A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

          Example

          class Foo {
              public function bar($flag = true) {
              }
          }

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

          The method getChildren has a boolean flag argument $onlyRenderable, which is a certain sign of a Single Responsibility Principle violation.
          Open

              public function getChildren(bool $onlyRenderable = false, bool $onlyForMeasurment = false): array
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          BooleanArgumentFlag

          Since: 1.4.0

          A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

          Example

          class Foo {
              public function bar($flag = true) {
              }
          }

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

          Missing class import via use statement (line '737', column '34').
          Open

                      $reflectShortClassName = (new \ReflectionClass($child))->getShortName();
          Severity: Minor
          Found in lib/Layout/Box.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 'alignText'.
          Open

                              $childBox->getOffset()->setLeft(Math::add($childBox->getOffset()->getLeft(), $offset));
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'alignText'.
          Open

                          $offset = Math::sub(Math::div($this->getDimensions()->computeAvailableSpace(), '2'), Math::div($this->getChildrenWidth(), '2'));
          Severity: Minor
          Found in lib/Layout/Box.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 alignText uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

                  } else {
                      foreach ($this->getChildren() as $child) {
                          $child->alignText();
                      }
                  }
          Severity: Minor
          Found in lib/Layout/Box.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 '\YetiForcePDF\Math' in method 'addBorderInstructions'.
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 removeChild uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

                      } else {
                          $child->getPrevious()->setNext();
                      }
          Severity: Minor
          Found in lib/Layout/Box.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 removeChild uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

                      } else {
                          $child->getNext()->setPrevious();
                      }
          Severity: Minor
          Found in lib/Layout/Box.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 '\YetiForcePDF\Math' in method 'alignText'.
          Open

                          $offset = Math::sub($this->getDimensions()->computeAvailableSpace(), $this->getChildrenWidth());
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'applyStyleHeight'.
          Open

                              $calculatedHeight = Math::mul(Math::div($parentHeight, '100'), $heightInPercent);
          Severity: Minor
          Found in lib/Layout/Box.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 'alignText'.
          Open

                          $offset = Math::sub(Math::div($this->getDimensions()->computeAvailableSpace(), '2'), Math::div($this->getChildrenWidth(), '2'));
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'alignText'.
          Open

                              $childBox->getOffset()->setLeft(Math::add($childBox->getOffset()->getLeft(), $offset));
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 appendChild uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

                  } else {
                      $box->setPrevious()->setNext();
                  }
          Severity: Minor
          Found in lib/Layout/Box.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 '\YetiForcePDF\Math' in method 'addBorderInstructions'.
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 assigning values to variables in if clauses and the like (line '806', column '7').
          Open

              public function getLastChild()
              {
                  if ($count = \count($this->children)) {
                      return $this->children[$count - 1];
                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          IfStatementAssignment

          Since: 2.7.0

          Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

          Example

          class Foo
          {
              public function bar($flag)
              {
                  if ($foo = 'bar') { // possible typo
                      // ...
                  }
                  if ($baz = 0) { // always false
                      // ...
                  }
              }
          }

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

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

                              $calculatedHeight = Math::mul(Math::div($parentHeight, '100'), $heightInPercent);
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 'addBorderInstructions'.
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.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 assigning values to variables in if clauses and the like (line '337', column '7').
          Open

              public function setStyle(Style $style, bool $init = true)
              {
                  $this->style = $style;
                  if ($element = $style->getElement()) {
                      $element->setBox($this);
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          IfStatementAssignment

          Since: 2.7.0

          Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

          Example

          class Foo
          {
              public function bar($flag)
              {
                  if ($foo = 'bar') { // possible typo
                      // ...
                  }
                  if ($baz = 0) { // always false
                      // ...
                  }
              }
          }

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

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

                      } else {
                          $this->appendChild($currentChild);
                      }
          Severity: Minor
          Found in lib/Layout/Box.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 iterateChildren uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

                  } else {
                      $allChildren = $this->getChildren();
                  }
          Severity: Minor
          Found in lib/Layout/Box.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 '\YetiForcePDF\Math' in method 'alignText'.
          Open

                          $offset = Math::sub(Math::div($this->getDimensions()->computeAvailableSpace(), '2'), Math::div($this->getChildrenWidth(), '2'));
          Severity: Minor
          Found in lib/Layout/Box.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

          Rename "$offset" which has the same name as the field declared at line 59.
          Open

                          $offset = Math::sub($this->getDimensions()->computeAvailableSpace(), $this->getChildrenWidth());
          Severity: Major
          Found in lib/Layout/Box.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 "border-top-color" 4 times.
          Open

                  if ($style->getRules('border-top-width') && 'none' !== $style->getRules('border-top-style') && 'transparent' !== $style->getRules('border-top-color')) {
          Severity: Critical
          Found in lib/Layout/Box.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 "width" 3 times.
          Open

                  $this->renderableState['width'] = $this->getDimensions()->getRawWidth();
          Severity: Critical
          Found in lib/Layout/Box.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 "$parent" which has the same name as the field declared at line 37.
          Open

                  $parent = $this->getParent();
          Severity: Major
          Found in lib/Layout/Box.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

          Rename "$style" which has the same name as the field declared at line 67.
          Open

                  $style = $this->style;
          Severity: Major
          Found in lib/Layout/Box.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

          Rename "$children" which has the same name as the field declared at line 41.
          Open

                  $children = [];
          Severity: Major
          Found in lib/Layout/Box.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

          Rename "$children" which has the same name as the field declared at line 41.
          Open

                  $children = $this->getChildren();
          Severity: Major
          Found in lib/Layout/Box.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 "border-top-width" 6 times.
          Open

                      'border-top-width' => '0',
          Severity: Critical
          Found in lib/Layout/Box.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 "border-bottom-color" 4 times.
          Open

                  if ($style->getRules('border-bottom-width') && 'none' !== $style->getRules('border-bottom-style') && 'transparent' !== $style->getRules('border-bottom-color')) {
          Severity: Critical
          Found in lib/Layout/Box.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 "transparent" 4 times.
          Open

                  if ($style->getRules('border-top-width') && 'none' !== $style->getRules('border-top-style') && 'transparent' !== $style->getRules('border-top-color')) {
          Severity: Critical
          Found in lib/Layout/Box.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 "border-left-width" 6 times.
          Open

                      'border-left-width' => '0',
          Severity: Critical
          Found in lib/Layout/Box.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 "border-right-width" 6 times.
          Open

                      'border-right-width' => '0',
          Severity: Critical
          Found in lib/Layout/Box.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 "$parent" which has the same name as the field declared at line 37.
          Open

                  $parent = $this->getParent();
          Severity: Major
          Found in lib/Layout/Box.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 "height" 4 times.
          Open

                  $this->renderableState['height'] = $this->getDimensions()->getRawHeight();
          Severity: Critical
          Found in lib/Layout/Box.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 "border-bottom-width" 6 times.
          Open

                      'border-bottom-width' => '0',
          Severity: Critical
          Found in lib/Layout/Box.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 "border-left-color" 4 times.
          Open

                  if ($style->getRules('border-left-width') && 'none' !== $style->getRules('border-left-style') && 'transparent' !== $style->getRules('border-left-color')) {
          Severity: Critical
          Found in lib/Layout/Box.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 "$previous" which has the same name as the field declared at line 49.
          Open

                      $previous = $this->children[$childrenCount - 1];
          Severity: Major
          Found in lib/Layout/Box.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 "border-right-color" 4 times.
          Open

                  if ($style->getRules('border-right-width') && 'none' !== $style->getRules('border-right-style') && 'transparent' !== $style->getRules('border-right-color')) {
          Severity: Critical
          Found in lib/Layout/Box.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 '$pageGroup'.
          Open

              public function setPageGroup(bool $pageGroup)
          Severity: Minor
          Found in lib/Layout/Box.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

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                  if ($style->getRules('border-bottom-width') && 'none' !== $style->getRules('border-bottom-style') && 'transparent' !== $style->getRules('border-bottom-color')) {
                      $path = implode(" l\n", [
                          implode(' ', [$x2, $y2]),
                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Major
          Found in lib/Layout/Box.php and 1 other location - About 1 day to fix
          lib/Layout/Box.php on lines 1113..1131

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 302.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                  if ($style->getRules('border-right-width') && 'none' !== $style->getRules('border-right-style') && 'transparent' !== $style->getRules('border-right-color')) {
                      $path = implode(" l\n", [
                          implode(' ', [$x2, $y2]),
                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Major
          Found in lib/Layout/Box.php and 1 other location - About 1 day to fix
          lib/Layout/Box.php on lines 1132..1150

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 302.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Avoid excessively long variable names like $reflectShortClassName. Keep variable name length under 20.
          Open

                      $reflectShortClassName = (new \ReflectionClass($child))->getShortName();
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          LongVariable

          Since: 0.2

          Detects when a field, formal or local variable is declared with a long name.

          Example

          class Something {
              protected $reallyLongIntName = -3; // VIOLATION - Field
              public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                  $otherReallyLongName = -5; // VIOLATION - Local
                  for ($interestingIntIndex = 0; // VIOLATION - For
                       $interestingIntIndex < 10;
                       $interestingIntIndex++ ) {
                  }
              }
          }

          Source https://phpmd.org/rules/naming.html#longvariable

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

                  $x2 = $width;
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          ShortVariable

          Since: 0.2

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

          Example

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

          Source https://phpmd.org/rules/naming.html#shortvariable

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

              protected $id;
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          ShortVariable

          Since: 0.2

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

          Example

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

          Source https://phpmd.org/rules/naming.html#shortvariable

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

                  $y1 = $height;
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          ShortVariable

          Since: 0.2

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

          Example

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

          Source https://phpmd.org/rules/naming.html#shortvariable

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

              public function iterateChildren(callable $fn, bool $reverse = false, bool $deep = true)
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          ShortVariable

          Since: 0.2

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

          Example

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

          Source https://phpmd.org/rules/naming.html#shortvariable

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

                  $y2 = '0';
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          ShortVariable

          Since: 0.2

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

          Example

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

          Source https://phpmd.org/rules/naming.html#shortvariable

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

                  $x1 = '0';
          Severity: Minor
          Found in lib/Layout/Box.php by phpmd

          ShortVariable

          Since: 0.2

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

          Example

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

          Source https://phpmd.org/rules/naming.html#shortvariable

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

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

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

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

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

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

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

               * @var string
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $dimensions;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * @param \YetiForcePDF\Layout\Box|null $parent
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              public function setParent(self $parent = null)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * @var bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

              protected $next;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @var bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

              public function setPrevious(self $previous = null)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

              protected $anonymous = false;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $renderable = true;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

              protected $id;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

               * @var bool do we need to measure this box ?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * @var array save state before it was unrenderable
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * Set parent.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * @param \YetiForcePDF\Layout\Box|null $previous
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * Set root - is this root element?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * @var Box[]
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $children = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * Get parent.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

              protected $parent;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

              /** @var box dimensions */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $offset;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @var Style
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * @var bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  $this->coordinates = (new Coordinates())
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  $this->offset = (new Offset())
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * Get box id (id might be cloned and then we can track cloned elements).
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @return string
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              public function setNext(self $next = null)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @return \YetiForcePDF\Layout\Box
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

              protected $forMeasurement = true;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Is this box absolute positioned?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $absolute = false;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @var bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * {@inheritdoc}
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * Get next.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * @param bool $isRoot
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

                      $child->displayable = $displayable;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * Id of this box (should be cloned to track inline wrapped elements).
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @var Offset
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

              protected $renderableState = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  $this->id = uniqid();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @return \DOMElement
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * @param \YetiForcePDF\Layout\Box|null $next
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * Set previous.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Set absolute - this box will be absolute positioned.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $root = false;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $style;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

               * Set next.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

               * @return \YetiForcePDF\Layout\Box
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

              public function setAbsolute(bool $absolute)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * Is this element displayable.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  foreach ($allChildren as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

               * @var Coordinates
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @var bool is this element show up in view? take space?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * @var bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

              protected $pageGroup = false;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $options = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

                  $this->root = $isRoot;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * Set cut.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              public function setDisplayable(bool $displayable)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * @return Style
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * @param bool $anonymous
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

              protected $cut = false;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $displayable = true;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

               * Is this root element?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * Is this box absolute positioned?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

                  $this->getAllChildren($allChildren);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

               * Anonymous inline element is created to wrap TextBox.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @var bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Is this new group of pages?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @var array
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * Get current box dom tree structure.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

               * @param bool $displayable
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  if ($element = $style->getElement()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  $this->dimensions = (new BoxDimensions())
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              public function setStyle(Style $style, bool $init = true)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

              protected $previous;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              protected $coordinates;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  parent::init();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

               * @return \YetiForcePDF\Layout\Box
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

               * Get style.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Set style.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

              protected function saveRenderableState()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

                  $childrenContent = false;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * Box was cut to next page.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * Is this box anonymous.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

                  $this->renderableState['styleRules'] = $this->getStyle()->getRules();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                      $box->setPrevious($previous);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * @param bool $absolute
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

              protected function restoreRenderableState()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  if (isset($this->renderableState['width'])) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                      'margin-top' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      'border-bottom-width' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  $changed = $this->renderable !== $renderable;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                          $child->setRenderable($renderable, $forceUpdate);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  foreach ($children as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  $oldChildren = $this->children; // copy children
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              public function isRoot(): bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              public function setRoot(bool $isRoot)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              protected function hide()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

                      'border-left-width' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

                  $this->getDimensions()->setWidth('0');
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

              public function setRenderable(bool $renderable = true, bool $forceUpdate = false)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Set anonymous field.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                      $child->forMeasurement = $forMeasurement;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

                  $this->renderableState['height'] = $this->getDimensions()->getRawHeight();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      return false; // we are the content
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  $this->getStyle()->setRules($this->renderableState['styleRules']);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                      'padding-right' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                      'padding-bottom' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                      'margin-bottom' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      'border-right-width' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  if (0 === \count($children) && $this instanceof LineBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  if ($changed || $forceUpdate) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  return $childrenContent;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * Contain content - do we have some elements that are not whitespace characters?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  $children = $this->getChildren();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Append child box - line box can have only inline/block boxes - not line boxes!
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

              public function appendChild(self $box)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      $this->getDimensions()->setHeight($this->renderableState['height']);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  if (!$this->renderable && $renderable) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * @param bool $forMeasure
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * Save renderable state.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

               * Hide this element - set width / height to 0 and remove all styles that will change width / height.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * @param bool $renderable
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @param bool $forceUpdate
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  if ($this->renderable && !$renderable) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      $this->hide();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * @param Box $box
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Get previous.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

               * @param bool                      $init
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      $element->setBox($this);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  $style->setBox($this);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

              public function setAnonymous(bool $anonymous)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * Set for measurement - enable or disable this box measurement.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

                      'margin-right' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      'border-top-width' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      $this->restoreRenderableState();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  if (0 === \count($children) && !$this instanceof LineBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      $childrenContent = $childrenContent || $child->containContent();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      $box->setPrevious()->setNext();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

               * @param bool $forMeasurement
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

                  $this->getStyle()->setRules([
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                      'padding-left' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Set renderable.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

              public function removeChild(self $child)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              public function setCut(int $cut)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

               * Set displayable.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                  $this->renderableState['width'] = $this->getDimensions()->getRawWidth();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

                  // we are not text node - traverse further
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                          $child->getPrevious()->setNext();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  $this->getAllChildren($allChildren);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Is this box available for measurement? or it should now have any width?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                  $this->children[] = $box;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

               * Remove child.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                          $child->getNext()->setPrevious();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

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

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

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

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

                      $child->getAllChildren($allChildren);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

              public function setForMeasurement(bool $forMeasurement)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                      'margin-left' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  ]);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

                  $this->getDimensions()->setHeight('0');
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                      return false;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  foreach ($oldChildren as $currentChild) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  $currentChildren = $this->children; // copy children
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                      if (!$box->isForMeasurement()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                  foreach ($allChildren as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

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

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

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

                      $this->getDimensions()->setWidth($this->renderableState['width']);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (isset($this->renderableState['height'])) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      'padding-top' => '0',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->saveRenderableState();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($this instanceof TextBox && '' === trim($this->getTextContent())) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return true; // we are the content
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Is this element renderable?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $childrenCount = \count($this->children);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Insert box before other box.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          continue;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return Box[]
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param callable $fn
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function iterateChildren(callable $fn, bool $reverse = false, bool $deep = true)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->forMeasurement;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Restore renderable state.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      foreach ($this->getChildren() as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function removeChildren()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param bool     $deep
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  } else {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($child->getNext()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($child->getPrevious()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          continue;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($onlyRenderable && !$box->isRenderable()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $child->getNext()->setPrevious($child->getPrevious());
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $child;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Remove all children.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->removeChild($child);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $this->appendChild($currentChild);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return Box[]
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($child->getPrevious()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      } else {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->children = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->children = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          continue;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $this->appendChild($currentChild);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param bool  $withCurrent
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $allChildren;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      } else {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($currentChild === $before) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $allChildren[] = $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $box->setParent($this);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Just clear children without changing associations for them.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($onlyRenderable && $onlyForMeasurment && !($box->isRenderable() && $box->isForMeasurement())) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->getChildren() as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return Box
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($child->getNext()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function clearChildren()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getChildren(bool $onlyRenderable = false, bool $onlyForMeasurment = false): array
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getAllChildren(&$allChildren = [], bool $withCurrent = true)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param bool     $reverse
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          break;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->children = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $boxes = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($reflectShortClassName === $until) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($currentChild !== $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param \YetiForcePDF\Layout\Box $child
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get first child.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this->children[0];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function insertBefore(self $child, self $before)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($parent instanceof LineBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->dimensions;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return Coordinates
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->coordinates;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->children as $box) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Iterate all children.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $untilWas = 0;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $className
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get last child.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return \YetiForcePDF\Layout\Box|null
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $parent = $this->getParent();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get dimensions.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  } else {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $allChildren = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          ++$untilWas;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ('YetiForce' !== substr($className, 0, 9)) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this->getParent();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get coordinates.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->offset;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param bool $onlyForMeasurment
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (!$onlyRenderable && !$onlyForMeasurment) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $children[] = $box;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $allChildren = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->getAllChildren($allChildren);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $className = 'YetiForcePDF\\Layout\\' . $className;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($count = \count($this->children)) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getDimensions()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $previous = $this->children[$childrenCount - 1];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $previous->setNext($box);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param $child
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $this->appendChild($child);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      } else {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get all children.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $child->getPrevious()->setNext($child->getNext());
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return array
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $child->setParent()->setPrevious()->setNext();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->getChildren() as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $boxes;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $child->removeChildren();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get children.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function hasChildren()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          break;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string|null $until
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getBoxesByType(string $shortClassName, string $until = '')
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get closet box that is not a LineBox.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return Offset
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($childrenCount > 0) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param \YetiForcePDF\Layout\Box $before
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $this->appendChild($currentChild);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param bool $onlyRenderable
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $children;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getClosestByType(string $className)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return null;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return \YetiForcePDF\Layout\Box|null
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Shorthand for offset.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($currentChildren as $currentChild) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $children = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param Box[] $allChildren
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($this->getParent() instanceof $className) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getOffset(): Offset
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($reverse) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->getParent()->getClosestByType($className);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $parent;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return \YetiForcePDF\Layout\Box
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->getAllChildren($allChildren);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get closest parent box by type.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($this->getParent()->isRoot()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (null !== $this->getParent()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->getAllChildren($allChildren);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param bool $pageGroup
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->pageGroup = true;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function setOption(string $name, string $value)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get height from style.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ('auto' === $height) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $allChildren = [];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return int
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $height = $this->getStyle()->getRules('height');
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $percentPos = strpos($height, '%');
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                              return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getFirstRootChild()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($allChildren as $box) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get first child text box.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($this instanceof TextBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($child instanceof TextBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return '';
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $styleWidth = $this->getDimensions()->getStyleWidth();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $allChildren = $this->getChildren();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($this instanceof $className) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get closest line box.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return \YetiForcePDF\Layout\LineBox
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $name
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get option.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getOption(string $name)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          if ($parentHeight) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $allChildren = array_reverse($allChildren);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($allChildren as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($allChildren as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $boxes[] = $child;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getFirstChild()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $parent->getClosestLineBox();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $textContent;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->getChildren() as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $heightInPercent = substr($height, 0, $percentPos);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string      $shortClassName
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($reflectShortClassName === $shortClassName) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return Box
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getFirstTextBox()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getPageGroup()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getLastChild()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return BoxDimensions
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          return $child;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function shouldBreakPage()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Set marker that this is a new group of pages and should have new numbering.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Set option (page group for example).
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function applyStyleWidth()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (null !== $styleWidth) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->getDimensions()->setWidth($styleWidth);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get first root child - closest parent that are child of root node.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $name
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get height from style.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if (null !== $parentDimensions->getHeight()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function setPageGroup(bool $pageGroup)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (false !== $percentPos) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $parentHeight = $this->getParent()->getDimensions()->getInnerHeight();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $textContent .= $box->getText();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return bool
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if (false === $fn($child)) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $value
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return Box
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (isset($this->options[$name])) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function applyStyleHeight()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return isset($this->children[0]); // faster than count
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                              $this->getDimensions()->setHeight($calculatedHeight);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this->children[$count - 1];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getClosestBox()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $parent = $this->getParent();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $parent;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $parent->getClosestBox();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $textContent = '';
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return string
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $child->getFirstTextBox();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getTextContent()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return \YetiForcePDF\Layout\TextBox|null
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Should we break page after this element?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get force page number.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $box = $this->getParent();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $parentDimensions = $this->getParent()->getDimensions();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->getDimensions()->setHeight($height);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get boxes by type.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $reflectShortClassName = (new \ReflectionClass($child))->getShortName();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($reflectShortClassName === $until && 2 === $untilWas) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Do we have children?
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (isset($this->children[0])) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getClosestLineBox()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (!$parent instanceof LineBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getCoordinates()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($box->isRoot()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $box->getFirstRootChild();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get text content from current and all nested boxes.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return string
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($box instanceof TextBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->pageGroup;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                              $calculatedHeight = Math::mul(Math::div($parentHeight, '100'), $heightInPercent);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($this->isRoot()) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return false; // only block boxes should break the page
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->options[$name] = $value;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this->options[$name];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Fix offsets inside lines where text-align !== 'left'.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  } else {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $style = $this->style;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $graphicState = $this->style->getGraphicState();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "1 0 0 1 $pdfX $pdfY cm",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'f',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $path . ' l h',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $element = array_merge($element, $borderTop);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'Q',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "1 0 0 1 $pdfX $pdfY cm",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "$x1 $y1 m",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $width
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $height
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($style->getRules('border-top-width') && 'none' !== $style->getRules('border-top-style') && 'transparent' !== $style->getRules('border-top-color')) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 160 characters
          Open

                  if ($style->getRules('border-top-width') && 'none' !== $style->getRules('border-top-style') && 'transparent' !== $style->getRules('border-top-color')) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $borderTop = [
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "$x1 $y1 m", // move to start point
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $element = array_merge($element, $borderTop);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $borderTop = [
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $element = array_merge($element, $borderTop);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $element;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $x1 = '0';
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $x2 = $width;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $y1 = $height;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'q',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 140 characters
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $borderTop = [
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ('right' === $textAlign) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $pdfY
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $graphicStateStr,
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 143 characters
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [$x1, $y1]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                              $childBox->getOffset()->setLeft(Math::add($childBox->getOffset()->getLeft(), $offset));
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "$x2 $y1 m",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "{$style->getRules('border-left-color')[0]} {$style->getRules('border-left-color')[1]} {$style->getRules('border-left-color')[2]} rg",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      } elseif ('center' === $textAlign) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "{$style->getRules('border-top-color')[0]} {$style->getRules('border-top-color')[1]} {$style->getRules('border-top-color')[2]} rg",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $textAlign = $this->getParent()->getStyle()->getRules('text-align');
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                              $childBox->getOffset()->setLeft(Math::add($childBox->getOffset()->getLeft(), $offset));
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $offset = Math::sub(Math::div($this->getDimensions()->computeAvailableSpace(), '2'), Math::div($this->getChildrenWidth(), '2'));
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $pdfX
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $element;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $element[] = '% start border';
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'Q',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 169 characters
          Open

                  if ($style->getRules('border-bottom-width') && 'none' !== $style->getRules('border-bottom-style') && 'transparent' !== $style->getRules('border-bottom-color')) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $path . ' l h',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ]);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $element[] = '% end border';
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @throws \InvalidArgumentException
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 140 characters
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($style->getRules('border-bottom-width') && 'none' !== $style->getRules('border-bottom-style') && 'transparent' !== $style->getRules('border-bottom-color')) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [$x2, $y2]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 144 characters
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "1 0 0 1 $pdfX $pdfY cm",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $offset = Math::sub($this->getDimensions()->computeAvailableSpace(), $this->getChildrenWidth());
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          foreach ($this->getChildren() as $childBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [$x2, $y2]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "1 0 0 1 $pdfX $pdfY cm",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 153 characters
          Open

                          "{$style->getRules('border-right-color')[0]} {$style->getRules('border-right-color')[1]} {$style->getRules('border-right-color')[2]} rg",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $path = implode(" l\n", [
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ]);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "{$style->getRules('border-bottom-color')[0]} {$style->getRules('border-bottom-color')[1]} {$style->getRules('border-bottom-color')[2]} rg",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "$x1 $y2 m",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ]);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 147 characters
          Open

                          "{$style->getRules('border-top-color')[0]} {$style->getRules('border-top-color')[1]} {$style->getRules('border-top-color')[2]} rg",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'f',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          foreach ($this->getChildren() as $childBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 144 characters
          Open

                          $offset = Math::sub(Math::div($this->getDimensions()->computeAvailableSpace(), '2'), Math::div($this->getChildrenWidth(), '2'));
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              protected function addBorderInstructions(array $element, string $pdfX, string $pdfY, string $width, string $height)
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 141 characters
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($style->getRules('border-right-width') && 'none' !== $style->getRules('border-right-style') && 'transparent' !== $style->getRules('border-right-color')) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [$x2, $y1]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 156 characters
          Open

                          "{$style->getRules('border-bottom-color')[0]} {$style->getRules('border-bottom-color')[1]} {$style->getRules('border-bottom-color')[2]} rg",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 163 characters
          Open

                  if ($style->getRules('border-left-width') && 'none' !== $style->getRules('border-left-style') && 'transparent' !== $style->getRules('border-left-color')) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'Q',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $graphicStateStr,
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($style->getRules('border-left-width') && 'none' !== $style->getRules('border-left-style') && 'transparent' !== $style->getRules('border-left-color')) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $path = implode(" l\n", [
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'q',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $element = array_merge($element, $borderTop);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Clone this element along with the children elements.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 166 characters
          Open

                  if ($style->getRules('border-right-width') && 'none' !== $style->getRules('border-right-style') && 'transparent' !== $style->getRules('border-right-color')) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 141 characters
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'Q',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [$x1, $y2]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 143 characters
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 150 characters
          Open

                          "{$style->getRules('border-left-color')[0]} {$style->getRules('border-left-color')[1]} {$style->getRules('border-left-color')[2]} rg",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ];
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function alignText()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return array
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ('none' === $this->getStyle()->getRules('display')) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [$x2, $y1]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::sub($y1, $style->getRules('border-top-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [$x1, $y2]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $path . ' l h',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $child->alignText();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Add border instructions.
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param array  $element
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $graphicStateStr = '/' . $graphicState->getNumber() . ' gs';
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $y2 = '0';
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $path = implode(" l\n", [
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [$x1, $y1]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'q',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $path = implode(" l\n", [
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'q',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          "{$style->getRules('border-right-color')[0]} {$style->getRules('border-right-color')[1]} {$style->getRules('border-right-color')[2]} rg",
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $graphicStateStr,
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'f',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          implode(' ', [Math::add($x1, $style->getRules('border-left-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          'f',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($this instanceof LineBox) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      foreach ($this->getChildren() as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $path . ' l h',
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Line exceeds 120 characters; contains 144 characters
          Open

                          implode(' ', [Math::sub($x2, $style->getRules('border-right-width')), Math::add($y2, $style->getRules('border-bottom-width'))]),
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ]);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $borderTop = [
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $graphicStateStr,
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function cloneWithChildren()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox->offset->setBox($newBox);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->dimensions->setBox($this);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->offset->setBox($this);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox->getCoordinates()->setBox($newBox);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox->getStyle()->setBox($newBox);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $newBox;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $newBox->appendChild($clonedChild->getParent()->removeChild($clonedChild));
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->style = $this->style->clone($this);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->getChildren() as $child) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox->getOffset()->setBox($newBox);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->coordinates->setBox($this);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox = clone $this;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->offset = clone $this->offset;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return Box
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox->clearChildren();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox->dimensions->setBox($newBox);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox->coordinates->setBox($newBox);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function clone()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox->style->setBox($newBox);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox = $this->clone();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function __clone()
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->element->setBox($this);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->element = clone $this->element;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->dimensions = clone $this->dimensions;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $newBox->getDimensions()->setBox($newBox);
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $newBox;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (isset($this->element)) {
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $clonedChild = $child->cloneWithChildren();
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->coordinates = clone $this->coordinates;
          Severity: Minor
          Found in lib/Layout/Box.php by phpcodesniffer

          There are no issues that match your filters.

          Category
          Status