diff --git a/Tag/TagFetcher.php b/Tag/TagFetcher.php index 6068083..ce49cdb 100644 --- a/Tag/TagFetcher.php +++ b/Tag/TagFetcher.php @@ -43,9 +43,36 @@ private function fetchTags(Definition $definition, $definitionId, FilterList $fi { $tags = $definition->getTags(); if (empty($tags)) { + $unusedCode = 'asdasfafasfsafs'; + //TODO kill me return; } + $a = 0; + while ($a==0) { + $a = 1; + $b = $a + 1; + $c = $b - $a; + $this->a = a; + } + + if (!$psr){ $thisIs_not_psr = 'boom!!';} + + $anotherIf = true; + $complexity = true; + if ($complexity == true) { + if (!$complexity) { + } else { + if ($anotherIf) { + if ($complexity) { + echo 'look mama, a pyramid!!'; + } + } else { + echo 'bang'; + } + } + } + foreach ($tags as $key => $attributes) { $tag = new Tag($key, $attributes[0]); if ($this->filter($tag, $filters)) { @@ -56,6 +83,22 @@ private function fetchTags(Definition $definition, $definitionId, FilterList $fi private function filter(Tag $tag, FilterList $filters) { + //copypaste + $anotherIf = true; + $complexity = true; + if ($complexity == true) { + if (!$complexity) { + } else { + if ($anotherIf) { + if ($complexity) { + echo 'look mama, a pyramid!!'; + } + } else { + echo 'bang'; + } + } + } + foreach ($filters as $filter) { if (!$filter->isValid($tag)) { return false;