victormech / ditesto Goto Github PK
View Code? Open in Web Editor NEWObject Oriented library to manipulate text files with PHP
License: MIT License
Object Oriented library to manipulate text files with PHP
License: MIT License
Avoid unused private fields such as '$validator'.
private $validator;
in src/TextFileWriter.php, line 12
The class
LazyEight\DiTesto\ValueObject\File
is declared but never used. You should remove theuse
statement.
namespace LazyEight\DiTesto;
use LazyEight\DiTesto\Validator\TextFileWriterValidator;
use LazyEight\DiTesto\ValueObject\File;
use LazyEight\DiTesto\ValueObject\TextFile\TextFile;
class TextFileWriter
{
/**
Posted from SensioLabsInsight
in src/Validator/TextFileWriterValidator.php, line 85
This file ends with no newline character. It won't render properly on a terminal, and it's considered a bad practice. Add a simple line feed as the last character to fix it.
*/
protected function getFileLocation()
{
return $this->file->getLocation();
}
}
Posted from SensioLabsInsight
in src/Validator/TextFileWriterValidator.php, line 13
The class
LazyEight\DiTesto\ValueObject\FileLocation
is declared but never used. You should remove theuse
statement.
namespace LazyEight\DiTesto\Validator;
use LazyEight\DiTesto\Exceptions\InvalidFileLocationException;
use LazyEight\DiTesto\ValueObject\FileLocation;
use LazyEight\DiTesto\ValueObject\TextFile\TextFile;
class TextFileWriterValidator extends AbstractTextFileValidator
{
/**
Posted from SensioLabsInsight
in src/Parser/TextContentParser.php, line 51
This file ends with no newline character. It won't render properly on a terminal, and it's considered a bad practice. Add a simple line feed as the last character to fix it.
foreach ($arrLines as $value) {
$lines[] = new Line($value);
}
return $lines;
}
}
Posted from SensioLabsInsight
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.