@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * Execute the console command. |
56 | 56 | * |
57 | - * @return mixed |
|
57 | + * @return boolean |
|
58 | 58 | */ |
59 | 59 | public function handle() |
60 | 60 | { |
@@ -615,6 +615,11 @@ discard block |
||
615 | 615 | return file_put_contents($filePath, $new_contents); |
616 | 616 | } |
617 | 617 | |
618 | + /** |
|
619 | + * @param string $filePath |
|
620 | + * @param string $keyword |
|
621 | + * @param string $body |
|
622 | + */ |
|
618 | 623 | public function insert($filePath, $keyword, $body, $after = true) { |
619 | 624 | |
620 | 625 | $contents = file_get_contents($filePath); |