Conditions | 3 |
Paths | 3 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function bundleVersionAction() |
||
40 | { |
||
41 | $this->denyAccessUnlessGranted('ROLE_SUPER_ADMIN'); |
||
42 | |||
43 | $versionChecker = $this->container->get('kunstmaan_admin.versionchecker'); |
||
44 | if (!$versionChecker->isEnabled()) { |
||
45 | return array('data' => null); |
||
46 | } |
||
47 | |||
48 | $data = null; |
||
49 | try { |
||
50 | $data = $versionChecker->check(); |
||
51 | } catch (\Exception $e) { |
||
52 | $this->container->get('logger')->error( |
||
53 | $e->getMessage(), |
||
54 | array('exception' => $e) |
||
55 | ); |
||
56 | } |
||
57 | |||
58 | return array( |
||
59 | 'data' => $data |
||
60 | ); |
||
61 | } |
||
62 | } |
||
63 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.