Conditions | 2 |
Paths | 3 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
27 | 3 | public function validate() |
|
28 | { |
||
29 | try { |
||
30 | 3 | Resource::box( |
|
31 | 3 | $this->data, |
|
32 | 3 | new Configurator( |
|
33 | 3 | 'resource', |
|
34 | 3 | new Container(array( |
|
35 | 'resources' => array( |
||
36 | 'resource' => array( |
||
37 | 3 | 'constraints' => $this->constraints |
|
38 | ) |
||
39 | ) |
||
40 | )) |
||
41 | ) |
||
42 | ); |
||
43 | |||
44 | 2 | return Response::success(); |
|
45 | 1 | } catch (\Exception $e) { |
|
46 | 1 | $this->error = $e->getMessage(); |
|
47 | 1 | return Response::failure(); |
|
48 | } |
||
49 | } |
||
50 | |||
56 |