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 | |
| $finder = PhpCsFixer\Finder::create() | |
| ->in(__DIR__.'/backend/src') | |
| ->in(__DIR__.'/backend/tests'); | |
| return PhpCsFixer\Config::create() | |
| ->finder($finder); |
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
| framework: | |
| workflows: | |
| pull_request: | |
| type: 'state_machine' | |
| supports: | |
| - AppBundle\Entity\PullRequest | |
| places: | |
| - init | |
| - foo | |
| - bar |
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 AppBundle\DataFixtures\Processor; | |
| use AppBundle\Entity\Theme; | |
| use AppBundle\Entity\ThemeRepository; | |
| use AppBundle\File\Theme\BackgroundFile; | |
| use Nelmio\Alice\ProcessorInterface; | |
| use Symfony\Component\HttpFoundation\File\UploadedFile; |
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 PlatformBundle\Form\Extension; | |
| use Symfony\Component\Form\AbstractTypeExtension; | |
| use Symfony\Component\Form\Extension\Core\Type\TextType; | |
| use Symfony\Component\Form\FormInterface; | |
| use Symfony\Component\Form\FormView; | |
| use Symfony\Component\OptionsResolver\OptionsResolver; |
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 Acme\Monolog; | |
| use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy; | |
| use Symfony\Component\HttpKernel\Exception\HttpException; | |
| class LimitedErrorActivationStrategy extends ErrorLevelActivationStrategy | |
| { | |
| public function __construct() |
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
| // ==UserScript== | |
| // @name Netflix /browse hero video preventer | |
| // @author Shaun | |
| // @namespace Violentmonkey Scripts | |
| // @match *://*.netflix.com/browse | |
| // @grant none | |
| // @run-at document-start | |
| // ==/UserScript== | |
| (function() { | |
| let observers = []; |
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
| var existingLink = document.querySelector('link[data-custom-css]'); | |
| if (existingLink) { existingLink.parentNode.removeChild(existingLink); } | |
| var link = document.createElement('link'); | |
| link.setAttribute('data-custom-css', '1'); | |
| link.rel = 'stylesheet'; | |
| link.href = '/xxxxxxxxxxxxxxxxxxxxxxxx.css?'+Math.floor(Math.random()*10000); | |
| document.querySelector('head').appendChild(link); |
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 | |
| // src/Serializer/CommentNormalizer.php | |
| namespace App\Serializer; | |
| use App\DataProvider\CurrentUserProvider; | |
| use App\Entity\Comment; | |
| use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; | |
| use Symfony\Component\Serializer\Normalizer\NormalizerInterface; |
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 | |
| # src/DataProvider/CurrentUserProvider.php | |
| namespace App\DataProvider; | |
| use App\Entity\User; | |
| use App\Repository\UserRepository; | |
| use App\Security\SecurityUser; | |
| use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |