-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ba4f85
commit da38e7d
Showing
19 changed files
with
792 additions
and
777 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
<?php | ||
namespace Glowie\Commands; | ||
|
||
use Glowie\Core\Collection; | ||
use Glowie\Core\CLI\Command; | ||
namespace Glowie\Commands; | ||
|
||
/** | ||
* Inspirational CLI command for Glowie application. | ||
* @category Command | ||
* @package glowieframework/glowie | ||
* @author Glowie | ||
* @copyright Copyright (c) Glowie | ||
* @license MIT | ||
* @link https://gabrielsilva.dev.br/glowie | ||
*/ | ||
class Quote extends Command{ | ||
use Glowie\Core\Collection; | ||
use Glowie\Core\CLI\Command; | ||
|
||
/** | ||
* The command script. | ||
*/ | ||
public function run(){ | ||
// Gets a random quote | ||
$quote = (new Collection([ | ||
'"Computers are fast; programmers keep it slow."', | ||
'"Programming can be fun, and so can cryptography; however, they should not be combined."', | ||
'"When we had no computers, we had no programming problems either."', | ||
'"There is no Ctrl-Z in life."', | ||
'"Whitespace is never white."', | ||
'"When all else fails... reboot."', | ||
'"The computer was born to solve problems that did not exist before."', | ||
'"There\'s no place like 127.0.0.1."', | ||
'"It works on my machine."', | ||
'"A good programmer is someone who always looks both ways before crossing a one-way street."', | ||
'"Software and cathedrals are much the same — first we build them, then we pray."', | ||
'"It\'s not a bug – it\'s an undocumented feature."' | ||
]))->random(); | ||
/** | ||
* Inspirational CLI command for Glowie application. | ||
* @category Command | ||
* @package glowieframework/glowie | ||
* @author Glowie | ||
* @copyright Copyright (c) Glowie | ||
* @license MIT | ||
* @link https://gabrielsilva.dev.br/glowie | ||
*/ | ||
class Quote extends Command | ||
{ | ||
|
||
// Prints the quote in the console | ||
$this->info($quote); | ||
} | ||
/** | ||
* The command script. | ||
*/ | ||
public function run() | ||
{ | ||
// Gets a random quote | ||
$quote = (new Collection([ | ||
'"Computers are fast; programmers keep it slow."', | ||
'"Programming can be fun, and so can cryptography; however, they should not be combined."', | ||
'"When we had no computers, we had no programming problems either."', | ||
'"There is no Ctrl-Z in life."', | ||
'"Whitespace is never white."', | ||
'"When all else fails... reboot."', | ||
'"The computer was born to solve problems that did not exist before."', | ||
'"There\'s no place like 127.0.0.1."', | ||
'"It works on my machine."', | ||
'"A good programmer is someone who always looks both ways before crossing a one-way street."', | ||
'"Software and cathedrals are much the same — first we build them, then we pray."', | ||
'"It\'s not a bug – it\'s an undocumented feature."' | ||
]))->random(); | ||
|
||
// Prints the quote in the console | ||
$this->info($quote); | ||
} | ||
|
||
?> | ||
} |
Oops, something went wrong.