YetiForceCompany/YetiForceCRM

View on GitHub
app/Utils.php

Summary

Maintainability
C
7 hrs
Test Coverage
F
55%

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

class Utils
{
    /**
     * Function to capture the initial letters of words.
     *
Severity: Minor
Found in app/Utils.php by phpmd

Method sanitizeSpecialChars has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function sanitizeSpecialChars(string $string, string $delimiter = '_'): string
    {
        $string = mb_convert_encoding((string) $string, 'UTF-8', mb_list_encodings());
        $replace = [
            'ъ' => '-', 'Ь' => '-', 'Ъ' => '-', 'ь' => '-',
Severity: Major
Found in app/Utils.php - About 2 hrs to fix

    Function flattenKeys has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
    Open

        public static function flattenKeys(array $array, string $type = '_', float $depth = INF): array
        {
            $result = [];
            foreach ($array as $key => $item) {
                if (\is_array($item)) {
    Severity: Minor
    Found in app/Utils.php - About 1 hr to fix

    Cognitive Complexity

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

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

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

    Further reading

    Function varExport has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
    Open

        public static function varExport($variable)
        {
            if (\is_array($variable)) {
                $toImplode = [];
                if (static::isAssoc($variable)) {
    Severity: Minor
    Found in app/Utils.php - About 1 hr to fix

    Cognitive Complexity

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

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

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

    Further reading

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

        public static function merge(array $array1, array $array2): array
        {
            foreach ($array2 as $key => $value) {
                if (isset($array1[$key])) {
                    if (\is_array($array1[$key]) && \is_array($value)) {
    Severity: Minor
    Found in app/Utils.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 getLocksContent has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

        public static function getLocksContent(array $locks): string
        {
            $return = '';
            foreach ($locks as $lock) {
                switch ($lock) {
    Severity: Minor
    Found in app/Utils.php - About 45 mins to fix

    Cognitive Complexity

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

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

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

    Further reading

    Method saveToFile has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public static function saveToFile(string $pathDirectory, $content, string $comment = '', int $flag = LOCK_EX, bool $return = false): bool
    Severity: Minor
    Found in app/Utils.php - About 35 mins to fix

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

          public static function flatten(array $array, float $depth = INF): array
          {
              $result = [];
              foreach ($array as $item) {
                  if (\is_array($item)) {
      Severity: Minor
      Found in app/Utils.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

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

          public static function saveToFile(string $pathDirectory, $content, string $comment = '', int $flag = LOCK_EX, bool $return = false): bool
      Severity: Minor
      Found in app/Utils.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

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

      Example

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

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

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

              } else {
                  $value = iconv($fromCharset, $toCharset, $value);
              }
      Severity: Minor
      Found in app/Utils.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

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

                  } else {
                      $result[] = $item;
                  }
      Severity: Minor
      Found in app/Utils.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

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

                      } else {
                          $values = static::flattenKeys($item, $type, $depth - 1);
                      }
      Severity: Minor
      Found in app/Utils.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

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

                      } else {
                          $array1[$key] = $value;
                      }
      Severity: Minor
      Found in app/Utils.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

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

                  } else {
                      $array1[$key] = $value;
                  }
      Severity: Minor
      Found in app/Utils.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

      Avoid assigning values to variables in if clauses and the like (line '228', column '17').
      Open

          public static function saveToFile(string $pathDirectory, $content, string $comment = '', int $flag = LOCK_EX, bool $return = false): bool
          {
              if (\is_array($content)) {
                  $content = self::varExport($content);
              }
      Severity: Minor
      Found in app/Utils.php by phpmd

      IfStatementAssignment

      Since: 2.7.0

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

      Example

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

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

      Avoid using static access to class 'App\Cache' in method 'saveToFile'.
      Open

                  Cache::resetFileCache($pathDirectory);
      Severity: Minor
      Found in app/Utils.php by phpmd

      StaticAccess

      Since: 1.4.0

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

      Example

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

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

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

                  } else {
                      foreach ($variable as $value) {
                          $toImplode[] = static::varExport($value);
                      }
                  }
      Severity: Minor
      Found in app/Utils.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

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

              } else {
                  $content = "<?php $content" . PHP_EOL;
              }
      Severity: Minor
      Found in app/Utils.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

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

                  } else {
                      $result[$key] = $item;
                  }
      Severity: Minor
      Found in app/Utils.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

      Add a "case default" clause to this "switch" statement.
      Open

                  switch ($lock) {
      Severity: Critical
      Found in app/Utils.php by sonar-php

      The requirement for a final case default clause is defensive programming. The clause should either take appropriate action, or contain a suitable comment as to why no action is taken. Even when the switch covers all current values of an enum, a default case should still be used because there is no guarantee that the enum won't be extended.

      Noncompliant Code Example

      switch ($param) {  //missing default clause
        case 0:
          do_something();
          break;
        case 1:
          do_something_else();
          break;
      }
      
      switch ($param) {
        default: // default clause should be the last one
          error();
          break;
        case 0:
          do_something();
          break;
        case 1:
          do_something_else();
          break;
      }
      

      Compliant Solution

      switch ($param) {
        case 0:
          do_something();
          break;
        case 1:
          do_something_else();
          break;
        default:
          error();
          break;
      }
      

      See

      • MISRA C:2004, 15.0 - The MISRA C switch syntax shall be used.
      • MISRA C:2004, 15.3 - The final clause of a switch statement shall be the default clause
      • MISRA C++:2008, 6-4-3 - A switch statement shall be a well-formed switch statement.
      • MISRA C++:2008, 6-4-6 - The final clause of a switch statement shall be the default-clause
      • MISRA C:2012, 16.1 - All switch statements shall be well-formed
      • MISRA C:2012, 16.4 - Every switch statement shall have a default label
      • MISRA C:2012, 16.5 - A default label shall appear as either the first or the last switch label of a switch statement
      • MITRE, CWE-478 - Missing Default Case in Switch Statement
      • CERT, MSC01-C. - Strive for logical completeness
      • CERT, MSC01-CPP. - Strive for logical completeness

      Argument 1 (str) is int but \ucfirst() takes string
      Open

                                  $keySec = \ucfirst($keySec);
      Severity: Minor
      Found in app/Utils.php by phan

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'æ' => 'ae', 'Ǽ' => 'ae', 'ǽ' => 'ae',    'б' => 'b', 'ב' => 'b', 'Б' => 'b', 'þ' => 'b',    'ĉ' => 'c', 'Ĉ' => 'c',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Ч' => 'ch', 'ч' => 'ch', 'ד' => 'd', 'ď' => 'd', 'Đ' => 'd', 'Ď' => 'd', 'đ' => 'd', 'д' => 'd', 'Д' => 'D',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'æ' => 'ae', 'Ǽ' => 'ae', 'ǽ' => 'ae',    'б' => 'b', 'ב' => 'b', 'Б' => 'b', 'þ' => 'b',    'ĉ' => 'c', 'Ĉ' => 'c',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Ċ' => 'c', 'ć' => 'c', 'ç' => 'c', 'ц' => 'c', 'צ' => 'c', 'ċ' => 'c', 'Ц' => 'c', 'Č' => 'c', 'č' => 'c',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              $return = '';
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ї' => 'i', 'і' => 'i', 'ī' => 'i', 'ij' => 'ij', 'IJ' => 'ij', 'й' => 'j', 'Й' => 'j', 'Ĵ' => 'j', 'ĵ' => 'j',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              foreach ($order as $value) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              foreach ($locks as $lock) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  switch ($lock) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ŋ' => 'n', 'נ' => 'n', 'Н' => 'n', 'ń' => 'n', 'Ŋ' => 'n', 'ņ' => 'n', 'ʼn' => 'n', 'Ň' => 'n', 'ň' => 'n',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ș' => 's', 'с' => 's', 'Ŝ' => 's', 'š' => 's', 'ś' => 's', 'ס' => 's', 'ş' => 's', 'С' => 's', 'ŝ' => 's',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           * @return string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                      case 'paste':
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          $return .= ' oncontextmenu = "return false"';
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                      case 'drag':
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          $return .= ' ondragstart = "return false" ondrag = "return false"';
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  '©' => '(c)', 'Α' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D', 'Ε' => 'E', 'Ζ' => 'Z', 'Η' => 'H', 'Ι' => 'I',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ν' => 'n', 'ξ' => '3', 'ο' => 'o', 'π' => 'p', 'ρ' => 'r', 'σ' => 's', 'τ' => 't', 'υ' => 'y', 'φ' => 'f',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           * @param array $order
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  unset($array[$value]);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ǖ' => 'u', 'ǘ' => 'u', 'ü' => 'ue', 'в' => 'v', 'ו' => 'v', 'В' => 'v', 'ש' => 'w', 'ŵ' => 'w', 'Ŵ' => 'w',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'з' => 'z', 'ź' => 'z', 'ז' => 'z', 'ż' => 'z', 'ſ' => 'z', 'Ж' => 'zh', 'ж' => 'zh', 'Ð' => 'D', 'Θ' => '8',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ώ' => 'w', 'ς' => 's', 'ϊ' => 'i', 'ΰ' => 'y', 'ϋ' => 'y', 'ΐ' => 'i',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           * Change the order of associative array.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ĸ' => 'k', 'כ' => 'k', 'Ķ' => 'k', 'К' => 'k', 'к' => 'k', 'ķ' => 'k', 'ך' => 'k', 'Ŀ' => 'l', 'ŀ' => 'l',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ל' => 'l', 'מ' => 'm', 'М' => 'm', 'ם' => 'm', 'м' => 'm', 'ñ' => 'n', 'н' => 'n', 'Ņ' => 'n', 'ן' => 'n',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'χ' => 'x', 'ψ' => 'ps', 'ω' => 'w', 'ά' => 'a', 'έ' => 'e', 'ί' => 'i', 'ό' => 'o', 'ύ' => 'y', 'ή' => 'h',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                      $returnLinks[$value] = $array[$value];
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          $return .= ' onpaste = "return false"';
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          $return .= ' onselectstart = "return false" onselect = "return false"';
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'è' => 'e', 'ë' => 'e', 'é' => 'e', 'ф' => 'f', 'ƒ' => 'f', 'Ф' => 'f', 'ġ' => 'g', 'Ģ' => 'g', 'Ġ' => 'g',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ï' => 'i', 'í' => 'i', 'ì' => 'i', 'į' => 'i', 'ĭ' => 'i', 'ı' => 'i', 'Ĭ' => 'i', 'И' => 'i', 'ĩ' => 'i',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ы' => 'y', 'ŷ' => 'y', 'ý' => 'y', 'ÿ' => 'y', 'Ÿ' => 'y', 'Ŷ' => 'y', 'Ы' => 'y', 'ž' => 'z', 'З' => 'z',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'h', 'θ' => '8', 'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          $return .= ' oncopy = "return false"';
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Ē' => 'e', 'Ė' => 'e', 'ė' => 'e', 'ě' => 'e', 'Ě' => 'e', 'Є' => 'e', 'Ĕ' => 'e', 'ê' => 'e', 'ə' => 'e',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'о' => 'o', 'О' => 'o', 'ő' => 'o', 'õ' => 'o', 'ô' => 'o', 'Ő' => 'o', 'ŏ' => 'o', 'Ŏ' => 'o', 'Ō' => 'o',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P',    'Ρ' => 'R', 'Σ' => 'S',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              ];
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'PS', 'Ω' => 'W', 'Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

          public static function changeSequence(array $array, array $order): array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  if ($array[$value]) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           * @param array $locks
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                      case 'copy':
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ח' => 'h', 'ħ' => 'h', 'Х' => 'h', 'Ħ' => 'h', 'Ĥ' => 'h', 'ĥ' => 'h', 'х' => 'h', 'ה' => 'h', 'î' => 'i',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ō' => 'o', 'ø' => 'o', 'ǿ' => 'o', 'ǒ' => 'o', 'ò' => 'o', 'Ǿ' => 'o', 'Ǒ' => 'o', 'ơ' => 'o', 'ó' => 'o',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Ơ' => 'o', 'œ' => 'oe', 'Œ' => 'oe', 'ö' => 'oe', 'פ' => 'p', 'ף' => 'p', 'п' => 'p', 'П' => 'p', 'ק' => 'q',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              $string = preg_replace('/[^\p{L}\p{Nd}\.]+/u', $delimiter, $string);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           * @param array $array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                      case 'contextmenu':
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P',    'Ρ' => 'R', 'Σ' => 'S',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           * @return array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Щ' => 'sch', 'щ' => 'sch', 'ш' => 'sh', 'Ш' => 'sh', 'ß' => 'ss', 'т' => 't', 'ט' => 't', 'ŧ' => 't',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Ό' => 'O', 'Ύ' => 'Y', 'Ή' => 'H', 'Ώ' => 'W', 'Ϊ' => 'I', 'Ϋ' => 'Y', 'α' => 'a', 'β' => 'b', 'γ' => 'g',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              $returnLinks = [];
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Ĝ' => 'g', 'Г' => 'g', 'г' => 'g', 'ĝ' => 'g', 'ğ' => 'g', 'ג' => 'g', 'Ґ' => 'g', 'ґ' => 'g', 'ģ' => 'g',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'я' => 'ja', 'Я' => 'ja', 'Э' => 'je', 'э' => 'je', 'ё' => 'jo', 'Ё' => 'jo', 'ю' => 'ju', 'Ю' => 'ju',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Ų' => 'u', 'ŭ' => 'u', 'Ŭ' => 'u', 'Ů' => 'u', 'ů' => 'u', 'ű' => 'u', 'Ű' => 'u', 'Ǖ' => 'u', 'ǔ' => 'u',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              $string = strtr($string, $replace);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              if (!$order) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              return array_merge($returnLinks, $array);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

           * Get locks content by events.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          break;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                          $return .= ' oncut = "return false"';
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ð' => 'd', 'є' => 'e', 'ע' => 'e', 'е' => 'e', 'Е' => 'e', 'Ə' => 'e', 'ę' => 'e', 'ĕ' => 'e', 'ē' => 'e',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ת' => 't', 'ť' => 't', 'ţ' => 't', 'Ţ' => 't', 'Т' => 't', 'ț' => 't', 'Ŧ' => 't', 'Ť' => 't', '™' => 'tm',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ū' => 'u', 'у' => 'u', 'Ũ' => 'u', 'ũ' => 'u', 'Ư' => 'u', 'ư' => 'u', 'Ū' => 'u', 'Ǔ' => 'u', 'ų' => 'u',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ǐ' => 'i', 'Ĩ' => 'i', 'Ǐ' => 'i', 'и' => 'i', 'Į' => 'i', 'י' => 'i', 'Ї' => 'i', 'Ī' => 'i', 'І' => 'i',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Л' => 'l', 'ł' => 'l', 'ļ' => 'l', 'ĺ' => 'l', 'Ĺ' => 'l', 'Ļ' => 'l', 'л' => 'l', 'Ľ' => 'l', 'ľ' => 'l',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                      case 'selectstart':
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'ŕ' => 'r', 'ř' => 'r', 'Ř' => 'r', 'ŗ' => 'r', 'Ŗ' => 'r', 'ר' => 'r', 'Ŕ' => 'r', 'Р' => 'r', 'р' => 'r',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  'Ǜ' => 'u', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'У' => 'u', 'ǚ' => 'u', 'ǜ' => 'u', 'Ǚ' => 'u', 'Ǘ' => 'u',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              return trim($string, $delimiter);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                  return $array;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

          public static function getLocksContent(array $locks): string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

                      case 'cut':
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Spaces must be used for alignment; tabs are not allowed
      Open

              return $return;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              foreach ($array as $key => $item) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  if (\is_array($item)) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      if (1 === $depth) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          $values = array_values($item);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  return '[' . implode(',', $toImplode) . ']';
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param array  $array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                              default:
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $name
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function varExport($variable)
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Check if array is associative.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function isAssoc(array $arr)
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              if (empty($arr)) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  return false;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param array $array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      $result[] = $item;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Outputs or returns a parsable string representation of a variable.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              if (\is_array($variable)) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  $toImplode = [];
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  if (static::isAssoc($variable)) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          $toImplode[] = static::varExport($value);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param array $arr
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                                  break;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                              $newKey = "{$key}{$type}{$keySec}";
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param float $depth
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              foreach ($array as $item) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  if (\is_array($item)) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          switch ($type) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return $result;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Flatten the multidimensional array on one level, keeping the key names unique.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return mixed the variable representation when the <i>return</i>
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      foreach ($variable as $value) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return var_export($variable, true);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function flatten(array $array, float $depth = INF): array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                                  break;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              preg_match_all('#(?<=\s|\b)\pL|[()]#u', $name, $initial);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @see https://php.net/manual/en/function.var-export.php
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param mixed $variable
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          $toImplode[] = var_export($key, true) . '=>' . static::varExport($value);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      $values = 1 === $depth ? array_values($item) : static::flatten($item, $depth - 1);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param float  $depth
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                                  $newKey = "{$key}{$keySec}";
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              $result = [];
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          $result[] = $value;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function flattenKeys(array $array, string $type = '_', float $depth = INF): array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function getInitials(string $name): string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      foreach ($values as $keySec => $value) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return isset($initial[0]) ? implode('', $initial[0]) : '';
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      foreach ($variable as $key => $value) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  } else {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $type
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              $result = [];
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                              case 'ucfirst':
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Function to capture the initial letters of words.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      foreach ($values as $value) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      } else {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                                  $keySec = \ucfirst($keySec);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  } else {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          $result[$newKey] = $value;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return bool
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          $values = static::flattenKeys($item, $type, $depth - 1);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              if (\function_exists('mb_convert_encoding') && \function_exists('mb_list_encodings') && \in_array($fromCharset, mb_list_encodings()) && \in_array($toCharset, mb_list_encodings())) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $content
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Strip tags content.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param array|string $content
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              $string = mb_convert_encoding((string) $string, 'UTF-8', mb_list_encodings());
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Ğ' => 'G', 'İ' => 'I', 'Ï' => 'I', 'Î' => 'I', 'Í' => 'I', 'Ì' => 'I', 'Ł' => 'L', 'Ñ' => 'N', 'Ń' => 'N',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

                  'Ø' => 'O', 'Ó' => 'O', 'Ò' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ö' => 'Oe', 'Ş' => 'S', 'Ś' => 'S', 'Ș' => 'S',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return array_keys($arr) !== range(0, \count($arr) - 1);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Flatten a multi-dimensional array into a single level.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  } else {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              foreach ($array2 as $key => $value) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function isHtml(string $content): bool
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  return true;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 141 characters
      Open

          public static function saveToFile(string $pathDirectory, $content, string $comment = '', int $flag = LOCK_EX, bool $return = false): bool
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  $content = "return $content;";
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  'Ğ' => 'G', 'İ' => 'I', 'Ï' => 'I', 'Î' => 'I', 'Í' => 'I', 'Ì' => 'I', 'Ł' => 'L', 'Ñ' => 'N', 'Ń' => 'N',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Ż' => 'Z', 'â' => 'a', 'ǎ' => 'a', 'ą' => 'a', 'á' => 'a', 'ă' => 'a', 'ã' => 'a', 'Ǎ' => 'a', 'а' => 'a',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  if (isset($array1[$key])) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          $array1[$key] = $value;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $value
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return bool
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Function to save php file with cleaning file cache.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string       $pathDirectory
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  Cache::resetFileCache($pathDirectory);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Sanitize special chars from given string.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  'Ż' => 'Z', 'â' => 'a', 'ǎ' => 'a', 'ą' => 'a', 'á' => 'a', 'ă' => 'a', 'ã' => 'a', 'Ǎ' => 'a', 'а' => 'a',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 189 characters
      Open

              if (\function_exists('mb_convert_encoding') && \function_exists('mb_list_encodings') && \in_array($fromCharset, mb_list_encodings()) && \in_array($toCharset, mb_list_encodings())) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $content
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function saveToFile(string $pathDirectory, $content, string $comment = '', int $flag = LOCK_EX, bool $return = false): bool
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              if ($return) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function sanitizeSpecialChars(string $string, string $delimiter = '_'): string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  'Ø' => 'O', 'Ó' => 'O', 'Ò' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ö' => 'Oe', 'Ş' => 'S', 'Ś' => 'S', 'Ș' => 'S',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  'æ' => 'ae', 'Ǽ' => 'ae', 'ǽ' => 'ae',    'б' => 'b', 'ב' => 'b', 'Б' => 'b', 'þ' => 'b',    'ĉ' => 'c', 'Ĉ' => 'c',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return $array1;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return $value;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              if (\is_array($content)) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              } else {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return (bool) $value;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  'ъ' => '-', 'Ь' => '-', 'Ъ' => '-', 'ь' => '-',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

                  'Š' => 'S', 'Ț' => 'T', 'Ù' => 'U', 'Û' => 'U', 'Ú' => 'U', 'Ü' => 'Ue', 'Ý' => 'Y', 'Ź' => 'Z', 'Ž' => 'Z',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      $result[$key] = $item;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return $result;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      } else {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  } else {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  $value = iconv($fromCharset, $toCharset, $value);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param int          $flag
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Þ' => 'B', 'Ć' => 'C', 'ץ' => 'C', 'Ç' => 'C', 'È' => 'E', 'Ę' => 'E', 'É' => 'E', 'Ë' => 'E', 'Ê' => 'E',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

                  'Ă' => 'A', 'Ą' => 'A', 'À' => 'A', 'Ã' => 'A', 'Á' => 'A', 'Æ' => 'A', 'Â' => 'A', 'Å' => 'A', 'Ä' => 'Ae',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param array $array1
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      $array1[$key] = $value;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function convertCharacterEncoding($value, $fromCharset, $toCharset)
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Convert string from encoding to encoding.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return $content != strip_tags($content);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              $content = trim($content);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string       $comment
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              if (false !== $value = file_put_contents($pathDirectory, $content, $flag)) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return bool $value
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  'Ă' => 'A', 'Ą' => 'A', 'À' => 'A', 'Ã' => 'A', 'Á' => 'A', 'Æ' => 'A', 'Â' => 'A', 'Å' => 'A', 'Ä' => 'Ae',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  'Þ' => 'B', 'Ć' => 'C', 'ץ' => 'C', 'Ç' => 'C', 'È' => 'E', 'Ę' => 'E', 'É' => 'E', 'Ë' => 'E', 'Ê' => 'E',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $fromCharset
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Function to check is a html message.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param bool         $return
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  $content = "<?php \n/**  {$comment}  */\n{$content}\n";
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

                  'А' => 'a', 'å' => 'a', 'à' => 'a', 'א' => 'a', 'Ǻ' => 'a', 'Ā' => 'a', 'ǻ' => 'a', 'ā' => 'a', 'ä' => 'ae',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param array $array2
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              } else {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              if ('<' === substr($content, 0, 1) && '>' === substr($content, -1)) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return trim(preg_replace('/[ \t\n]+/', ' ', strip_tags($content)));
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  'Š' => 'S', 'Ț' => 'T', 'Ù' => 'U', 'Û' => 'U', 'Ú' => 'U', 'Ü' => 'Ue', 'Ý' => 'Y', 'Ź' => 'Z', 'Ž' => 'Z',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Merge two arrays.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              if ($comment) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Replacement for the ucfirst function for proper Multibyte String operation.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  'А' => 'a', 'å' => 'a', 'à' => 'a', 'א' => 'a', 'Ǻ' => 'a', 'Ā' => 'a', 'ǻ' => 'a', 'ā' => 'a', 'ä' => 'ae',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Ċ' => 'c', 'ć' => 'c', 'ç' => 'c', 'ц' => 'c', 'צ' => 'c', 'ċ' => 'c', 'Ц' => 'c', 'Č' => 'c', 'č' => 'c',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                      if (\is_array($array1[$key]) && \is_array($value)) {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                          $array1[$key] = self::merge($array1[$key], $value);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          /**
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              $replace = [
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 133 characters
      Open

                  'æ' => 'ae', 'Ǽ' => 'ae', 'ǽ' => 'ae',    'б' => 'b', 'ב' => 'b', 'Б' => 'b', 'þ' => 'b',    'ĉ' => 'c', 'Ĉ' => 'c',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function merge(array $array1, array $array2): array
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @return string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           */
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * Delete function will exist as mb_ucfirst.
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function mbUcfirst($string)
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           *
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $delimiter
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

           * @param string $toCharset
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  $value = mb_convert_encoding($value, $toCharset, $fromCharset);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          public static function htmlToText(string $content): string
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  $content = self::varExport($content);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

                  $content = "<?php $content" . PHP_EOL;
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

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

              return mb_strtoupper(mb_substr($string, 0, 1)) . mb_substr($string, 1);
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ū' => 'u', 'у' => 'u', 'Ũ' => 'u', 'ũ' => 'u', 'Ư' => 'u', 'ư' => 'u', 'Ū' => 'u', 'Ǔ' => 'u', 'ų' => 'u',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

                  'ǖ' => 'u', 'ǘ' => 'u', 'ü' => 'ue', 'в' => 'v', 'ו' => 'v', 'В' => 'v', 'ש' => 'w', 'ŵ' => 'w', 'Ŵ' => 'w',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

                  'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'PS', 'Ω' => 'W', 'Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ы' => 'y', 'ŷ' => 'y', 'ý' => 'y', 'ÿ' => 'y', 'Ÿ' => 'y', 'Ŷ' => 'y', 'Ы' => 'y', 'ž' => 'z', 'З' => 'z',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 130 characters
      Open

                  'Ч' => 'ch', 'ч' => 'ch', 'ד' => 'd', 'ď' => 'd', 'Đ' => 'd', 'Ď' => 'd', 'đ' => 'd', 'д' => 'd', 'Д' => 'D',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'о' => 'o', 'О' => 'o', 'ő' => 'o', 'õ' => 'o', 'ô' => 'o', 'Ő' => 'o', 'ŏ' => 'o', 'Ŏ' => 'o', 'Ō' => 'o',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ș' => 's', 'с' => 's', 'Ŝ' => 's', 'š' => 's', 'ś' => 's', 'ס' => 's', 'ş' => 's', 'С' => 's', 'ŝ' => 's',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ĸ' => 'k', 'כ' => 'k', 'Ķ' => 'k', 'К' => 'k', 'к' => 'k', 'ķ' => 'k', 'ך' => 'k', 'Ŀ' => 'l', 'ŀ' => 'l',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 122 characters
      Open

                  'Щ' => 'sch', 'щ' => 'sch', 'ш' => 'sh', 'Ш' => 'sh', 'ß' => 'ss', 'т' => 't', 'ט' => 't', 'ŧ' => 't',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 130 characters
      Open

                  '©' => '(c)', 'Α' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D', 'Ε' => 'E', 'Ζ' => 'Z', 'Η' => 'H', 'Ι' => 'I',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ŕ' => 'r', 'ř' => 'r', 'Ř' => 'r', 'ŗ' => 'r', 'Ŗ' => 'r', 'ר' => 'r', 'Ŕ' => 'r', 'Р' => 'r', 'р' => 'r',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

                  'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P',    'Ρ' => 'R', 'Σ' => 'S',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Ό' => 'O', 'Ύ' => 'Y', 'Ή' => 'H', 'Ώ' => 'W', 'Ϊ' => 'I', 'Ϋ' => 'Y', 'α' => 'a', 'β' => 'b', 'γ' => 'g',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ð' => 'd', 'є' => 'e', 'ע' => 'e', 'е' => 'e', 'Е' => 'e', 'Ə' => 'e', 'ę' => 'e', 'ĕ' => 'e', 'ē' => 'e',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ל' => 'l', 'מ' => 'm', 'М' => 'm', 'ם' => 'm', 'м' => 'm', 'ñ' => 'n', 'н' => 'n', 'Ņ' => 'n', 'ן' => 'n',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 129 characters
      Open

                  'χ' => 'x', 'ψ' => 'ps', 'ω' => 'w', 'ά' => 'a', 'έ' => 'e', 'ί' => 'i', 'ό' => 'o', 'ύ' => 'y', 'ή' => 'h',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ǐ' => 'i', 'Ĩ' => 'i', 'Ǐ' => 'i', 'и' => 'i', 'Į' => 'i', 'י' => 'i', 'Ї' => 'i', 'Ī' => 'i', 'І' => 'i',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Ų' => 'u', 'ŭ' => 'u', 'Ŭ' => 'u', 'Ů' => 'u', 'ů' => 'u', 'ű' => 'u', 'Ű' => 'u', 'Ǖ' => 'u', 'ǔ' => 'u',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 130 characters
      Open

                  'з' => 'z', 'ź' => 'z', 'ז' => 'z', 'ż' => 'z', 'ſ' => 'z', 'Ж' => 'zh', 'ж' => 'zh', 'Ð' => 'D', 'Θ' => '8',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ח' => 'h', 'ħ' => 'h', 'Х' => 'h', 'Ħ' => 'h', 'Ĥ' => 'h', 'ĥ' => 'h', 'х' => 'h', 'ה' => 'h', 'î' => 'i',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'è' => 'e', 'ë' => 'e', 'é' => 'e', 'ф' => 'f', 'ƒ' => 'f', 'Ф' => 'f', 'ġ' => 'g', 'Ģ' => 'g', 'Ġ' => 'g',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'h', 'θ' => '8', 'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Ē' => 'e', 'Ė' => 'e', 'ė' => 'e', 'ě' => 'e', 'Ě' => 'e', 'Є' => 'e', 'Ĕ' => 'e', 'ê' => 'e', 'ə' => 'e',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ŋ' => 'n', 'נ' => 'n', 'Н' => 'n', 'ń' => 'n', 'Ŋ' => 'n', 'ņ' => 'n', 'ʼn' => 'n', 'Ň' => 'n', 'ň' => 'n',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 131 characters
      Open

                  'Ơ' => 'o', 'œ' => 'oe', 'Œ' => 'oe', 'ö' => 'oe', 'פ' => 'p', 'ף' => 'p', 'п' => 'p', 'П' => 'p', 'ק' => 'q',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 123 characters
      Open

                  'я' => 'ja', 'Я' => 'ja', 'Э' => 'je', 'э' => 'je', 'ё' => 'jo', 'Ё' => 'jo', 'ю' => 'ju', 'Ю' => 'ju',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ō' => 'o', 'ø' => 'o', 'ǿ' => 'o', 'ǒ' => 'o', 'ò' => 'o', 'Ǿ' => 'o', 'Ǒ' => 'o', 'ơ' => 'o', 'ó' => 'o',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ν' => 'n', 'ξ' => '3', 'ο' => 'o', 'π' => 'p', 'ρ' => 'r', 'σ' => 's', 'τ' => 't', 'υ' => 'y', 'φ' => 'f',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Ĝ' => 'g', 'Г' => 'g', 'г' => 'g', 'ĝ' => 'g', 'ğ' => 'g', 'ג' => 'g', 'Ґ' => 'g', 'ґ' => 'g', 'ģ' => 'g',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 130 characters
      Open

                  'ת' => 't', 'ť' => 't', 'ţ' => 't', 'Ţ' => 't', 'Т' => 't', 'ț' => 't', 'Ŧ' => 't', 'Ť' => 't', '™' => 'tm',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'ï' => 'i', 'í' => 'i', 'ì' => 'i', 'į' => 'i', 'ĭ' => 'i', 'ı' => 'i', 'Ĭ' => 'i', 'И' => 'i', 'ĩ' => 'i',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 130 characters
      Open

                  'ї' => 'i', 'і' => 'i', 'ī' => 'i', 'ij' => 'ij', 'IJ' => 'ij', 'й' => 'j', 'Й' => 'j', 'Ĵ' => 'j', 'ĵ' => 'j',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Л' => 'l', 'ł' => 'l', 'ļ' => 'l', 'ĺ' => 'l', 'Ĺ' => 'l', 'Ļ' => 'l', 'л' => 'l', 'Ľ' => 'l', 'ľ' => 'l',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line exceeds 120 characters; contains 128 characters
      Open

                  'Ǜ' => 'u', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'У' => 'u', 'ǚ' => 'u', 'ǜ' => 'u', 'Ǚ' => 'u', 'Ǘ' => 'u',
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      Line indented incorrectly; expected at least 28 spaces, found 24
      Open

                              $newKey = "{$key}{$type}{$keySec}";
      Severity: Minor
      Found in app/Utils.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status