Completed
Pull Request — master (#607)
by Maxime
03:56 queued 01:02
created
DependencyInjection/Compiler/DoctrineOrmMappingsPass.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * You should not directly instantiate this class but use one of the
31 31
      * factory methods.
32 32
      *
33
-     * @param Definition|Reference $driver            Driver DI definition or reference.
33
+     * @param Definition $driver            Driver DI definition or reference.
34 34
      * @param array                $namespaces        List of namespaces handled by $driver.
35 35
      * @param string[]             $managerParameters Ordered list of container parameters that
36 36
      *                                                could hold the manager name.
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @param string|false         $enabledParameter  If specified, the compiler pass only executes
40 40
      *                                                if this parameter is defined in the service
41 41
      *                                                container.
42
-     * @param array                $aliasMap          Map of alias to namespace.
42
+     * @param string[]                $aliasMap          Map of alias to namespace.
43 43
      */
44 44
     public function __construct($driver, array $namespaces, array $managerParameters, $enabledParameter = false, array $aliasMap = array())
45 45
     {
Please login to merge, or discard this patch.
DependencyInjection/DoctrineExtension.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -730,6 +730,7 @@
 block discarded – undo
730 730
 
731 731
     /**
732 732
      * {@inheritDoc}
733
+     * @param string $driverName
733 734
      */
734 735
     protected function loadCacheDriver($driverName, $entityManagerName, array $driverMap, ContainerBuilder $container)
735 736
     {
Please login to merge, or discard this patch.
Tests/DependencyInjection/AbstractDoctrineExtensionTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -799,6 +799,9 @@  discard block
 block discarded – undo
799 799
         $this->assertDICDefinitionMethodCallOnce($definition, 'setRepositoryFactory', array('repository_factory'));
800 800
     }
801 801
 
802
+    /**
803
+     * @param string $fixture
804
+     */
802 805
     private function loadContainer($fixture, array $bundles = array('YamlBundle'), CompilerPassInterface $compilerPass = null)
803 806
     {
804 807
         $container = $this->getContainer($bundles);
@@ -849,6 +852,10 @@  discard block
 block discarded – undo
849 852
         $this->assertEquals($args, $definition->getArguments(), "Expected and actual DIC Service constructor arguments of definition '".$definition->getClass()."' don't match.");
850 853
     }
851 854
 
855
+    /**
856
+     * @param integer $pos
857
+     * @param string $methodName
858
+     */
852 859
     private function assertDICDefinitionMethodCallAt($pos, Definition $definition, $methodName, array $params = null)
853 860
     {
854 861
         $calls = $definition->getMethodCalls();
@@ -889,6 +896,9 @@  discard block
 block discarded – undo
889 896
         }
890 897
     }
891 898
 
899
+    /**
900
+     * @param string $methodName
901
+     */
892 902
     private function assertDICDefinitionMethodCallCount(Definition $definition, $methodName, array $params = array(), $nbCalls = 1)
893 903
     {
894 904
         $calls = $definition->getMethodCalls();
Please login to merge, or discard this patch.
Tests/DependencyInjection/DoctrineExtensionTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -498,6 +498,9 @@  discard block
 block discarded – undo
498 498
         $this->assertEquals('doctrine_cache.providers.result_cache', (string) $alias);
499 499
     }
500 500
 
501
+    /**
502
+     * @param string $vendor
503
+     */
501 504
     private function getContainer($bundles = 'YamlBundle', $vendor = null)
502 505
     {
503 506
         $bundles = (array) $bundles;
@@ -523,6 +526,10 @@  discard block
 block discarded – undo
523 526
         $this->assertEquals($args, $definition->getArguments(), "Expected and actual DIC Service constructor arguments of definition '".$definition->getClass()."' don't match.");
524 527
     }
525 528
 
529
+    /**
530
+     * @param integer $pos
531
+     * @param string $methodName
532
+     */
526 533
     private function assertDICDefinitionMethodCallAt($pos, Definition $definition, $methodName, array $params = null)
527 534
     {
528 535
         $calls = $definition->getMethodCalls();
Please login to merge, or discard this patch.
Twig/DoctrineExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     /**
92 92
      * Shrink the values of parameters from a combination
93 93
      *
94
-     * @param array $parameters
94
+     * @param string[] $parameters
95 95
      * @param array $combination
96 96
      *
97 97
      * @return string
Please login to merge, or discard this patch.
Mapping/EntityListenerServiceResolver.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -9,6 +9,7 @@
 block discarded – undo
9 9
     /**
10 10
      * @param string $className
11 11
      * @param string $serviceId
12
+     * @return void
12 13
      */
13 14
     public function registerService($className, $serviceId);
14 15
 }
Please login to merge, or discard this patch.
Tests/Twig/DoctrineExtensionTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@
 block discarded – undo
103 103
 {
104 104
     protected $str;
105 105
 
106
+    /**
107
+     * @param string $str
108
+     */
106 109
     public function __construct($str)
107 110
     {
108 111
         $this->str = $str;
Please login to merge, or discard this patch.