Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Distilleries\Expendable\Models; |
||
27 | 4 | public function unlock() |
|
28 | { |
||
29 | |||
30 | 4 | \DB::table($this->getTable()) |
|
31 | 4 | ->where($this->getKeyName(), $this->getKey()) |
|
32 | 4 | ->decrement($this->column_nb_of_try_name, $this->{$this->column_nb_of_try_name}); |
|
33 | |||
34 | 4 | $this->{$this->column_nb_of_try_name} = 0; |
|
35 | 4 | return $this; |
|
36 | |||
50 | } |