summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-04-12 16:24:44 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-04-12 16:24:44 +0200
commit1517b1452e1c17af473a403da59cc308940dff1d (patch)
tree7a35c541142a905dd1c3eb74c0853f48dd3a01bb /lib/private
parent04f47a7653badadaf65e69763bf11633ae524758 (diff)
downloadnextcloud-server-1517b1452e1c17af473a403da59cc308940dff1d.tar.gz
nextcloud-server-1517b1452e1c17af473a403da59cc308940dff1d.zip
Fix autoloader
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Avatar.php9
-rw-r--r--lib/private/Color.php33
2 files changed, 33 insertions, 9 deletions
diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php
index 9a1b9020207..53dea5b966a 100644
--- a/lib/private/Avatar.php
+++ b/lib/private/Avatar.php
@@ -42,15 +42,6 @@ use OCP\IL10N;
use OC_Image;
use OCP\ILogger;
-class Color {
- public $r, $g, $b;
- public function __construct($r, $g, $b) {
- $this->r = $r;
- $this->g = $g;
- $this->b = $b;
- }
-}
-
/**
* This class gets and sets users avatars.
*/
diff --git a/lib/private/Color.php b/lib/private/Color.php
new file mode 100644
index 00000000000..78e8d49a401
--- /dev/null
+++ b/lib/private/Color.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OC;
+
+class Color {
+ public $r, $g, $b;
+ public function __construct($r, $g, $b) {
+ $this->r = $r;
+ $this->g = $g;
+ $this->b = $b;
+ }
+}