Conditions | 3 |
Paths | 5 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
42 | public function getTheme() |
||
43 | { |
||
44 | try { |
||
45 | /** @var ChannelInterface $channel */ |
||
46 | $channel = $this->channelContext->getChannel(); |
||
47 | |||
48 | return $channel->getTheme(); |
||
49 | } catch (ChannelNotFoundException $exception) { |
||
50 | return null; |
||
51 | } catch (\Exception $exception) { |
||
52 | return null; |
||
53 | } |
||
54 | } |
||
55 | } |
||
56 |