Code Duplication    Length = 6-6 lines in 4 locations

app/Vendor/PHPExcel/PHPExcel/Reader/Excel2007.php 4 locations

@@ 1146-1151 (lines=6) @@
1143
							if ($xmlSheet && $xmlSheet->headerFooter && !$this->_readDataOnly) {
1144
								$docHeaderFooter = $docSheet->getHeaderFooter();
1145
1146
								if (isset($xmlSheet->headerFooter["differentOddEven"]) &&
1147
									((string)$xmlSheet->headerFooter["differentOddEven"] == 'true' || (string)$xmlSheet->headerFooter["differentOddEven"] == '1')) {
1148
									$docHeaderFooter->setDifferentOddEven(true);
1149
								} else {
1150
									$docHeaderFooter->setDifferentOddEven(false);
1151
								}
1152
								if (isset($xmlSheet->headerFooter["differentFirst"]) &&
1153
									((string)$xmlSheet->headerFooter["differentFirst"] == 'true' || (string)$xmlSheet->headerFooter["differentFirst"] == '1')) {
1154
									$docHeaderFooter->setDifferentFirst(true);
@@ 1152-1157 (lines=6) @@
1149
								} else {
1150
									$docHeaderFooter->setDifferentOddEven(false);
1151
								}
1152
								if (isset($xmlSheet->headerFooter["differentFirst"]) &&
1153
									((string)$xmlSheet->headerFooter["differentFirst"] == 'true' || (string)$xmlSheet->headerFooter["differentFirst"] == '1')) {
1154
									$docHeaderFooter->setDifferentFirst(true);
1155
								} else {
1156
									$docHeaderFooter->setDifferentFirst(false);
1157
								}
1158
								if (isset($xmlSheet->headerFooter["scaleWithDoc"]) &&
1159
									((string)$xmlSheet->headerFooter["scaleWithDoc"] == 'false' || (string)$xmlSheet->headerFooter["scaleWithDoc"] == '0')) {
1160
									$docHeaderFooter->setScaleWithDocument(false);
@@ 1158-1163 (lines=6) @@
1155
								} else {
1156
									$docHeaderFooter->setDifferentFirst(false);
1157
								}
1158
								if (isset($xmlSheet->headerFooter["scaleWithDoc"]) &&
1159
									((string)$xmlSheet->headerFooter["scaleWithDoc"] == 'false' || (string)$xmlSheet->headerFooter["scaleWithDoc"] == '0')) {
1160
									$docHeaderFooter->setScaleWithDocument(false);
1161
								} else {
1162
									$docHeaderFooter->setScaleWithDocument(true);
1163
								}
1164
								if (isset($xmlSheet->headerFooter["alignWithMargins"]) &&
1165
									((string)$xmlSheet->headerFooter["alignWithMargins"] == 'false' || (string)$xmlSheet->headerFooter["alignWithMargins"] == '0')) {
1166
									$docHeaderFooter->setAlignWithMargins(false);
@@ 1164-1169 (lines=6) @@
1161
								} else {
1162
									$docHeaderFooter->setScaleWithDocument(true);
1163
								}
1164
								if (isset($xmlSheet->headerFooter["alignWithMargins"]) &&
1165
									((string)$xmlSheet->headerFooter["alignWithMargins"] == 'false' || (string)$xmlSheet->headerFooter["alignWithMargins"] == '0')) {
1166
									$docHeaderFooter->setAlignWithMargins(false);
1167
								} else {
1168
									$docHeaderFooter->setAlignWithMargins(true);
1169
								}
1170
1171
								$docHeaderFooter->setOddHeader((string) $xmlSheet->headerFooter->oddHeader);
1172
								$docHeaderFooter->setOddFooter((string) $xmlSheet->headerFooter->oddFooter);