@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManagerInterface; |
| 6 | 6 | use Kunstmaan\ConfigBundle\Entity\AbstractConfig; |
| 7 | -use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
|
| 8 | 7 | use Twig_Extension; |
| 9 | 8 | |
| 10 | 9 | /** |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Returns a list of functions to add to the existing list. |
| 19 | 19 | * |
| 20 | - * @return array An array of functions |
|
| 20 | + * @return \Twig_SimpleFunction[] An array of functions |
|
| 21 | 21 | */ |
| 22 | 22 | public function getFunctions() |
| 23 | 23 | { |
@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @param $configHelper |
| 24 | 24 | * @param $queryHelper |
| 25 | - * @param $output |
|
| 26 | - * @param $em |
|
| 25 | + * @param OutputInterface $output |
|
| 26 | + * @param EntityManager $em |
|
| 27 | 27 | */ |
| 28 | 28 | public function __construct($configHelper, $queryHelper, $output, $em) |
| 29 | 29 | { |
@@ -75,6 +75,7 @@ discard block |
||
| 75 | 75 | /** |
| 76 | 76 | * Executes the query |
| 77 | 77 | * |
| 78 | + * @param string $metrics |
|
| 78 | 79 | * @return array the resultset |
| 79 | 80 | */ |
| 80 | 81 | protected function executeQuery(AnalyticsOverview $overview, $metrics) { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * @Template() |
| 20 | 20 | * |
| 21 | 21 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 22 | - * @return array |
|
| 22 | + * @return \Symfony\Component\HttpFoundation\Response |
|
| 23 | 23 | */ |
| 24 | 24 | public function indexAction(Request $request, $segmentId=null) |
| 25 | 25 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @throws AccessDeniedException |
| 88 | 88 | * |
| 89 | - * @return array |
|
| 89 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
| 90 | 90 | */ |
| 91 | 91 | public function setTokenAction(Request $request) |
| 92 | 92 | { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @throws AccessDeniedException |
| 117 | 117 | * |
| 118 | - * @return array |
|
| 118 | + * @return \Symfony\Component\HttpFoundation\Response |
|
| 119 | 119 | */ |
| 120 | 120 | public function configAction(Request $request) |
| 121 | 121 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * Set overviews |
| 76 | 76 | * |
| 77 | 77 | * @param array $overviews |
| 78 | - * @return AnalyticsDailyOverviews |
|
| 78 | + * @return AnalyticsConfig |
|
| 79 | 79 | */ |
| 80 | 80 | public function setOverviews($overviews) |
| 81 | 81 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * Set segments |
| 99 | 99 | * |
| 100 | 100 | * @param array $segments |
| 101 | - * @return AnalyticsDailysegments |
|
| 101 | + * @return AnalyticsConfig |
|
| 102 | 102 | */ |
| 103 | 103 | public function setSegments($segments) |
| 104 | 104 | { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * |
| 133 | 133 | * @param string $name |
| 134 | 134 | * |
| 135 | - * @return Analyticsname |
|
| 135 | + * @return AnalyticsConfig |
|
| 136 | 136 | */ |
| 137 | 137 | public function setName($name) |
| 138 | 138 | { |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | /** |
| 134 | 134 | * Get visits |
| 135 | 135 | * |
| 136 | - * @return integer |
|
| 136 | + * @return string |
|
| 137 | 137 | */ |
| 138 | 138 | public function getVisits() |
| 139 | 139 | { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * |
| 158 | 158 | * @param integer $config |
| 159 | 159 | * |
| 160 | - * @return AnalyticsTopReferrals |
|
| 160 | + * @return AnalyticsOverview |
|
| 161 | 161 | */ |
| 162 | 162 | public function setConfig($config) |
| 163 | 163 | { |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | * |
| 182 | 182 | * @param integer $segment |
| 183 | 183 | * |
| 184 | - * @return AnalyticsTopReferrals |
|
| 184 | + * @return AnalyticsOverview |
|
| 185 | 185 | */ |
| 186 | 186 | public function setSegment($segment) |
| 187 | 187 | { |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | /** |
| 231 | 231 | * Set chartData |
| 232 | 232 | * |
| 233 | - * @param array $chartData |
|
| 233 | + * @param string $chartData |
|
| 234 | 234 | * @return $this |
| 235 | 235 | */ |
| 236 | 236 | public function setChartData($chartData) |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | /** |
| 291 | 291 | * Get returningUsers |
| 292 | 292 | * |
| 293 | - * @return string |
|
| 293 | + * @return integer |
|
| 294 | 294 | */ |
| 295 | 295 | public function getReturningUsers() |
| 296 | 296 | { |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | /** |
| 499 | 499 | * Get useYear |
| 500 | 500 | * |
| 501 | - * @return integer |
|
| 501 | + * @return boolean |
|
| 502 | 502 | */ |
| 503 | 503 | public function getUseYear() |
| 504 | 504 | { |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | * |
| 100 | 100 | * @param integer $config |
| 101 | 101 | * |
| 102 | - * @return AnalyticsTopReferrals |
|
| 102 | + * @return AnalyticsSegment |
|
| 103 | 103 | */ |
| 104 | 104 | public function setConfig($config) |
| 105 | 105 | { |
@@ -159,7 +159,6 @@ |
||
| 159 | 159 | /** |
| 160 | 160 | * saves the config name |
| 161 | 161 | * |
| 162 | - * @param string $profileId |
|
| 163 | 162 | */ |
| 164 | 163 | public function saveConfigName($name, $id=false) { |
| 165 | 164 | $em = $this->getEntityManager(); |