@@ -101,7 +101,7 @@ |
||
| 101 | 101 | * |
| 102 | 102 | * @param string $key |
| 103 | 103 | * |
| 104 | - * @return TreeBuilder |
|
| 104 | + * @return ArrayNodeDefinition |
|
| 105 | 105 | */ |
| 106 | 106 | protected function getValidators($key) |
| 107 | 107 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | ->end() |
| 115 | 115 | ->beforeNormalization() |
| 116 | 116 | ->always() |
| 117 | - ->then(function ($values) { |
|
| 117 | + ->then(function($values) { |
|
| 118 | 118 | // Normalize null as array |
| 119 | 119 | foreach ($values as $key => $value) { |
| 120 | 120 | if ($value === null) { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | protected function addValidatorValidation(ArrayNodeDefinition $node) |
| 139 | 139 | { |
| 140 | 140 | $node->validate() |
| 141 | - ->ifTrue(function ($value) { |
|
| 141 | + ->ifTrue(function($value) { |
|
| 142 | 142 | if (!is_array($value)) { |
| 143 | 143 | return true; |
| 144 | 144 | } |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
| 14 | 14 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
| 15 | 15 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
| 16 | -use Symfony\Component\Config\Definition\Builder\NodeDefinition; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * JbFileUploaderBundle configuration structure. |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | $className = 'jb_result_filename'; |
| 75 | 75 | if (isset($view->vars['attr']['class'])) { |
| 76 | - $view->vars['attr']['class'] .= ' ' . $className; |
|
| 76 | + $view->vars['attr']['class'] .= ' '.$className; |
|
| 77 | 77 | } else { |
| 78 | 78 | $view->vars['attr']['class'] = $className; |
| 79 | 79 | } |
@@ -58,6 +58,6 @@ |
||
| 58 | 58 | return $this->validators[$alias]; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - throw new JbFileUploaderException('Unknown validator ' . $alias); |
|
| 61 | + throw new JbFileUploaderException('Unknown validator '.$alias); |
|
| 62 | 62 | } |
| 63 | 63 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | public function getUrl($key) |
| 48 | 48 | { |
| 49 | 49 | return $this->helper->getUrl( |
| 50 | - trim($this->directory, '/') . '/' . $key |
|
| 50 | + trim($this->directory, '/').'/'.$key |
|
| 51 | 51 | ); |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -57,6 +57,6 @@ |
||
| 57 | 57 | return $this->resolvers[$alias]; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - throw new JbFileUploaderException('Unknown resolver ' . $alias); |
|
| 60 | + throw new JbFileUploaderException('Unknown resolver '.$alias); |
|
| 61 | 61 | } |
| 62 | 62 | } |
@@ -30,6 +30,6 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function getUrl($key) |
| 32 | 32 | { |
| 33 | - return $this->url . '/' . $key; |
|
| 33 | + return $this->url.'/'.$key; |
|
| 34 | 34 | } |
| 35 | 35 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * Configure the validator |
| 25 | 25 | * |
| 26 | - * @param OptionsResolverInterface $resolver |
|
| 26 | + * @param OptionsResolver $resolver |
|
| 27 | 27 | */ |
| 28 | 28 | protected function configureOptions(OptionsResolverInterface $resolver) |
| 29 | 29 | { |