Skip to content

Instantly share code, notes, and snippets.

@theMadness
theMadness / dictionary.md
Last active October 21, 2022 03:03
chelcupacabra's more corrector spelling
  • enneagram ennegrmarm
  • Myers–Briggs mayos briggles
  • Jerry jerru
  • spell speel
  • spring springa
  • Springer springa
<?php
namespace Tests\AppBundle\DependencyInjection\Compiler;
use AppBundle\Security\DeepRoleChecker;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
class OverrideServiceCompilerPassTest extends KernelTestCase
{
public function testRoleCanEditResourceInjection(): void
<?php
namespace AppBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class OverrideServiceCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container): void
<?php
namespace DS\App\Console\Commands;
use DS\App\Models\ConciergeRssFeed;
use GuzzleHttp\Client;
use GuzzleHttp\Promise;
use GuzzleHttp\Psr7\Response;
use Illuminate\Console\Command;
<?php
namespace DS\App\Console\Commands;
use DS\App\Models\ConciergeRssFeed;
use GuzzleHttp\Client;
use GuzzleHttp\Promise;
use GuzzleHttp\Psr7\Response;
use Illuminate\Console\Command;
#!/bin/bash
declare -r php_path=/usr/local/bin/php
if [ -h "$php_path" ]
then
[[ "$(readlink $php_path)" =~ /(php[0-9]{2})/ ]] && brew unlink ${BASH_REMATCH[1]}
else
echo "$php_path is not a symlink"
fi
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class MediaModuleUpdate extends Migration
{
/**
* Run the migrations.
Switch to doctrine2
Move all the doctrine customizations to external modules that we host on an independent repo and load through composer
Change entity definition to use the most implicit and linear configuration possible (relations should take one line, not 10)
Remove the Resourceable behavior and implement a resource column type in its place
When designing the data, create an ER diagram
Define a common code style for php
Create a shared .php_cs