Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ class Processor
*/
protected $bakPath;

/**
*/
protected $lines;

/**
Expand Down Expand Up @@ -78,7 +76,7 @@ public function addLine($ip, $domain, $aliases = '')
}

/**
* Removes old value and adds new line
* Removes old value and adds new line.
*
* @param $ip
* @param $domain
Expand All @@ -105,7 +103,7 @@ public function removeLine($domain)
throw new Exception(sprintf("'%s', is not a valid domain", $domain));
}

$this->lines = $this->lines->reject(function($item) use ($domain) {
$this->lines = $this->lines->reject(function ($item) use ($domain) {
return $item['domain'] == $domain;
});

Expand Down