Store   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 16
rs 10
c 3
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A after() 0 4 1
1
<?php namespace Cerbero\Auth\Pipes\Recover;
2
3
use Cerbero\Auth\Pipes\AbstractPipe;
4
use Cerbero\Auth\Repositories\UserRepositoryInterface;
5
6
class Store extends AbstractPipe {
7
8
	/**
9
	 * Run after the handled job.
10
	 *
11
	 * @param	Cerbero\Auth\Repositories\UserRepositoryInterface	$user
12
	 * @param	mixed	$handled
13
	 * @param	Cerbero\Auth\Jobs\RecoverJob	$job
14
	 * @return	mixed
15
	 */
16
	public function after(UserRepositoryInterface $user, $handled, $job)
17
	{
18
		$user->assignResetToken($handled, $job->email);
19
	}
20
21
}
22