@@ -541,12 +541,12 @@ discard block |
||
541 | 541 | |
542 | 542 | // ----- For each file in the list check the attributes |
543 | 543 | $v_supported_attributes = [ |
544 | - PCLZIP_ATT_FILE_NAME => 'mandatory', |
|
545 | - PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional', |
|
546 | - PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional', |
|
547 | - PCLZIP_ATT_FILE_MTIME => 'optional', |
|
548 | - PCLZIP_ATT_FILE_CONTENT => 'optional', |
|
549 | - PCLZIP_ATT_FILE_COMMENT => 'optional', |
|
544 | + PCLZIP_ATT_FILE_NAME => 'mandatory', |
|
545 | + PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional', |
|
546 | + PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional', |
|
547 | + PCLZIP_ATT_FILE_MTIME => 'optional', |
|
548 | + PCLZIP_ATT_FILE_CONTENT => 'optional', |
|
549 | + PCLZIP_ATT_FILE_COMMENT => 'optional', |
|
550 | 550 | ]; |
551 | 551 | foreach ($v_att_list as $v_entry) { |
552 | 552 | $v_result = $this->privFileDescrParseAtt($v_entry, $v_filedescr_list[], $v_options, $v_supported_attributes); |
@@ -704,25 +704,25 @@ discard block |
||
704 | 704 | if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { |
705 | 705 | // ----- Parse the options |
706 | 706 | $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, [ |
707 | - PCLZIP_OPT_PATH => 'optional', |
|
708 | - PCLZIP_OPT_REMOVE_PATH => 'optional', |
|
709 | - PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', |
|
710 | - PCLZIP_OPT_ADD_PATH => 'optional', |
|
711 | - PCLZIP_CB_PRE_EXTRACT => 'optional', |
|
712 | - PCLZIP_CB_POST_EXTRACT => 'optional', |
|
713 | - PCLZIP_OPT_SET_CHMOD => 'optional', |
|
714 | - PCLZIP_OPT_BY_NAME => 'optional', |
|
715 | - PCLZIP_OPT_BY_EREG => 'optional', |
|
716 | - PCLZIP_OPT_BY_PREG => 'optional', |
|
717 | - PCLZIP_OPT_BY_INDEX => 'optional', |
|
718 | - PCLZIP_OPT_EXTRACT_AS_STRING => 'optional', |
|
719 | - PCLZIP_OPT_EXTRACT_IN_OUTPUT => 'optional', |
|
720 | - PCLZIP_OPT_REPLACE_NEWER => 'optional', |
|
721 | - PCLZIP_OPT_STOP_ON_ERROR => 'optional', |
|
722 | - PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional', |
|
723 | - PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', |
|
724 | - PCLZIP_OPT_TEMP_FILE_ON => 'optional', |
|
725 | - PCLZIP_OPT_TEMP_FILE_OFF => 'optional', |
|
707 | + PCLZIP_OPT_PATH => 'optional', |
|
708 | + PCLZIP_OPT_REMOVE_PATH => 'optional', |
|
709 | + PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', |
|
710 | + PCLZIP_OPT_ADD_PATH => 'optional', |
|
711 | + PCLZIP_CB_PRE_EXTRACT => 'optional', |
|
712 | + PCLZIP_CB_POST_EXTRACT => 'optional', |
|
713 | + PCLZIP_OPT_SET_CHMOD => 'optional', |
|
714 | + PCLZIP_OPT_BY_NAME => 'optional', |
|
715 | + PCLZIP_OPT_BY_EREG => 'optional', |
|
716 | + PCLZIP_OPT_BY_PREG => 'optional', |
|
717 | + PCLZIP_OPT_BY_INDEX => 'optional', |
|
718 | + PCLZIP_OPT_EXTRACT_AS_STRING => 'optional', |
|
719 | + PCLZIP_OPT_EXTRACT_IN_OUTPUT => 'optional', |
|
720 | + PCLZIP_OPT_REPLACE_NEWER => 'optional', |
|
721 | + PCLZIP_OPT_STOP_ON_ERROR => 'optional', |
|
722 | + PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional', |
|
723 | + PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', |
|
724 | + PCLZIP_OPT_TEMP_FILE_ON => 'optional', |
|
725 | + PCLZIP_OPT_TEMP_FILE_OFF => 'optional', |
|
726 | 726 | ]); |
727 | 727 | if ($v_result != 1) { |
728 | 728 | return 0; |
@@ -170,21 +170,21 @@ |
||
170 | 170 | $ret = str_pad($this->Name, 64, "\x00"); |
171 | 171 | |
172 | 172 | $ret .= pack('v', strlen($this->Name) + 2) // 66 |
173 | - . pack('c', $this->Type) // 67 |
|
174 | - . pack('c', 0x00) //UK // 68 |
|
175 | - . pack('V', $this->PrevPps) //Prev // 72 |
|
176 | - . pack('V', $this->NextPps) //Next // 76 |
|
177 | - . pack('V', $this->DirPps) //Dir // 80 |
|
178 | - . "\x00\x09\x02\x00" // 84 |
|
179 | - . "\x00\x00\x00\x00" // 88 |
|
180 | - . "\xc0\x00\x00\x00" // 92 |
|
181 | - . "\x00\x00\x00\x46" // 96 // Seems to be ok only for Root |
|
182 | - . "\x00\x00\x00\x00" // 100 |
|
183 | - . \PhpSpreadsheet\Shared\OLE::localDateToOLE($this->Time1st) // 108 |
|
184 | - . \PhpSpreadsheet\Shared\OLE::localDateToOLE($this->Time2nd) // 116 |
|
185 | - . pack('V', isset($this->startBlock) ? $this->startBlock : 0) // 120 |
|
186 | - . pack('V', $this->Size) // 124 |
|
187 | - . pack('V', 0); // 128 |
|
173 | + . pack('c', $this->Type) // 67 |
|
174 | + . pack('c', 0x00) //UK // 68 |
|
175 | + . pack('V', $this->PrevPps) //Prev // 72 |
|
176 | + . pack('V', $this->NextPps) //Next // 76 |
|
177 | + . pack('V', $this->DirPps) //Dir // 80 |
|
178 | + . "\x00\x09\x02\x00" // 84 |
|
179 | + . "\x00\x00\x00\x00" // 88 |
|
180 | + . "\xc0\x00\x00\x00" // 92 |
|
181 | + . "\x00\x00\x00\x46" // 96 // Seems to be ok only for Root |
|
182 | + . "\x00\x00\x00\x00" // 100 |
|
183 | + . \PhpSpreadsheet\Shared\OLE::localDateToOLE($this->Time1st) // 108 |
|
184 | + . \PhpSpreadsheet\Shared\OLE::localDateToOLE($this->Time2nd) // 116 |
|
185 | + . pack('V', isset($this->startBlock) ? $this->startBlock : 0) // 120 |
|
186 | + . pack('V', $this->Size) // 124 |
|
187 | + . pack('V', 0); // 128 |
|
188 | 188 | return $ret; |
189 | 189 | } |
190 | 190 |
@@ -707,8 +707,8 @@ |
||
707 | 707 | ? AutoFilter\Column\Rule::AUTOFILTER_COLUMN_RULE_GREATERTHAN |
708 | 708 | : AutoFilter\Column\Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN; |
709 | 709 | $ruleValues[] = ['operator' => $operator, |
710 | - 'value' => $average, |
|
711 | - ]; |
|
710 | + 'value' => $average, |
|
711 | + ]; |
|
712 | 712 | $columnFilterTests[$columnID] = [ |
713 | 713 | 'method' => 'filterTestInCustomDataSet', |
714 | 714 | 'arguments' => ['filterRules' => $ruleValues, 'join' => AutoFilter\Column::AUTOFILTER_COLUMN_JOIN_OR], |
@@ -845,11 +845,11 @@ |
||
845 | 845 | $_indexCache[$pColumnIndex] = chr(65 + $pColumnIndex); |
846 | 846 | } elseif ($pColumnIndex < 702) { |
847 | 847 | $_indexCache[$pColumnIndex] = chr(64 + ($pColumnIndex / 26)) . |
848 | - chr(65 + $pColumnIndex % 26); |
|
848 | + chr(65 + $pColumnIndex % 26); |
|
849 | 849 | } else { |
850 | 850 | $_indexCache[$pColumnIndex] = chr(64 + (($pColumnIndex - 26) / 676)) . |
851 | - chr(65 + ((($pColumnIndex - 26) % 676) / 26)) . |
|
852 | - chr(65 + $pColumnIndex % 26); |
|
851 | + chr(65 + ((($pColumnIndex - 26) % 676) / 26)) . |
|
852 | + chr(65 + $pColumnIndex % 26); |
|
853 | 853 | } |
854 | 854 | } |
855 | 855 |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | { |
114 | 114 | $attributeSet = ['val' => 100, |
115 | 115 | 'maxVal' => 200, |
116 | - ]; |
|
116 | + ]; |
|
117 | 117 | |
118 | 118 | // Setters return the instance to implement the fluent interface |
119 | 119 | $result = $this->testAutoFilterColumnObject->setAttributes($attributeSet); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | { |
125 | 125 | $attributeSet = ['val' => 100, |
126 | 126 | 'maxVal' => 200, |
127 | - ]; |
|
127 | + ]; |
|
128 | 128 | |
129 | 129 | $this->testAutoFilterColumnObject->setAttributes($attributeSet); |
130 | 130 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | { |
138 | 138 | $attributeSet = ['val' => 100, |
139 | 139 | 'maxVal' => 200, |
140 | - ]; |
|
140 | + ]; |
|
141 | 141 | |
142 | 142 | foreach ($attributeSet as $attributeName => $attributeValue) { |
143 | 143 | // Setters return the instance to implement the fluent interface |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | { |
151 | 151 | $attributeSet = ['val' => 100, |
152 | 152 | 'maxVal' => 200, |
153 | - ]; |
|
153 | + ]; |
|
154 | 154 | |
155 | 155 | $this->testAutoFilterColumnObject->setAttributes($attributeSet); |
156 | 156 |