Skip to content

Commit 941a755

Browse files
committed
整理
1 parent c3f2bd1 commit 941a755

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/aieuo/ip/manager/CommandManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function add($key, $type, $id, $content, $args = []) {
3737
$this->set($key, $data, $args);
3838
}
3939

40-
public function remove($key) {
40+
public function remove(string $key, array $options = []) {
4141
$this->unregister($key);
4242
parent::remove($key);
4343
}

src/aieuo/ip/manager/EventManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function updateContent($key, $type, $num, $new, $options = []) {
8686
return true;
8787
}
8888

89-
public function remove($key, $options = []) {
89+
public function remove(string $key, array $options = []) {
9090
$data = $this->getFromEvent($options["eventname"]);
9191
if (!isset($data[$key])) return false;
9292
unset($data[$key]);

src/aieuo/ip/manager/FormIFManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function del($key, $type, $num, $options = []) {
7777
return true;
7878
}
7979

80-
public function remove($key, $options = []) {
80+
public function remove(string $key, array $options = []) {
8181
if (!$this->exists($key)) return false;
8282
$data = $this->getIF($key);
8383
unset($data["ifs"][$options["place"]]);

src/aieuo/ip/manager/IFManager.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ public function setName($key, $name, $options = []) {
174174
}
175175

176176
/**
177-
* @param string $key
177+
* @param string $key
178+
* @param array $options
178179
*/
179-
public function remove($key) {
180+
public function remove(string $key, array $options = []) {
180181
$this->config->remove($key);
181182
if (IFPlugin::getInstance()->saveOnChange) $this->config->save();
182183
}

0 commit comments

Comments
 (0)