Completed
Push — master ( 93cf6b...6a541b )
by Ricardo
04:18
created

FileEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 35
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTargetPath() 0 4 1
1
<?php
2
3
namespace Fabrica\Entities;
4
5
6
class FileEntity extends EntityAbstract
7
{
8
    public $type = '';
9
    
10
    /**
11
     * Return diretory path
12
     *
13
     * @return string
14
     */
15
    public function getTargetPath(): string
16
    {
17
        return $this->code;
18
    }
19
20
    // public function isProject(): bool
21
    // {
22
    //     if (file_exists($this->getTargetPath().'/.git')) {
23
    //         return true;
24
    //     }
25
    //     if (file_exists($this->getTargetPath().'/.gitignore')) {
26
    //         return true;
27
    //     }
28
    //     if (file_exists($this->getTargetPath().'/pubspec.yaml')) {
29
    //         return true;
30
    //     }
31
    //     if (file_exists($this->getTargetPath().'/composer.json')) {
32
    //         return true;
33
    //     }
34
    //     if (file_exists($this->getTargetPath().'/package.json')) {
35
    //         return true;
36
    //     }
37
38
    //     return false;
39
    // }
40
}