Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/lib/Util.php')
-rw-r--r--apps/theming/lib/Util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/Util.php b/apps/theming/lib/Util.php
index cc2fd70333c..f2842711f6d 100644
--- a/apps/theming/lib/Util.php
+++ b/apps/theming/lib/Util.php
@@ -102,7 +102,7 @@ class Util {
* @return float
*/
public function calculateLuminance($color) {
- list($red, $green, $blue) = $this->hexToRGB($color);
+ [$red, $green, $blue] = $this->hexToRGB($color);
$compiler = new Compiler();
$hsl = $compiler->toHSL($red, $green, $blue);
return $hsl[3] / 100;
@@ -113,7 +113,7 @@ class Util {
* @return float
*/
public function calculateLuma($color) {
- list($red, $green, $blue) = $this->hexToRGB($color);
+ [$red, $green, $blue] = $this->hexToRGB($color);
return (0.2126 * $red + 0.7152 * $green + 0.0722 * $blue) / 255;
}