| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait AuthorMigrationTrait { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Configuration information passed into the plugin. |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $configuration; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The entity migration object. |
||
| 21 | * |
||
| 22 | * @var \Drupal\migrate\Entity\MigrationInterface |
||
|
|
|||
| 23 | */ |
||
| 24 | protected $migration; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Sets the UID property for the migration target, optionally |
||
| 28 | * accepting a null UID and role-based lookup with |
||
| 29 | * random author assignment. |
||
| 30 | * |
||
| 31 | * @param \Drupal\migrate\Row $row |
||
| 32 | * @param null $uid |
||
| 33 | * @param string $roles |
||
| 34 | */ |
||
| 35 | protected function setUidProperty(Row $row, $uid = NULL, $roles = 'administrator') { |
||
| 52 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths