$this->userID = $userID;
$this->directDownload = $directDownload;
}
+
public function handle()
{
$user = User::withoutGlobalScopes()->find($this->userID); //5908
$name = $field->getName();
/** @var $field Field */
if ($field instanceof UnstoredField || in_array($name, ['deleted_at', 'videoPath'])) {
-
- } else {
- $fields[$name] = [
- 'default' => $field->getAttribute('default'),
- 'noteditable' => $field instanceof Hidden
- ];
+ continue;
}
+ $fields[$name] = [
+ 'default' => $field->getAttribute('default'),
+ 'noteditable' => $field instanceof Hidden
+ ];
+
}
$keys = array_keys($fields);
$hash = explode('cubist', $tmpfile)[1];
$file = base64_encode($hash);
- if($this->directDownload) {
+ if ($this->directDownload) {
return $tmpfile;
}
return $this->notification($user, $file);
}
- protected function notification($user, $file) {
+ protected function notification($user, $file)
+ {
$url = route('download_settings', ['file' => $file]);
$subject = __("Export groupé des paramètres des fluidbooks prêt au téléchargement");
$notification = '';