YetiForceCompany/YetiForcePDF

View on GitHub
lib/Objects/Font.php

Summary

Maintainability
D
2 days
Test Coverage

File Font.php has 436 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

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

    Font has 31 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Font extends \YetiForcePDF\Objects\Resource
    {
        protected static $fontFiles = [
            'DejaVu Sans' => [
                '100' => [
    Severity: Minor
    Found in lib/Objects/Font.php - About 3 hrs to fix

      Method loadFontData has 91 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function loadFontData()
          {
              $fileName = $this->getFontFileName();
              $fileContent = file_get_contents($fileName);
              $font = \FontLib\Font::load($fileName);
      Severity: Major
      Found in lib/Objects/Font.php - About 3 hrs to fix

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

        class Font extends \YetiForcePDF\Objects\Resource
        {
            protected static $fontFiles = [
                'DejaVu Sans' => [
                    '100' => [
        Severity: Minor
        Found in lib/Objects/Font.php by phpmd

        Function matchFont has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
        Open

            protected function matchFont(bool $custom = false)
            {
                if (!$custom) {
                    return static::$fontFiles[$this->family][$this->weight][$this->style];
                }
        Severity: Minor
        Found in lib/Objects/Font.php - About 2 hrs to fix

        Cognitive Complexity

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

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

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

        Further reading

        The class Font has 28 fields. Consider redesigning Font to keep the number of fields under 15.
        Open

        class Font extends \YetiForcePDF\Objects\Resource
        {
            protected static $fontFiles = [
                'DejaVu Sans' => [
                    '100' => [
        Severity: Minor
        Found in lib/Objects/Font.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

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

            protected function matchFont(bool $custom = false)
            {
                if (!$custom) {
                    return static::$fontFiles[$this->family][$this->weight][$this->style];
                }
        Severity: Minor
        Found in lib/Objects/Font.php - About 1 hr to fix

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

              protected function loadFontData()
              {
                  $fileName = $this->getFontFileName();
                  $fileContent = file_get_contents($fileName);
                  $font = \FontLib\Font::load($fileName);
          Severity: Minor
          Found in lib/Objects/Font.php - About 55 mins to fix

          Cognitive Complexity

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

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

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

          Further reading

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

              public function getFontFileName()
              {
                  if (isset(static::$fontFiles[$this->family])) {
                      $match = $this->matchFont();
                      if (file_exists($this->fontDir . $match)) {
          Severity: Minor
          Found in lib/Objects/Font.php - About 45 mins to fix

          Cognitive Complexity

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

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

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

          Further reading

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

              public static function loadFromArray(array $decoded)
              {
                  if (!\is_array($decoded)) {
                      throw new \ErrorException('Invalid fonts json structure.');
                  }
          Severity: Minor
          Found in lib/Objects/Font.php - About 35 mins to fix

          Cognitive Complexity

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

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

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

          Further reading

          Avoid too many return statements within this method.
          Open

                      return static::$customFontFiles[$this->family][$weight][$style];
          Severity: Major
          Found in lib/Objects/Font.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return $this->fontDir . static::$fontFiles[static::$defaultFontFamily][$this->weight][$this->style];
            Severity: Major
            Found in lib/Objects/Font.php - About 30 mins to fix

              The method matchFont() has an NPath complexity of 2592. The configured NPath complexity threshold is 200.
              Open

                  protected function matchFont(bool $custom = false)
                  {
                      if (!$custom) {
                          return static::$fontFiles[$this->family][$this->weight][$this->style];
                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              NPathComplexity

              Since: 0.1

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

              Example

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

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

              The method loadFontData() has an NPath complexity of 432. The configured NPath complexity threshold is 200.
              Open

                  protected function loadFontData()
                  {
                      $fileName = $this->getFontFileName();
                      $fileContent = file_get_contents($fileName);
                      $font = \FontLib\Font::load($fileName);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              NPathComplexity

              Since: 0.1

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

              Example

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

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

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

                  protected function loadFontData()
                  {
                      $fileName = $this->getFontFileName();
                      $fileContent = file_get_contents($fileName);
                      $font = \FontLib\Font::load($fileName);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              CyclomaticComplexity

              Since: 0.1

              Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

              Example

              // Cyclomatic Complexity = 11
              class Foo {
              1   public function example() {
              2       if ($a == $b) {
              3           if ($a1 == $b1) {
                              fiddle();
              4           } elseif ($a2 == $b2) {
                              fiddle();
                          } else {
                              fiddle();
                          }
              5       } elseif ($c == $d) {
              6           while ($c == $d) {
                              fiddle();
                          }
              7        } elseif ($e == $f) {
              8           for ($n = 0; $n < $h; $n++) {
                              fiddle();
                          }
                      } else {
                          switch ($z) {
              9               case 1:
                                  fiddle();
                                  break;
              10              case 2:
                                  fiddle();
                                  break;
              11              case 3:
                                  fiddle();
                                  break;
                              default:
                                  fiddle();
                                  break;
                          }
                      }
                  }
              }

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

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

                  protected function matchFont(bool $custom = false)
                  {
                      if (!$custom) {
                          return static::$fontFiles[$this->family][$this->weight][$this->style];
                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              CyclomaticComplexity

              Since: 0.1

              Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

              Example

              // Cyclomatic Complexity = 11
              class Foo {
              1   public function example() {
              2       if ($a == $b) {
              3           if ($a1 == $b1) {
                              fiddle();
              4           } elseif ($a2 == $b2) {
                              fiddle();
                          } else {
                              fiddle();
                          }
              5       } elseif ($c == $d) {
              6           while ($c == $d) {
                              fiddle();
                          }
              7        } elseif ($e == $f) {
              8           for ($n = 0; $n < $h; $n++) {
                              fiddle();
                          }
                      } else {
                          switch ($z) {
              9               case 1:
                                  fiddle();
                                  break;
              10              case 2:
                                  fiddle();
                                  break;
              11              case 3:
                                  fiddle();
                                  break;
                              default:
                                  fiddle();
                                  break;
                          }
                      }
                  }
              }

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

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

                  protected function matchFont(bool $custom = false)
              Severity: Critical
              Found in lib/Objects/Font.php by sonar-php

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

              See

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

                  protected function matchFont(bool $custom = false)
              Severity: Major
              Found in lib/Objects/Font.php by sonar-php

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

              Noncompliant Code Example

              With the default threshold of 3:

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

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

              class Font extends \YetiForcePDF\Objects\Resource
              Severity: Major
              Found in lib/Objects/Font.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.

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

                      $strWeight = (new \YetiForcePDF\Style\Normalizer\FontWeight())->normalize($weight)['font-weight'];
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              MissingImport

              Since: 2.7.0

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

              Example

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

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

              Missing class import via use statement (line '231', column '33').
              Open

                          $this->fontDescriptor = (new \YetiForcePDF\Objects\FontDescriptor())
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              MissingImport

              Since: 2.7.0

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

              Example

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

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

              Missing class import via use statement (line '625', column '14').
              Open

                          throw new \ErrorException('Invalid fonts json structure.');
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              MissingImport

              Since: 2.7.0

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

              Example

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

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

              Missing class import via use statement (line '629', column '15').
              Open

                              throw new \ErrorException('Invalid fonts json structure.');
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              MissingImport

              Since: 2.7.0

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

              Example

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

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

              Missing class import via use statement (line '747', column '31').
              Open

                      $this->cidSystemInfo = (new \YetiForcePDF\Objects\Basic\DictionaryObject())
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              MissingImport

              Since: 2.7.0

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

              Example

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

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

              Missing class import via use statement (line '632', column '15').
              Open

                              throw new \ErrorException('Invalid fonts json structure.');
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              MissingImport

              Since: 2.7.0

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

              Example

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

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

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

                      $this->toUnicode = (new \YetiForcePDF\Objects\Basic\StreamObject())
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              MissingImport

              Since: 2.7.0

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

              Example

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

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

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

                      $this->fontType0 = (new \YetiForcePDF\Objects\Basic\DictionaryObject())
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              MissingImport

              Since: 2.7.0

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

              Example

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

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

              Missing class import via use statement (line '733', column '26').
              Open

                      $this->cidToGid = (new \YetiForcePDF\Objects\Basic\StreamObject())
              Severity: Minor
              Found in lib/Objects/Font.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 matchFont has a boolean flag argument $custom, which is a certain sign of a Single Responsibility Principle violation.
              Open

                  protected function matchFont(bool $custom = false)
              Severity: Minor
              Found in lib/Objects/Font.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 '753', column '28').
              Open

                      $this->dataStream = (new \YetiForcePDF\Objects\Basic\StreamObject())
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              MissingImport

              Since: 2.7.0

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

              Example

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

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

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

                      return Math::div(Math::mul($this->size->getConverted(), $this->ascender), $this->unitsPerEm);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                              $width = Math::add($width, (string) $this->widths[$this->mbOrd($char)]);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                      return $this->textWidths[$text] = Math::div(Math::mul($this->size->getConverted(), $width), '1000');
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                      return $this->textWidths[$text] = Math::div(Math::mul($this->size->getConverted(), $width), '1000');
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                      return bcmul($value, Math::div($base, $this->unitsPerEm), 0);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                          $this->textHeight = Math::add($this->getAscender(), Math::mul($this->getDescender(), '-1'));
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                      return Math::div(Math::mul($this->size->getConverted(), $this->descender), $this->unitsPerEm);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                          $this->textHeight = Math::add($this->getAscender(), Math::mul($this->getDescender(), '-1'));
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                      return Math::div(Math::mul($this->size->getConverted(), $this->ascender), $this->unitsPerEm);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                      return Math::div(Math::mul($this->size->getConverted(), $this->descender), $this->unitsPerEm);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                          $this->height = Math::add($this->height, (string) $os2['typoLineGap']);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

              Avoid using static access to class '\FontLib\Font' in method 'loadFontData'.
              Open

                      $font = \FontLib\Font::load($fileName);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

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

                      $this->height = Math::sub((string) $hhea['ascent'], (string) $hhea['descent']);
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              StaticAccess

              Since: 1.4.0

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

              Example

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

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

              Rename "$cidToGid" which has the same name as the field declared at line 165.
              Open

                      $cidToGid = str_pad('', 256 * 256 * 2, "\x00");
              Severity: Major
              Found in lib/Objects/Font.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 "$widths" which has the same name as the field declared at line 159.
              Open

                      $widths = [];
              Severity: Major
              Found in lib/Objects/Font.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 "normal" 13 times.
              Open

                              'normal' => 'DejaVuSans-ExtraLight.ttf',
              Severity: Critical
              Found in lib/Objects/Font.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 "DejaVuSans.ttf" 3 times.
              Open

                              'normal' => 'DejaVuSans.ttf',
              Severity: Critical
              Found in lib/Objects/Font.php by sonar-php

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

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

              Noncompliant Code Example

              With the default threshold of 3:

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

              Compliant Solution

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

              Exceptions

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

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

                      $style = 'normal' === $this->style ? 'italic' : 'normal';
              Severity: Major
              Found in lib/Objects/Font.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 and throw a dedicated exception instead of using a generic one.
              Open

                          throw new \ErrorException('Invalid fonts json structure.');
              Severity: Major
              Found in lib/Objects/Font.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

              Define a constant instead of duplicating this literal "italic" 10 times.
              Open

                              'italic' => 'DejaVuSans-ExtraLight.ttf',
              Severity: Critical
              Found in lib/Objects/Font.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 \ErrorException('Invalid fonts json structure.');
              Severity: Major
              Found in lib/Objects/Font.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 "$weight" which has the same name as the field declared at line 99.
              Open

                      $weight = '';
              Severity: Major
              Found in lib/Objects/Font.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 "DejaVuSans-ExtraLight.ttf" 6 times.
              Open

                              'normal' => 'DejaVuSans-ExtraLight.ttf',
              Severity: Critical
              Found in lib/Objects/Font.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 "DejaVuSans-Bold.ttf" 3 times.
              Open

                              'normal' => 'DejaVuSans-Bold.ttf',
              Severity: Critical
              Found in lib/Objects/Font.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 "DejaVuSans-BoldOblique.ttf" 3 times.
              Open

                              'italic' => 'DejaVuSans-BoldOblique.ttf',
              Severity: Critical
              Found in lib/Objects/Font.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 \ErrorException('Invalid fonts json structure.');
              Severity: Major
              Found in lib/Objects/Font.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

              Define a constant instead of duplicating this literal "Invalid fonts json structure." 3 times.
              Open

                          throw new \ErrorException('Invalid fonts json structure.');
              Severity: Critical
              Found in lib/Objects/Font.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 "UTF-8" 3 times.
              Open

                          mb_internal_encoding('UTF-8');
              Severity: Critical
              Found in lib/Objects/Font.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 "descriptor" 12 times.
              Open

                      $this->outputInfo['descriptor'] = [];
              Severity: Critical
              Found in lib/Objects/Font.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 "DejaVuSans-Oblique.ttf" 3 times.
              Open

                              'italic' => 'DejaVuSans-Oblique.ttf',
              Severity: Critical
              Found in lib/Objects/Font.php by sonar-php

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

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

              Noncompliant Code Example

              With the default threshold of 3:

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

              Compliant Solution

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

              Exceptions

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

              Avoid unused parameters such as '$charMapUnicode'.
              Open

                  protected function setUpUnicode($charMapUnicode)
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              UnusedFormalParameter

              Since: 0.2

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

              Example

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

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

              Avoid unused parameters such as '$text'.
              Open

                  public function getTextHeight(string $text = null): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpmd

              UnusedFormalParameter

              Since: 0.2

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

              Example

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

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

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

                          '500' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'normal' => 'DejaVuSans.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'normal' => 'DejaVuSans.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '300' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'normal' => 'DejaVuSans-Bold.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'italic' => 'DejaVuSans-BoldOblique.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '400' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'italic' => 'DejaVuSans-ExtraLight.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'italic' => 'DejaVuSans-Oblique.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '700' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      'DejaVu Sans' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'normal' => 'DejaVuSans-ExtraLight.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected static $fontFiles = [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'italic' => 'DejaVuSans-Oblique.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'normal' => 'DejaVuSans-ExtraLight.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'normal' => 'DejaVuSans-Bold.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '100' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'normal' => 'DejaVuSans-ExtraLight.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '600' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '200' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'italic' => 'DejaVuSans-Oblique.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'normal' => 'DejaVuSans.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'italic' => 'DejaVuSans-ExtraLight.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '800' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'italic' => 'DejaVuSans-ExtraLight.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              'italic' => 'DejaVuSans-BoldOblique.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                   * Font style.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Font number.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                  protected $unitsPerEm = '1000';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                   * Font weight.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @var \YetiForcePDF\Objects\Basic\StreamObject
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $ascender = '0';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                  protected $fontData;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Text widths cache.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $weight = 'normal';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $fontNumber = 'F1';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Font data.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * @var
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                  protected $toUnicode;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public static $defaultFontFamily = 'DejaVu Sans';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @var NumericValue
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  protected $size;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                              'normal' => 'DejaVuSans-Bold.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $cidToGid;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                  protected $resourceType = 'Font';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                   * Info needed to write in pdf.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $outputInfo = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

                   * @var string|null
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                   * @var int[]
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                  protected $descender = '0';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  protected static $customFontFiles = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                   * Base font type aka font family.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                   * Character widths.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                   * Object name.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Which type of dictionary (Page, Catalog, Font etc...).
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  protected $resourceName = 'Font';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  protected $style = 'normal';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                   * Font height.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  protected $height = '0';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @var \YetiForcePDF\Objects\Basic\StreamObject
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                  protected $charMap = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Unicode char map stream.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * @var \YetiForcePDF\Objects\Basic\DictionaryObject
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * From baseline to bottom (with jyg chars that are bellow baseline).
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                          '900' => [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                  protected $fontDir = '';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                  protected $textHeight;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * @var \FontLib\Font
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Cid to Gid characters map.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * Cid system info.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Character map (unicode).
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Main font that is used - first font - this file is just descendant font.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * From baseline to top of the font.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $fontPostscriptName;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                              'italic' => 'DejaVuSans-BoldOblique.ttf',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      ],
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                   * Text height with ascender and descender.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $fontDescriptor;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $dataStream;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  protected $widths = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * @var \YetiForcePDF\Objects\Basic\StreamObject
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * @var \YetiForcePDF\Objects\Basic\DictionaryObject
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $cidSystemInfo;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  protected $fontType0;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                  protected $family = '';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * Font size.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

              Line exceeds 120 characters; contains 129 characters
              Open

                      $this->fontDir = realpath(__DIR__ . \DIRECTORY_SEPARATOR . '..' . \DIRECTORY_SEPARATOR . 'Fonts') . \DIRECTORY_SEPARATOR;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      $alreadyExists = $this->document->getFontInstance($this->family, $this->weight, $this->style);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          $this->fontData = $this->loadFontData();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Set font name.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

                  public function getData()
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          $this->document->setFontInstance($this->family, $this->weight, $this->style, $this);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public static function addCustomFont(string $family, string $weight, string $style, string $fileName)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  public function setWeight(string $weight)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                  public function getFamily(): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

                      $this->family = $name;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      return $this->family;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                      return $this->weight;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                          $this->family = self::$defaultFontFamily;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                   * @param string $number
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                      return $this->fontData;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      if (empty($this->family)) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          $this->fontNumber = 'F' . $this->document->getActualFontId();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                   * Set font weight.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * Get font style.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Get full font name.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public function getFullName()
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      $this->setAddToDocument(false);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @param string $fileName
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Set font style.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

                      $this->fontDir = realpath(__DIR__ . \DIRECTORY_SEPARATOR . '..' . \DIRECTORY_SEPARATOR . 'Fonts') . \DIRECTORY_SEPARATOR;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                  public function setFamily(string $name)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                   * Get output info.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  public function setNumber(string $number): self
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                  public function getOutputInfo()
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected $textWidths = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Initialization.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                      static::$customFontFiles[$family][$strWeight][$style] = $fileName;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      $this->fontNumber = $number;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

                   * Add custom font.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @param string $name
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                      $this->weight = $weight;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  public function getWeight(): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public function getStyle(): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      return $this->fontPostscriptName;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                          foreach ($this->document->getObjects('Page') as $page) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      return clone $alreadyExists;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                  public function setStyle(string $style)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      if (null === $alreadyExists) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          $this->fontDescriptor = (new \YetiForcePDF\Objects\FontDescriptor())
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              $page->synchronizeFonts();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          $this->document->setFontData($this->family, $this->weight, $this->style, $this->fontData);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                              ->setFont($this)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      // do not init parent! we don't want to create resources etc.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                      $strWeight = (new \YetiForcePDF\Style\Normalizer\FontWeight())->normalize($weight)['font-weight'];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Set font number.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                   * @return array
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * Get font name.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Get font name.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                      return $this->outputInfo;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                      if (true === \extension_loaded('mbstring')) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @param string $text
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      $width = '0';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          if (isset($this->widths[$this->mbOrd($char)])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Get text height.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '/CIDInit /ProcSet findresource begin',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '12 dict begin',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      if ($this->getSize()->getUnit() === $unit) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public function getTextHeight(string $text = null): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  public function getDescender(): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      return $this->dataStream;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  protected function setUpUnicode($charMapUnicode)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      $stream = implode("\n", [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                          if (true === \is_array($result)) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Get text width.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public function getReference(): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * Set Font size.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * @param NumericValue $size
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      return $this->getParent()->getClosestWithUnit($unit);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Convert character to int.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          $result = unpack('N', mb_convert_encoding($string, 'UCS-4BE', 'UTF-8'));
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                   * Get ascender (from baseline to top of the bounding box).
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                   * Get font size.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public function getTextWidth(string $text): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      if (isset($this->textWidths[$text])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                              $width = Math::add($width, (string) $this->widths[$this->mbOrd($char)]);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

                          $this->textHeight = Math::add($this->getAscender(), Math::mul($this->getDescender(), '-1'));
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      return bcmul($value, Math::div($base, $this->unitsPerEm), 0);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          '/CIDSystemInfo',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                          $char = mb_substr($text, $i, 1);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

                      return $this->getRawId() . ' R';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Get data stream.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      $this->size = $size;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                      for ($i = 0, $len = mb_strlen($text); $i < $len; ++$i) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public function getNumber(): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public function normalizeUnit(string $value, string $base = '1000')
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Get closest value with specified unit - not converted.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

                          mb_language('Neutral');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * Get descender (from baseline to bottom of the bounding box).
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @return Font
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                      if (isset($this->document->ordCache[$string])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                          mb_detect_order(['UTF-8', 'ISO-8859-15', 'ISO-8859-1', 'ASCII']);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                  public function getDataStream()
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

                          return $this->textWidths[$text];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      return $this->textHeight;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * Get font number.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

                   * @param string $unit
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

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

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

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

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

                      return Math::div(Math::mul($this->size->getConverted(), $this->ascender), $this->unitsPerEm);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                      return $this->fontNumber;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

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

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  public function getSize(): NumericValue
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          return $this->document->ordCache[$string];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              return $result[1];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return $this->document->ordCache[$string] = \ord($string);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @param string|null $text
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (null === $this->textHeight) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '<</Registry (Adobe)',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @param $string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  public function mbOrd($string)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return $this->textWidths[$text] = Math::div(Math::mul($this->size->getConverted(), $width), '1000');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  public function getAscender(): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return Math::div(Math::mul($this->size->getConverted(), $this->descender), $this->unitsPerEm);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * {@inheritdoc}
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  /**
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @return \YetiForcePDF\Objects\Basic\StreamObject
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  public function setSize(NumericValue $size)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return $this;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return $this->size;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  public function getClosestWithUnit(string $unit)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          mb_internal_encoding('UTF-8');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  /**
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '/Ordering (UCS)',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  /**
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          'begincmap',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  protected function matchFont(bool $custom = false)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          if (isset(static::$customFontFiles[$this->family][(string) $currentWeight])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      // inverse style
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @return \FontLib\TrueType\File|null
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          'endcmap',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          'end',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (!$weight) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          return $this->fontDir . static::$fontFiles[static::$defaultFontFamily][$this->weight][$this->style];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  public static function loadFromArray(array $decoded)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      foreach ($decoded as $font) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * Get font file name without extension.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $match = $this->matchFont();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $path .= \DIRECTORY_SEPARATOR . 'public_html';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * Load font.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  protected function loadFontData()
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $post = $font->getData('post');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * Get Type0 font - main one.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          // font file not found return default one
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $path .= \DIRECTORY_SEPARATOR . 'lib';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $os2 = $font->getData('OS/2');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '<0000> <FFFF> <0000>',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (!$custom) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      for ($currentWeight = (int) $this->weight; $currentWeight >= 0; $currentWeight -= 100) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              if (isset(static::$customFontFiles[$this->family][(string) $currentWeight])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      // font file not found - get default one
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '/CMapType 2 def',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          'end',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @return Font
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          return static::$customFontFiles[$this->family][$this->weight][$this->style];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $weight = '';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (isset(static::$customFontFiles[$this->family][$weight][$this->style]) && file_exists(static::$customFontFiles[$this->family][$weight][$this->style])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  /**
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              throw new \ErrorException('Invalid fonts json structure.');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (isset(static::$fontFiles[$this->family])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $this->unitsPerEm = (string) $head['unitsPerEm'];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '1 begincodespacerange',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          return static::$customFontFiles[$this->family][$weight][$this->style];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          throw new \ErrorException('Invalid fonts json structure.');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              throw new \ErrorException('Invalid fonts json structure.');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          if (empty($font['family']) || empty($font['weight']) || empty($font['style']) || empty($font['file'])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return $this->matchFont(true);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      ]);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          if (file_exists($this->fontDir . $match)) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          if (\defined('ROOT_DIRECTORY')) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $path .= \DIRECTORY_SEPARATOR . 'Fonts';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $path .= \DIRECTORY_SEPARATOR . $match;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $this->normalizeUnit((string) $head['xMin']),
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          'endbfrange',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return $this->fontType0;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  public function getType0Font()
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          return static::$fontFiles[$this->family][$this->weight][$this->style];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  /**
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return $this->fontDir . static::$fontFiles[static::$defaultFontFamily][$this->weight][$this->style];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $weight = (string) $currentWeight;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                                  break;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @throws \ErrorException
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (!\is_array($decoded)) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $path = ROOT_DIRECTORY;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $font->parse();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '1 beginbfrange',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Line exceeds 120 characters; contains 151 characters
              Open

                      if (isset(static::$customFontFiles[$this->family][$weight][$style]) && file_exists(static::$customFontFiles[$this->family][$weight][$style])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          static::addCustomFont($font['family'], $font['weight'], $font['style'], $font['file']);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              return $this->fontDir . $match;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                                  return $path;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $fileContent = file_get_contents($fileName);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $font = \FontLib\Font::load($fileName);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['descriptor'] = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '/Supplement 0',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @param bool $custom
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              break;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          return static::$customFontFiles[$this->family][$weight][$style];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * Load fonts from array.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          if (!\is_array($font)) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $path .= \DIRECTORY_SEPARATOR . 'vendor';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @return string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  public function getFontFileName()
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $path .= \DIRECTORY_SEPARATOR . 'yetiforcepdf';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $head = $font->getData('head');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (isset($head['unitsPerEm'])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '/CMapName /Adobe-Identity-UCS def',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   *
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (!$weight) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (isset(static::$customFontFiles[$this->family][$weight][$style]) && file_exists(static::$customFontFiles[$this->family][$weight][$style])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              if (file_exists($path)) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['descriptor']['FontBBox'] = '[' . implode(' ', [
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          'CMapName currentdict /CMap defineresource pop',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          for ($currentWeight = (int) $this->weight; $currentWeight <= 900; $currentWeight += 100) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  /**
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  /**
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $fileName = $this->getFontFileName();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $hhea = $font->getData('hhea');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '>> def',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          'endcodespacerange',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->toUnicode->addRawContent($stream);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  /**
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Line exceeds 120 characters; contains 175 characters
              Open

                      if (isset(static::$customFontFiles[$this->family][$this->weight][$this->style]) && file_exists(static::$customFontFiles[$this->family][$this->weight][$this->style])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Line exceeds 120 characters; contains 163 characters
              Open

                      if (isset(static::$customFontFiles[$this->family][$weight][$this->style]) && file_exists(static::$customFontFiles[$this->family][$weight][$this->style])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $style = 'normal' === $this->style ? 'italic' : 'normal';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @param array $decoded
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @throws \ErrorException
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $this->normalizeUnit((string) $head['xMax']),
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->charMap = $font->getUnicodeCharMap();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $charMapUnicode = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          if ($c >= 0 && $c < 0xFFFF && $glyph) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '<0000> <FFFF>',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * Match font to weights and styles - try other weighs/styles if not present.
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (isset(static::$customFontFiles[$this->family][$this->weight][$this->style]) && file_exists(static::$customFontFiles[$this->family][$this->weight][$this->style])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                                  $weight = (string) $currentWeight;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $path .= \DIRECTORY_SEPARATOR . 'yetiforce';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * @throws \FontLib\Exception\FontNotFoundException
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $hmtx = $font->getData('hmtx');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $this->normalizeUnit((string) $head['yMax']),
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $flags += 2 ** 6;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      foreach ($this->charMap as $c => $glyph) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->init()
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->fontType0->setDictionaryType('Font')
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '  /W [' . implode(' ', $this->outputInfo['font']['Widths']) . ' ]',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '  /CIDToGIDMap ' . $this->cidToGid->getReference(),
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['descriptor']['Ascent'] = (string) $hhea['ascent'];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['descriptor']['Descent'] = (string) $hhea['descent'];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->setDocument($this->document)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->setUpUnicode($charMapUnicode);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $font->close();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '<</Type /Font/Subtype /CIDFontType2',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '>>',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      ]) . ']';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['descriptor']['StemV'] = '80';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if ('0' !== $this->outputInfo['descriptor']['ItalicAngle']) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->height = Math::sub((string) $hhea['ascent'], (string) $hhea['descent']);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->addValue('Encoding', '/Identity-H')
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   */
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '  /DW 500',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['descriptor']['MissingWidth'] = '500';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $widths[] = $c . ' [' . $width . ']';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->cidToGid->addRawContent($cidToGid)->setFilter('FlateDecode');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->addValue('BaseFont', '/' . $this->fontPostscriptName)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return implode("\n", [$this->getRawId() . ' obj',
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $this->outputInfo['descriptor']['StemV'] = '120';
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (true === $post['isFixedPitch']) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $this->widths[$c] = $width;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->cidToGid = (new \YetiForcePDF\Objects\Basic\StreamObject())
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      return $font;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  public function render(): string
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->ascender = (string) $this->outputInfo['descriptor']['Ascent'];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $cidToGid[$c * 2] = \chr($glyph >> 8);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                              $cidToGid[$c * 2 + 1] = \chr($glyph & 0xFF);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['font']['LastChar'] = \count($widths) - 1;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $this->height = Math::add($this->height, (string) $os2['typoLineGap']);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->addValue('Supplement', '0');
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->toUnicode = (new \YetiForcePDF\Objects\Basic\StreamObject())
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->descender = (string) $this->outputInfo['descriptor']['Descent'];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->setDocument($this->document)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['font']['Widths'] = $widths;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '  /CIDSystemInfo ' . $this->cidSystemInfo->getReference(),
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['font'] = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $width = $this->normalizeUnit(isset($hmtx[$glyph]) ? (string) $hmtx[$glyph][0] : (string) $hmtx[0][0]);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->init();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->setDocument($this->document)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->addValue('Subtype', '/Type0')
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->addValue('DescendantFonts', '[' . $this->getReference() . ']')
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '  /BaseFont /' . $this->getFullName(),
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['descriptor']['ItalicAngle'] = (string) $post['italicAngle'];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ++$flags;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $flags += 2 ** 5;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->fontType0 = (new \YetiForcePDF\Objects\Basic\DictionaryObject())
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->addValue('Ordering', '(UCS)')
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                  /**
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $flags = 0;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['descriptor']['Flags'] = (string) $flags;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->setDocument($this->document)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->init();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->setDocument($this->document)
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->init();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          '  /FontDescriptor ' . $this->fontDescriptor->getReference(),
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          $this->normalizeUnit((string) $head['yMin']),
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->widths = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $cidToGid = str_pad('', 256 * 256 * 2, "\x00");
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->outputInfo['font']['FirstChar'] = 0;
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          'endobj', ]);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->init();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->cidSystemInfo = (new \YetiForcePDF\Objects\Basic\DictionaryObject())
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->cidSystemInfo->addValue('Registry', '(Adobe)')
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->dataStream = (new \YetiForcePDF\Objects\Basic\StreamObject())
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->addValue('ToUnicode', $this->toUnicode->getReference());
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $widths = [];
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (isset($post['usWeightClass']) && $post['usWeightClass'] > 400) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          }
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->setFilter('FlateDecode')
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      $this->fontPostscriptName = $font->getFontPostscriptName();
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                   * {@inheritdoc}
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          // Set values in CID to GID map
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                      if (isset($os2['typoLineGap'])) {
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              Spaces must be used to indent lines; tabs are not allowed
              Open

                          ->addRawContent($fileContent);
              Severity: Minor
              Found in lib/Objects/Font.php by phpcodesniffer

              There are no issues that match your filters.

              Category
              Status