Permalink
Browse files

* CS fixes

git-svn-id: https://svn.php.net/repository/pear/packages/Image_Canvas/trunk@292377 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent efe4abf commit b77258e0915e186d13f586d2c9b257fd68e64e70 @neufeind neufeind committed Dec 20, 2009
Showing with 100 additions and 90 deletions.
  1. +8 −7 tests/canvas_body.php
  2. +8 −7 tests/gradients.php
  3. +8 −7 tests/imagemap.php
  4. +8 −7 tests/jpg.php
  5. +8 −7 tests/lineends.php
  6. +8 −7 tests/pdf.php
  7. +8 −7 tests/png.php
  8. +8 −7 tests/ps.php
  9. +8 −7 tests/svg.php
  10. +28 −27 tests/text.php
View
@@ -20,13 +20,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
$canvas->addText(array('x' => 5, 'y' => 5, 'text' => 'Line'));
View
@@ -18,13 +18,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
require_once 'Image/Canvas.php';
View
@@ -18,13 +18,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
require_once 'Image/Canvas.php';
View
@@ -18,13 +18,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
// SPECIFY HERE WHERE A TRUETYPE FONT CAN BE FOUND
View
@@ -18,13 +18,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
require_once 'Image/Canvas.php';
View
@@ -18,13 +18,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
// SPECIFY HERE WHERE A TRUETYPE FONT CAN BE FOUND
View
@@ -18,13 +18,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
// SPECIFY HERE WHERE A TRUETYPE FONT CAN BE FOUND
View
@@ -18,13 +18,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
// SPECIFY HERE WHERE A TRUETYPE FONT CAN BE FOUND
View
@@ -18,13 +18,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
// SPECIFY HERE WHERE A TRUETYPE FONT CAN BE FOUND
View
@@ -18,13 +18,14 @@
* to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
* 02111-1307 USA
*
- * @category Images
- * @package Image_Canvas
- * @author Jesper Veggerby <pear.nosey@veggerby.dk>
- * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
- * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- * @version CVS: $Id$
- * @link http://pear.php.net/package/Image_Canvas
+ * @category Images
+ * @package Image_Canvas
+ * @author Jesper Veggerby <pear.nosey@veggerby.dk>
+ * @author Stefan Neufeind <pear.neufeind@speedpartner.de>
+ * @copyright 2003-2009 The PHP Group
+ * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
+ * @version SVN: $Id$
+ * @link http://pear.php.net/package/Image_Canvas
*/
require_once 'Image/Canvas.php';
@@ -70,28 +71,28 @@
$y = 10 + $row * 90;
switch ($row) {
- case 0:
- $text = 'Top';
- break;
- case 1:
- $text = 'Center';
- break;
- case 2:
- $text = 'Bottom';
- break;
+ case 0:
+ $text = 'Top';
+ break;
+ case 1:
+ $text = 'Center';
+ break;
+ case 2:
+ $text = 'Bottom';
+ break;
}
switch ($col) {
- case 0:
- $text .= "\n" . 'Left';
- break;
- case 1:
- if ($row !== 1) {
- $text .= "\n" . 'Center';
- }
- break;
- case 2:
- $text .= "\n" . 'Right';
- break;
+ case 0:
+ $text .= "\n" . 'Left';
+ break;
+ case 1:
+ if ($row !== 1) {
+ $text .= "\n" . 'Center';
+ }
+ break;
+ case 2:
+ $text .= "\n" . 'Right';
+ break;
}
$canvas->setLineColor('red');

0 comments on commit b77258e

Please sign in to comment.