isExecuted() && true !== $this->option('force')) { $this->warn('This command has already been executed.'); return 0; } $this->warn('Congrats, you found the skeleton command. Boo!'); //$this->markAsExecuted(); $end = round(microtime(true) - $start, 2); $this->info(sprintf('in %s seconds.', $end)); return 0; } /** * @return bool */ private function isExecuted(): bool { $configVar = app('fireflyconfig')->get(self::CONFIG_NAME, false); if (null !== $configVar) { return (bool)$configVar->data; } return false; // @codeCoverageIgnore } /** * */ private function markAsExecuted(): void { app('fireflyconfig')->set(self::CONFIG_NAME, true); } }