Skip to content

Commit

Permalink
Fix phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Peevski committed Dec 29, 2020
1 parent 43b4d1f commit 2e7cbdd
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/Embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public function __construct($url, $key, $title = false, $width = '100%', $height
/**
* Get the embed URL for a Metabase question
*
* @param $questionId int id of the question to embed
* @param $params array an associate array with variables to be passed to the question
* @param int $questionId The id of the question to embed
* @param array $params An associate array with variables to be passed to the question
*
* @return Embed URL
* @return string Embed URL
*/
public function questionUrl($questionId, $params = [])
{
Expand All @@ -55,10 +55,10 @@ public function questionUrl($questionId, $params = [])
/**
* Get the embed URL for a Metabase dashboard
*
* @param $dashboardId int the id of the dashboard to embed
* @param $params array an associate array with variables to be passed to the dashboard
* @param int $dashboardId The id of the dashboard to embed
* @param array $params An associate array with variables to be passed to the dashboard
*
* @return Embed URL
* @return string Embed URL
*/
public function dashboardUrl($dashboardId, $params = [])
{
Expand All @@ -68,10 +68,10 @@ public function dashboardUrl($dashboardId, $params = [])
/**
* Use JWT to encode tokens
*
* @param $resource array resource to encode (question or dashboard)
* @param $params array an associate array with variables to be passed to the dashboard
* @param array $resource Resource to encode (question or dashboard)
* @param array $params An associate array with variables to be passed to the dashboard
*
* @return Token
* @return string Token
*/
private function encode($resource, $params)
{
Expand Down Expand Up @@ -125,8 +125,8 @@ protected function url($resource, $id, $params)
* It assumes no iframe border. Size can be manipulated via
* class $width/$height
*
* @param $questionId int the id of the question to embed
* @param $params array an associate array with variables to be passed to the question
* @param int $questionId The id of the question to embed
* @param array $params An associate array with variables to be passed to the question
*
* @return string Code to embed
*/
Expand All @@ -141,8 +141,8 @@ public function questionIFrame($questionId, $params = [])
* It assumes no iframe border. Size can be manipulated via
* class $width/$height
*
* @param $dashboardId int the id of the dashboard to embed
* @param $params array an associate array with variables to be passed to the dashboard
* @param int $dashboardId The id of the dashboard to embed
* @param array $params An associate array with variables to be passed to the dashboard
*
* @return string Code to embed
*/
Expand All @@ -157,7 +157,7 @@ public function dashboardIFrame($dashboardId, $params = [])
* It assumes no iframe border. Size can be manipulated via
* class $width/$height
*
* @param $iframeUrl string the URL to create an iframe for
* @param string $iframeUrl The URL to create an iframe for
*
* @return string Code to embed
*/
Expand Down

0 comments on commit 2e7cbdd

Please sign in to comment.