Skip to content

Commit e39ad8d

Browse files
committed
fix incorrect namespaces
1 parent a6f5055 commit e39ad8d

File tree

10 files changed

+102
-103
lines changed

10 files changed

+102
-103
lines changed

src/MischiefCollective/ColorJizz/ColorJizz.php

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use MischiefCollective\ColorJizz\Formats\HSV;
1313
use MischiefCollective\ColorJizz\Formats\CIELCh;
1414
use MischiefCollective\ColorJizz\Formats\RGB;
15-
use MischiefCollective\ColorJizz\Formats\Hex;
1615

1716
/**
1817
* ColorJizz is the base class that all color objects extend
@@ -28,70 +27,70 @@ abstract class ColorJizz
2827
/**
2928
* Convert the color to Hex format
3029
*
31-
* @return MischiefCollective\ColorJizz\Formats\Hex the color in Hex format
30+
* @return \MischiefCollective\ColorJizz\Formats\Hex the color in Hex format
3231
*/
3332
abstract public function toHex();
3433

3534
/**
3635
* Convert the color to RGB format
3736
*
38-
* @return MischiefCollective\ColorJizz\Formats\RGB the color in RGB format
37+
* @return \MischiefCollective\ColorJizz\Formats\RGB the color in RGB format
3938
*/
4039
abstract public function toRGB();
4140

4241
/**
4342
* Convert the color to XYZ format
4443
*
45-
* @return MischiefCollective\ColorJizz\Formats\XYZ the color in XYZ format
44+
* @return \MischiefCollective\ColorJizz\Formats\XYZ the color in XYZ format
4645
*/
4746
abstract public function toXYZ();
4847

4948
/**
5049
* Convert the color to Yxy format
5150
*
52-
* @return MischiefCollective\ColorJizz\Formats\Yxy the color in Yxy format
51+
* @return \MischiefCollective\ColorJizz\Formats\Yxy the color in Yxy format
5352
*/
5453
abstract public function toYxy();
5554

5655
/**
5756
* Convert the color to CIELab format
5857
*
59-
* @return MischiefCollective\ColorJizz\Formats\CIELab the color in CIELab format
58+
* @return \MischiefCollective\ColorJizz\Formats\CIELab the color in CIELab format
6059
*/
6160
abstract public function toCIELab();
6261

6362
/**
6463
* Convert the color to CIELCh format
6564
*
66-
* @return MischiefCollective\ColorJizz\Formats\CIELCh the color in CIELCh format
65+
* @return \MischiefCollective\ColorJizz\Formats\CIELCh the color in CIELCh format
6766
*/
6867
abstract public function toCIELCh();
6968

7069
/**
7170
* Convert the color to CMY format
7271
*
73-
* @return MischiefCollective\ColorJizz\Formats\CMY the color in CMY format
72+
* @return \MischiefCollective\ColorJizz\Formats\CMY the color in CMY format
7473
*/
7574
abstract public function toCMY();
7675

7776
/**
7877
* Convert the color to CMYK format
7978
*
80-
* @return MischiefCollective\ColorJizz\Formats\CMYK the color in CMYK format
79+
* @return \MischiefCollective\ColorJizz\Formats\CMYK the color in CMYK format
8180
*/
8281
abstract public function toCMYK();
8382

8483
/**
8584
* Convert the color to HSV format
8685
*
87-
* @return MischiefCollective\ColorJizz\Formats\HSV the color in HSV format
86+
* @return \MischiefCollective\ColorJizz\Formats\HSV the color in HSV format
8887
*/
8988
abstract public function toHSV();
9089

9190
/**
9291
* Find the distance to the destination color
9392
*
94-
* @param MischiefCollective\ColorJizz\ColorJizz $destinationColor The destination color
93+
* @param \MischiefCollective\ColorJizz\ColorJizz $destinationColor The destination color
9594
*
9695
* @return int distance to destination color
9796
*/
@@ -110,7 +109,7 @@ public function distance(ColorJizz $destinationColor)
110109
/**
111110
* Find the closest websafe color
112111
*
113-
* @return MischiefCollective\ColorJizz\ColorJizz The closest color
112+
* @return \MischiefCollective\ColorJizz\ColorJizz The closest color
114113
*/
115114
public function websafe()
116115
{
@@ -130,7 +129,7 @@ public function websafe()
130129
*
131130
* @param array $palette An array of ColorJizz objects to match against
132131
*
133-
* @return MischiefCollective\ColorJizz\ColorJizz The closest color
132+
* @return \MischiefCollective\ColorJizz\ColorJizz The closest color
134133
*/
135134
public function match(array $palette)
136135
{
@@ -178,7 +177,7 @@ public function split($includeSelf = false)
178177
/**
179178
* Return the opposite, complimentary color
180179
*
181-
* @return MischiefCollective\ColorJizz\ColorJizz The greyscale color
180+
* @return \MischiefCollective\ColorJizz\ColorJizz The greyscale color
182181
*/
183182
public function complement()
184183
{
@@ -190,7 +189,7 @@ public function complement()
190189
*
191190
* @param int $includeSelf Include the current color in the return array
192191
*
193-
* @return MischiefCollective\ColorJizz\ColorJizz[] Array of complimentary colors
192+
* @return \MischiefCollective\ColorJizz\ColorJizz[] Array of complimentary colors
194193
*/
195194
public function sweetspot($includeSelf = false)
196195
{
@@ -247,7 +246,7 @@ public function rectangle($sideLength, $includeSelf = false)
247246
return $rtn;
248247
}
249248

250-
public function range($destinationColor, $steps, $includeSelf = false)
249+
public function range(ColorJizz $destinationColor, $steps, $includeSelf = false)
251250
{
252251
$a = $this->toRGB();
253252
$b = $destinationColor->toRGB();
@@ -270,7 +269,7 @@ public function range($destinationColor, $steps, $includeSelf = false)
270269
/**
271270
* Return a greyscale version of the current color
272271
*
273-
* @return MischiefCollective\ColorJizz\ColorJizz The greyscale color
272+
* @return \MischiefCollective\ColorJizz\ColorJizz The greyscale color
274273
*/
275274
public function greyscale()
276275
{
@@ -286,7 +285,7 @@ public function greyscale()
286285
* @param int $degreeModifier Degrees to modify by
287286
* @param bool $absolute If TRUE set absolute value
288287
*
289-
* @return MischiefCollective\ColorJizz\ColorJizz The modified color
288+
* @return \MischiefCollective\ColorJizz\ColorJizz The modified color
290289
*/
291290
public function hue($degreeModifier, $absolute = FALSE)
292291
{
@@ -302,7 +301,7 @@ public function hue($degreeModifier, $absolute = FALSE)
302301
* @param int $satModifier Value to modify by
303302
* @param bool $absolute If TRUE set absolute value
304303
*
305-
* @return MischiefCollective\ColorJizz\ColorJizz The modified color
304+
* @return \MischiefCollective\ColorJizz\ColorJizz The modified color
306305
*/
307306
public function saturation($satModifier, $absolute = FALSE)
308307
{
@@ -318,7 +317,7 @@ public function saturation($satModifier, $absolute = FALSE)
318317
* @param int $brightnessModifier Value to modify by
319318
* @param bool $absolute If TRUE set absolute value
320319
*
321-
* @return MischiefCollective\ColorJizz\ColorJizz The modified color
320+
* @return \MischiefCollective\ColorJizz\ColorJizz The modified color
322321
*/
323322
public function brightness($brightnessModifier, $absolute = FALSE)
324323
{

src/MischiefCollective/ColorJizz/Formats/CIELCh.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct($lightness, $chroma, $hue)
5959
/**
6060
* Convert the color to Hex format
6161
*
62-
* @return MischiefCollective\ColorJizz\Formats\Hex the color in Hex format
62+
* @return \MischiefCollective\ColorJizz\Formats\Hex the color in Hex format
6363
*/
6464
public function toHex()
6565
{
@@ -69,7 +69,7 @@ public function toHex()
6969
/**
7070
* Convert the color to RGB format
7171
*
72-
* @return MischiefCollective\ColorJizz\Formats\RGB the color in RGB format
72+
* @return \MischiefCollective\ColorJizz\Formats\RGB the color in RGB format
7373
*/
7474
public function toRGB()
7575
{
@@ -79,7 +79,7 @@ public function toRGB()
7979
/**
8080
* Convert the color to XYZ format
8181
*
82-
* @return MischiefCollective\ColorJizz\Formats\XYZ the color in XYZ format
82+
* @return \MischiefCollective\ColorJizz\Formats\XYZ the color in XYZ format
8383
*/
8484
public function toXYZ()
8585
{
@@ -89,7 +89,7 @@ public function toXYZ()
8989
/**
9090
* Convert the color to Yxy format
9191
*
92-
* @return MischiefCollective\ColorJizz\Formats\Yxy the color in Yxy format
92+
* @return \MischiefCollective\ColorJizz\Formats\Yxy the color in Yxy format
9393
*/
9494
public function toYxy()
9595
{
@@ -99,7 +99,7 @@ public function toYxy()
9999
/**
100100
* Convert the color to HSV format
101101
*
102-
* @return MischiefCollective\ColorJizz\Formats\HSV the color in HSV format
102+
* @return \MischiefCollective\ColorJizz\Formats\HSV the color in HSV format
103103
*/
104104
public function toHSV()
105105
{
@@ -109,7 +109,7 @@ public function toHSV()
109109
/**
110110
* Convert the color to CMY format
111111
*
112-
* @return MischiefCollective\ColorJizz\Formats\CMY the color in CMY format
112+
* @return \MischiefCollective\ColorJizz\Formats\CMY the color in CMY format
113113
*/
114114
public function toCMY()
115115
{
@@ -119,7 +119,7 @@ public function toCMY()
119119
/**
120120
* Convert the color to CMYK format
121121
*
122-
* @return MischiefCollective\ColorJizz\Formats\CMYK the color in CMYK format
122+
* @return \MischiefCollective\ColorJizz\Formats\CMYK the color in CMYK format
123123
*/
124124
public function toCMYK()
125125
{
@@ -129,7 +129,7 @@ public function toCMYK()
129129
/**
130130
* Convert the color to CIELab format
131131
*
132-
* @return MischiefCollective\ColorJizz\Formats\CIELab the color in CIELab format
132+
* @return \MischiefCollective\ColorJizz\Formats\CIELab the color in CIELab format
133133
*/
134134
public function toCIELab()
135135
{
@@ -142,7 +142,7 @@ public function toCIELab()
142142
/**
143143
* Convert the color to CIELCh format
144144
*
145-
* @return MischiefCollective\ColorJizz\Formats\CIELCh the color in CIELCh format
145+
* @return \MischiefCollective\ColorJizz\Formats\CIELCh the color in CIELCh format
146146
*/
147147
public function toCIELCh()
148148
{

src/MischiefCollective/ColorJizz/Formats/CIELab.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function create($lightness, $a_dimension, $b_dimension)
6161
/**
6262
* Convert the color to Hex format
6363
*
64-
* @return MischiefCollective\ColorJizz\Formats\Hex the color in Hex format
64+
* @return \MischiefCollective\ColorJizz\Formats\Hex the color in Hex format
6565
*/
6666
public function toHex()
6767
{
@@ -71,7 +71,7 @@ public function toHex()
7171
/**
7272
* Convert the color to RGB format
7373
*
74-
* @return MischiefCollective\ColorJizz\Formats\RGB the color in RGB format
74+
* @return \MischiefCollective\ColorJizz\Formats\RGB the color in RGB format
7575
*/
7676
public function toRGB()
7777
{
@@ -81,7 +81,7 @@ public function toRGB()
8181
/**
8282
* Convert the color to XYZ format
8383
*
84-
* @return MischiefCollective\ColorJizz\Formats\XYZ the color in XYZ format
84+
* @return \MischiefCollective\ColorJizz\Formats\XYZ the color in XYZ format
8585
*/
8686
public function toXYZ()
8787
{
@@ -117,7 +117,7 @@ public function toXYZ()
117117
/**
118118
* Convert the color to Yxy format
119119
*
120-
* @return MischiefCollective\ColorJizz\Formats\Yxy the color in Yxy format
120+
* @return \MischiefCollective\ColorJizz\Formats\Yxy the color in Yxy format
121121
*/
122122
public function toYxy()
123123
{
@@ -127,7 +127,7 @@ public function toYxy()
127127
/**
128128
* Convert the color to HSV format
129129
*
130-
* @return MischiefCollective\ColorJizz\Formats\HSV the color in HSV format
130+
* @return \MischiefCollective\ColorJizz\Formats\HSV the color in HSV format
131131
*/
132132
public function toHSV()
133133
{
@@ -137,7 +137,7 @@ public function toHSV()
137137
/**
138138
* Convert the color to CMY format
139139
*
140-
* @return MischiefCollective\ColorJizz\Formats\CMY the color in CMY format
140+
* @return \MischiefCollective\ColorJizz\Formats\CMY the color in CMY format
141141
*/
142142
public function toCMY()
143143
{
@@ -147,7 +147,7 @@ public function toCMY()
147147
/**
148148
* Convert the color to CMYK format
149149
*
150-
* @return MischiefCollective\ColorJizz\Formats\CMYK the color in CMYK format
150+
* @return \MischiefCollective\ColorJizz\Formats\CMYK the color in CMYK format
151151
*/
152152
public function toCMYK()
153153
{
@@ -157,7 +157,7 @@ public function toCMYK()
157157
/**
158158
* Convert the color to CIELab format
159159
*
160-
* @return MischiefCollective\ColorJizz\Formats\CIELab the color in CIELab format
160+
* @return \MischiefCollective\ColorJizz\Formats\CIELab the color in CIELab format
161161
*/
162162
public function toCIELab()
163163
{
@@ -167,7 +167,7 @@ public function toCIELab()
167167
/**
168168
* Convert the color to CIELCh format
169169
*
170-
* @return MischiefCollective\ColorJizz\Formats\CIELCh the color in CIELCh format
170+
* @return \MischiefCollective\ColorJizz\Formats\CIELCh the color in CIELCh format
171171
*/
172172
public function toCIELCh()
173173
{

0 commit comments

Comments
 (0)