We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7bb00b commit 6481665Copy full SHA for 6481665
1 file changed
src/Objects/CreativeCloudHelper.php
@@ -233,7 +233,7 @@ public function getBaseVersions($slug)
233
}
234
235
/**
236
- * Returns the uninstall arguments as an array, using the given slug.
+ * Returns the uninstallation arguments as an array, using the given slug.
237
*
238
* @param string $slug
239
@@ -404,7 +404,10 @@ protected function getNameYearFromPath($path)
404
{
405
if (preg_match('#/Adobe (?<name>[a-zA-Z\s]+)\s?(?<year>[1-9][0-9]+)?/#', $path, $m))
406
407
- return ['name' => $m['name'] ?? null, 'year' => $m['year'] ?? null];
+ $name = isset($m['name']) ? trim($m['name']) : null;
408
+ $year = isset($m['year']) ? trim($m['year']) : null;
409
+
410
+ return ['name' => $name, 'year' => $year];
411
412
413
return [];
0 commit comments