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 | |
use Illuminate\Support\Collection; | |
class Raffle | |
{ | |
private int $total = 0; | |
private int $current = 0; | |
private Collection $entries; |
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\Console\Commands\CI; | |
use App\Support\PlanetScale\CategorizeMigrations; | |
use App\Support\PlanetScale\ConnectToBranch; | |
use App\Support\PlanetScale\CreateBranch; | |
use App\Support\PlanetScale\CreateDeployRequest; | |
use App\Support\PlanetScale\DeleteBranch; | |
use App\Support\PlanetScale\DeployRequest; |
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\Traits; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Str; | |
use ReflectionClass; | |
trait Exportable | |
{ |
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 | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'assign_null_coalescing_to_coalesce_equal' => true, | |
'binary_operator_spaces' => [ |
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\CampFormats; | |
use App\Actions\CopyPdfFromResources; | |
use App\Actions\CreateRosterPdf; | |
use App\Actions\GetGoogleDocAsPdf; | |
class BasketballOneDay extends BaseFormat | |
{ |
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\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
class SignedOrLoggedIn | |
{ | |
/** |
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
foreach (\File::files(resource_path('views')) as $file) { | |
if (str_contains($file->getPathname(), 'blade.php')) { | |
$contents = \File::get($file); | |
$contents = str_replace('{{', '{{ ', $contents); | |
$contents = str_replace('}}', ' }}', $contents); | |
$contents = str_replace('])', '] )', $contents); | |
preg_match_all('/\$[a-zA-Z](.*?)[ \}]/', $contents, $match); | |
$replace = []; |
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\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
class LocalOnly | |
{ | |
/** |
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\Console\Commands; | |
use Illuminate\Console\Command; | |
class OkuCalculator extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
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\View\Components; | |
use Illuminate\View\Component; | |
class CodeBlock extends Component | |
{ | |
/** | |
* Create a new component instance. |
NewerOlder