Completed
Pull Request — master (#90)
by Kévin
06:52
created
src/Executor/DoctrineDBAL/FilterTrait.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -12,6 +12,7 @@
 block discarded – undo
12 12
 
13 13
     /**
14 14
      * {@inheritdoc}
15
+     * @param \Doctrine\DBAL\Query\QueryBuilder $target
15 16
      */
16 17
     public function applyFilter($target, array $parameters, array $operators, ExecutionContext $context)
17 18
     {
Please login to merge, or discard this patch.
src/Executor/DoctrineORM/FilterTrait.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -7,10 +7,14 @@
 block discarded – undo
7 7
 
8 8
 trait FilterTrait
9 9
 {
10
+    /**
11
+     * @param \Doctrine\ORM\QueryBuilder $target
12
+     */
10 13
     abstract protected function execute($target, array $operators, array $parameters);
11 14
 
12 15
     /**
13 16
      * {@inheritdoc}
17
+     * @param \Doctrine\ORM\QueryBuilder $target
14 18
      */
15 19
     public function applyFilter($target, array $parameters, array $operators, ExecutionContext $context)
16 20
     {
Please login to merge, or discard this patch.
src/Target/GenericVisitor.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@  discard block
 block discarded – undo
112 112
         return $this->compileRuntimeOperator($operatorName, $element->getArguments(), $handle, $eldnah);
113 113
     }
114 114
 
115
+    /**
116
+     * @param string $operatorName
117
+     */
115 118
     private function compileRuntimeOperator($operatorName, array $arguments, &$handle = null, $eldnah = null)
116 119
     {
117 120
         $compiledArguments = array_map(function ($argument) use (&$handle, $eldnah) {
@@ -122,6 +125,9 @@  discard block
 block discarded – undo
122 125
         return sprintf('call_user_func($operators["%s"]%s)', $operatorName, $inlinedArguments);
123 126
     }
124 127
 
128
+    /**
129
+     * @param string $operatorName
130
+     */
125 131
     private function compileInlineOperator($operatorName, array $arguments, &$handle = null, $eldnah = null)
126 132
     {
127 133
         $operatorCallable = $this->operators->getInlineOperator($operatorName);
Please login to merge, or discard this patch.