Skip to content

Commit

Permalink
Little clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
slunak committed Aug 8, 2024
1 parent 25d45f4 commit da43fb0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Change Log


All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
Expand All @@ -11,6 +10,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

- Test setTtl() is duplicated #24

### Added

- Added support for creating a new group #26

## [1.4.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Light, simple and fast, yet comprehensive wrapper for the [Pushover](https://pus
- Query emergency priority receipt
- Cancel emergency priority retry
- Groups API ([Example](Example/GroupsExample.php))
- Create the new group
- Create a group
- Retrieve information about the group
- Add / Remove users
- Enable / Disable users
Expand Down
6 changes: 3 additions & 3 deletions src/Api/Groups/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
use Serhiy\Pushover\Client\Curl\Curl;
use Serhiy\Pushover\Client\GroupsClient;
use Serhiy\Pushover\Client\Request\Request;
use Serhiy\Pushover\Client\Response\CreateGroupResponse;
use Serhiy\Pushover\Client\Response\AddUserToGroupResponse;
use Serhiy\Pushover\Client\Response\CreateGroupResponse;
use Serhiy\Pushover\Client\Response\DisableUserInGroupResponse;
use Serhiy\Pushover\Client\Response\EnableUserInGroupResponse;
use Serhiy\Pushover\Client\Response\RemoveUserFromGroupResponse;
Expand Down Expand Up @@ -58,7 +58,7 @@ class Group
private $users;

/**
* @param string $key Group key. (Put str_repeat('0', 30) before creating new group)
* @param string $key Group key. (Use any valid key or placeholder e.g. str_repeat('0', 30) if you are creating a group)
*
* @throws InvalidArgumentException
*/
Expand Down Expand Up @@ -128,7 +128,7 @@ public function retrieveGroupInformation(): RetrieveGroupResponse
}

/**
* Create the group. Reflected in the API and in the group editor on our website.
* Create a group.
*/
public function create(string $name): CreateGroupResponse
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/Groups/GroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use Serhiy\Pushover\Api\Groups\Group;
use PHPUnit\Framework\TestCase;
use Serhiy\Pushover\Application;
use Serhiy\Pushover\Client\Response\RetrieveGroupResponse;
use Serhiy\Pushover\Client\Response\CreateGroupResponse;
use Serhiy\Pushover\Client\Response\RetrieveGroupResponse;

/**
* @author Serhiy Lunak
Expand Down

0 comments on commit da43fb0

Please sign in to comment.