@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Get Twig functions defined in this extension. |
| 31 | 31 | * |
| 32 | - * @return array |
|
| 32 | + * @return \Twig_SimpleFunction[] |
|
| 33 | 33 | */ |
| 34 | 34 | public function getFunctions() |
| 35 | 35 | { |
@@ -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 | { |
@@ -5,8 +5,6 @@ |
||
| 5 | 5 | use Twig_Environment; |
| 6 | 6 | use Twig_Extension; |
| 7 | 7 | |
| 8 | -use Kunstmaan\AdminBundle\Helper\FormWidgets\Tabs\TabPane; |
|
| 9 | - |
|
| 10 | 8 | /** |
| 11 | 9 | * Extension to render blocks of twig templates |
| 12 | 10 | */ |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | * Construct Exception. |
| 15 | 15 | * |
| 16 | 16 | * @param string $message Message |
| 17 | - * @param mixed $data |
|
| 17 | + * @param string $data |
|
| 18 | 18 | * @param int $code |
| 19 | 19 | * @param \Throwable $previous |
| 20 | 20 | */ |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * Returns a list of functions to add to the existing list. |
| 18 | 18 | * |
| 19 | - * @return array An array of functions |
|
| 19 | + * @return Twig_SimpleFunction[] An array of functions |
|
| 20 | 20 | */ |
| 21 | 21 | public function getFunctions() |
| 22 | 22 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Kunstmaan\ArticleBundle\AdminList; |
| 4 | 4 | |
| 5 | -use Doctrine\ORM\EntityManager; |
|
| 6 | 5 | use Doctrine\ORM\EntityManagerInterface; |
| 7 | 6 | use Doctrine\ORM\QueryBuilder; |
| 8 | 7 | use Kunstmaan\AdminBundle\Helper\Security\Acl\AclHelper; |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Kunstmaan\ArticleBundle\PagePartAdmin\AbstractArticlePagePagePartAdminConfigurator; |
| 8 | 8 | use Kunstmaan\NodeBundle\Entity\AbstractPage; |
| 9 | 9 | use Kunstmaan\PagePartBundle\Helper\HasPagePartsInterface; |
| 10 | -use Symfony\Component\Form\AbstractType; |
|
| 11 | 10 | |
| 12 | 11 | abstract class AbstractArticlePage extends AbstractPage implements HasPagePartsInterface |
| 13 | 12 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Set the summary of this article |
| 50 | - * @param $summary |
|
| 50 | + * @param string $summary |
|
| 51 | 51 | */ |
| 52 | 52 | public function setSummary($summary) |
| 53 | 53 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * @return array |
|
| 89 | + * @return AbstractArticlePagePagePartAdminConfigurator[] |
|
| 90 | 90 | */ |
| 91 | 91 | public function getPagePartAdminConfigurations() |
| 92 | 92 | { |
@@ -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 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManagerInterface; |
| 6 | 6 | use Symfony\Component\HttpFoundation\Request; |
| 7 | -use Symfony\Component\HttpFoundation\RequestStack; |
|
| 8 | 7 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
| 9 | 8 | use Symfony\Component\Routing\RouterInterface; |
| 10 | 9 | use Twig_Extension; |
@@ -227,6 +227,11 @@ |
||
| 227 | 227 | return $translation; |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | + /** |
|
| 231 | + * @param string $string |
|
| 232 | + * |
|
| 233 | + * @return string |
|
| 234 | + */ |
|
| 230 | 235 | private function incrementString($string, $append = '-v') |
| 231 | 236 | { |
| 232 | 237 | $finalDigitGrabberRegex = '/\d+$/'; |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * Check if this parser is applicable |
| 13 | 13 | * |
| 14 | - * @return bool |
|
| 14 | + * @return integer |
|
| 15 | 15 | */ |
| 16 | 16 | public function canParse($value) |
| 17 | 17 | { |