Clean up the interface with nice buttons
This commit is contained in:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user