This file contains hidden or 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
| <?php | |
| namespace App\Http\Controllers; | |
| use App\Dtos\HealthChecksDto; | |
| use Illuminate\Http\JsonResponse; | |
| use Spatie\CpuLoadHealthCheck\CpuLoadCheck; | |
| use Spatie\Health\Checks\Checks\UsedDiskSpaceCheck; | |
| use Spatie\Health\Checks\Result; | |
| use Spatie\Health\Health; |
This file contains hidden or 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
| <?php | |
| // This solution does not care for $n <= 1 | |
| function displayCheckerBoard($n): string { | |
| $gridStartWithX = 'XY'; | |
| $gridStartWithY = 'YX'; | |
| if ($n === 2) { | |
| return $gridStartWithX . PHP_EOL . $gridStartWithY . PHP_EOL; | |
| } |
OlderNewer