Skip to content
Snippets Groups Projects

Issue#3431327: Fix phpcs issues.

3 files
+ 6
6
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -181,7 +181,7 @@ class AudioToDidAvatar extends AiInterpolatorFieldRule implements AiInterpolator
* {@inheritDoc}
*/
public function extraFormFields(ContentEntityInterface $entity, FieldDefinitionInterface $fieldDefinition) {
$form ['did'] = [
$form['did'] = [
'#type' => 'details',
'#title' => $this->t('D-iD Settings'),
'#open' => TRUE,
@@ -290,7 +290,7 @@ class AudioToDidAvatar extends AiInterpolatorFieldRule implements AiInterpolator
// Successful counter, to only download as many as max.
$successFul = 0;
foreach ($values as $value) {
// Get better file name
// Get better file name.
$fileName = explode('?', basename($value))[0];
// Everything validated, then we prepare the file path to save to.
$filePath = $this->token->replace($config['uri_scheme'] . '://' . rtrim($config['file_directory'], '/')) . '/' . $fileName;
Loading