@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | protected function execute(InputInterface $input, OutputInterface $output): int { |
62 | 62 | $fileInput = $input->getArgument("file"); |
63 | 63 | $sizes = $input->getOption("size"); |
64 | - $sizes = array_map(function (string $size) use ($output, &$error) { |
|
64 | + $sizes = array_map(function(string $size) use ($output, &$error) { |
|
65 | 65 | if (str_contains($size, 'x')) { |
66 | 66 | $sizeParts = explode('x', $size, 2); |
67 | 67 | } else { |
@@ -95,11 +95,11 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | if (!$this->previewManager->isAvailable($file)) { |
98 | - $output->writeln("<error>No preview generator available for file of type" . $file->getMimetype() . "</error>"); |
|
98 | + $output->writeln("<error>No preview generator available for file of type".$file->getMimetype()."</error>"); |
|
99 | 99 | return 1; |
100 | 100 | } |
101 | 101 | |
102 | - $specifications = array_map(function (array $sizes) use ($crop, $mode) { |
|
102 | + $specifications = array_map(function(array $sizes) use ($crop, $mode) { |
|
103 | 103 | return [ |
104 | 104 | 'width' => $sizes[0], |
105 | 105 | 'height' => $sizes[1], |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $this->previewManager->generatePreviews($file, $specifications); |
112 | 112 | if (count($specifications) > 1) { |
113 | - $output->writeln("generated <info>" . count($specifications) . "</info> previews"); |
|
113 | + $output->writeln("generated <info>".count($specifications)."</info> previews"); |
|
114 | 114 | } else { |
115 | 115 | $output->writeln("preview generated"); |
116 | 116 | } |
@@ -119,13 +119,13 @@ discard block |
||
119 | 119 | |
120 | 120 | private function getFile(string $fileInput): ?Node { |
121 | 121 | if (is_numeric($fileInput)) { |
122 | - $mounts = $this->userMountCache->getMountsForFileId((int)$fileInput); |
|
122 | + $mounts = $this->userMountCache->getMountsForFileId((int) $fileInput); |
|
123 | 123 | if (!$mounts) { |
124 | 124 | return null; |
125 | 125 | } |
126 | 126 | $mount = $mounts[0]; |
127 | 127 | $userFolder = $this->rootFolder->getUserFolder($mount->getUser()->getUID()); |
128 | - $nodes = $userFolder->getById((int)$fileInput); |
|
128 | + $nodes = $userFolder->getById((int) $fileInput); |
|
129 | 129 | if (!$nodes) { |
130 | 130 | return null; |
131 | 131 | } |