src/Core/Console/PluginInstallCommand.php
protected function setPluginHeaders(string $name, array $headers)
    {
        $this->info('Set plugin headers...');

        $path = $this->path($name.'/plugin-name.php');
        $handle = fopen($path, 'r');
        $content = [];

        while (($line = fgets($handle)) !== false) {
            $content[] = $this->parseLine($line, $headers);
        }

        fclose($handle);

        $this->files->put($path, implode('', $content), true);
    }
protected function setPluginHeaders(string $name, array $headers)
    {
        $this->info('Set plugin headers...');

        $path = $this->path($name.'/plugin-name.php');
        $handle = fopen($path, 'r');
        $content = [];

        while (($line = fgets($handle)) !== false) {
            $content[] = $this->parseLine($line, $headers);
        }

        fclose($handle);

        $this->files->put($path, implode('', $content), true);
    }
protected function setPluginHeaders ( string $ name , array $ headers ) { $ this -> info ( 'Set plugin headers...' ) ; $ path = $ this -> path ( $ name . '/plugin-name.php' ) ; $ handle = fopen ( $ path , 'r' ) ; $ content = [ ] ; while ( ( $ line = fgets ( $ handle ) ) !== false ) { $ content [ ] = $ this -> parseLine ( $ line , $ headers ) ; } fclose ( $ handle ) ; $ this -> files -> put ( $ path , implode ( '' , $ content ) , true ) ; }
Setup the plugin headers.

@param string $name
@param array  $headers
Setup the plugin headers .