for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fabrica\Entities;
class DirectoryEntity extends EntityAbstract
{
public $files = [];
public $directorys = [];
/**
* Return diretory path
*
* @return string
*/
public function getTargetPath(): string
return $this->code;
}
public function isProject(): bool
if (file_exists($this->getTargetPath().'/.git')) {
return true;
if (file_exists($this->getTargetPath().'/.gitignore')) {
if (file_exists($this->getTargetPath().'/pubspec.yaml')) {
if (file_exists($this->getTargetPath().'/composer.json')) {
if (file_exists($this->getTargetPath().'/package.json')) {
return false;