Skip to content

Commit

Permalink
A few code-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard Fischer committed Feb 12, 2011
1 parent a645bf1 commit 65b2ba1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion classes/gmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
* @package gmap
* @author Leonard Fischer <[email protected]>
* @copyright (c) 2011 Leonard Fischer
* @version 1.1
* @version 1.3
*/
class Gmap extends Gmap_Core {}
20 changes: 10 additions & 10 deletions classes/gmap/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package gmap
* @author Leonard Fischer <[email protected]>
* @copyright (c) 2011 Leonard Fischer
* @version 1.1
* @version 1.3
*/
class Gmap_Core
{
Expand Down Expand Up @@ -342,7 +342,7 @@ public function render($view = '')
/**
* Set some controls for your gmap.
* You can specify how to display the map-type and navigation control.
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki .
*
* @param array $options Set the options for the gmap-controls here.
* @return Gmap
Expand All @@ -369,7 +369,7 @@ public function set_gmap_controls(array $options)

/**
* Set the maptype controls for your gmap.
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki .
*
* @param array $options Set the options for the controls here.
* @return Gmap
Expand All @@ -396,7 +396,7 @@ public function set_gmap_controls_maptype(array $options)

/**
* Set the navigation controls for your gmap.
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki .
*
* @param array $options Set the options for the controls here.
* @return Gmap
Expand Down Expand Up @@ -464,8 +464,8 @@ public function set_gmap_options(array $values)
* You may set a CSS attribute like for example "500px", "50%" or "10em".
* If you just set an integer, "px" will be used.
*
* @param mixed $x May be a CSS attribute ("500px", "50%", "10em") or an int
* @param mixed $y May be a CSS attribute ("500px", "50%", "10em") or an int
* @param mixed $x May be a CSS attribute ("500px", "50%", "10em") or an int.
* @param mixed $y May be a CSS attribute ("500px", "50%", "10em") or an int.
* @return Gmap
*/
public function set_gmap_size($x = NULL, $y = NULL)
Expand Down Expand Up @@ -596,7 +596,7 @@ protected static function validate_control_maptype($maptype)
if (array_key_exists($maptype, Gmap::$control_maptypes))
{
return Gmap::$control_maptypes[$maptype];
} // if
}
elseif (in_array($maptype, Gmap::$control_maptypes))
{
return $maptype;
Expand All @@ -622,7 +622,7 @@ protected static function validate_control_navigation($navigation)
if (array_key_exists($navigation, Gmap::$control_navigation))
{
return Gmap::$control_navigation[$navigation];
} // if
}
elseif (in_array($navigation, Gmap::$control_navigation))
{
return $navigation;
Expand Down Expand Up @@ -653,7 +653,7 @@ protected static function validate_control_position($position = NULL)
if (array_key_exists($position, Gmap::$control_positions))
{
return Gmap::$control_positions[$position];
} // if
}
elseif (in_array($position, Gmap::$control_positions))
{
return $position;
Expand Down Expand Up @@ -713,7 +713,7 @@ protected static function validate_maptype($maptype)
if (array_key_exists($maptype, Gmap::$maptypes))
{
return Gmap::$maptypes[$maptype];
} // if
}
elseif (in_array($maptype, Gmap::$maptypes))
{
return $maptype;
Expand Down

0 comments on commit 65b2ba1

Please sign in to comment.