Completed
Branch master (9528ad)
by Michael
04:32
created
class/wideimage/WideImage.php 2 patches
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	/**
3
- * @author Gasper Kozak
4
- * @copyright 2007, 2008, 2009
3
+	 * @author Gasper Kozak
4
+	 * @copyright 2007, 2008, 2009
5 5
 
6 6
     This file is part of WideImage.
7 7
 		
@@ -18,9 +18,8 @@  discard block
 block discarded – undo
18 18
     You should have received a copy of the GNU Lesser General Public License
19 19
     along with WideImage; if not, write to the Free Software
20 20
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
-    
22
-    * @package WideImage
23
-  **/
21
+	 * @package WideImage
22
+	 **/
24 23
 	
25 24
 	require_once(WideImage::path() . 'Exception.php');
26 25
 	require_once(WideImage::path() . 'Image.php');
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -22,21 +22,21 @@  discard block
 block discarded – undo
22 22
     * @package WideImage
23 23
   **/
24 24
 	
25
-	require_once(WideImage::path() . 'Exception.php');
26
-	require_once(WideImage::path() . 'Image.php');
27
-	require_once(WideImage::path() . 'TrueColorImage.php');
28
-	require_once(WideImage::path() . 'PaletteImage.php');
25
+	require_once(WideImage::path().'Exception.php');
26
+	require_once(WideImage::path().'Image.php');
27
+	require_once(WideImage::path().'TrueColorImage.php');
28
+	require_once(WideImage::path().'PaletteImage.php');
29 29
 	
30
-	require_once(WideImage::path() . 'Coordinate.php');
31
-	require_once(WideImage::path() . 'Canvas.php');
32
-	require_once(WideImage::path() . 'PaletteImage.php');
33
-	require_once(WideImage::path() . 'TrueColorImage.php');
34
-	require_once(WideImage::path() . 'MapperFactory.php');
35
-	require_once(WideImage::path() . 'OperationFactory.php');
30
+	require_once(WideImage::path().'Coordinate.php');
31
+	require_once(WideImage::path().'Canvas.php');
32
+	require_once(WideImage::path().'PaletteImage.php');
33
+	require_once(WideImage::path().'TrueColorImage.php');
34
+	require_once(WideImage::path().'MapperFactory.php');
35
+	require_once(WideImage::path().'OperationFactory.php');
36 36
 	
37
-	require_once(WideImage::path() . 'Font/TTF.php');
38
-	require_once(WideImage::path() . 'Font/GDF.php');
39
-	require_once(WideImage::path() . 'Font/PS.php');
37
+	require_once(WideImage::path().'Font/TTF.php');
38
+	require_once(WideImage::path().'Font/GDF.php');
39
+	require_once(WideImage::path().'Font/PS.php');
40 40
 	
41 41
 	/**
42 42
 	 * @package Exceptions
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		static function path()
76 76
 		{
77 77
 			if (self::$path === null)
78
-				self::$path = dirname(__FILE__) . DIRECTORY_SEPARATOR;
78
+				self::$path = dirname(__FILE__).DIRECTORY_SEPARATOR;
79 79
 			return self::$path;
80 80
 		}
81 81
 		
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 			if (!$predictedSourceType)
127 127
 				$predictedSourceType = 'File';
128 128
 			
129
-			return call_user_func(array('WideImage', 'loadFrom' . $predictedSourceType), $source, $format);
129
+			return call_user_func(array('WideImage', 'loadFrom'.$predictedSourceType), $source, $format);
130 130
 		}			
131 131
 		
132 132
 		/**
Please login to merge, or discard this patch.
class/wideimage/Canvas.php 2 patches
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	/**
3
- * @author Gasper Kozak
4
- * @copyright 2007, 2008, 2009
3
+	 * @author Gasper Kozak
4
+	 * @copyright 2007, 2008, 2009
5 5
 
6 6
     This file is part of WideImage.
7 7
 		
@@ -18,9 +18,8 @@  discard block
 block discarded – undo
18 18
     You should have received a copy of the GNU Lesser General Public License
19 19
     along with WideImage; if not, write to the Free Software
20 20
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
-    
22
-    * @package WideImage
23
-  **/
21
+	 * @package WideImage
22
+	 **/
24 23
 	
25 24
 	/**
26 25
 	 * @package Exceptions
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,10 +90,10 @@
 block discarded – undo
90 90
 		 */
91 91
 		function __call($method, $params)
92 92
 		{
93
-			if (function_exists('image' . $method))
93
+			if (function_exists('image'.$method))
94 94
 			{
95 95
 				array_unshift($params, $this->handle);
96
-				call_user_func_array('image' . $method, $params);
96
+				call_user_func_array('image'.$method, $params);
97 97
 			}
98 98
 			else
99 99
 				throw new WideImage_InvalidCanvasMethodException("Function doesn't exist: image{$method}.");
Please login to merge, or discard this patch.
class/wideimage/Exception.php 1 patch
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	/**
3
- * @author Gasper Kozak
4
- * @copyright 2007, 2008, 2009
3
+	 * @author Gasper Kozak
4
+	 * @copyright 2007, 2008, 2009
5 5
 
6 6
     This file is part of WideImage.
7 7
 		
@@ -18,9 +18,8 @@  discard block
 block discarded – undo
18 18
     You should have received a copy of the GNU Lesser General Public License
19 19
     along with WideImage; if not, write to the Free Software
20 20
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
-
22
-	* @package Exceptions
23
-  **/
21
+	 * @package Exceptions
22
+	 **/
24 23
 	
25 24
 	/**
26 25
 	 * Base Exception class
Please login to merge, or discard this patch.
class/wideimage/Mapper/GIF.php 1 patch
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	/**
3
- * @author Gasper Kozak
4
- * @copyright 2007, 2008, 2009
3
+	 * @author Gasper Kozak
4
+	 * @copyright 2007, 2008, 2009
5 5
 
6 6
     This file is part of WideImage.
7 7
 		
@@ -18,9 +18,8 @@  discard block
 block discarded – undo
18 18
     You should have received a copy of the GNU Lesser General Public License
19 19
     along with WideImage; if not, write to the Free Software
20 20
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
-
22
-    * @package Internal/Mappers
23
-  **/
21
+	 * @package Internal/Mappers
22
+	 **/
24 23
 	
25 24
 	/**
26 25
 	 * Mapper class for GIF files
Please login to merge, or discard this patch.
class/wideimage/Mapper/JPEG.php 1 patch
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	/**
3
- * @author Gasper Kozak
4
- * @copyright 2007, 2008, 2009
3
+	 * @author Gasper Kozak
4
+	 * @copyright 2007, 2008, 2009
5 5
 
6 6
     This file is part of WideImage.
7 7
 		
@@ -18,9 +18,8 @@  discard block
 block discarded – undo
18 18
     You should have received a copy of the GNU Lesser General Public License
19 19
     along with WideImage; if not, write to the Free Software
20 20
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
-
22
-    * @package Internal/Mappers
23
-  **/
21
+	 * @package Internal/Mappers
22
+	 **/
24 23
 	
25 24
 	/**
26 25
 	 * Mapper class for JPEG files
Please login to merge, or discard this patch.
class/wideimage/Mapper/GD2.php 1 patch
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	/**
3
- * @author Gasper Kozak
4
- * @copyright 2007, 2008, 2009
3
+	 * @author Gasper Kozak
4
+	 * @copyright 2007, 2008, 2009
5 5
 
6 6
     This file is part of WideImage.
7 7
 		
@@ -18,9 +18,8 @@  discard block
 block discarded – undo
18 18
     You should have received a copy of the GNU Lesser General Public License
19 19
     along with WideImage; if not, write to the Free Software
20 20
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
-
22
-    * @package Internal/Mappers
23
-  **/
21
+	 * @package Internal/Mappers
22
+	 **/
24 23
 	
25 24
 	/**
26 25
 	 * Mapper class for GD2 files
Please login to merge, or discard this patch.
class/wideimage/Mapper/PNG.php 1 patch
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	/**
3
- * @author Gasper Kozak
4
- * @copyright 2007, 2008, 2009
3
+	 * @author Gasper Kozak
4
+	 * @copyright 2007, 2008, 2009
5 5
 
6 6
     This file is part of WideImage.
7 7
 		
@@ -18,9 +18,8 @@  discard block
 block discarded – undo
18 18
     You should have received a copy of the GNU Lesser General Public License
19 19
     along with WideImage; if not, write to the Free Software
20 20
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
-
22
-    * @package Internal/Mappers
23
-  **/
21
+	 * @package Internal/Mappers
22
+	 **/
24 23
 	
25 24
 	/**
26 25
 	 * Mapper class for PNG files
Please login to merge, or discard this patch.
class/wideimage/Mapper/BMP.php 2 patches
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	/**
3
- * @author Gasper Kozak
4
- * @copyright 2007, 2008, 2009
3
+	 * @author Gasper Kozak
4
+	 * @copyright 2007, 2008, 2009
5 5
 
6 6
     This file is part of WideImage.
7 7
 		
@@ -18,9 +18,8 @@  discard block
 block discarded – undo
18 18
     You should have received a copy of the GNU Lesser General Public License
19 19
     along with WideImage; if not, write to the Free Software
20 20
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
-
22
-    * @package Internal/Mappers
23
-  **/
21
+	 * @package Internal/Mappers
22
+	 **/
24 23
 	
25 24
 	include_once(WideImage::path() . '/vendor/JPEXS/bmp.php');
26 25
 	
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     * @package Internal/Mappers
23 23
   **/
24 24
 	
25
-	include_once(WideImage::path() . '/vendor/JPEXS/bmp.php');
25
+	include_once(WideImage::path().'/vendor/JPEXS/bmp.php');
26 26
 	
27 27
 	/**
28 28
 	 * Mapper support for BMP
Please login to merge, or discard this patch.
class/wideimage/Mapper/GD.php 1 patch
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	/**
3
- * @author Gasper Kozak
4
- * @copyright 2007, 2008, 2009
3
+	 * @author Gasper Kozak
4
+	 * @copyright 2007, 2008, 2009
5 5
 
6 6
     This file is part of WideImage.
7 7
 		
@@ -18,9 +18,8 @@  discard block
 block discarded – undo
18 18
     You should have received a copy of the GNU Lesser General Public License
19 19
     along with WideImage; if not, write to the Free Software
20 20
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
-
22
-    * @package Internal/Mappers
23
-  **/
21
+	 * @package Internal/Mappers
22
+	 **/
24 23
 	
25 24
 	/**
26 25
 	 * Mapper class for GD files
Please login to merge, or discard this patch.