Skip to content

Commit

Permalink
UX improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
luizcmarin authored Jun 22, 2024
1 parent d9dd918 commit b007729
Show file tree
Hide file tree
Showing 7 changed files with 547 additions and 130 deletions.
11 changes: 7 additions & 4 deletions src/RequirementsChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
use function intval;

/**
* YiiRequirementChecker allows checking, if current system meets the requirements for running the Yii application.
* `RequirementsChecker` allows checking, if current system meets the requirements for running the Yii application.
* This class allows rendering of the check report for the web and console application interface.
*
* Example:
*
* ```php
* require_once 'path/to/YiiRequirementChecker.php';
* $requirementsChecker = new YiiRequirementChecker();
* use Yiisoft\Requirements\RequirementsChecker;
*
* require_once('vendor/yiisoft/requirements/src/RequirementsChecker.php');
*
* $requirementsChecker = new RequirementsChecker;
* $requirements = [
* [
* 'name' => 'PHP Some Extension',
Expand Down Expand Up @@ -402,6 +405,6 @@ public function getServerInfo(): string
*/
public function getNowDate(): string
{
return @strftime('%Y-%m-%d %H:%M', time());
return date('Y-m-d H:i:s');
}
}
2 changes: 1 addition & 1 deletion src/views/console/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
echo 'Required by: ' . strip_tags($requirement['by']) . "\n";
$memo = strip_tags($requirement['memo']);
if (!empty($memo)) {
echo 'Memo: ' . strip_tags($requirement['memo']) . "\n";
echo strip_tags($requirement['memo']) . "\n";
}
}
echo "\n";
Expand Down
Loading

0 comments on commit b007729

Please sign in to comment.