@@ -5,44 +5,44 @@ |
||
| 5 | 5 | |
| 6 | 6 | if (! function_exists('analogue')) { |
| 7 | 7 | |
| 8 | - /** |
|
| 9 | - * Return analogue's manager instance |
|
| 10 | - * |
|
| 11 | - * @return \Analogue\ORM\System\Manager |
|
| 12 | - */ |
|
| 13 | - function analogue() |
|
| 14 | - { |
|
| 15 | - return Manager::getInstance(); |
|
| 16 | - } |
|
| 8 | + /** |
|
| 9 | + * Return analogue's manager instance |
|
| 10 | + * |
|
| 11 | + * @return \Analogue\ORM\System\Manager |
|
| 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 | } |
| 34 | 34 | |
| 35 | 35 | |
| 36 | 36 | if (! function_exists('is_asociative_array')) { |
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * Checks if an array is an asociative array |
|
| 40 | - * |
|
| 41 | - * @param array $array |
|
| 42 | - * @return bool |
|
| 43 | - */ |
|
| 44 | - function is_asociative_array(array $array) |
|
| 45 | - { |
|
| 46 | - return count(array_filter(array_keys($array), 'is_string')) > 0; |
|
| 47 | - } |
|
| 38 | + /** |
|
| 39 | + * Checks if an array is an asociative array |
|
| 40 | + * |
|
| 41 | + * @param array $array |
|
| 42 | + * @return bool |
|
| 43 | + */ |
|
| 44 | + function is_asociative_array(array $array) |
|
| 45 | + { |
|
| 46 | + return count(array_filter(array_keys($array), 'is_string')) > 0; |
|
| 47 | + } |
|
| 48 | 48 | } |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | use Analogue\ORM\System\Manager; |
| 4 | 4 | use Analogue\ORM\System\Mapper; |
| 5 | 5 | |
| 6 | -if (! function_exists('analogue')) { |
|
| 6 | +if (!function_exists('analogue')) { |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * 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) |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | |
| 36 | -if (! function_exists('is_asociative_array')) { |
|
| 36 | +if (!function_exists('is_asociative_array')) { |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * Checks if an array is an asociative array |
@@ -12,5 +12,5 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class IlluminateQueryBuilder extends Builder |
| 14 | 14 | { |
| 15 | - // |
|
| 15 | + // |
|
| 16 | 16 | } |
@@ -9,13 +9,13 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class AnalogueFacade extends Facade |
| 11 | 11 | { |
| 12 | - /** |
|
| 13 | - * Get the registered name of the component. |
|
| 14 | - * |
|
| 15 | - * @return string |
|
| 16 | - */ |
|
| 17 | - protected static function getFacadeAccessor() |
|
| 18 | - { |
|
| 19 | - return 'analogue'; |
|
| 20 | - } |
|
| 12 | + /** |
|
| 13 | + * Get the registered name of the component. |
|
| 14 | + * |
|
| 15 | + * @return string |
|
| 16 | + */ |
|
| 17 | + protected static function getFacadeAccessor() |
|
| 18 | + { |
|
| 19 | + return 'analogue'; |
|
| 20 | + } |
|
| 21 | 21 | } |