@@ -16,9 +16,6 @@ |
||
| 16 | 16 | class MetadataLoadEvent extends AbstractEvent |
| 17 | 17 | { |
| 18 | 18 | /** |
| 19 | - * @param NodeInterface $node |
|
| 20 | - * @param string $locale |
|
| 21 | - * @param array $options |
|
| 22 | 19 | */ |
| 23 | 20 | public function __construct(Metadata $metadata) |
| 24 | 21 | { |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * @return mixed |
|
| 88 | + * @return Query |
|
| 89 | 89 | * |
| 90 | 90 | * @throws DocumentManagerException |
| 91 | 91 | */ |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | - * @return mixed |
|
| 58 | + * @return QueryResultCollection |
|
| 59 | 59 | */ |
| 60 | 60 | public function getResult() |
| 61 | 61 | { |
@@ -81,6 +81,9 @@ |
||
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $className |
|
| 86 | + */ |
|
| 84 | 87 | private function getDebugClassName($className) |
| 85 | 88 | { |
| 86 | 89 | $parts = explode('\\', $className); |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | { |
| 86 | 86 | $parts = explode('\\', $className); |
| 87 | 87 | $last = array_pop($parts); |
| 88 | - $parts = array_map(function ($part) { |
|
| 88 | + $parts = array_map(function($part) { |
|
| 89 | 89 | return substr($part, 0, 1); |
| 90 | 90 | }, $parts); |
| 91 | 91 | |
@@ -110,6 +110,9 @@ |
||
| 110 | 110 | $event->getAccessor()->set(self::CHANGER, $userId); |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | + /** |
|
| 114 | + * @param \Symfony\Component\OptionsResolver\OptionsResolver $options |
|
| 115 | + */ |
|
| 113 | 116 | private function getUserId($options) |
| 114 | 117 | { |
| 115 | 118 | if ($options['user']) { |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | * |
| 156 | 156 | * @param object $document child-document |
| 157 | 157 | * @param NodeInterface $node to determine parent |
| 158 | - * @param array $options options to load parent |
|
| 158 | + * @param \Symfony\Component\OptionsResolver\OptionsResolver $options options to load parent |
|
| 159 | 159 | */ |
| 160 | 160 | private function mapParent($document, NodeInterface $node, $options = []) |
| 161 | 161 | { |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | return $document; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - $initializer = function (LazyLoadingInterface $document, $method, array $parameters, &$initializer) use ( |
|
| 95 | + $initializer = function(LazyLoadingInterface $document, $method, array $parameters, &$initializer) use ( |
|
| 96 | 96 | $fromDocument, |
| 97 | 97 | $targetNode, |
| 98 | 98 | $options |
@@ -181,7 +181,7 @@ |
||
| 181 | 181 | */ |
| 182 | 182 | private function rename(NodeInterface $node, $name) |
| 183 | 183 | { |
| 184 | - $names = (array)$node->getParent()->getNodeNames(); |
|
| 184 | + $names = (array) $node->getParent()->getNodeNames(); |
|
| 185 | 185 | $pos = array_search($node->getName(), $names); |
| 186 | 186 | $next = isset($names[$pos + 1]) ? $names[$pos + 1] : null; |
| 187 | 187 | |