Various code cleanup.

This commit is contained in:
James Cole
2018-07-27 05:03:37 +02:00
parent 0312ba8ad7
commit e3e0e12fef
43 changed files with 167 additions and 145 deletions

View File

@@ -50,7 +50,7 @@ class CacheProperties
/**
* @param $property
*/
public function addProperty($property)
public function addProperty($property): void
{
$this->properties->push($property);
}
@@ -87,14 +87,14 @@ class CacheProperties
/**
* @param $data
*/
public function store($data)
public function store($data): void
{
Cache::forever($this->hash, $data);
}
/**
*/
private function hash()
private function hash(): void
{
$content = '';
foreach ($this->properties as $property) {