Skip to content

Commit

Permalink
changing wording around repeat frequency and change minute increment …
Browse files Browse the repository at this point in the history
…to 15
  • Loading branch information
Franco Valdes committed Aug 29, 2019
1 parent 32ab55d commit a995a20
Show file tree
Hide file tree
Showing 6 changed files with 399 additions and 381 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## 1.2.15 - 2019-06-24
### Updated
- Updating deps due to vulnerability report from github

## 1.2.14 - 2019-06-24
### Updated
- Updated Docs
Expand Down
4 changes: 1 addition & 3 deletions src/migrations/m190129_225213_updateValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace unionco\calendarize\migrations;

use Craft;
use craft\db\Migration;
use craft\helpers\Json;
use unionco\calendarize\records\CalendarizeRecord;

/**
Expand All @@ -20,7 +18,7 @@ public function safeUp()
// Place migration code here...
$records = CalendarizeRecord::find()
->all();

if (count($records)) {
foreach ($records as $record) {
if (!$record->repeats) {
Expand Down
12 changes: 6 additions & 6 deletions src/models/Occurrence.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Occurrence
public $end;

/**
*
*
*/
public function __construct(Element $element, DateTime $next, int $diff)
{
Expand All @@ -50,7 +50,7 @@ public function __construct(Element $element, DateTime $next, int $diff)

// start and end date
$this->start = $next;

// end date
$end = clone $next;
$this->end = $end->modify($diff . ' seconds');
Expand All @@ -61,7 +61,7 @@ public function __construct(Element $element, DateTime $next, int $diff)
*/
public function __call($name, $args = [])
{
// backwards compatibility
// backwards compatibility
if (in_array($name, get_class_methods(DateTime::class))) {
return $this->next->{$name}(...$args);
}
Expand All @@ -74,18 +74,18 @@ public function __call($name, $args = [])
}

/**
*
*
*/
public function __toString()
{
return $this->next->format('U');
}

/**
*
*
*/
public function getType(): string
{
return (new ReflectionClass($this->element))->getShortName();
}
}
}
Loading

0 comments on commit a995a20

Please sign in to comment.