summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/_inc/lib/tonesque.php
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/_inc/lib/tonesque.php')
-rw-r--r--plugins/jetpack/_inc/lib/tonesque.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/jetpack/_inc/lib/tonesque.php b/plugins/jetpack/_inc/lib/tonesque.php
index 17158e3d..0e148e5c 100644
--- a/plugins/jetpack/_inc/lib/tonesque.php
+++ b/plugins/jetpack/_inc/lib/tonesque.php
@@ -1,13 +1,13 @@
<?php
/*
Plugin Name: Tonesque
-Plugin URI: http://automattic.com/
+Plugin URI: https://automattic.com/
Description: Grab an average color representation from an image.
Version: 1.0
Author: Automattic, Matias Ventura
-Author URI: http://automattic.com/
+Author URI: https://automattic.com/
License: GNU General Public License v2 or later
-License URI: http://www.gnu.org/licenses/gpl-2.0.html
+License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
class Tonesque {
@@ -203,13 +203,13 @@ class Tonesque {
switch ( $type ) {
case 'rgb' :
- $color = implode( $c->toRgbInt(), ',' );
+ $color = implode( ',', $c->toRgbInt() );
break;
case 'hex' :
$color = $c->toHex();
break;
case 'hsv' :
- $color = implode( $c->toHsvInt(), ',' );
+ $color = implode( ',', $c->toHsvInt() );
break;
default:
return $color = $c->toHex();
@@ -231,7 +231,7 @@ class Tonesque {
return false;
$c = $this->color->getMaxContrastColor();
- return implode( $c->toRgbInt(), ',' );
+ return implode( ',', $c->toRgbInt() );
}
};