Completed
Pull Request — master (#157)
by
unknown
01:57
created
src/Drupal/Driver/Cores/CoreInterface.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
    *   URI that is accessing Drupal. Defaults to 'default'.
19 19
    * @param \Drupal\Component\Utility\Random $random
20 20
    *   Random string generator.
21
-   * @param string $projectPluginRoot
22
-   *   The directory to search for additional project-specific driver plugins.
21
+   * @return void
23 22
    */
24 23
   public function __construct($drupal_root, $uri = 'default', Random $random = NULL);
25 24
 
26 25
   /**
27 26
    * Return random generator.
27
+   * @return Random
28 28
    */
29 29
   public function getRandom();
30 30
 
@@ -195,6 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
   /**
197 197
    * Clears the static caches.
198
+   * @return void
198 199
    */
199 200
   public function clearStaticCaches();
200 201
 
@@ -228,7 +229,7 @@  discard block
 block discarded – undo
228 229
    *
229 230
    * @param string $entity_type
230 231
    *   Entity type machine name.
231
-   * @param object $entity
232
+   * @param \stdClass $entity
232 233
    *   The field values and properties desired for the new entity.
233 234
    *
234 235
    * @return \Drupal\Core\Entity\EntityInterface
@@ -238,6 +239,8 @@  discard block
 block discarded – undo
238 239
 
239 240
   /**
240 241
    * Delete an entity.
242
+   * @param string $entity_type
243
+   * @param \stdClass $entity
241 244
    */
242 245
   public function entityDelete($entity_type, $entity);
243 246
 
Please login to merge, or discard this patch.
src/Drupal/Driver/Cores/Drupal8.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -266,6 +266,7 @@  discard block
 block discarded – undo
266 266
 
267 267
   /**
268 268
    * {@inheritdoc}
269
+   * @param string $entity_type
269 270
    */
270 271
   protected function expandEntityFields($entity_type, \stdClass $entity, array $base_fields = array()) {
271 272
     $field_types = $this->getEntityFieldTypes($entity_type, $base_fields);
@@ -346,6 +347,7 @@  discard block
 block discarded – undo
346 347
 
347 348
   /**
348 349
    * {@inheritdoc}
350
+   * @param string $entity_type
349 351
    */
350 352
   public function isBaseField($entity_type, $field_name) {
351 353
     $fields = \Drupal::entityManager()->getFieldStorageDefinitions($entity_type);
Please login to merge, or discard this patch.
src/Drupal/Driver/Wrapper/Entity/DriverEntityBase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -446,7 +446,7 @@
 block discarded – undo
446 446
   /**
447 447
    * Set the driver entity plugin manager.
448 448
    *
449
-   * @param mixed $manager
449
+   * @param null|DriverPluginManagerInterface $manager
450 450
    *   The driver entity plugin manager.
451 451
    * @param string $projectPluginRoot
452 452
    *   The directory to search for additional project-specific driver plugins.
Please login to merge, or discard this patch.
src/Drupal/Driver/Wrapper/Field/DriverFieldBase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
   /**
211 211
    * Set the driver field plugin manager.
212 212
    *
213
-   * @param mixed $manager
213
+   * @param null|DriverPluginManagerInterface $manager
214 214
    *   The driver entity plugin manager.
215 215
    * @param string $projectPluginRoot
216 216
    *   The directory to search for additional project-specific driver plugins.
Please login to merge, or discard this patch.
src/Drupal/Driver/Wrapper/Field/DriverFieldDrupal8.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -55,6 +55,8 @@
 block discarded – undo
55 55
 
56 56
   /**
57 57
    * {@inheritdoc}
58
+   * @param string $projectPluginRoot
59
+   * @param \Drupal\Driver\Plugin\DriverPluginManagerInterface $fieldPluginManager
58 60
    */
59 61
   public function __construct(
60 62
         $rawValues,
Please login to merge, or discard this patch.
tests/Drupal/Tests/Driver/Kernel/Drupal8/Entity/DriverEntityTest.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -112,6 +112,8 @@
 block discarded – undo
112 112
 
113 113
   /**
114 114
    * Assert that an entity is created & wrapped with a specified name.
115
+   * @param string $fieldName
116
+   * @param DriverEntityDrupal8 $entity
115 117
    */
116 118
   protected function assertEntityWithName($value, $fieldName, $entity) {
117 119
     $value = $this->randomString();
Please login to merge, or discard this patch.