Skip to content

Commit bb9f532

Browse files
committed
Fixed typos
1 parent a5791b5 commit bb9f532

File tree

8 files changed

+7
-18
lines changed

8 files changed

+7
-18
lines changed

classes/Account.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Account
1818
/**
1919
* Constructor
2020
* @param string $username
21-
* @param Connection $connection
21+
* @param Connect $connection
2222
* @param string $endpoint
2323
*/
2424
function __construct($username, $connection, $endpoint)

classes/Album.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ function update($options)
9090

9191
/**
9292
* Favorite an album
93-
* @param $options
9493
* @return mixed
9594
*/
96-
function favorite($options)
95+
function favorite()
9796
{
9897
$uri = $this->endpoint . "/album/" . $this->id . "/favorite";
9998

@@ -112,6 +111,3 @@ function add_images($ids_array)
112111
return $this->conn->request($uri, $ids_array, "POST");
113112
}
114113
}
115-
116-
117-
?>

classes/Authorize.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Authorize
1717
*/
1818
protected $api_key, $api_secret;
1919
/**
20-
* @var Connection
20+
* @var Connect
2121
*/
2222
protected $conn;
2323
/**
@@ -35,7 +35,7 @@ class Authorize
3535

3636
/**
3737
* Constructor
38-
* @param Connection $conn
38+
* @param Connect $conn
3939
* @param string $key
4040
* @param string $secret
4141
*/

classes/Comment.php

-3
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,3 @@ function reply_create($options)
116116
}
117117

118118
}
119-
120-
121-
?>

classes/Connect.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function setAccessData($accessToken, $refreshToken)
6565
/**
6666
* Make request to Imgur API endpoint
6767
* @param $endpoint
68-
* @param bool $options
68+
* @param mixed $options
6969
* @param string $type
7070
* @return mixed
7171
* @throws Exception

classes/Image.php

-3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,3 @@ function favorite()
8282
return $this->conn->request($uri, array('favorite' => true), "POST");
8383
}
8484
}
85-
86-
87-
?>

classes/Notification.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function single($id)
5555
*/
5656
function mark_as_read($id)
5757
{
58-
$uri = $this->endpoint . "/notification";
58+
$uri = $this->endpoint . "/notification/" . $id;
5959

6060
return $this->conn->request($uri, array("mark_as_read" => true), "PUT");
6161
}

examples.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454

5555
$imgur->comment("comment_id")->get();
5656
$imgur->comment("comment_id")->delete();
57-
$imgur->comment("comment_id")->favorite();
5857
$imgur->comment("comment_id")->report();
5958
$imgur->comment("comment_id")->vote($type); // "up" or "down";
6059
$imgur->comment("comment_id")->replies();
@@ -65,7 +64,7 @@
6564
/* Messages (User must be logged in);
6665
/*-----------------------------------------------------------------------------------*/
6766

68-
$imgur->message()->meessages();
67+
$imgur->message()->messages();
6968
$imgur->message()->single($id);
7069
$imgur->message()->create($options);
7170
$imgur->message()->delete($id);

0 commit comments

Comments
 (0)