Skip to content

Commit

Permalink
1.0.0-beta.2 Removed incorrect toArray method
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel van Hintum committed Oct 30, 2019
1 parent b09ce0c commit 946cb01
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.0.0-beta.2 - 2019-10-30
### Removed
- Removed incorrect toArray method

## 1.0.0-beta.1 - 2019-10-08
### Added
- Initial release
- Initial release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Image Hotspots (beta)

Image Hotspots fieldtype for adding hotspots to images in Craft CMS.
Image Hotspots fieldtype for adding multiple hotspots to images from a matrix or super-table in Craft CMS.

## Setup

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "born05/craft-imagehotspots",
"description": "Image Hotspots fieldtype for Craft CMS",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"type": "craft-plugin",
"keywords": [
"hotspots",
Expand Down
13 changes: 0 additions & 13 deletions src/models/Hotspot.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,4 @@ public function getCoords(): string
{
return "{$this->x};{$this->y})";
}

/**
* Returns the coords as an array.
*
* @return array
*/
public function toArray(): array
{
return [
'x' => $this->x,
'y' => $this->y,
];
}
}

0 comments on commit 946cb01

Please sign in to comment.