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