Completed
Branch master (beefeb)
by Vitaliy
05:58
created
src/Processor/FilterProcessor.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace ViewComponents\Doctrine\Processor;
4 4
 
5 5
 use Doctrine\DBAL\Query\QueryBuilder;
6
-
7 6
 use ViewComponents\ViewComponents\Data\Operation\FilterOperation;
8 7
 use ViewComponents\ViewComponents\Data\Operation\OperationInterface;
9 8
 use ViewComponents\ViewComponents\Data\Processor\ProcessorInterface;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $value = $operation->getValue();
21 21
         $operator = $operation->getOperator();
22 22
         $fieldName = $operation->getField();
23
-        $parameterName = str_replace(".", "_", $fieldName);// @see https://github.com/Nayjest/Grids/issues/111
23
+        $parameterName = str_replace(".", "_", $fieldName); // @see https://github.com/Nayjest/Grids/issues/111
24 24
         $src->andWhere("$fieldName $operator :$parameterName");
25 25
         $src->setParameter($parameterName, $value);
26 26
         return $src;
Please login to merge, or discard this patch.
src/DoctrineDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 class DoctrineDataProvider extends AbstractDataProvider
9 9
 {
10
-    public function __construct(QueryBuilder $src, array $operations = [])
10
+    public function __construct(QueryBuilder $src, array $operations = [ ])
11 11
     {
12 12
         $this->operations()->set($operations);
13 13
         $this->processingService = new DoctrineProcessingService(
Please login to merge, or discard this patch.