Update to PHP-CS-Fixer 2.10

This commit is contained in:
Adrien Crivelli
2018-01-28 15:59:38 +09:00
parent 015c83ccf4
commit c96e2dae02
92 changed files with 1159 additions and 1112 deletions
+22 -22
View File
@@ -14,44 +14,44 @@ $spreadsheet = new Spreadsheet();
// Set document properties
$helper->log('Set document properties');
$spreadsheet->getProperties()->setCreator('Maarten Balliauw')
->setLastModifiedBy('Maarten Balliauw')
->setTitle('Office 2007 XLSX Test Document')
->setSubject('Office 2007 XLSX Test Document')
->setDescription('Test document for Office 2007 XLSX, generated using PHP classes.')
->setKeywords('office 2007 openxml php')
->setCategory('Test result file');
->setLastModifiedBy('Maarten Balliauw')
->setTitle('Office 2007 XLSX Test Document')
->setSubject('Office 2007 XLSX Test Document')
->setDescription('Test document for Office 2007 XLSX, generated using PHP classes.')
->setKeywords('office 2007 openxml php')
->setCategory('Test result file');
// Create a first sheet, representing sales data
$helper->log('Add some data');
$spreadsheet->setActiveSheetIndex(0);
$spreadsheet->getActiveSheet()
->setCellValue('A1', '-0.5')
->setCellValue('A2', '-0.25')
->setCellValue('A3', '0.0')
->setCellValue('A4', '0.25')
->setCellValue('A5', '0.5')
->setCellValue('A6', '0.75')
->setCellValue('A7', '1.0')
->setCellValue('A8', '1.25');
->setCellValue('A1', '-0.5')
->setCellValue('A2', '-0.25')
->setCellValue('A3', '0.0')
->setCellValue('A4', '0.25')
->setCellValue('A5', '0.5')
->setCellValue('A6', '0.75')
->setCellValue('A7', '1.0')
->setCellValue('A8', '1.25');
$spreadsheet->getActiveSheet()->getStyle('A1:A8')
->getNumberFormat()
->setFormatCode(
NumberFormat::FORMAT_PERCENTAGE_00
);
->getNumberFormat()
->setFormatCode(
NumberFormat::FORMAT_PERCENTAGE_00
);
// Add conditional formatting
$helper->log('Add conditional formatting');
$conditional1 = new Conditional();
$conditional1->setConditionType(Conditional::CONDITION_CELLIS)
->setOperatorType(Conditional::OPERATOR_LESSTHAN)
->addCondition('0');
->setOperatorType(Conditional::OPERATOR_LESSTHAN)
->addCondition('0');
$conditional1->getStyle()->getFont()->getColor()->setARGB(Color::COLOR_RED);
$conditional3 = new Conditional();
$conditional3->setConditionType(Conditional::CONDITION_CELLIS)
->setOperatorType(Conditional::OPERATOR_GREATERTHANOREQUAL)
->addCondition('1');
->setOperatorType(Conditional::OPERATOR_GREATERTHANOREQUAL)
->addCondition('1');
$conditional3->getStyle()->getFont()->getColor()->setARGB(Color::COLOR_GREEN);
$conditionalStyles = $spreadsheet->getActiveSheet()->getStyle('A1')->getConditionalStyles();