Completed
Pull Request — 7.x-1.x (#96)
by Pol
04:28
created
lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,6 @@  discard block
 block discarded – undo
223 223
   /**
224 224
    * Returns a service alias definiton.
225 225
    *
226
-   * @param string $alias
227 226
    * @param Alias  $id
228 227
    *
229 228
    * @return string
@@ -352,6 +351,9 @@  discard block
 block discarded – undo
352 351
     return sprintf('%%%s%%', $id);
353 352
   }
354 353
 
354
+  /**
355
+   * @param string $expression
356
+   */
355 357
   protected function getExpressionCall($expression)
356 358
   {
357 359
     return sprintf('@=%s', $expression);
Please login to merge, or discard this patch.
lib/Drupal/Core/DependencyInjection/YamlFileLoader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     /**
57 57
      * Loads a Yaml file.
58 58
      *
59
-     * @param mixed  $file The resource
59
+     * @param string  $file The resource
60 60
      */
61 61
     public function load($file)
62 62
     {
Please login to merge, or discard this patch.
Drupal/service_container/Tests/KeyValue/DatabaseStorageExpirableTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,9 +7,7 @@
 block discarded – undo
7 7
 
8 8
 namespace Drupal\service_container\Tests\KeyValue;
9 9
 
10
-use Drupal\Core\DependencyInjection\ContainerBuilder;
11 10
 use Drupal\Core\KeyValueStore\KeyValueExpirableFactory;
12
-use Drupal\Core\KeyValueStore\KeyValueFactory;
13 11
 
14 12
 /**
15 13
  * Tests the key-value database storage.
Please login to merge, or discard this patch.
lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     /**
267 267
      * Sets the default namespaces.
268 268
      *
269
-     * @param array $namespace
269
+     * @param string $namespace
270 270
      *
271 271
      * @return void
272 272
      *
@@ -1045,7 +1045,7 @@  discard block
 block discarded – undo
1045 1045
      * FieldAssignment ::= FieldName "=" PlainValue
1046 1046
      * FieldName ::= identifier
1047 1047
      *
1048
-     * @return array
1048
+     * @return \stdClass
1049 1049
      */
1050 1050
     private function FieldAssignment()
1051 1051
     {
Please login to merge, or discard this patch.
lib/Doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
      *                 parameter, none)
130 130
      *  - 'position' : the position of the token in the input string
131 131
      *
132
-     * @return array|null the next token; null if there is no more tokens left
132
+     * @return boolean the next token; null if there is no more tokens left
133 133
      */
134 134
     public function moveNext()
135 135
     {
Please login to merge, or discard this patch.
Tests/ServiceContainerAnnotationDiscoveryIntegrationTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use Drupal\Component\Plugin\PluginBase;
11 11
 use Drupal\service_container\Messenger\MessengerInterface;
12 12
 use Drupal\service_container\Tests\ServiceContainerIntegrationTestBase;
13
-use Mockery\CountValidator\Exception;
14 13
 use Symfony\Component\Yaml\Exception\RuntimeException;
15 14
 
16 15
 class ServiceContainerAnnotationDiscoveryIntegrationTest extends ServiceContainerIntegrationTestBase {
Please login to merge, or discard this patch.
Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *
131 131
      * @param string $id A full id or alias for a service definition.
132 132
      *
133
-     * @return Definition|null The definition related to the supplied id
133
+     * @return Definition The definition related to the supplied id
134 134
      */
135 135
     private function getDefinition($id)
136 136
     {
@@ -139,6 +139,11 @@  discard block
 block discarded – undo
139 139
         return null === $id ? null : $this->container->getDefinition($id);
140 140
     }
141 141
 
142
+    /**
143
+     * @param string $id
144
+     *
145
+     * @return string
146
+     */
142 147
     private function getDefinitionId($id)
143 148
     {
144 149
         while ($this->container->hasAlias($id)) {
Please login to merge, or discard this patch.
lib/Symfony/Component/DependencyInjection/Container.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
      *
232 232
      * @param string $id The service identifier
233 233
      *
234
-     * @return bool true if the service is defined, false otherwise
234
+     * @return boolean|null true if the service is defined, false otherwise
235 235
      *
236 236
      * @api
237 237
      */
Please login to merge, or discard this patch.
lib/Symfony/Component/DependencyInjection/ContainerBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1000,7 +1000,7 @@
 block discarded – undo
1000 1000
      *
1001 1001
      * @param mixed $value A value
1002 1002
      *
1003
-     * @return mixed The same value with all service references replaced by
1003
+     * @return callable|null The same value with all service references replaced by
1004 1004
      *               the real service instances and all expressions evaluated
1005 1005
      */
1006 1006
     public function resolveServices($value)
Please login to merge, or discard this patch.