Clean up the interface with nice buttons

This commit is contained in:
Tim
2023-04-05 00:31:41 +02:00
parent 693f83ca4a
commit 22735cf884
5 changed files with 35 additions and 10 deletions

View File

@ -19,7 +19,6 @@ class SnipService
{
$git = new Git();
$repoPath = sprintf('%s/%s', $snipBasePath, $snip->getId());
dump($repoPath, $snip);
if (!is_dir($repoPath)) {
$this->repo = $git->init($repoPath);
} else {
@ -39,7 +38,6 @@ class SnipService
public function update(string $snipContents): void
{
dump($this->getSnipPath());
file_put_contents($this->getSnipPath(), $snipContents);
$this->repo->addFile('snip.txt');
if ($this->repo->hasChanges()) {