YetiForceCompany/YetiForcePDF

View on GitHub
lib/Document.php

Summary

Maintainability
D
2 days
Test Coverage

File Document.php has 457 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

declare(strict_types=1);
/**
 * Document class.
Severity: Minor
Found in lib/Document.php - About 7 hrs to fix

    Document has 48 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Document
    {
        /**
         * Actual id auto incremented.
         *
    Severity: Minor
    Found in lib/Document.php - About 6 hrs to fix

      The class Document has 13 public methods. Consider refactoring Document to keep number of public methods under 10.
      Open

      class Document
      {
          /**
           * Actual id auto incremented.
           *
      Severity: Minor
      Found in lib/Document.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 Document has an overall complexity of 101 which is very high. The configured complexity threshold is 50.
      Open

      class Document
      {
          /**
           * Actual id auto incremented.
           *
      Severity: Minor
      Found in lib/Document.php by phpmd

      The class Document has 23 fields. Consider redesigning Document to keep the number of fields under 15.
      Open

      class Document
      {
          /**
           * Actual id auto incremented.
           *
      Severity: Minor
      Found in lib/Document.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 addPage has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
      Open

          public function addPage(string $format = '', string $orientation = '', Page $page = null, Page $after = null): Page
          {
              if (null === $page) {
                  $page = (new Page())->setDocument($this)->init();
              }
      Severity: Minor
      Found in lib/Document.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 addObject has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
      Open

          public function addObject(PdfObject $object, $after = null): self
          {
              $afterIndex = \count($this->objects);
              if ($after) {
                  foreach ($this->objects as $afterIndex => $obj) {
      Severity: Minor
      Found in lib/Document.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

      Method render has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function render(): string
          {
              $xref = '';
              $this->buffer = '';
      
      
      Severity: Minor
      Found in lib/Document.php - About 1 hr to fix

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

        class Document
        {
            /**
             * Actual id auto incremented.
             *
        Severity: Minor
        Found in lib/Document.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

        Method addPage has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function addPage(string $format = '', string $orientation = '', Page $page = null, Page $after = null): Page
            {
                if (null === $page) {
                    $page = (new Page())->setDocument($this)->init();
                }
        Severity: Minor
        Found in lib/Document.php - About 1 hr to fix

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

              public function getAllFontInstances()
              {
                  $instances = [];
                  foreach ($this->fontInstances as $weights) {
                      foreach ($weights as $styles) {
          Severity: Minor
          Found in lib/Document.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 getPages has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

              public function getPages(int $groupIndex = null)
              {
                  if ($groupIndex) {
                      $pages = [];
                      foreach ($this->pages as $page) {
          Severity: Minor
          Found in lib/Document.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

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

          class Document
          Severity: Major
          Found in lib/Document.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.

          The class Document has a coupling between objects value of 16. Consider to reduce the number of dependencies under 13.
          Open

          class Document
          {
              /**
               * Actual id auto incremented.
               *
          Severity: Minor
          Found in lib/Document.php by phpmd

          CouplingBetweenObjects

          Since: 1.1.0

          A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

          Example

          class Foo {
              /**
               * @var \foo\bar\X
               */
              private $x = null;
          
              /**
               * @var \foo\bar\Y
               */
              private $y = null;
          
              /**
               * @var \foo\bar\Z
               */
              private $z = null;
          
              public function setFoo(\Foo $foo) {}
              public function setBar(\Bar $bar) {}
              public function setBaz(\Baz $baz) {}
          
              /**
               * @return \SplObjectStorage
               * @throws \OutOfRangeException
               * @throws \InvalidArgumentException
               * @throws \ErrorException
               */
              public function process(\Iterator $it) {}
          
              // ...
          }

          Source https://phpmd.org/rules/design.html#couplingbetweenobjects

          Missing class import via use statement (line '926', column '19').
          Open

                  $trailer = (new \YetiForcePDF\Objects\Trailer())
          Severity: Minor
          Found in lib/Document.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

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

              public function filterText(string $text, string $encoding = 'UTF-16', bool $withParenthesis = true, bool $prependBom = false)
          Severity: Minor
          Found in lib/Document.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 filterText has a boolean flag argument $withParenthesis, which is a certain sign of a Single Responsibility Principle violation.
          Open

              public function filterText(string $text, string $encoding = 'UTF-16', bool $withParenthesis = true, bool $prependBom = false)
          Severity: Minor
          Found in lib/Document.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 '201', column '25').
          Open

                  $this->catalog = (new \YetiForcePDF\Catalog())->setDocument($this)->init();
          Severity: Minor
          Found in lib/Document.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

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

                  } else {
                      $this->pages[] = $page;
                  }
          Severity: Minor
          Found in lib/Document.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\Objects\Font' in method 'addFonts'.
          Open

                  \YetiForcePDF\Objects\Font::loadFromArray($fonts);
          Severity: Minor
          Found in lib/Document.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 addCssSelectorRules uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

                  } else {
                      $this->cssSelectors[$selector] = $rules;
                  }
          Severity: Minor
          Found in lib/Document.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

          Rename "$pages" which has the same name as the field declared at line 78.
          Open

                      $pages = [];
          Severity: Major
          Found in lib/Document.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 "right" 7 times.
          Open

                  'right' => 40,
          Severity: Critical
          Found in lib/Document.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 "bottom" 7 times.
          Open

                  'bottom' => 40,
          Severity: Critical
          Found in lib/Document.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 and throw a dedicated exception instead of using a generic one.
          Open

                      throw new Exception('Encoding can not be empty');
          Severity: Major
          Found in lib/Document.php by sonar-php

          If you throw a general exception type, such as ErrorException, RuntimeException, or Exception in a library or framework, it forces consumers to catch all exceptions, including unknown exceptions that they do not know how to handle.

          Instead, either throw a subtype that already exists in the Standard PHP Library, or create your own type that derives from Exception.

          Noncompliant Code Example

          throw new Exception();  // Noncompliant
          

          Compliant Solution

          throw new InvalidArgumentException();
          // or
          throw new UnexpectedValueException();
          

          See

          Rename "$objects" which has the same name as the field declared at line 97.
          Open

                  $objects = [];
          Severity: Major
          Found in lib/Document.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 "$objects" which has the same name as the field declared at line 97.
          Open

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

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

               * Actual id auto incremented.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Main output buffer / content for pdf file.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Pages dictionary.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @var string default page format
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Fonts data.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * @var HeaderBox|null
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              protected $currentPageObject;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              protected $defaultOrientation = \YetiForcePDF\Page::ORIENTATION_PORTRAIT;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @var \YetiForcePDF\Objects\PdfObject[]
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @var Parser
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Actual graphic state id.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Default page margins.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

              ];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

              protected $catalog;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @var string default page orientation
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              protected $pages = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  'top' => 40,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * @var Page
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @var Page[] all pages in the document
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              protected $objects = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              protected $actualFontId = 0;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

              protected $actualGraphicStateId = 0;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @var \YetiForcePDF\Catalog
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  'bottom' => 40,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * All objects inside document.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

               * Main entry point - root element.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              protected $pagesObject;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                  'right' => 40,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Actual font id.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @var FooterBox|null
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @var Pages
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

              protected $defaultFormat = 'A4';
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

              protected $footer;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              protected $actualId = 0;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Current page object.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              protected $fontInstances = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

              protected $defaultMargins = [
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

              protected $debugMode = false;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @var WatermarkBox|null
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

              protected $buffer = '';
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

                  'left' => 40,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              protected $htmlParser;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              protected $fontsData = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              protected $header;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Is document already parsed?
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function setDefaultOrientation(string $defaultOrientation)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param float $bottom
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              public function setDefaultLeftMargin(float $left)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param float $left
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

          Line exceeds 120 characters; contains 156 characters
          Open

                      $page->setMargins($this->defaultMargins['left'], $this->defaultMargins['top'], $this->defaultMargins['right'], $this->defaultMargins['bottom']);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

              public function isParsed()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param float $right
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                      $page->setMargins($this->defaultMargins['left'], $this->defaultMargins['top'], $this->defaultMargins['right'], $this->defaultMargins['bottom']);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Get actual id for newly created object.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return ++$this->actualId;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  $this->fontInstances[$family][$weight][$style] = $fontInstance;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

                  if (!empty($this->fontsData[$family][$weight][$style])) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  $this->meta = (new Meta())->setDocument($this)->init();
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Set default page format.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function setDefaultFormat(string $defaultFormat)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      $page->setMargins($left, $top, $right, $bottom);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function setDefaultRightMargin(float $right)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

          Line exceeds 120 characters; contains 156 characters
          Open

                      $page->setMargins($this->defaultMargins['left'], $this->defaultMargins['top'], $this->defaultMargins['right'], $this->defaultMargins['bottom']);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * @param string                     $weight
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Get font instance.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

              public function getAllFontInstances()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param string                 $weight
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param string                 $style
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      'vertical' => $top + $bottom,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                      $page->setMargins($this->defaultMargins['left'], $this->defaultMargins['top'], $this->defaultMargins['right'], $this->defaultMargins['bottom']);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * Get actual id for newly created font.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param string                     $family
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function getFontData(string $family, string $weight, string $style)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              protected $watermark;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * Initialisation.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Set default page orientation.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param string $defaultOrientation
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * @param float $top
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  foreach ($this->pages as $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                      $page->setMargins($this->defaultMargins['left'], $this->defaultMargins['top'], $this->defaultMargins['right'], $this->defaultMargins['bottom']);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Get meta.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              public function getMeta()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

              public static function addFonts(array $fonts)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

                  $this->defaultOrientation = $defaultOrientation;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function setDefaultMargins(float $left, float $top, float $right, float $bottom)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Line exceeds 120 characters; contains 156 characters
          Open

                      $page->setMargins($this->defaultMargins['left'], $this->defaultMargins['top'], $this->defaultMargins['right'], $this->defaultMargins['bottom']);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function getActualId()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

               * @param string $weight
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                              $instances[] = $instance;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

              public function getPagesObject(): Pages
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              protected $cssSelectors = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function inDebugMode()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  foreach ($this->pages as $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      $page->setFormat($defaultFormat);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  $this->defaultMargins = [
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

                  return ++$this->actualGraphicStateId;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param string                     $style
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param string $style
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function getFontInstance(string $family, string $weight, string $style)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param string $weight
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      return $this->fontsData[$family][$weight][$style];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                  $this->pagesObject = $this->catalog->addChild((new Pages())->setDocument($this)->init());
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      'right' => $right,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      $page->setMargins($this->defaultMargins['left'], $this->defaultMargins['top'], $this->defaultMargins['right'], $this->defaultMargins['bottom']);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  foreach ($this->pages as $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Line exceeds 120 characters; contains 156 characters
          Open

                      $page->setMargins($this->defaultMargins['left'], $this->defaultMargins['top'], $this->defaultMargins['right'], $this->defaultMargins['bottom']);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                  return $this->meta;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param string                 $family
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public $ordCache = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return $this->parsed;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

              public function setFontData(string $family, string $weight, string $style, \FontLib\TrueType\File $font)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                  $this->defaultFormat = $defaultFormat;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

                      'top' => $top,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  $this->defaultMargins['left'] = $left;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

                  foreach ($this->pages as $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return ++$this->actualFontId;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @return \YetiForcePDF\Objects\Font|null
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Get all font instances.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Get font data.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                  return $this->pagesObject;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * @param float $left
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

                  foreach ($this->pages as $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  $this->defaultMargins['bottom'] = $bottom;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @return Meta
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * @param \YetiForcePDF\Objects\Font $fontInstance
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  if (!empty($this->fontInstances[$family][$weight][$style])) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  foreach ($this->fontInstances as $weights) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                      $this->fontsData[$family][$weight][$style] = $font;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param string $family
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Add fonts from json.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  $this->catalog = (new \YetiForcePDF\Catalog())->setDocument($this)->init();
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

                          foreach ($styles as $instance) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param array $fonts
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * Set default page margins.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param float $top
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  foreach ($this->pages as $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              public function getActualFontId(): int
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Get actual id for newly created graphic state.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                      return $this->fontInstances[$family][$weight][$style];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      foreach ($weights as $styles) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @var Meta
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Css selectors like classes ids.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Are we debugging?
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                      'left' => $left,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  ];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function setDefaultTopMargin(float $top)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param float $bottom
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              public function setFontInstance(string $family, string $weight, string $style, Objects\Font $fontInstance)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  return null;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * @return \FontLib\Font|null
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return null;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

              protected $parsed = false;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                      $page->setOrientation($defaultOrientation);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param float $left
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

               * @param float $left
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              public function setDefaultBottomMargin(float $bottom)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return $this->debugMode;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * @param string $defaultFormat
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * Set font information.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * @param string $style
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      'horizontal' => $left + $right,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Set default left margin.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Set default right margin.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param float $left
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  $this->defaultMargins['right'] = $right;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

               * Set font.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                  $instances = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  if (empty($this->fontsData[$family][$weight][$style])) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

              protected $meta;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Characters int values cache for fonts.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                  foreach ($this->pages as $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      'bottom' => $bottom,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Set default top margin.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  $this->defaultMargins['top'] = $top;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param float $right
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Set default bottom margin.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                  \YetiForcePDF\Objects\Font::loadFromArray($fonts);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

              public function getActualGraphicStateId(): int
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param string $family
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @return \YetiForcePDF\Objects\Font[]
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return $instances;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param \FontLib\TrueType\File $font
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Get pages object.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

               * Set footer.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  $this->footer = $footer;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  if (!$orientation) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  } else {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  return $this->defaultFormat;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              public function getHeader()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return $this->header;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if ($after) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @return Page
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return $this->defaultOrientation;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * @param HeaderBox $header
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * Get watermark.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function getWatermark()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function setFooter(FooterBox $footer)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Get current page.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

               * @param string    $format      - optional format 'A4' for example
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  $page->setOrientation($orientation)->setFormat($format);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      $this->pages[] = $page;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

               * Get footer.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  if (!$format) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      foreach ($this->pages as $afterIndex => $childPage) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                      $this->pages[] = $page;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return $this->defaultMargins;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Get header.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param WatermarkBox $watermark
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      $merge = array_splice($this->pages, $afterIndex);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                  if ($footer->getParent()) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                      ++$afterIndex;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function getDefaultOrientation()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  if (null === $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      $format = $this->defaultFormat;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  $page->setPageNumber($afterIndex);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Get default page format.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

               * Get default margins.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function getDefaultMargins()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * Set header.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      $header = $header->getParent()->removeChild($header);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @return HeaderBox|null
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  return $this->watermark;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function getFooter()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param string    $orientation - optional orientation 'P' or 'L'
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                  $this->currentPageObject = $page;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

                      $watermark = $watermark->getParent()->removeChild($watermark);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param FooterBox $footer
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

                      $this->pages = array_merge($this->pages, $merge);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                  if ($header->getParent()) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  $this->header = $header;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @return WatermarkBox|null
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * @param Page|null $page        - we can add cloned page or page from other document too
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

               * @param Page|null $after       - add page after this page
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                      $page = (new Page())->setDocument($this)->init();
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                          if ($childPage === $after) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                              break;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return $page;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

              public function getCurrentPage(): Page
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  return $this->currentPageObject;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

              public function setHeader(HeaderBox $header)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

               * Add page to the document.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              public function setWatermark(WatermarkBox $watermark)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  if ($watermark->getParent()) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

                      $footer = $footer->getParent()->removeChild($footer);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

                  $afterIndex = \count($this->pages);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

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

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

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

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Set watermark.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return array
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->watermark = $watermark;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $orientation = $this->defaultOrientation;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getDefaultFormat()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get default page orientation.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return FooterBox|null
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->footer;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function addPage(string $format = '', string $orientation = '', Page $page = null, Page $after = null): Page
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($after) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                              $pages[] = $page;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      foreach ($pages as $index => $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              protected function getDocumentFooter(): string
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return '%%EOF';
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->objects as $obj) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($groupIndex) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->getPages() as $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $pageCount = \count($pages);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $object->setId($this->getActualId());
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($currentObject !== $object) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->objects = $objects;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return int
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return Page[]
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Fix page numbers.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Add object to document.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                              break;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ++$afterIndex;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $fromEncoding
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function loadHtml(string $html, string $fromEncoding = 'UTF-8'): self
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($fromEncoding === '') {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      throw new Exception('Encoding can not be empty');
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return \YetiForcePDF\Document
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Count objects.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $pages = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function fixPageNumbers()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $page->setPageNumber($index + 1);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return string
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function removeObject(PdfObject $object): self
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->pages;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($groups as $pages) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function setCurrentPage(Page $page)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get all pages.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      foreach ($this->pages as $page) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          if ($page->getGroup() === $groupIndex) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $groups = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $afterIndex = \count($this->objects);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->objects as $currentObject) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Set current page.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $page->setPageCount($pageCount);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $pages;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              protected function getDocumentHeader(): string
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->objects[] = $object;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get document footer.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          break;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return \YetiForcePDF\Document
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Remove object from document.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->objects[] = $object;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->objects = array_merge($this->objects, $merge);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Load html string.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->htmlParser->loadHtml($html, $fromEncoding);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param int|null $groupIndex
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $groups[$page->getGroup()][] = $page;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function addObject(PdfObject $object, $after = null): self
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          if ($after === $obj) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->htmlParser = (new Parser())->setDocument($this)->init();
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * pages that are expanded by overflow will have the same unique id - cloned
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return "%PDF-1.4\n%âăĎÓ\n";
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($after) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $merge = array_splice($this->objects, $afterIndex);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($obj->getId() === $object->getId()) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $html
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @throws Exception
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param Page $page
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * so they are in one group of pages - if some page is added with different unique id
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (!$after) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getPages(int $groupIndex = null)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->currentPageObject = $page;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return string
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      foreach ($this->objects as $afterIndex => $obj) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          // id already exists (maybe we are merging with other doc) - generate new one
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $objects = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $name - object name
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param PdfObject      $object
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param PdfObject|null $after  - add after this element
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param \YetiForcePDF\Objects\PdfObject $object
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  unset($objects);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * then it means that from now on pages are from other group and we should reset page numbers / count
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get document header.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $objects[] = $currentObject;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->objects as $object) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $objects = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $text = \chr(254) . \chr(255) . $text;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $trailer = (new \YetiForcePDF\Objects\Trailer())
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->buffer .= $trailer->render() . "\n";
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      'startxref',
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get css selector rules.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return array
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return \count($this->objects);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $typeCount;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return $this->objects;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->buffer .= implode("\n", [
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  ]);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  ]);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      ->setDocument($this)->setRootObject($this->catalog)->setSize($objectSize);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $rules = [];
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($className && isset($this->cssSelectors[$className])) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getCssSelectors()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function addCssSelectorRules(string $selector, array $rules): self
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return string
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->buffer .= $this->getDocumentHeader();
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Add css selector rules.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->objects as $object) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Filter text
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $text = preg_replace('/[\n\r\t\s]+/u', ' ', mb_convert_encoding($text, 'UTF-8'));
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      '',
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->buffer .= $this->getDocumentFooter();
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          ++$typeCount;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function countObjects(string $name = ''): int
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return \YetiForcePDF\Objects\PdfObject[]
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $encoding
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param bool   $withParenthesis
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Parse html.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Layout document content to pdf string.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->parse();
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getCssSelectorRules(string $selector): array
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ('' === $name) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $objects[] = $object;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $text
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param bool   $prependBom
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $text = preg_replace('/\s+/u', ' ', $text);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->htmlParser->parse();
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      '0 ' . $objectSize,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->removeObject($trailer);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Filter the text, this is applied to all text just before being inserted into the pdf document
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function filterText(string $text, string $encoding = 'UTF-16', bool $withParenthesis = true, bool $prependBom = false)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $text = strtr($text, [')' => '\\)', '(' => '\\(', '\\' => '\\\\', \chr(13) => '\r']);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach ($this->objects as $object) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $offset = \strlen($this->buffer);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $offset,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->cssSelectors;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Line exceeds 120 characters; contains 129 characters
          Open

              public function filterText(string $text, string $encoding = 'UTF-16', bool $withParenthesis = true, bool $prependBom = false)
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->parsed = true;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $xref = '';
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if (\in_array($object->getBasicType(), ['Dictionary', 'Stream', 'Array'])) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $xref .= sprintf("%010d 00000 n \n", \strlen($this->buffer));
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this->buffer;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $selector
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (isset($this->cssSelectors[$selector])) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $text = preg_replace('/^\s+|\s+$/u', '', $text);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $text;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function parse()
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function render(): string
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->buffer .= implode("\n", [
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $typeCount = 0;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              public function getObjects(string $name = ''): array
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ('' === $name) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $text = mb_convert_encoding($text, $encoding, mb_detect_encoding($text));
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          ++$objectSize;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      'xref',
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($object->getName() === $name) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $objects;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return $this
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if (!$this->isParsed()) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return string
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  foreach (explode(' ', $selector) as $className) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $rules = array_merge($rules, $this->cssSelectors[$className]);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @return array
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               *
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($prependBom) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  if ($withParenthesis) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      '0000000000 65535 f ',
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              /**
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get objects.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $name - object name
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      if ($object->getName() === $name) {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      return '(' . $text . ')';
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               */
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $this->buffer = '';
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  $objectSize = 0;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $xref,
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $rules;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * Get css selectors.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param string $selector .className or #id
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * @param array  $rules
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->cssSelectors[$selector] = array_merge($this->cssSelectors[$selector], $rules);
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

               * it escapes the various things that need to be escaped, and so on.
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                          $this->buffer .= $object->render() . "\n";
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  return $this;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                      $this->cssSelectors[$selector] = $rules;
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          Spaces must be used to indent lines; tabs are not allowed
          Open

                  } else {
          Severity: Minor
          Found in lib/Document.php by phpcodesniffer

          There are no issues that match your filters.

          Category
          Status