diff --git a/src/flextype/core/Console/Commands/Cache/CacheClearCommand.php b/src/flextype/core/Console/Commands/Cache/CacheClearCommand.php index af2a51ee..eee58757 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheClearCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheClearCommand.php @@ -39,16 +39,16 @@ class CacheClearCommand extends Command if (filesystem()->directory($path)->delete()) { $output->write( renderToString( - div('Success: All items were successfully cleared from the cache.', - 'bg-success px-2 py-1') + div('All items were successfully cleared from the cache.', + 'color-success px-2 py-1') ) ); $result = Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Cache wasn\'t cleared.', - 'bg-danger px-2 py-1') + div('Cache wasn\'t cleared.', + 'color-danger px-2 py-1') ) ); $result = Command::FAILURE; @@ -56,8 +56,8 @@ class CacheClearCommand extends Command } else { $output->write( renderToString( - div('Failure: Cache directory ' . $path . ' doesn\'t exist.', - 'bg-danger px-2 py-1') + div('Cache directory ' . $path . ' doesn\'t exist.', + 'color-danger px-2 py-1') ) ); $result = Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Cache/CacheClearConfigCommand.php b/src/flextype/core/Console/Commands/Cache/CacheClearConfigCommand.php index 47ec86f0..48527457 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheClearConfigCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheClearConfigCommand.php @@ -39,16 +39,16 @@ class CacheClearConfigCommand extends Command if (filesystem()->directory($configPath)->delete()) { $output->write( renderToString( - div('Success: Config were successfully cleared from the cache.', - 'bg-success px-2 py-1') + div('Config were successfully cleared from the cache.', + 'color-success px-2 py-1') ) ); $result = Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Config cache wasn\'t cleared.', - 'bg-danger px-2 py-1') + div('Config cache wasn\'t cleared.', + 'color-danger px-2 py-1') ) ); $result = Command::FAILURE; @@ -56,8 +56,8 @@ class CacheClearConfigCommand extends Command } else { $output->write( renderToString( - div('Failure: Config cache directory ' . $configPath . ' doesn\'t exist.', - 'bg-danger px-2 py-1') + div('Config cache directory ' . $configPath . ' doesn\'t exist.', + 'color-danger px-2 py-1') ) ); $result = Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Cache/CacheClearDataCommand.php b/src/flextype/core/Console/Commands/Cache/CacheClearDataCommand.php index ebd13c99..cc7d225e 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheClearDataCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheClearDataCommand.php @@ -42,16 +42,16 @@ class CacheClearDataCommand extends Command if (filesystem()->directory($routesData)->delete()) { $output->write( renderToString( - div('Success: Data were successfully cleared from the cache.', - 'bg-success px-2 py-1') + div('Data were successfully cleared from the cache.', + 'color-success px-2 py-1') ) ); $result = Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Data cache wasn\'t cleared.', - 'bg-danger px-2 py-1') + div('Data cache wasn\'t cleared.', + 'color-danger px-2 py-1') ) ); $result = Command::FAILURE; @@ -59,8 +59,8 @@ class CacheClearDataCommand extends Command } else { $output->write( renderToString( - div('Failure: Data cache directory ' . $routesData . ' doesn\'t exist.', - 'bg-danger px-2 py-1') + div('Data cache directory ' . $routesData . ' doesn\'t exist.', + 'color-danger px-2 py-1') ) ); $result = Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Cache/CacheClearRoutesCommand.php b/src/flextype/core/Console/Commands/Cache/CacheClearRoutesCommand.php index e078d20d..e35cd594 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheClearRoutesCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheClearRoutesCommand.php @@ -42,16 +42,16 @@ class CacheClearRoutesCommand extends Command if (filesystem()->directory($routesPath)->delete()) { $output->write( renderToString( - div('Success: Routes were successfully cleared from the cache.', - 'bg-success px-2 py-1') + div('Routes were successfully cleared from the cache.', + 'color-success px-2 py-1') ) ); $result = Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Routes cache wasn\'t cleared.', - 'bg-danger px-2 py-1') + div('Routes cache wasn\'t cleared.', + 'color-danger px-2 py-1') ) ); $result = Command::FAILURE; @@ -59,8 +59,8 @@ class CacheClearRoutesCommand extends Command } else { $output->write( renderToString( - div('Failure: Routes cache directory ' . $routesPath . ' doesn\'t exist.', - 'bg-danger px-2 py-1') + div('Routes cache directory ' . $routesPath . ' doesn\'t exist.', + 'color-danger px-2 py-1') ) ); $result = Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Cache/CacheDeleteCommand.php b/src/flextype/core/Console/Commands/Cache/CacheDeleteCommand.php index ef1b6da0..2dba9b14 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheDeleteCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheDeleteCommand.php @@ -39,16 +39,16 @@ class CacheDeleteCommand extends Command if (cache()->delete($key)) { $output->write( renderToString( - div('Success: Cache item with key ' . $key . ' deleted.', - 'bg-success px-2 py-1') + div('Cache item with key ' . $key . ' deleted.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Cache item with key ' . $key . ' wasn\'t deleted.', - 'bg-danger px-2 py-1') + div('Cache item with key ' . $key . ' wasn\'t deleted.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Cache/CacheDeleteMultipleCommand.php b/src/flextype/core/Console/Commands/Cache/CacheDeleteMultipleCommand.php index a070557e..66c7ea9f 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheDeleteMultipleCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheDeleteMultipleCommand.php @@ -44,7 +44,7 @@ class CacheDeleteMultipleCommand extends Command $output->write( renderToString( div('Cache items with keys [b]' . implode('[/b], [b]', $keys) . '[/b] deleted.', - 'bg-success px-2 py-1') + 'color-success px-2 py-1') ) ); return Command::SUCCESS; @@ -52,7 +52,7 @@ class CacheDeleteMultipleCommand extends Command $output->write( renderToString( div('Cache items with keys [b]' . implode('[/b], [b]', $keys) . '[/b] wasn\'t deleted.', - 'bg-danger px-2 py-1') + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Cache/CacheHasCommand.php b/src/flextype/core/Console/Commands/Cache/CacheHasCommand.php index b7443b58..82ddd071 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheHasCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheHasCommand.php @@ -39,16 +39,16 @@ class CacheHasCommand extends Command if (cache()->has($key)) { $output->write( renderToString( - div('Success: Cache item with key [b]' . $key . '[/b] exists.', - 'bg-success px-2 py-1') + div('Cache item with key [b]' . $key . '[/b] exists.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Cache item with key [b]' . $key . '[/b] doesn\'t exists.', - 'bg-success px-2 py-1') + div('Cache item with key [b]' . $key . '[/b] doesn\'t exists.', + 'color-success px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Cache/CacheSetCommand.php b/src/flextype/core/Console/Commands/Cache/CacheSetCommand.php index 40a2b265..2e5e51f5 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheSetCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheSetCommand.php @@ -43,16 +43,16 @@ class CacheSetCommand extends Command if (cache()->set($key, $value, $ttl)) { $output->write( renderToString( - div('Success: Cache item with key ' . $key . ' created.', - 'bg-success px-2 py-1') + div('Cache item with key ' . $key . ' created.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Cache item with key ' . $key . ' wasn\'t created.', - 'bg-danger px-2 py-1') + div('Cache item with key ' . $key . ' wasn\'t created.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Cache/CacheSetMultipleCommand.php b/src/flextype/core/Console/Commands/Cache/CacheSetMultipleCommand.php index e38e05d9..0b1681ea 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheSetMultipleCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheSetMultipleCommand.php @@ -46,16 +46,16 @@ class CacheSetMultipleCommand extends Command if (cache()->setMultiple($values, $ttl)) { $output->write( renderToString( - div('Success: Cache items with keys [b]' . implode('[/b], [b]', array_keys($values)) . '[/b] created.', - 'bg-success px-2 py-1') + div('Cache items with keys [b]' . implode('[/b], [b]', array_keys($values)) . '[/b] created.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Cache items with keys [b]' . implode('[/b], [b]', array_keys($values)) . '[/b] wasn\'t created.', - 'bg-success px-2 py-1') + div('Cache items with keys [b]' . implode('[/b], [b]', array_keys($values)) . '[/b] wasn\'t created.', + 'color-success px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Entries/EntriesCopyCommand.php b/src/flextype/core/Console/Commands/Entries/EntriesCopyCommand.php index 79ac0e76..e1f3af58 100644 --- a/src/flextype/core/Console/Commands/Entries/EntriesCopyCommand.php +++ b/src/flextype/core/Console/Commands/Entries/EntriesCopyCommand.php @@ -42,8 +42,8 @@ class EntriesCopyCommand extends Command if (! entries()->has($id)) { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; @@ -52,16 +52,16 @@ class EntriesCopyCommand extends Command if (entries()->copy($id, $newID)) { $output->write( renderToString( - div('Success: Entry [b]' . $id . '[/b] coppied to [b]' . $newID . '[/b]', - 'bg-success px-2 py-1') + div('Entry [b]' . $id . '[/b] coppied to [b]' . $newID . '[/b]', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] wasn\'t coppied to [b]' . $newID . '[/b]', - 'bg-success px-2 py-1') + div('Entry [b]' . $id . '[/b] wasn\'t coppied to [b]' . $newID . '[/b]', + 'color-success px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Entries/EntriesCreateCommand.php b/src/flextype/core/Console/Commands/Entries/EntriesCreateCommand.php index 0d553c09..25eb01f1 100644 --- a/src/flextype/core/Console/Commands/Entries/EntriesCreateCommand.php +++ b/src/flextype/core/Console/Commands/Entries/EntriesCreateCommand.php @@ -51,16 +51,16 @@ class EntriesCreateCommand extends Command if (entries()->create($id, $dataToSave)) { $output->write( renderToString( - div('Success: Entry [b]' . $id . '[/b] created.', - 'bg-success px-2 py-1') + div('Entry [b]' . $id . '[/b] created.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] wasn\'t created.', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] wasn\'t created.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Entries/EntriesDeleteCommand.php b/src/flextype/core/Console/Commands/Entries/EntriesDeleteCommand.php index ba1a52f2..3bdcb053 100644 --- a/src/flextype/core/Console/Commands/Entries/EntriesDeleteCommand.php +++ b/src/flextype/core/Console/Commands/Entries/EntriesDeleteCommand.php @@ -39,8 +39,8 @@ class EntriesDeleteCommand extends Command if (! entries()->has($id)) { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; @@ -49,16 +49,16 @@ class EntriesDeleteCommand extends Command if (entries()->delete($id)) { $output->write( renderToString( - div('Success: Entry [b]' . $id . '[/b] deleted.', - 'bg-success px-2 py-1') + div('Entry [b]' . $id . '[/b] deleted.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] wasn\'t deleted.', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] wasn\'t deleted.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Entries/EntriesFetchCommand.php b/src/flextype/core/Console/Commands/Entries/EntriesFetchCommand.php index 740d9e5c..c99e6498 100644 --- a/src/flextype/core/Console/Commands/Entries/EntriesFetchCommand.php +++ b/src/flextype/core/Console/Commands/Entries/EntriesFetchCommand.php @@ -151,8 +151,8 @@ class EntriesFetchCommand extends Command } else { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Entries/EntriesHasCommand.php b/src/flextype/core/Console/Commands/Entries/EntriesHasCommand.php index e818275a..50457b8b 100644 --- a/src/flextype/core/Console/Commands/Entries/EntriesHasCommand.php +++ b/src/flextype/core/Console/Commands/Entries/EntriesHasCommand.php @@ -40,16 +40,16 @@ class EntriesHasCommand extends Command if (entries()->has($id)) { $output->write( renderToString( - div('Success: Entry [b]' . $id . '[/b] exists.', - 'bg-success px-2 py-1') + div('Entry [b]' . $id . '[/b] exists.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Entries/EntriesMoveCommand.php b/src/flextype/core/Console/Commands/Entries/EntriesMoveCommand.php index 82dc1db6..82c65ccc 100644 --- a/src/flextype/core/Console/Commands/Entries/EntriesMoveCommand.php +++ b/src/flextype/core/Console/Commands/Entries/EntriesMoveCommand.php @@ -41,8 +41,8 @@ class EntriesMoveCommand extends Command if (! entries()->has($id)) { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; @@ -51,16 +51,16 @@ class EntriesMoveCommand extends Command if (entries()->move($id, $newID)) { $output->write( renderToString( - div('Success: Entry [b]' . $id . '[/b] moved to [b]' . $newID . '[/b]', - 'bg-success px-2 py-1') + div('Entry [b]' . $id . '[/b] moved to [b]' . $newID . '[/b]', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] wasn\'t moved to [b]' . $newID . '[/b]', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] wasn\'t moved to [b]' . $newID . '[/b]', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Entries/EntriesUpdateCommand.php b/src/flextype/core/Console/Commands/Entries/EntriesUpdateCommand.php index bcffe963..df5016f2 100644 --- a/src/flextype/core/Console/Commands/Entries/EntriesUpdateCommand.php +++ b/src/flextype/core/Console/Commands/Entries/EntriesUpdateCommand.php @@ -51,8 +51,8 @@ class EntriesUpdateCommand extends Command if (! entries()->has($id)) { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; @@ -61,16 +61,16 @@ class EntriesUpdateCommand extends Command if (entries()->update($id, $dataToSave)) { $output->write( renderToString( - div('Success: Entry [b]' . $id . '[/b] updated.', - 'bg-success px-2 py-1') + div('Entry [b]' . $id . '[/b] updated.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Entry [b]' . $id . '[/b] wasn\'t updated.', - 'bg-danger px-2 py-1') + div('Entry [b]' . $id . '[/b] wasn\'t updated.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Tokens/TokensCreateCommand.php b/src/flextype/core/Console/Commands/Tokens/TokensCreateCommand.php index 3d893b86..f29a7e4f 100644 --- a/src/flextype/core/Console/Commands/Tokens/TokensCreateCommand.php +++ b/src/flextype/core/Console/Commands/Tokens/TokensCreateCommand.php @@ -55,16 +55,16 @@ class TokensCreateCommand extends Command if (entries()->create('tokens/' . $token, array_merge($dataToSave, ['hashed_access_token' => $hashed_access_token]))) { $output->write( renderToString( - div('Success: Token [b]' . $token . '[/b] with secret access token [b]' . $access_token . '[/b] created.', - 'bg-success px-2 py-1') + div('Token [b]' . $token . '[/b] with secret access token [b]' . $access_token . '[/b] created.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Token wasn\'t created.', - 'bg-danger px-2 py-1') + div('Token wasn\'t created.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Tokens/TokensDeleteCommand.php b/src/flextype/core/Console/Commands/Tokens/TokensDeleteCommand.php index 0818b706..936add45 100644 --- a/src/flextype/core/Console/Commands/Tokens/TokensDeleteCommand.php +++ b/src/flextype/core/Console/Commands/Tokens/TokensDeleteCommand.php @@ -39,8 +39,8 @@ class TokensDeleteCommand extends Command if (! entries()->has($id)) { $output->write( renderToString( - div('Failure: Token entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Token entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; @@ -49,16 +49,16 @@ class TokensDeleteCommand extends Command if (entries()->delete($id)) { $output->write( renderToString( - div('Success: Token entry [b]' . $id . '[/b] deleted.', - 'bg-success px-2 py-1') + div('Token entry [b]' . $id . '[/b] deleted.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Token entry [b]' . $id . '[/b] wasn\'t deleted.', - 'bg-danger px-2 py-1') + div('Token entry [b]' . $id . '[/b] wasn\'t deleted.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Tokens/TokensFetchCommand.php b/src/flextype/core/Console/Commands/Tokens/TokensFetchCommand.php index da825685..51a9b862 100644 --- a/src/flextype/core/Console/Commands/Tokens/TokensFetchCommand.php +++ b/src/flextype/core/Console/Commands/Tokens/TokensFetchCommand.php @@ -151,8 +151,8 @@ class TokensFetchCommand extends Command } else { $output->write( renderToString( - div('Failure: Token entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Token entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Tokens/TokensGenerateCommand.php b/src/flextype/core/Console/Commands/Tokens/TokensGenerateCommand.php index e9d4b24a..f48399ca 100644 --- a/src/flextype/core/Console/Commands/Tokens/TokensGenerateCommand.php +++ b/src/flextype/core/Console/Commands/Tokens/TokensGenerateCommand.php @@ -36,8 +36,8 @@ class TokensGenerateCommand extends Command { $output->write( renderToString( - div('Success: Token [b]' . generateToken($input->getArgument('length') ?? 16) . '[/b] generated.', - 'bg-success px-2 py-1') + div('Token [b]' . generateToken($input->getArgument('length') ?? 16) . '[/b] generated.', + 'color-success px-2 py-1') ) ); diff --git a/src/flextype/core/Console/Commands/Tokens/TokensGenerateHashCommand.php b/src/flextype/core/Console/Commands/Tokens/TokensGenerateHashCommand.php index d81e1147..fa3928b9 100644 --- a/src/flextype/core/Console/Commands/Tokens/TokensGenerateHashCommand.php +++ b/src/flextype/core/Console/Commands/Tokens/TokensGenerateHashCommand.php @@ -38,8 +38,8 @@ class TokensGenerateHashCommand extends Command $output->write( renderToString( - div('Success: Hash [b]' . generateTokenHash($token) . '[/b] for token [b]' . $token . '[/b] generated.', - 'bg-success px-2 py-1') + div('Hash [b]' . generateTokenHash($token) . '[/b] for token [b]' . $token . '[/b] generated.', + 'color-success px-2 py-1') ) ); diff --git a/src/flextype/core/Console/Commands/Tokens/TokensHasCommand.php b/src/flextype/core/Console/Commands/Tokens/TokensHasCommand.php index 56cb0e6b..e9fed6a8 100644 --- a/src/flextype/core/Console/Commands/Tokens/TokensHasCommand.php +++ b/src/flextype/core/Console/Commands/Tokens/TokensHasCommand.php @@ -40,16 +40,16 @@ class TokensHasCommand extends Command if (entries()->has($id)) { $output->write( renderToString( - div('Success: Token entry [b]' . $id . '[/b] exists.', - 'bg-success px-2 py-1') + div('Token entry [b]' . $id . '[/b] exists.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Token entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Token entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Tokens/TokensUpdateCommand.php b/src/flextype/core/Console/Commands/Tokens/TokensUpdateCommand.php index 34c8dc07..fa01a5a5 100644 --- a/src/flextype/core/Console/Commands/Tokens/TokensUpdateCommand.php +++ b/src/flextype/core/Console/Commands/Tokens/TokensUpdateCommand.php @@ -51,8 +51,8 @@ class TokensUpdateCommand extends Command if (! entries()->has($id)) { $output->write( renderToString( - div('Failure: Token entry [b]' . $id . '[/b] doesn\'t exists.', - 'bg-danger px-2 py-1') + div('Token entry [b]' . $id . '[/b] doesn\'t exists.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; @@ -61,16 +61,16 @@ class TokensUpdateCommand extends Command if (entries()->update($id, $dataToSave)) { $output->write( renderToString( - div('Success: Token entry [b]' . $id . '[/b] updated.', - 'bg-success px-2 py-1') + div('Token entry [b]' . $id . '[/b] updated.', + 'color-success px-2 py-1') ) ); return Command::SUCCESS; } else { $output->write( renderToString( - div('Failure: Token entry [b]' . $id . '[/b] wasn\'t updated.', - 'bg-danger px-2 py-1') + div('Token entry [b]' . $id . '[/b] wasn\'t updated.', + 'color-danger px-2 py-1') ) ); return Command::FAILURE; diff --git a/src/flextype/core/Console/Commands/Tokens/TokensVerifyHashCommand.php b/src/flextype/core/Console/Commands/Tokens/TokensVerifyHashCommand.php index b1274913..80bc0901 100644 --- a/src/flextype/core/Console/Commands/Tokens/TokensVerifyHashCommand.php +++ b/src/flextype/core/Console/Commands/Tokens/TokensVerifyHashCommand.php @@ -36,11 +36,12 @@ class TokensVerifyHashCommand extends Command protected function execute(InputInterface $input, OutputInterface $output): int { - if (verrifyTokenHash($input->getArgument('token'), $input->getArgument('token-hash') )) { + dd($input->getArgument('token-hash')); + if (verifyTokenHash($input->getArgument('token'), $input->getArgument('token-hash'))) { $output->write( renderToString( - div('Success: Token [b]' . $input->getArgument('token') . ' is verified', - 'bg-success px-2 py-1') + div('Token [b]' . $input->getArgument('token') . ' is verified', + 'color-success px-2 py-1') ) ); @@ -48,8 +49,8 @@ class TokensVerifyHashCommand extends Command } else { $output->write( renderToString( - div('Failure: Token [b]' . $input->getArgument('token') . ' isn\'t verified', - 'bg-success px-2 py-1') + div('Token [b]' . $input->getArgument('token') . ' isn\'t verified', + 'color-danger px-2 py-1') ) );