This file contains 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 Plusquam\Bundle\ContractBundle\Service\Invoice; | |
class ContractAdminController extends Controller | |
{ | |
/** | |
* Invoice action | |
* | |
* @return Response |
This file contains 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\Common\Infrastructure\Symfony\Messenger; | |
use Prooph\EventStore\Exception\ConcurrencyException; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Messenger\Exception\HandlerFailedException; | |
use Symfony\Component\Messenger\Exception\RuntimeException; | |
use Symfony\Component\Messenger\Exception\ValidationFailedException; |
This file contains 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 Sonata\AdminBundle\Admin\Admin; | |
use Sonata\AdminBundle\Form\FormMapper; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; | |
class SubjectOutsideFunctionAdmin extends Admin | |
{ | |
protected function configureFormFields(FormMapper $formMapper) |
This file contains 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 declare(strict_types=1); | |
final class DocumentFormatValidator | |
{ | |
private function validatePrefix(Filename $filename, DocumentFormat $format): void | |
{ | |
$detectedPrefix = $this->detectPrefix($filename); | |
if ($detectedPrefix === null) { | |
if (!$format->requiresPrefix()) { |
This file contains 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 Sps\Bundle\CalculationBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; | |
class CalculationController extends Controller | |
{ |
This file contains 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 Plusquam\Bundle\ContractBundle\Filter; | |
use Doctrine\ORM\Query\Filter\SQLFilter; | |
use Doctrine\ORM\Mapping\ClassMetadata; | |
use Doctrine\Common\Annotations\Reader; | |
class CompartmentFilter extends SQLFilter | |
{ |
This file contains 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\Controller; | |
class DefaultController extends Controller | |
{ | |
/** | |
* @Route("/gettoken") | |
*/ | |
public function getToken() |
This file contains 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 Sps\DormerCalculation\Infrastructure\Persistence\Doctrine; | |
use Doctrine\ORM\EntityRepository; | |
/** | |
* Class DoctrineGutterColorRepository | |
* @package Sps\DormerCalculation\Infrastructure\Persistence\Doctrine | |
*/ |
This file contains 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 declare(strict_types=1); | |
namespace Acme\Shared\Application\Service; | |
trait PayloadMessage | |
{ | |
private function __construct() | |
{} | |
/** |
This file contains 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
Table structure: | |
test_id place_id | |
9b949b1a-414b-43f0-8940-9b821f1e2098 a3358c22-af08-485f-933e-f4d6ce900882 | |
5177ab63-5ecd-4241-913e-36fb9d917efd a3358c22-af08-485f-933e-f4d6ce900882 | |
c16ac09c-8ccf-45b9-8593-7ffceb4d5d9e a3358c22-af08-485f-933e-f4d6ce900882 | |
MySQL: SELECT test_id, place_id FROM transmissions GROUP BY place_id | |
Result (CORRECT): |
NewerOlder