Skip to content

Commit f2c3bf3

Browse files
committed
fix some formatting
- four space indent everywhere - no trailing ?> anywhere
1 parent f091d99 commit f2c3bf3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+183
-173
lines changed

examples/generate_phpdoc.rb

-3
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ def generate_class(file, gtype)
283283
abstract class ImageAutodoc
284284
{
285285
}
286-
287-
?>
288286
EOF
289287
end
290288

@@ -311,7 +309,6 @@ def generate_class(file, gtype)
311309
end
312310

313311
file << "}\n"
314-
file << "?>\n"
315312
end
316313
end
317314

src/Enum/Access.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ abstract class Access {
5454
const SEQUENTIAL = 'sequential';
5555
const SEQUENTIAL_UNBUFFERED = 'sequential-unbuffered';
5656
}
57-
?>

src/Enum/Align.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ abstract class Align {
5454
const CENTRE = 'centre';
5555
const HIGH = 'high';
5656
}
57-
?>

src/Enum/Angle.php

-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,3 @@ abstract class Angle {
5555
const D180 = 'd180';
5656
const D270 = 'd270';
5757
}
58-
?>

src/Enum/Angle45.php

-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,3 @@ abstract class Angle45 {
5959
const D270 = 'd270';
6060
const D315 = 'd315';
6161
}
62-
?>

src/Enum/BandFormat.php

-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,3 @@ abstract class BandFormat {
6262
const DOUBLE = 'double';
6363
const DPCOMPLEX = 'dpcomplex';
6464
}
65-
?>

src/Enum/Coding.php

-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,3 @@ abstract class Coding {
5555
const LABQ = 'labq';
5656
const RAD = 'rad';
5757
}
58-
?>

src/Enum/Combine.php

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ abstract class Combine {
5353
const MAX = 'max';
5454
const SUM = 'sum';
5555
}
56-
?>

src/Enum/CombineMode.php

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ abstract class CombineMode {
5353
const SET = 'set';
5454
const ADD = 'add';
5555
}
56-
?>

src/Enum/DemandStyle.php

-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ abstract class DemandStyle {
5656
const THINSTRIP = 'thinstrip';
5757
const ANY = 'any';
5858
}
59-
?>

src/Enum/Direction.php

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ abstract class Direction {
5353
const HORIZONTAL = 'horizontal';
5454
const VERTICAL = 'vertical';
5555
}
56-
?>

src/Enum/Extend.php

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ abstract class Extend {
5757
const WHITE = 'white';
5858
const BACKGROUND = 'background';
5959
}
60-
?>

src/Enum/ForeignDzContainer.php

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ abstract class ForeignDzContainer {
5353
const FS = 'fs';
5454
const ZIP = 'zip';
5555
}
56-
?>

src/Enum/ForeignDzDepth.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ abstract class ForeignDzDepth {
5454
const ONETILE = 'onetile';
5555
const ONE = 'one';
5656
}
57-
?>

src/Enum/ForeignDzLayout.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ abstract class ForeignDzLayout {
5454
const ZOOMIFY = 'zoomify';
5555
const GOOGLE = 'google';
5656
}
57-
?>

src/Enum/ForeignTiffCompression.php

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ abstract class ForeignTiffCompression {
5757
const CCITTFAX4 = 'ccittfax4';
5858
const LZW = 'lzw';
5959
}
60-
?>

src/Enum/ForeignTiffPredictor.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ abstract class ForeignTiffPredictor {
5454
const HORIZONTAL = 'horizontal';
5555
const FLOAT = 'float';
5656
}
57-
?>

src/Enum/ForeignTiffResunit.php

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ abstract class ForeignTiffResunit {
5353
const CM = 'cm';
5454
const INCH = 'inch';
5555
}
56-
?>

src/Enum/ForeignWebpPreset.php

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ abstract class ForeignWebpPreset {
5757
const ICON = 'icon';
5858
const TEXT = 'text';
5959
}
60-
?>

src/Enum/ImageType.php

-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ abstract class ImageType {
6060
const OPENOUT = 'openout';
6161
const PARTIAL = 'partial';
6262
}
63-
?>

src/Enum/Intent.php

-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,3 @@ abstract class Intent {
5555
const SATURATION = 'saturation';
5656
const ABSOLUTE = 'absolute';
5757
}
58-
?>

src/Enum/Interpretation.php

-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,3 @@ abstract class Interpretation {
7171
const SCRGB = 'scrgb';
7272
const HSV = 'hsv';
7373
}
74-
?>

src/Enum/Kernel.php

-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ abstract class Kernel {
5656
const LANCZOS2 = 'lanczos2';
5757
const LANCZOS3 = 'lanczos3';
5858
}
59-
?>

src/Enum/OperationBoolean.php

-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ abstract class OperationBoolean {
5656
const LSHIFT = 'lshift';
5757
const RSHIFT = 'rshift';
5858
}
59-
?>

src/Enum/OperationComplex.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ abstract class OperationComplex {
5454
const RECT = 'rect';
5555
const CONJ = 'conj';
5656
}
57-
?>

src/Enum/OperationComplex2.php

-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@
5252
abstract class OperationComplex2 {
5353
const CROSS_PHASE = 'cross-phase';
5454
}
55-
?>

src/Enum/OperationComplexget.php

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ abstract class OperationComplexget {
5353
const REAL = 'real';
5454
const IMAG = 'imag';
5555
}
56-
?>

src/Enum/OperationMath.php

-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ abstract class OperationMath {
6161
const EXP = 'exp';
6262
const EXP10 = 'exp10';
6363
}
64-
?>

src/Enum/OperationMath2.php

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ abstract class OperationMath2 {
5353
const POW = 'pow';
5454
const WOP = 'wop';
5555
}
56-
?>

src/Enum/OperationMorphology.php

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ abstract class OperationMorphology {
5353
const ERODE = 'erode';
5454
const DILATE = 'dilate';
5555
}
56-
?>

src/Enum/OperationRelational.php

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ abstract class OperationRelational {
5757
const MORE = 'more';
5858
const MOREEQ = 'moreeq';
5959
}
60-
?>

src/Enum/OperationRound.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ abstract class OperationRound {
5454
const CEIL = 'ceil';
5555
const FLOOR = 'floor';
5656
}
57-
?>

src/Enum/PCS.php

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ abstract class PCS {
5353
const LAB = 'lab';
5454
const XYZ = 'xyz';
5555
}
56-
?>

src/Enum/Precision.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ abstract class Precision {
5454
const FLOAT = 'float';
5555
const APPROXIMATE = 'approximate';
5656
}
57-
?>

src/Enum/Saveable.php

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ abstract class Saveable {
5757
const RGB_CMYK = 'rgb-cmyk';
5858
const ANY = 'any';
5959
}
60-
?>

src/Enum/Token.php

-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ abstract class Token {
5656
const EQUALS = 'equals';
5757
const COMMA = 'comma';
5858
}
59-
?>

src/Exception.php

-2
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,3 @@ class Exception extends \Exception
6363
* vim600: expandtab sw=4 ts=4 fdm=marker
6464
* vim<600: expandtab sw=4 ts=4
6565
*/
66-
67-
?>

src/Image.php

-2
Original file line numberDiff line numberDiff line change
@@ -1805,5 +1805,3 @@ public function rot270(): Image
18051805
* vim600: expandtab sw=4 ts=4 fdm=marker
18061806
* vim<600: expandtab sw=4 ts=4
18071807
*/
1808-
1809-
?>

src/ImageAutodoc.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
* @method Image remainder_const(array(float)|float $c, array $options = []) Remainder after integer division of an image and a constant.
110110
* @method Image boolean_const(array(float)|float $c, string $boolean, array $options = []) Boolean operations against a constant.
111111
* @see OperationBoolean for possible values for $boolean
112-
* @method Image math2_const(array(float)|float $c, string $math2, array $options = []) Pow( @in, @c ).
112+
* @method Image math2_const(array(float)|float $c, string $math2, array $options = []) Binary math operations with a constant.
113113
* @see OperationMath2 for possible values for $math2
114114
* @method Image complex(string $cmplx, array $options = []) Perform a complex operation on an image.
115115
* @see OperationComplex for possible values for $cmplx
@@ -231,7 +231,8 @@
231231
* @method void ppmsave(string $filename, array $options = []) Save image to ppm file.
232232
* @method void radsave(string $filename, array $options = []) Save image to radiance file.
233233
* @method string radsave_buffer(array $options = []) Save image to radiance buffer.
234-
* @method void dzsave(string $filename, array $options = []) Save image to deep zoom format.
234+
* @method void dzsave(string $filename, array $options = []) Save image to deepzoom file.
235+
* @method string dzsave_buffer(array $options = []) Save image to dz buffer.
235236
* @method void pngsave(string $filename, array $options = []) Save image to png file.
236237
* @method string pngsave_buffer(array $options = []) Save image to png buffer.
237238
* @method void jpegsave(string $filename, array $options = []) Save image to jpeg file.
@@ -240,6 +241,7 @@
240241
* @method void webpsave(string $filename, array $options = []) Save image to webp file.
241242
* @method string webpsave_buffer(array $options = []) Save image to webp buffer.
242243
* @method void tiffsave(string $filename, array $options = []) Save image to tiff file.
244+
* @method string tiffsave_buffer(array $options = []) Save image to tiff buffer.
243245
* @method void fitssave(string $filename, array $options = []) Save image to fits file.
244246
* @method Image mapim(Image $index, array $options = []) Resample with an mapim image.
245247
* @method Image shrink(float $hshrink, float $vshrink, array $options = []) Shrink an image.
@@ -361,5 +363,3 @@
361363
abstract class ImageAutodoc
362364
{
363365
}
364-
365-
?>

src/Main.php

-2
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,3 @@ public static function concurrencySet($value)
116116
* vim600: expandtab sw=4 ts=4 fdm=marker
117117
* vim<600: expandtab sw=4 ts=4
118118
*/
119-
120-
?>

tests/call.php

+9
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,12 @@ public function testVipsDraw()
4747
}
4848

4949
}
50+
51+
/*
52+
* Local variables:
53+
* tab-width: 4
54+
* c-basic-offset: 4
55+
* End:
56+
* vim600: expandtab sw=4 ts=4 fdm=marker
57+
* vim<600: expandtab sw=4 ts=4
58+
*/

tests/convenience.php

+9
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,12 @@ public function testVipsMedian()
140140
}
141141

142142
}
143+
144+
/*
145+
* Local variables:
146+
* tab-width: 4
147+
* c-basic-offset: 4
148+
* End:
149+
* vim600: expandtab sw=4 ts=4 fdm=marker
150+
* vim<600: expandtab sw=4 ts=4
151+
*/

tests/meta.php

+52-43
Original file line numberDiff line numberDiff line change
@@ -5,63 +5,72 @@
55
class VipsMetaTest extends PHPUnit_Framework_TestCase
66
{
77

8-
public function testVipsSetGet()
9-
{
10-
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
11-
$image = Vips\Image::newFromFile($filename, ["shrink" => 2]);
8+
public function testVipsSetGet()
9+
{
10+
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
11+
$image = Vips\Image::newFromFile($filename, ["shrink" => 2]);
1212

13-
$image->poop = "banana";
14-
$value = $image->poop;
13+
$image->poop = "banana";
14+
$value = $image->poop;
1515

16-
$this->assertEquals($value, "banana");
17-
}
16+
$this->assertEquals($value, "banana");
17+
}
1818

19-
public function testVipsGetExifData()
20-
{
21-
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
22-
$image = Vips\Image::newFromFile($filename, ["shrink" => 2]);
19+
public function testVipsGetExifData()
20+
{
21+
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
22+
$image = Vips\Image::newFromFile($filename, ["shrink" => 2]);
2323

24-
$name = "exif-data";
25-
$exif = $image->$name;
24+
$name = "exif-data";
25+
$exif = $image->$name;
2626

27-
# 9724 bytes of exif attached ... this should work even without libexif
28-
$this->assertEquals(strlen($exif), 9724);
29-
}
27+
# 9724 bytes of exif attached ... this should work even without libexif
28+
$this->assertEquals(strlen($exif), 9724);
29+
}
3030

31-
public function testVipsGetThumbnail()
32-
{
33-
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
34-
$image = Vips\Image::newFromFile($filename, ["shrink" => 2]);
31+
public function testVipsGetThumbnail()
32+
{
33+
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
34+
$image = Vips\Image::newFromFile($filename, ["shrink" => 2]);
3535

36-
$thumbnail_data = $image->get("jpeg-thumbnail-data");
37-
$thumb = Vips\Image::newFromBuffer($thumbnail_data);
36+
$thumbnail_data = $image->get("jpeg-thumbnail-data");
37+
$thumb = Vips\Image::newFromBuffer($thumbnail_data);
3838

39-
$this->assertEquals($thumb->width, 160);
40-
}
39+
$this->assertEquals($thumb->width, 160);
40+
}
4141

42-
public function testVipsGetTypeof()
43-
{
44-
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
45-
$image = Vips\Image::newFromFile($filename, ["shrink" => 2]);
42+
public function testVipsGetTypeof()
43+
{
44+
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
45+
$image = Vips\Image::newFromFile($filename, ["shrink" => 2]);
4646

47-
$gint = $image->typeof("width");
47+
$gint = $image->typeof("width");
4848

49-
// should always be the same, I think
50-
$this->assertEquals($gint, 24);
51-
}
49+
// should always be the same, I think
50+
$this->assertEquals($gint, 24);
51+
}
5252

53-
public function testVipsRemove()
54-
{
55-
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
56-
$image = Vips\Image::newFromFile($filename);
53+
public function testVipsRemove()
54+
{
55+
$filename = dirname(__FILE__) . "/images/img_0076.jpg";
56+
$image = Vips\Image::newFromFile($filename);
5757

58-
$exif = $image->get("exif-data");
59-
$this->assertEquals(strlen($exif), 9724);
58+
$exif = $image->get("exif-data");
59+
$this->assertEquals(strlen($exif), 9724);
6060

61-
$image->remove("exif-data");
61+
$image->remove("exif-data");
6262

63-
$this->expectException(Vips\Exception::class);
64-
$exif = $image->get("exif-data");
65-
}
63+
$this->expectException(Vips\Exception::class);
64+
$exif = $image->get("exif-data");
65+
}
6666

6767
}
68+
69+
/*
70+
* Local variables:
71+
* tab-width: 4
72+
* c-basic-offset: 4
73+
* End:
74+
* vim600: expandtab sw=4 ts=4 fdm=marker
75+
* vim<600: expandtab sw=4 ts=4
76+
*/

0 commit comments

Comments
 (0)