Completed
Push — develop ( 1cc4f3...6a89b9 )
by Oyebanji Jacob
05:01 queued 02:34
created

User

Complexity

Total Complexity 0

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 2 Features 0
Metric Value
wmc 0
c 3
b 2
f 0
lcom 0
cbo 1
dl 0
loc 4
1
<?php
2
3
require 'vendor/autoload.php';
4
5
use Pyjac\ORM\Model;
6
7
class User extends Model
8
{
9
	//protected $table = 'users';
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% 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...
10
}
11
12
13
14
$user = User::find(2);
15
$user->name = "jac";
16
$user->save();
17
18
$users = User::getAll();
19
var_dump($users);
20
21
22