| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait ImageMigrationTrait { |
||
| 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 | /** |
||
| 28 | * Sets an image field and alt text in a migration based on the source |
||
| 29 | * property (the name of the file). |
||
| 30 | * |
||
| 31 | * @param \Drupal\migrate\Row $row |
||
| 32 | * @param string $source_property |
||
| 33 | */ |
||
| 34 | protected function setImageProperty(Row $row, $source_property) { |
||
| 54 |
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