for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EddIriarte\Console\Helpers;
use Symfony\Component\Console\Input\StreamableInputInterface;
/**
* Trait OptionChunks
* @package EddIriarte\Console\Helpers
* @author Eduardo Iriarte <eddiriarte[at]gmail[dot]com>
*/
trait StreamableInput
{
* @var resource
protected $inputStream;
* @return bool|resource
protected function getInputStream()
if (empty($this->inputStream) && $this->input instanceof StreamableInputInterface) {
input
EddIriarte\Console\Helpers\StreamableInput
inputStream
$this->inputStream = $this->input->getStream() ?: STDIN;
}
return $this->inputStream;
This check marks files that end in a newline character, i.e. an empy line.