mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-10 13:56:46 +00:00
Update PHP-CS-Fixer rules
This commit is contained in:
@@ -21,7 +21,11 @@ $spreadsheet->getProperties()->setCreator('Maarten Balliauw')
|
||||
|
||||
// Generate an image
|
||||
$helper->log('Generate an image');
|
||||
$gdImage = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image stream');
|
||||
$gdImage = @imagecreatetruecolor(120, 20);
|
||||
if (!$gdImage) {
|
||||
die('Cannot Initialize new GD image stream');
|
||||
}
|
||||
|
||||
$textColor = imagecolorallocate($gdImage, 255, 255, 255);
|
||||
imagestring($gdImage, 1, 5, 5, 'Created with PhpSpreadsheet', $textColor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user