Completed
Push — master ( 98b092...abc55c )
by Manel
04:26
created

Submodule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 18
rs 10
c 0
b 0
f 0
ccs 0
cts 4
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A type() 0 4 1
1
<?php
2
3
namespace Scool\EnrollmentMobile\Models;
4
5
use Acacha\Names\Traits\Nameable;
6
use Illuminate\Database\Eloquent\Model;
7
//use Scool\EnrollmentMobile\Traits\HasCourses;
0 ignored issues
show
Unused Code Comprehensibility introduced by
42% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
8
//use Scool\EnrollmentMobile\Traits\HasModules;
9
//use Scool\EnrollmentMobile\Traits\HasSpecialities;
10
//use Scool\EnrollmentMobile\Traits\HasClassrooms;
11
//use Scool\EnrollmentMobile\Traits\HasManyStudies;
12
13
/**
14
 * Class Submodule.
15
 *
16
 * @package Scool\EnrollmentMobile\Models
17
 */
18
class Submodule extends Model
19
{
20
//    use HasSpecialities, HasModules, HasClassrooms, HasCourses, HasManyStudies,Nameable;
0 ignored issues
show
Unused Code Comprehensibility introduced by
37% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
21
    use Nameable;
22
    /**
23
     * The attributes that are mass assignable.
24
     *
25
     * @var array
26
     */
27
    protected $fillable = ['name', 'order' , 'total_hours', 'week_hours', 'start_date', 'finish_date'];
28
    /**
29
     * Get the type os study submodule.
30
     */
31
    public function type()
32
    {
33
        return $this->belongsTo(SubmoduleType::class);
34
    }
35
}