Skip to content

Commit

Permalink
autoload paths & method naming
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Aug 28, 2019
1 parent e7792e2 commit d801c9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file added Pinboard.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions edalzell/pinboard/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"type": "statamic-addon",
"autoload": {
"psr-4": {
"Edalzell\\Pinboard\\": "src"
"Edalzell\\Pinboard\\": "src",
"Edalzell\\Pinboard\\Test\\": "tests"
}
},
"require": {
Expand All @@ -21,7 +22,7 @@
"statamic": {
"name": "Pinboard",
"description": "Periodically polls your Pinboard account and creates link entries",
"version": "2.0"
"version": "2.0.1"
},
"laravel": {
"providers": [
Expand Down
2 changes: 1 addition & 1 deletion edalzell/pinboard/src/PinboardGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct()
$this->api = new PinboardAPI(null, config('pinboard.token'));
}

public function recent($from)
public function recent($from = null)
{
return $this->api->get_all(null, null, config('pinboard.pinboard_tag', 'lb'), $from);
}
Expand Down

0 comments on commit d801c9c

Please sign in to comment.