Update PHP-CS-Fixer rules

This commit is contained in:
Adrien Crivelli
2020-05-18 13:49:57 +09:00
parent 38b360f912
commit fcd9f10663
496 changed files with 2634 additions and 2866 deletions
+5 -1
View File
@@ -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);