original_string: private function flatten(array $array, array &$result, string $keySeparator, string $parentKey = '', bool $escapeFormulas = false)
      {
          foreach ($array as $key => $value) {
              if (\is_array($value)) {
                  $this->flatten($value, $result, $keySeparator, $parentKey.$key.$keySeparator, $escapeFormulas);
              } else {
                  if ($escapeFormulas && \in_array(substr($value, 0, 1), $this->formulasStartCharacters, true)) {
                      $result[$parentKey.$key] = "\t".$value;
                  } else {
                      $result[$parentKey.$key] = $value;
                  }
              }
          }
      }
code: private function flatten(array $array, array &$result, string $keySeparator, string $parentKey = '', bool $escapeFormulas = false)
      {
          foreach ($array as $key => $value) {
              if (\is_array($value)) {
                  $this->flatten($value, $result, $keySeparator, $parentKey.$key.$keySeparator, $escapeFormulas);
              } else {
                  if ($escapeFormulas && \in_array(substr($value, 0, 1), $this->formulasStartCharacters, true)) {
                      $result[$parentKey.$key] = "\t".$value;
                  } else {
                      $result[$parentKey.$key] = $value;
                  }
              }
          }
      }
code_tokens: private function flatten ( array $ array , array & $ result , string $ keySeparator , string $ parentKey = '' , bool $ escapeFormulas = false ) { foreach ( $ array as $ key => $ value ) { if ( \ is_array ( $ value ) ) { $ this -> flatten ( $ value , $ result , $ keySeparator , $ parentKey . $ key . $ keySeparator , $ escapeFormulas ) ; } else { if ( $ escapeFormulas && \ in_array ( substr ( $ value , 0 , 1 ) , $ this -> formulasStartCharacters , true ) ) { $ result [ $ parentKey . $ key ] = "\t" . $ value ; } else { $ result [ $ parentKey . $ key ] = $ value ; } } } }
docstring: Flattens an array and generates keys including the path.
docstring_tokens: Flattens an array and generates keys including the path .