@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * Returns a list of functions to add to the existing list. |
42 | 42 | * |
43 | - * @return array An array of functions |
|
43 | + * @return \Twig_SimpleFunction[] An array of functions |
|
44 | 44 | */ |
45 | 45 | public function getFunctions() |
46 | 46 | { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * Returns a list of filters. |
63 | 63 | * |
64 | - * @return array |
|
64 | + * @return \Twig_SimpleFilter[] |
|
65 | 65 | */ |
66 | 66 | public function getFilters() |
67 | 67 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | if (is_callable($function)) { |
69 | 69 | return call_user_func_array($function, $arg_list); |
70 | 70 | } |
71 | - trigger_error('Called to an undefined function : php_'. $function, E_USER_WARNING); |
|
71 | + trigger_error('Called to an undefined function : php_'.$function, E_USER_WARNING); |
|
72 | 72 | |
73 | 73 | }, ['pre_escape' => 'html', 'is_safe' => ['html']]), |
74 | 74 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | public function getCsrfTokenForAnchor() |
157 | 157 | { |
158 | 158 | $token = $this->app['csrf.token_manager']->getToken(Constant::TOKEN_NAME)->getValue(); |
159 | - return 'token-for-anchor=\'' . $token . '\''; |
|
159 | + return 'token-for-anchor=\''.$token.'\''; |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
@@ -36,7 +36,6 @@ |
||
36 | 36 | use Symfony\Component\Form\AbstractType; |
37 | 37 | use Symfony\Component\Form\Extension\Core\Type\CollectionType; |
38 | 38 | use Symfony\Component\Form\Extension\Core\Type\EmailType; |
39 | -use Symfony\Component\Form\Extension\Core\Type\FormType; |
|
40 | 39 | use Symfony\Component\Form\Extension\Core\Type\HiddenType; |
41 | 40 | use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
42 | 41 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | public function configureOptions(OptionsResolver $resolver) |
67 | 67 | { |
68 | - $constraints = function (Options $options) { |
|
68 | + $constraints = function(Options $options) { |
|
69 | 69 | $constraints = []; |
70 | 70 | |
71 | 71 | // requiredがtrueに指定されている場合, NotBlankを追加 |