Skip to content

Commit

Permalink
Fix spelling for variables; Rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Peevski committed Aug 22, 2017
1 parent e3c81c2 commit dc4dde4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Metabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* Convenience class to embed Metabase dashboards and questions
*/
class Metabase
class Embed
{
private $url;
private $key;
Expand Down Expand Up @@ -81,14 +81,14 @@ protected function url($resource, $id, $params)
$url = $this->url . '/embed/' . $resource . '/' . $token . '#';

// Should border be included
if ($this->bordered) {
if ($this->border) {
$url .= 'bordered=true&';
} else {
$url .= 'bordered=false&';
}

// Should title be included
if ($this->titled) {
if ($this->title) {
$url .= 'titled=true&';
} else {
$url .= 'titled=false&';
Expand Down

0 comments on commit dc4dde4

Please sign in to comment.