Skip to content

Commit

Permalink
Merge pull request #53 from vanderlee/analysis-4wERnG
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
vanderlee authored Apr 1, 2023
2 parents f16fdf4 + 3c45838 commit 34a349f
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 62 deletions.
2 changes: 1 addition & 1 deletion src/Cache/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function setPath($path)

private function filename()
{
return self::$path . '/' . $this->getFilename(self::$language);
return self::$path.'/'.$this->getFilename(self::$language);
}

public function open($language)
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Vanderlee\Syllable\Cache;

/**
* Single-file cache using JSON format to encode data
* Single-file cache using JSON format to encode data.
*/
class Json extends File
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/Serialized.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Vanderlee\Syllable\Cache;

/**
* Single-file cache using PHP-native serialization to encode data
* Single-file cache using PHP-native serialization to encode data.
*/
class Serialized extends File
{
Expand Down
4 changes: 2 additions & 2 deletions src/Hyphen/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct($entity)

public function joinText($parts)
{
return join('&' . $this->entity . ';', $parts);
return join('&'.$this->entity.';', $parts);
}

public function joinHtmlDom($parts, \DOMNode $node)
Expand All @@ -29,6 +29,6 @@ public function joinHtmlDom($parts, \DOMNode $node)

public function stripHtml($html)
{
return str_replace('&' . $this->entity . ';', '', $html);
return str_replace('&'.$this->entity.';', '', $html);
}
}
Loading

0 comments on commit 34a349f

Please sign in to comment.