private function addFlagsToOutput(array $entry, string $output): array
    {
        if (isset($entry['flags']) && \count($entry['flags']) !== 0) {
            $output .= '#, ' . \implode(', ', $entry['flags']) . $this->eol;
        }

        return [$entry, $output];
    }
private function addFlagsToOutput(array $entry, string $output): array
    {
        if (isset($entry['flags']) && \count($entry['flags']) !== 0) {
            $output .= '#, ' . \implode(', ', $entry['flags']) . $this->eol;
        }

        return [$entry, $output];
    }
private function addFlagsToOutput ( array $ entry , string $ output ) : array { if ( isset ( $ entry [ 'flags' ] ) && \ count ( $ entry [ 'flags' ] ) !== 0 ) { $ output .= '#, ' . \ implode ( ', ' , $ entry [ 'flags' ] ) . $ this -> eol ; } return [ $ entry , $ output ] ; }
Adds flags infos to the output.

@param array  $entry
@param string $output

@return array
Adds flags infos to the output .