@@ -100,6 +100,9 @@ |
||
100 | 100 | return $choiceViews; |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @param integer $level |
|
105 | + */ |
|
103 | 106 | private function addToChoiceView(EntityTreeChoice $choice, array &$choiceViews, $level) |
104 | 107 | { |
105 | 108 | $choiceView = $choice->getChoiceView(); |
@@ -160,6 +160,9 @@ |
||
160 | 160 | return $image; |
161 | 161 | } |
162 | 162 | |
163 | + /** |
|
164 | + * @return ImageInterface |
|
165 | + */ |
|
163 | 166 | private function crop(ImageInterface $image, $width, $height, $x, $y, $backgroundColorValues, $backgroundColorAlpha) |
164 | 167 | { |
165 | 168 | $palette = new RGB(); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
26 | - * @param string|FormatInterface $format |
|
26 | + * @param \Enhavo\Bundle\MediaBundle\Entity\Format $format |
|
27 | 27 | * @return float|null |
28 | 28 | */ |
29 | 29 | public function getFormatRatio($format) |
@@ -37,6 +37,9 @@ discard block |
||
37 | 37 | return $this->findFormatRatio($name); |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $name |
|
42 | + */ |
|
40 | 43 | private function findFormatRatio($name) |
41 | 44 | { |
42 | 45 | $width = null; |
@@ -58,6 +58,9 @@ discard block |
||
58 | 58 | return $messages; |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $routeName |
|
63 | + */ |
|
61 | 64 | protected function getUrl($routeName, $routeParameters) |
62 | 65 | { |
63 | 66 | return $this->get('router')->generate($routeName, $routeParameters); |
@@ -224,6 +227,7 @@ discard block |
||
224 | 227 | |
225 | 228 | /** |
226 | 229 | * @param Request $request |
230 | + * @param string $route |
|
227 | 231 | */ |
228 | 232 | protected function setTargetPath(Request $request, $route, $parameters = []) |
229 | 233 | { |
@@ -20,7 +20,6 @@ |
||
20 | 20 | use Symfony\Component\HttpFoundation\JsonResponse; |
21 | 21 | use Symfony\Component\HttpFoundation\Response; |
22 | 22 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
23 | -use Sylius\Component\Order\Context\CartContext; |
|
24 | 23 | |
25 | 24 | class CheckoutController extends AppController |
26 | 25 | { |
@@ -53,6 +53,10 @@ |
||
53 | 53 | $parameters->set('data', $data); |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @param RequestConfiguration $requestConfiguration |
|
58 | + * @param ResourceInterface $resource |
|
59 | + */ |
|
56 | 60 | private function createActionsSecondary($options, $requestConfiguration, $resource) |
57 | 61 | { |
58 | 62 | /** @var MetadataInterface $metadata */ |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @param $className |
|
82 | + * @param string $className |
|
83 | 83 | * @param $extendedMetadata |
84 | 84 | */ |
85 | 85 | private function collectExtendedMetadata($className, &$extendedMetadata) |
@@ -98,6 +98,10 @@ discard block |
||
98 | 98 | * @param $className |
99 | 99 | * @return Metadata|null |
100 | 100 | */ |
101 | + |
|
102 | + /** |
|
103 | + * @param string $className |
|
104 | + */ |
|
101 | 105 | private function getMetadata($className) |
102 | 106 | { |
103 | 107 | /** @var Metadata $metadata */ |
@@ -103,6 +103,9 @@ |
||
103 | 103 | } |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $class |
|
108 | + */ |
|
106 | 109 | private function isParentClass($object, $class) |
107 | 110 | { |
108 | 111 | $parentClass = get_parent_class($object); |
@@ -132,6 +132,9 @@ discard block |
||
132 | 132 | $mapping->send(); |
133 | 133 | } |
134 | 134 | |
135 | + /** |
|
136 | + * @param string $type |
|
137 | + */ |
|
135 | 138 | private function mapDataType($type) |
136 | 139 | { |
137 | 140 | if($type == null) { |
@@ -188,6 +191,10 @@ discard block |
||
188 | 191 | return $masterQuery; |
189 | 192 | } |
190 | 193 | |
194 | + /** |
|
195 | + * @param string $fieldName |
|
196 | + * @param \Enhavo\Bundle\SearchBundle\Engine\Filter\QueryInterface $filterQuery |
|
197 | + */ |
|
191 | 198 | private function createFilterQuery($fieldName, $filterQuery) |
192 | 199 | { |
193 | 200 | if($filterQuery instanceof MatchQuery) { |
@@ -83,6 +83,9 @@ |
||
83 | 83 | return $metadata; |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param string $className |
|
88 | + */ |
|
86 | 89 | private function getParents($className, array &$parents) |
87 | 90 | { |
88 | 91 | $parentClass = get_parent_class($className); |