Completed
Push — master ( d5813f...68cb64 )
by Aimeos
08:11
created
lib/mwlib/src/MW/Media/Image/Standard.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
 		}
45 45
 
46 46
 		if( ( $this->image = @imagecreatefromstring( $content ) ) === false ) {
47
-			throw new \Aimeos\MW\Media\Exception( sprintf( 'The image type in "%1$s" seems to be not supported by gdlib.', $filename) );
47
+			throw new \Aimeos\MW\Media\Exception( sprintf( 'The image type in "%1$s" seems to be not supported by gdlib.', $filename ) );
48 48
 		}
49 49
 
50 50
 		if( imagealphablending( $this->image, false ) === false ) {
51
-			throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagealphablending)') );
51
+			throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagealphablending)' ) );
52 52
 		}
53 53
 
54 54
 		$this->options = $options;
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 				}
111 111
 
112 112
 				if( imagesavealpha( $this->image, true ) === false ) {
113
-					throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagesavealpha)') );
113
+					throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagesavealpha)' ) );
114 114
 				}
115 115
 
116 116
 				if( @imagepng( $this->image, $filename, $quality ) === false ) {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	public function scale( $width, $height, $fit = true )
136 136
 	{
137 137
 		if( ( $info = getimagesize( $this->getFilepath() ) ) === false ) {
138
-			throw new \Aimeos\MW\Media\Exception( 'Unable to retrieve image size for: ' . $this->getFilepath() );
138
+			throw new \Aimeos\MW\Media\Exception( 'Unable to retrieve image size for: '.$this->getFilepath() );
139 139
 		}
140 140
 
141 141
 		if( $fit === true )
@@ -158,15 +158,15 @@  discard block
 block discarded – undo
158 158
 		}
159 159
 
160 160
 		if( imagealphablending( $this->image, false ) === false ) {
161
-			throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagealphablending)') );
161
+			throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagealphablending)' ) );
162 162
 		}
163 163
 
164 164
 		if( ( $transparent = imagecolorallocatealpha( $this->image, 255, 255, 255, 127 ) ) === false ) {
165
-			throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagecolorallocatealpha)') );
165
+			throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagecolorallocatealpha)' ) );
166 166
 		}
167 167
 
168 168
 		if( imagefilledrectangle( $this->image, 0, 0, $width, $height, $transparent ) === false ) {
169
-			throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagefilledrectangle)') );
169
+			throw new \Aimeos\MW\Media\Exception( sprintf( 'GD library failed (imagefilledrectangle)' ) );
170 170
 		}
171 171
 
172 172
 		if( imagecopyresampled( $this->image, $this->origimage, 0, 0, 0, 0, $width, $height, $info[0], $info[1] ) === false ) {
Please login to merge, or discard this patch.