Skip to content

Commit

Permalink
Standard formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eugabrielsilva committed Jul 26, 2024
1 parent 0ba4f85 commit da38e7d
Show file tree
Hide file tree
Showing 19 changed files with 792 additions and 777 deletions.
74 changes: 37 additions & 37 deletions app/commands/Quote.php
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);
}

?>
}
Loading

0 comments on commit da38e7d

Please sign in to comment.