@@ -245,9 +245,9 @@ discard block |
||
| 245 | 245 | /** |
| 246 | 246 | * Set redirectTo. |
| 247 | 247 | * |
| 248 | - * @param View $redirectTo |
|
| 248 | + * @param Link $redirectTo |
|
| 249 | 249 | * |
| 250 | - * @return PageSeo |
|
| 250 | + * @return PageSeoTranslation |
|
| 251 | 251 | */ |
| 252 | 252 | public function setRedirectTo(Link $redirectTo) |
| 253 | 253 | { |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | * |
| 272 | 272 | * @param string $metaTitle |
| 273 | 273 | * |
| 274 | - * @return PageSeo |
|
| 274 | + * @return PageSeoTranslation |
|
| 275 | 275 | */ |
| 276 | 276 | public function setMetaTitle($metaTitle) |
| 277 | 277 | { |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | * |
| 296 | 296 | * @param string $metaDescription |
| 297 | 297 | * |
| 298 | - * @return PageSeo |
|
| 298 | + * @return PageSeoTranslation |
|
| 299 | 299 | */ |
| 300 | 300 | public function setMetaDescription($metaDescription) |
| 301 | 301 | { |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | * |
| 320 | 320 | * @param string $relAuthor |
| 321 | 321 | * |
| 322 | - * @return PageSeo |
|
| 322 | + * @return PageSeoTranslation |
|
| 323 | 323 | */ |
| 324 | 324 | public function setRelAuthor($relAuthor) |
| 325 | 325 | { |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | * |
| 344 | 344 | * @param string $relPublisher |
| 345 | 345 | * |
| 346 | - * @return PageSeo |
|
| 346 | + * @return PageSeoTranslation |
|
| 347 | 347 | */ |
| 348 | 348 | public function setRelPublisher($relPublisher) |
| 349 | 349 | { |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | * |
| 368 | 368 | * @param string $ogTitle |
| 369 | 369 | * |
| 370 | - * @return PageSeo |
|
| 370 | + * @return PageSeoTranslation |
|
| 371 | 371 | */ |
| 372 | 372 | public function setOgTitle($ogTitle) |
| 373 | 373 | { |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | * |
| 392 | 392 | * @param string $ogType |
| 393 | 393 | * |
| 394 | - * @return PageSeo |
|
| 394 | + * @return PageSeoTranslation |
|
| 395 | 395 | */ |
| 396 | 396 | public function setOgType($ogType) |
| 397 | 397 | { |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | * |
| 416 | 416 | * @param Image $ogImage |
| 417 | 417 | * |
| 418 | - * @return PageSeo |
|
| 418 | + * @return PageSeoTranslation |
|
| 419 | 419 | */ |
| 420 | 420 | public function setOgImage($ogImage) |
| 421 | 421 | { |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | * |
| 440 | 440 | * @param string $ogUrl |
| 441 | 441 | * |
| 442 | - * @return PageSeo |
|
| 442 | + * @return PageSeoTranslation |
|
| 443 | 443 | */ |
| 444 | 444 | public function setOgUrl($ogUrl) |
| 445 | 445 | { |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | * |
| 464 | 464 | * @param string $ogDescription |
| 465 | 465 | * |
| 466 | - * @return PageSeo |
|
| 466 | + * @return PageSeoTranslation |
|
| 467 | 467 | */ |
| 468 | 468 | public function setOgDescription($ogDescription) |
| 469 | 469 | { |
@@ -487,7 +487,7 @@ discard block |
||
| 487 | 487 | * |
| 488 | 488 | * @param string $fbAdmins |
| 489 | 489 | * |
| 490 | - * @return PageSeo |
|
| 490 | + * @return PageSeoTranslation |
|
| 491 | 491 | */ |
| 492 | 492 | public function setFbAdmins($fbAdmins) |
| 493 | 493 | { |
@@ -511,7 +511,7 @@ discard block |
||
| 511 | 511 | * |
| 512 | 512 | * @param string $twitterCard |
| 513 | 513 | * |
| 514 | - * @return PageSeo |
|
| 514 | + * @return PageSeoTranslation |
|
| 515 | 515 | */ |
| 516 | 516 | public function setTwitterCard($twitterCard) |
| 517 | 517 | { |
@@ -535,7 +535,7 @@ discard block |
||
| 535 | 535 | * |
| 536 | 536 | * @param string $twitterUrl |
| 537 | 537 | * |
| 538 | - * @return PageSeo |
|
| 538 | + * @return PageSeoTranslation |
|
| 539 | 539 | */ |
| 540 | 540 | public function setTwitterUrl($twitterUrl) |
| 541 | 541 | { |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | * |
| 560 | 560 | * @param string $twitterCreator |
| 561 | 561 | * |
| 562 | - * @return PageSeo |
|
| 562 | + * @return PageSeoTranslation |
|
| 563 | 563 | */ |
| 564 | 564 | public function setTwitterCreator($twitterCreator) |
| 565 | 565 | { |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | * |
| 584 | 584 | * @param string $twitterTitle |
| 585 | 585 | * |
| 586 | - * @return PageSeo |
|
| 586 | + * @return PageSeoTranslation |
|
| 587 | 587 | */ |
| 588 | 588 | public function setTwitterTitle($twitterTitle) |
| 589 | 589 | { |
@@ -607,7 +607,7 @@ discard block |
||
| 607 | 607 | * |
| 608 | 608 | * @param string $twitterDescription |
| 609 | 609 | * |
| 610 | - * @return PageSeo |
|
| 610 | + * @return PageSeoTranslation |
|
| 611 | 611 | */ |
| 612 | 612 | public function setTwitterDescription($twitterDescription) |
| 613 | 613 | { |
@@ -631,7 +631,7 @@ discard block |
||
| 631 | 631 | * |
| 632 | 632 | * @param Image $twitterImage |
| 633 | 633 | * |
| 634 | - * @return PageSeo |
|
| 634 | + * @return PageSeoTranslation |
|
| 635 | 635 | */ |
| 636 | 636 | public function setTwitterImage($twitterImage) |
| 637 | 637 | { |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | * |
| 656 | 656 | * @param string $schemaPageType |
| 657 | 657 | * |
| 658 | - * @return PageSeo |
|
| 658 | + * @return PageSeoTranslation |
|
| 659 | 659 | */ |
| 660 | 660 | public function setSchemaPageType($schemaPageType) |
| 661 | 661 | { |
@@ -679,7 +679,7 @@ discard block |
||
| 679 | 679 | * |
| 680 | 680 | * @param string $schemaName |
| 681 | 681 | * |
| 682 | - * @return PageSeo |
|
| 682 | + * @return PageSeoTranslation |
|
| 683 | 683 | */ |
| 684 | 684 | public function setSchemaName($schemaName) |
| 685 | 685 | { |
@@ -703,7 +703,7 @@ discard block |
||
| 703 | 703 | * |
| 704 | 704 | * @param string $schemaDescription |
| 705 | 705 | * |
| 706 | - * @return PageSeo |
|
| 706 | + * @return PageSeoTranslation |
|
| 707 | 707 | */ |
| 708 | 708 | public function setSchemaDescription($schemaDescription) |
| 709 | 709 | { |
@@ -727,7 +727,7 @@ discard block |
||
| 727 | 727 | * |
| 728 | 728 | * @param Image $schemaImage |
| 729 | 729 | * |
| 730 | - * @return PageSeo |
|
| 730 | + * @return PageSeoTranslation |
|
| 731 | 731 | */ |
| 732 | 732 | public function setSchemaImage($schemaImage) |
| 733 | 733 | { |
@@ -751,7 +751,7 @@ discard block |
||
| 751 | 751 | * |
| 752 | 752 | * @param string $metaRobotsIndex |
| 753 | 753 | * |
| 754 | - * @return PageSeo |
|
| 754 | + * @return PageSeoTranslation |
|
| 755 | 755 | */ |
| 756 | 756 | public function setMetaRobotsIndex($metaRobotsIndex) |
| 757 | 757 | { |
@@ -775,7 +775,7 @@ discard block |
||
| 775 | 775 | * |
| 776 | 776 | * @param string $metaRobotsFollow |
| 777 | 777 | * |
| 778 | - * @return PageSeo |
|
| 778 | + * @return PageSeoTranslation |
|
| 779 | 779 | */ |
| 780 | 780 | public function setMetaRobotsFollow($metaRobotsFollow) |
| 781 | 781 | { |
@@ -799,7 +799,7 @@ discard block |
||
| 799 | 799 | * |
| 800 | 800 | * @param string $metaRobotsAdvanced |
| 801 | 801 | * |
| 802 | - * @return PageSeo |
|
| 802 | + * @return PageSeoTranslation |
|
| 803 | 803 | */ |
| 804 | 804 | public function setMetaRobotsAdvanced($metaRobotsAdvanced) |
| 805 | 805 | { |
@@ -823,7 +823,7 @@ discard block |
||
| 823 | 823 | * |
| 824 | 824 | * @param bool $sitemapIndexed |
| 825 | 825 | * |
| 826 | - * @return PageSeo |
|
| 826 | + * @return PageSeoTranslation |
|
| 827 | 827 | */ |
| 828 | 828 | public function setSitemapIndexed($sitemapIndexed) |
| 829 | 829 | { |
@@ -847,7 +847,7 @@ discard block |
||
| 847 | 847 | * |
| 848 | 848 | * @param float $sitemapPriority |
| 849 | 849 | * |
| 850 | - * @return PageSeo |
|
| 850 | + * @return PageSeoTranslation |
|
| 851 | 851 | */ |
| 852 | 852 | public function setSitemapPriority($sitemapPriority) |
| 853 | 853 | { |
@@ -871,7 +871,7 @@ discard block |
||
| 871 | 871 | * |
| 872 | 872 | * @param float $sitemapChangeFreq |
| 873 | 873 | * |
| 874 | - * @return PageSeo |
|
| 874 | + * @return PageSeoTranslation |
|
| 875 | 875 | */ |
| 876 | 876 | public function setSitemapChangeFreq($sitemapChangeFreq) |
| 877 | 877 | { |
@@ -883,7 +883,7 @@ discard block |
||
| 883 | 883 | /** |
| 884 | 884 | * Get sitemapChangeFreq. |
| 885 | 885 | * |
| 886 | - * @return float |
|
| 886 | + * @return string |
|
| 887 | 887 | */ |
| 888 | 888 | public function getSitemapChangeFreq() |
| 889 | 889 | { |
@@ -895,7 +895,7 @@ discard block |
||
| 895 | 895 | * |
| 896 | 896 | * @param string $relCanonical |
| 897 | 897 | * |
| 898 | - * @return PageSeo |
|
| 898 | + * @return PageSeoTranslation |
|
| 899 | 899 | */ |
| 900 | 900 | public function setRelCanonical($relCanonical) |
| 901 | 901 | { |
@@ -919,7 +919,7 @@ discard block |
||
| 919 | 919 | * |
| 920 | 920 | * @param string $keyword |
| 921 | 921 | * |
| 922 | - * @return PageSeo |
|
| 922 | + * @return PageSeoTranslation |
|
| 923 | 923 | */ |
| 924 | 924 | public function setKeyword($keyword) |
| 925 | 925 | { |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | * @param string $type The type of the widget we edit |
| 92 | 92 | * @param int $viewReference The view reference where attach the widget |
| 93 | 93 | * @param string $slot The slot where attach the widget |
| 94 | - * @param null $quantum The quantum number used to avoid same form name |
|
| 94 | + * @param integer $quantum The quantum number used to avoid same form name |
|
| 95 | 95 | * |
| 96 | 96 | * @throws Exception |
| 97 | 97 | * |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | while ($file = readdir($openFolder)) { |
| 153 | 153 | if ($file != '.' && $file != '..') { |
| 154 | 154 | // Remove file |
| 155 | - $recursiveDelete = function ($str) use (&$recursiveDelete) { |
|
| 155 | + $recursiveDelete = function($str) use (&$recursiveDelete) { |
|
| 156 | 156 | if (is_file($str)) { |
| 157 | 157 | return @unlink($str); |
| 158 | 158 | } elseif (is_dir($str)) { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | 'options' => [ |
| 51 | 51 | 'choices' => $this->getAllAvailableRoles($this->roleHierarchy), |
| 52 | 52 | 'choices_as_values' => true, |
| 53 | - 'choice_label' => function ($value) { |
|
| 53 | + 'choice_label' => function($value) { |
|
| 54 | 54 | return $value; |
| 55 | 55 | }, |
| 56 | 56 | ], |
@@ -443,7 +443,7 @@ |
||
| 443 | 443 | */ |
| 444 | 444 | private function getPageRoles(View $view) |
| 445 | 445 | { |
| 446 | - $insertAncestorRole = function (View $view = null) use (&$insertAncestorRole) { |
|
| 446 | + $insertAncestorRole = function(View $view = null) use (&$insertAncestorRole) { |
|
| 447 | 447 | if ($view === null) { |
| 448 | 448 | return; |
| 449 | 449 | } |
@@ -242,7 +242,7 @@ |
||
| 242 | 242 | * populate the page with given entity. |
| 243 | 243 | * |
| 244 | 244 | * @param View $page |
| 245 | - * @param BusinessEntity $entity |
|
| 245 | + * @param BusinessEntityInterface $entity |
|
| 246 | 246 | */ |
| 247 | 247 | public function updatePageWithEntity(BusinessTemplate $page, $entity) |
| 248 | 248 | { |
@@ -190,7 +190,7 @@ |
||
| 190 | 190 | /** |
| 191 | 191 | * Get category. |
| 192 | 192 | * |
| 193 | - * @return string |
|
| 193 | + * @return Category |
|
| 194 | 194 | */ |
| 195 | 195 | public function getCategory() |
| 196 | 196 | { |
@@ -156,8 +156,8 @@ |
||
| 156 | 156 | /** |
| 157 | 157 | * Get PageSeo. |
| 158 | 158 | * |
| 159 | - * @param string $method leftJoin|innerJoin |
|
| 160 | 159 | * |
| 160 | + * @param string $locale |
|
| 161 | 161 | * @return ViewRepository |
| 162 | 162 | */ |
| 163 | 163 | public function joinTranslations($locale) |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Victoire\Bundle\CoreBundle\Repository; |
| 4 | 4 | |
| 5 | -use Doctrine\ORM\Query; |
|
| 6 | 5 | use Doctrine\ORM\Query\Expr; |
| 7 | 6 | use Gedmo\Tree\Entity\Repository\NestedTreeRepository; |
| 8 | 7 | use Victoire\Bundle\CoreBundle\Entity\View; |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | $pageId = $page->getId(); |
| 90 | 90 | $viewReference = array_filter( |
| 91 | 91 | $viewReferences, |
| 92 | - function ($e) use ($pageId) { |
|
| 92 | + function($e) use ($pageId) { |
|
| 93 | 93 | return $e->getViewId() == $pageId; |
| 94 | 94 | }); |
| 95 | 95 | if (!empty($viewReference[0])) { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | 'class' => 'Victoire\Bundle\BlogBundle\Entity\Blog', |
| 27 | 27 | 'property' => 'name', |
| 28 | 28 | 'preferred_choices' => $options['blog'] ? [$options['blog']] : [], |
| 29 | - 'query_builder' => function (EntityRepository $er) use ($options) { |
|
| 29 | + 'query_builder' => function(EntityRepository $er) use ($options) { |
|
| 30 | 30 | return $er->joinTranslations($options['locale'])->getInstance(); |
| 31 | 31 | }, |
| 32 | 32 | ] |
@@ -22,7 +22,6 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * Construct. |
| 24 | 24 | * |
| 25 | - * @param EngineInterface $templating |
|
| 26 | 25 | * @param $victoireTwigResponsive |
| 27 | 26 | * @param $kernelRootDir |
| 28 | 27 | * |
@@ -39,9 +38,9 @@ discard block |
||
| 39 | 38 | /** |
| 40 | 39 | * Update css by removing old file and writing new file. |
| 41 | 40 | * |
| 42 | - * @param $oldHash |
|
| 41 | + * @param string $oldHash |
|
| 43 | 42 | * @param View $view |
| 44 | - * @param array $widgets |
|
| 43 | + * @param \Victoire\Bundle\WidgetBundle\Entity\Widget[] $widgets |
|
| 45 | 44 | */ |
| 46 | 45 | public function updateViewCss($oldHash, View $view, array $widgets) |
| 47 | 46 | { |
@@ -159,7 +158,7 @@ discard block |
||
| 159 | 158 | * Write css file. |
| 160 | 159 | * |
| 161 | 160 | * @param $view |
| 162 | - * @param $css |
|
| 161 | + * @param string $css |
|
| 163 | 162 | */ |
| 164 | 163 | private function writeCssFile(View $view, $css) |
| 165 | 164 | { |