1 | <?php |
||
18 | class TagController extends ActionController |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Tag repository |
||
23 | * |
||
24 | * @var \HDNET\Tagger\Domain\Repository\TagRepository |
||
25 | * @inject |
||
26 | */ |
||
27 | protected $tagRepository; |
||
28 | |||
29 | /** |
||
30 | * Render the textcloud |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function textcloudAction() |
||
39 | |||
40 | /** |
||
41 | * Render a simple list |
||
42 | * |
||
43 | * @return void |
||
44 | */ |
||
45 | public function listAction() |
||
50 | |||
51 | /** |
||
52 | * Get the Tags by the current configuration |
||
53 | * |
||
54 | * @return array|QueryResultInterface |
||
55 | * @throws \Exception |
||
56 | * @todo Move the link to a pseudo field |
||
57 | * @todo Sort the preparation |
||
58 | * @todo weightscale |
||
59 | */ |
||
60 | protected function getTags() |
||
103 | |||
104 | /** |
||
105 | * Get link |
||
106 | * |
||
107 | * @param Tag $tag |
||
108 | * |
||
109 | * @return string |
||
110 | */ |
||
111 | protected function getLink(Tag $tag) |
||
128 | |||
129 | /** |
||
130 | * Parses data through typoscript. |
||
131 | * |
||
132 | * @param array $data |
||
133 | * @param array $configuration |
||
134 | * @param string $type |
||
135 | * |
||
136 | * @return string |
||
137 | */ |
||
138 | protected function renderSingle(array $data, array $configuration, $type = 'TEXT') |
||
144 | } |
||
145 |
This check looks for unreachable code. It uses sophisticated control flow analysis techniques to find statements which will never be executed.
Unreachable code is most often the result of
return
,die
orexit
statements that have been added for debug purposes.In the above example, the last
return false
will never be executed, because a return statement has already been met in every possible execution path.