Skip to content

Commit

Permalink
Updated PhpDocs for Plugin::__construct(), View::__construct(), View:…
Browse files Browse the repository at this point in the history
…:get() and View::render()
  • Loading branch information
joechilds authored and AliasIO committed Jun 19, 2013
1 parent fe75f70 commit c882b22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Swiftlet/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ abstract class Plugin implements Interfaces\Plugin

/**
* Constructor
* @param object $app
* @param object $view
* @param object $controller
* @param Interfaces\App $app
* @param Interfaces\View $view
* @param Interfaces\Controller $controller
*/
public function __construct(Interfaces\App $app, Interfaces\View $view, Interfaces\Controller $controller)
{
Expand Down
12 changes: 7 additions & 5 deletions Swiftlet/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class View implements Interfaces\View

/**
* Constructor
* @param object $app
* @param Interfaces\App $app
* @param string $name
*/
public function __construct(Interfaces\App $app, $name)
Expand All @@ -26,11 +26,11 @@ public function __construct(Interfaces\App $app, $name)

/**
* Get a view variable
* @params string $variable
* @params bool $htmlEncode
* @return mixed
* @param string $variable
* @param bool $htmlEncode
* @return mixed|null
*/
public function get($variable, $htmlEncode = true)
public function get($variable, $htmlEncode = true)
{
if ( isset($this->variables[$variable]) ) {
if ( $htmlEncode ) {
Expand Down Expand Up @@ -129,6 +129,8 @@ public function htmlDecode($value)

/**
* Render the view
*
* @throws \Exception
*/
public function render()
{
Expand Down

0 comments on commit c882b22

Please sign in to comment.