@@ -7,8 +7,7 @@ discard block |
||
| 7 | 7 | /** |
| 8 | 8 | * Return analogue's manager instance |
| 9 | 9 | * |
| 10 | - * @param array $array |
|
| 11 | - * @return array |
|
| 10 | + * @return Manager |
|
| 12 | 11 | */ |
| 13 | 12 | function analogue() |
| 14 | 13 | { |
@@ -24,7 +23,7 @@ discard block |
||
| 24 | 23 | * |
| 25 | 24 | * @param \Analogue\ORM\Mappable|string $entity |
| 26 | 25 | * @param mixed $entityMap |
| 27 | - * @return Mapper |
|
| 26 | + * @return Analogue\ORM\System\Mapper |
|
| 28 | 27 | */ |
| 29 | 28 | function mapper($entity, $entityMap = null) |
| 30 | 29 | { |
@@ -4,30 +4,30 @@ |
||
| 4 | 4 | |
| 5 | 5 | if (! function_exists('analogue')) { |
| 6 | 6 | |
| 7 | - /** |
|
| 8 | - * Return analogue's manager instance |
|
| 9 | - * |
|
| 10 | - * @param array $array |
|
| 11 | - * @return array |
|
| 12 | - */ |
|
| 13 | - function analogue() |
|
| 14 | - { |
|
| 15 | - return Manager::getInstance(); |
|
| 16 | - } |
|
| 7 | + /** |
|
| 8 | + * Return analogue's manager instance |
|
| 9 | + * |
|
| 10 | + * @param array $array |
|
| 11 | + * @return array |
|
| 12 | + */ |
|
| 13 | + function analogue() |
|
| 14 | + { |
|
| 15 | + return Manager::getInstance(); |
|
| 16 | + } |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | if (! function_exists('mapper')) { |
| 21 | 21 | |
| 22 | - /** |
|
| 23 | - * Create a mapper for a given entity (static alias) |
|
| 24 | - * |
|
| 25 | - * @param \Analogue\ORM\Mappable|string $entity |
|
| 26 | - * @param mixed $entityMap |
|
| 27 | - * @return Mapper |
|
| 28 | - */ |
|
| 29 | - function mapper($entity, $entityMap = null) |
|
| 30 | - { |
|
| 31 | - return Manager::getMapper($entity, $entityMap); |
|
| 32 | - } |
|
| 22 | + /** |
|
| 23 | + * Create a mapper for a given entity (static alias) |
|
| 24 | + * |
|
| 25 | + * @param \Analogue\ORM\Mappable|string $entity |
|
| 26 | + * @param mixed $entityMap |
|
| 27 | + * @return Mapper |
|
| 28 | + */ |
|
| 29 | + function mapper($entity, $entityMap = null) |
|
| 30 | + { |
|
| 31 | + return Manager::getMapper($entity, $entityMap); |
|
| 32 | + } |
|
| 33 | 33 | } |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use Analogue\ORM\System\Manager; |
| 4 | 4 | |
| 5 | -if (! function_exists('analogue')) { |
|
| 5 | +if (!function_exists('analogue')) { |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Return analogue's manager instance |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | |
| 20 | -if (! function_exists('mapper')) { |
|
| 20 | +if (!function_exists('mapper')) { |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Create a mapper for a given entity (static alias) |