Skip to content

Commit

Permalink
trim all the things
Browse files Browse the repository at this point in the history
readme fix
  • Loading branch information
pjaudiomv committed Dec 4, 2023
1 parent 659da5c commit d811abd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.1.4 (December 3, 2023)
* Trim all elements.

## 1.1.3 (December 1, 2023)
* Remove empty content array elements.

Expand Down
16 changes: 8 additions & 8 deletions src/FetchMeditation/JFTEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public function __construct(
string $thought,
string $copyright,
) {
$this->date = $date;
$this->title = $title;
$this->page = $page;
$this->quote = $quote;
$this->source = $source;
$this->content = array_values(array_filter($content));
$this->thought = $thought;
$this->copyright = $copyright;
$this->date = trim($date);
$this->title = trim($title);
$this->page = trim($page);
$this->quote = trim($quote);
$this->source = trim($source);
$this->content = array_values(array_filter(array_map('trim', $content)));
$this->thought = trim($thought);
$this->copyright = trim($copyright);
}

public function toJson(): string
Expand Down
16 changes: 8 additions & 8 deletions src/FetchMeditation/SPADEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public function __construct(
string $thought,
string $copyright,
) {
$this->date = $date;
$this->title = $title;
$this->page = $page;
$this->quote = $quote;
$this->source = $source;
$this->content = array_values(array_filter($content));
$this->thought = $thought;
$this->copyright = $copyright;
$this->date = trim($date);
$this->title = trim($title);
$this->page = trim($page);
$this->quote = trim($quote);
$this->source = trim($source);
$this->content = array_values(array_filter(array_map('trim', $content)));
$this->thought = trim($thought);
$this->copyright = trim($copyright);
}

public function toJson(): string
Expand Down

0 comments on commit d811abd

Please sign in to comment.