@@ -155,11 +155,9 @@ discard block |
||
155 | 155 | { |
156 | 156 | array_splice($this->_d,$index,0,array($item)); |
157 | 157 | $this->_c++; |
158 | - } |
|
159 | - else |
|
158 | + } else |
|
160 | 159 | throw new TInvalidDataValueException('list_index_invalid',$index); |
161 | - } |
|
162 | - else |
|
160 | + } else |
|
163 | 161 | throw new TInvalidOperationException('list_readonly',get_class($this)); |
164 | 162 | } |
165 | 163 | |
@@ -180,11 +178,9 @@ discard block |
||
180 | 178 | { |
181 | 179 | $this->removeAt($index); |
182 | 180 | return $index; |
183 | - } |
|
184 | - else |
|
181 | + } else |
|
185 | 182 | throw new TInvalidDataValueException('list_item_inexistent'); |
186 | - } |
|
187 | - else |
|
183 | + } else |
|
188 | 184 | throw new TInvalidOperationException('list_readonly',get_class($this)); |
189 | 185 | } |
190 | 186 | |
@@ -210,11 +206,9 @@ discard block |
||
210 | 206 | array_splice($this->_d,$index,1); |
211 | 207 | return $item; |
212 | 208 | } |
213 | - } |
|
214 | - else |
|
209 | + } else |
|
215 | 210 | throw new TInvalidDataValueException('list_index_invalid',$index); |
216 | - } |
|
217 | - else |
|
211 | + } else |
|
218 | 212 | throw new TInvalidOperationException('list_readonly',get_class($this)); |
219 | 213 | } |
220 | 214 | |
@@ -268,8 +262,7 @@ discard block |
||
268 | 262 | $this->insertAt($index, $item); |
269 | 263 | |
270 | 264 | return $index; |
271 | - } |
|
272 | - else |
|
265 | + } else |
|
273 | 266 | throw new TInvalidOperationException('list_readonly',get_class($this)); |
274 | 267 | } |
275 | 268 | |
@@ -292,8 +285,7 @@ discard block |
||
292 | 285 | $this->insertAt($index + 1, $item); |
293 | 286 | |
294 | 287 | return $index + 1; |
295 | - } |
|
296 | - else |
|
288 | + } else |
|
297 | 289 | throw new TInvalidOperationException('list_readonly',get_class($this)); |
298 | 290 | } |
299 | 291 | |
@@ -319,8 +311,7 @@ discard block |
||
319 | 311 | $this->clear(); |
320 | 312 | foreach($data as $item) |
321 | 313 | $this->add($item); |
322 | - } |
|
323 | - else if($data!==null) |
|
314 | + } else if($data!==null) |
|
324 | 315 | throw new TInvalidDataTypeException('list_data_not_iterable'); |
325 | 316 | } |
326 | 317 | |
@@ -336,8 +327,7 @@ discard block |
||
336 | 327 | { |
337 | 328 | foreach($data as $item) |
338 | 329 | $this->add($item); |
339 | - } |
|
340 | - else if($data!==null) |
|
330 | + } else if($data!==null) |
|
341 | 331 | throw new TInvalidDataTypeException('list_data_not_iterable'); |
342 | 332 | } |
343 | 333 |
@@ -384,8 +384,7 @@ discard block |
||
384 | 384 | } |
385 | 385 | $this->removeAtIndexInPriority($p[1],$p[0]); |
386 | 386 | return $p[2]; |
387 | - } |
|
388 | - else |
|
387 | + } else |
|
389 | 388 | throw new TInvalidDataValueException('list_item_inexistent'); |
390 | 389 | } |
391 | 390 | |
@@ -670,14 +669,12 @@ discard block |
||
670 | 669 | foreach($data->itemsAtPriority($priority) as $index=>$item) |
671 | 670 | $this->insertAtIndexInPriority($item,false,$priority); |
672 | 671 | } |
673 | - } |
|
674 | - else if(is_array($data)||$data instanceof Traversable) |
|
672 | + } else if(is_array($data)||$data instanceof Traversable) |
|
675 | 673 | { |
676 | 674 | foreach($data as $priority=>$item) |
677 | 675 | $this->add($item); |
678 | 676 | |
679 | - } |
|
680 | - else if($data!==null) |
|
677 | + } else if($data!==null) |
|
681 | 678 | throw new TInvalidDataTypeException('map_data_not_iterable'); |
682 | 679 | } |
683 | 680 |
@@ -81,8 +81,7 @@ |
||
81 | 81 | $this->_d[]=$item; |
82 | 82 | ++$this->_c; |
83 | 83 | } |
84 | - } |
|
85 | - else if($data!==null) |
|
84 | + } else if($data!==null) |
|
86 | 85 | throw new TInvalidDataTypeException('queue_data_not_iterable'); |
87 | 86 | } |
88 | 87 |
@@ -360,13 +360,11 @@ discard block |
||
360 | 360 | if(!isset($this->_d[$priority])) { |
361 | 361 | $this->_d[$priority]=array($key=>$value); |
362 | 362 | $this->_o=false; |
363 | - } |
|
364 | - else |
|
363 | + } else |
|
365 | 364 | $this->_d[$priority][$key]=$value; |
366 | 365 | $this->_c++; |
367 | 366 | $this->_fd=null; |
368 | - } |
|
369 | - else |
|
367 | + } else |
|
370 | 368 | throw new TInvalidOperationException('map_readonly',get_class($this)); |
371 | 369 | return $priority; |
372 | 370 | } |
@@ -408,8 +406,7 @@ discard block |
||
408 | 406 | return $value; |
409 | 407 | } |
410 | 408 | return null; |
411 | - } |
|
412 | - else |
|
409 | + } else |
|
413 | 410 | { |
414 | 411 | $priority=(string)round(TPropertyValue::ensureFloat($priority),$this->_p); |
415 | 412 | if(isset($this->_d[$priority])&&(isset($this->_d[$priority][$key])||array_key_exists($key,$this->_d[$priority]))) |
@@ -423,12 +420,10 @@ discard block |
||
423 | 420 | } |
424 | 421 | $this->_fd=null; |
425 | 422 | return $value; |
426 | - } |
|
427 | - else |
|
423 | + } else |
|
428 | 424 | return null; |
429 | 425 | } |
430 | - } |
|
431 | - else |
|
426 | + } else |
|
432 | 427 | throw new TInvalidOperationException('map_readonly',get_class($this)); |
433 | 428 | } |
434 | 429 | |
@@ -521,15 +516,13 @@ discard block |
||
521 | 516 | $this->add($key,$value,$priority); |
522 | 517 | } |
523 | 518 | } |
524 | - } |
|
525 | - else if(is_array($data)||$data instanceof Traversable) |
|
519 | + } else if(is_array($data)||$data instanceof Traversable) |
|
526 | 520 | { |
527 | 521 | if($this->getCount()>0) |
528 | 522 | $this->clear(); |
529 | 523 | foreach($data as $key=>$value) |
530 | 524 | $this->add($key,$value); |
531 | - } |
|
532 | - else if($data!==null) |
|
525 | + } else if($data!==null) |
|
533 | 526 | throw new TInvalidDataTypeException('map_data_not_iterable'); |
534 | 527 | } |
535 | 528 | |
@@ -549,13 +542,11 @@ discard block |
||
549 | 542 | foreach($data->itemsAtPriority($priority) as $key => $value) |
550 | 543 | $this->add($key,$value,$priority); |
551 | 544 | } |
552 | - } |
|
553 | - else if(is_array($data)||$data instanceof Traversable) |
|
545 | + } else if(is_array($data)||$data instanceof Traversable) |
|
554 | 546 | { |
555 | 547 | foreach($data as $key=>$value) |
556 | 548 | $this->add($key,$value); |
557 | - } |
|
558 | - else if($data!==null) |
|
549 | + } else if($data!==null) |
|
559 | 550 | throw new TInvalidDataTypeException('map_data_not_iterable'); |
560 | 551 | } |
561 | 552 |
@@ -189,8 +189,7 @@ discard block |
||
189 | 189 | return file_put_contents($fileName,file_get_contents($this->_localName))!==false; |
190 | 190 | else |
191 | 191 | return false; |
192 | - } |
|
193 | - else |
|
192 | + } else |
|
194 | 193 | return false; |
195 | 194 | } |
196 | 195 | |
@@ -211,8 +210,7 @@ discard block |
||
211 | 210 | $this->_errorCode=$_FILES[$key]['error']; |
212 | 211 | $this->_localName=$_FILES[$key]['tmp_name']; |
213 | 212 | return $this->_dataChanged=true; |
214 | - } |
|
215 | - else |
|
213 | + } else |
|
216 | 214 | return false; |
217 | 215 | } |
218 | 216 |
@@ -533,8 +533,7 @@ discard block |
||
533 | 533 | } |
534 | 534 | if($callchain->getCount()>0) |
535 | 535 | return call_user_func_array(array($callchain,'call'),$args); |
536 | - } |
|
537 | - else |
|
536 | + } else |
|
538 | 537 | { |
539 | 538 | foreach($this->_m->toArray() as $behavior) |
540 | 539 | { |
@@ -588,29 +587,25 @@ discard block |
||
588 | 587 | { |
589 | 588 | // getting a property |
590 | 589 | return $this->$getter(); |
591 | - } |
|
592 | - else if(method_exists($this,$jsgetter='getjs'.$name)) |
|
590 | + } else if(method_exists($this,$jsgetter='getjs'.$name)) |
|
593 | 591 | { |
594 | 592 | // getting a javascript property |
595 | 593 | return (string)$this->$jsgetter(); |
596 | - } |
|
597 | - else if(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) |
|
594 | + } else if(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) |
|
598 | 595 | { |
599 | 596 | // getting an event (handler list) |
600 | 597 | $name=strtolower($name); |
601 | 598 | if(!isset($this->_e[$name])) |
602 | 599 | $this->_e[$name]=new TPriorityList; |
603 | 600 | return $this->_e[$name]; |
604 | - } |
|
605 | - else if(strncasecmp($name,'fx',2)===0) |
|
601 | + } else if(strncasecmp($name,'fx',2)===0) |
|
606 | 602 | { |
607 | 603 | // getting a global event (handler list) |
608 | 604 | $name=strtolower($name); |
609 | 605 | if(!isset(self::$_ue[$name])) |
610 | 606 | self::$_ue[$name]=new TPriorityList; |
611 | 607 | return self::$_ue[$name]; |
612 | - } |
|
613 | - else if($this->_behaviorsenabled) |
|
608 | + } else if($this->_behaviorsenabled) |
|
614 | 609 | { |
615 | 610 | // getting a behavior property/event (handler list) |
616 | 611 | if(isset($this->_m[$name])) |
@@ -650,18 +645,15 @@ discard block |
||
650 | 645 | if(strncasecmp($name,'js',2)===0&&$value&&!($value instanceof TJavaScriptLiteral)) |
651 | 646 | $value = new TJavaScriptLiteral($value); |
652 | 647 | return $this->$setter($value); |
653 | - } |
|
654 | - else if(method_exists($this,$jssetter='setjs'.$name)) |
|
648 | + } else if(method_exists($this,$jssetter='setjs'.$name)) |
|
655 | 649 | { |
656 | 650 | if($value&&!($value instanceof TJavaScriptString)) |
657 | 651 | $value=new TJavaScriptString($value); |
658 | 652 | return $this->$jssetter($value); |
659 | - } |
|
660 | - else if((strncasecmp($name,'on',2)===0&&method_exists($this,$name))||strncasecmp($name,'fx',2)===0) |
|
653 | + } else if((strncasecmp($name,'on',2)===0&&method_exists($this,$name))||strncasecmp($name,'fx',2)===0) |
|
661 | 654 | { |
662 | 655 | return $this->attachEventHandler($name,$value); |
663 | - } |
|
664 | - else if($this->_m!==null&&$this->_m->getCount()>0&&$this->_behaviorsenabled) |
|
656 | + } else if($this->_m!==null&&$this->_m->getCount()>0&&$this->_behaviorsenabled) |
|
665 | 657 | { |
666 | 658 | $sets=0; |
667 | 659 | foreach($this->_m->toArray() as $behavior) |
@@ -679,8 +671,7 @@ discard block |
||
679 | 671 | if(method_exists($this,'get'.$name)||method_exists($this,'getjs'.$name)) |
680 | 672 | { |
681 | 673 | throw new TInvalidOperationException('component_property_readonly',get_class($this),$name); |
682 | - } |
|
683 | - else |
|
674 | + } else |
|
684 | 675 | { |
685 | 676 | throw new TInvalidOperationException('component_property_undefined',get_class($this),$name); |
686 | 677 | } |
@@ -708,13 +699,11 @@ discard block |
||
708 | 699 | { |
709 | 700 | $name=strtolower($name); |
710 | 701 | return isset($this->_e[$name])&&$this->_e[$name]->getCount(); |
711 | - } |
|
712 | - else if(strncasecmp($name,'fx',2)===0) |
|
702 | + } else if(strncasecmp($name,'fx',2)===0) |
|
713 | 703 | { |
714 | 704 | $name=strtolower($name); |
715 | 705 | return isset(self::$_ue[$name])&&self::$_ue[$name]->getCount(); |
716 | - } |
|
717 | - else if($this->_m!==null&&$this->_m->getCount()>0&&$this->_behaviorsenabled) |
|
706 | + } else if($this->_m!==null&&$this->_m->getCount()>0&&$this->_behaviorsenabled) |
|
718 | 707 | { |
719 | 708 | if(isset($this->_m[$name])) |
720 | 709 | return true; |
@@ -724,8 +713,7 @@ discard block |
||
724 | 713 | return isset($behavior->$name); |
725 | 714 | } |
726 | 715 | |
727 | - } |
|
728 | - else |
|
716 | + } else |
|
729 | 717 | return false; |
730 | 718 | } |
731 | 719 | |
@@ -939,15 +927,13 @@ discard block |
||
939 | 927 | if(!isset($this->_e[$name])) |
940 | 928 | $this->_e[$name]=new TPriorityList; |
941 | 929 | return $this->_e[$name]; |
942 | - } |
|
943 | - else if(strncasecmp($name,'fx',2)===0) |
|
930 | + } else if(strncasecmp($name,'fx',2)===0) |
|
944 | 931 | { |
945 | 932 | $name=strtolower($name); |
946 | 933 | if(!isset(self::$_ue[$name])) |
947 | 934 | self::$_ue[$name]=new TPriorityList; |
948 | 935 | return self::$_ue[$name]; |
949 | - } |
|
950 | - else if($this->_m!==null&&$this->_behaviorsenabled) |
|
936 | + } else if($this->_m!==null&&$this->_behaviorsenabled) |
|
951 | 937 | { |
952 | 938 | foreach($this->_m->toArray() as $behavior) |
953 | 939 | { |
@@ -1026,8 +1012,7 @@ discard block |
||
1026 | 1012 | { |
1027 | 1013 | $this->getEventHandlers($name)->remove($handler,$priority); |
1028 | 1014 | return true; |
1029 | - } |
|
1030 | - catch(Exception $e) |
|
1015 | + } catch(Exception $e) |
|
1031 | 1016 | { |
1032 | 1017 | } |
1033 | 1018 | } |
@@ -1150,14 +1135,11 @@ discard block |
||
1150 | 1135 | $response=$object->__dycall($name,array($sender,$param,$name)); |
1151 | 1136 | else |
1152 | 1137 | $response=$object->$method($sender,$param,$name); |
1153 | - } |
|
1154 | - else |
|
1138 | + } else |
|
1155 | 1139 | throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,$handler); |
1156 | - } |
|
1157 | - else |
|
1140 | + } else |
|
1158 | 1141 | $response=call_user_func($handler,$sender,$param,$name); |
1159 | - } |
|
1160 | - else if(is_callable($handler,true)) |
|
1142 | + } else if(is_callable($handler,true)) |
|
1161 | 1143 | { |
1162 | 1144 | list($object,$method)=$handler; |
1163 | 1145 | if(is_string($object)) |
@@ -1175,12 +1157,10 @@ discard block |
||
1175 | 1157 | $response=$object->__dycall($name,array($sender,$param,$name)); |
1176 | 1158 | else |
1177 | 1159 | $response=$object->$method($sender,$param,$name); |
1178 | - } |
|
1179 | - else |
|
1160 | + } else |
|
1180 | 1161 | throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,$handler[1]); |
1181 | 1162 | } |
1182 | - } |
|
1183 | - else |
|
1163 | + } else |
|
1184 | 1164 | throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,gettype($handler)); |
1185 | 1165 | |
1186 | 1166 | $this->dyIntraRaiseEventPostHandler($name,$sender,$param,$handler,$response); |
@@ -1197,8 +1177,7 @@ discard block |
||
1197 | 1177 | $param=$response; |
1198 | 1178 | |
1199 | 1179 | } |
1200 | - } |
|
1201 | - else if(strncasecmp($name,'on',2)===0&&!$this->hasEvent($name)) |
|
1180 | + } else if(strncasecmp($name,'on',2)===0&&!$this->hasEvent($name)) |
|
1202 | 1181 | throw new TInvalidOperationException('component_event_undefined',get_class($this),$name); |
1203 | 1182 | |
1204 | 1183 | if($responsetype&TEventResults::EVENT_RESULT_FILTER) |
@@ -1234,8 +1213,7 @@ discard block |
||
1234 | 1213 | if(eval("\$result=$expression;")===false) |
1235 | 1214 | throw new Exception(''); |
1236 | 1215 | return $result; |
1237 | - } |
|
1238 | - catch(Exception $e) |
|
1216 | + } catch(Exception $e) |
|
1239 | 1217 | { |
1240 | 1218 | throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage()); |
1241 | 1219 | } |
@@ -1269,8 +1247,7 @@ discard block |
||
1269 | 1247 | $content=ob_get_contents(); |
1270 | 1248 | ob_end_clean(); |
1271 | 1249 | return $content; |
1272 | - } |
|
1273 | - catch(Exception $e) |
|
1250 | + } catch(Exception $e) |
|
1274 | 1251 | { |
1275 | 1252 | throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage()); |
1276 | 1253 | } |
@@ -1972,11 +1949,9 @@ discard block |
||
1972 | 1949 | { |
1973 | 1950 | eval('$array=array'.$value.';'); |
1974 | 1951 | return $array; |
1975 | - } |
|
1976 | - else |
|
1952 | + } else |
|
1977 | 1953 | return $len>0?array($value):array(); |
1978 | - } |
|
1979 | - else |
|
1954 | + } else |
|
1980 | 1955 | return (array)$value; |
1981 | 1956 | } |
1982 | 1957 | |
@@ -2019,8 +1994,7 @@ discard block |
||
2019 | 1994 | throw new TInvalidDataValueException( |
2020 | 1995 | 'propertyvalue_enumvalue_invalid',$value, |
2021 | 1996 | implode(' | ',$types[$enums]->getConstants())); |
2022 | - } |
|
2023 | - else if(!is_array($enums)) |
|
1997 | + } else if(!is_array($enums)) |
|
2024 | 1998 | { |
2025 | 1999 | $enums=func_get_args(); |
2026 | 2000 | array_shift($enums); |
@@ -116,8 +116,7 @@ discard block |
||
116 | 116 | { |
117 | 117 | $am=self::$_application->getAssetManager(); |
118 | 118 | $url=$am->publishFilePath(self::getPathOfNamespace('System.'.$logoName,'.gif')); |
119 | - } |
|
120 | - else |
|
119 | + } else |
|
121 | 120 | $url='http://pradosoft.github.io/docs/'.$logoName.'.gif'; |
122 | 121 | return '<a title="Powered by PRADO" href="https://github.com/pradosoft/prado" target="_blank"><img src="'.$url.'" style="border-width:0px;" alt="Powered by PRADO" /></a>'; |
123 | 122 | } |
@@ -169,8 +168,7 @@ discard block |
||
169 | 168 | if(self::$_application!==null && ($errorHandler=self::$_application->getErrorHandler())!==null) |
170 | 169 | { |
171 | 170 | $errorHandler->handleError(null,$exception); |
172 | - } |
|
173 | - else |
|
171 | + } else |
|
174 | 172 | { |
175 | 173 | echo $exception; |
176 | 174 | } |
@@ -259,8 +257,7 @@ discard block |
||
259 | 257 | return $component; |
260 | 258 | break; |
261 | 259 | } |
262 | - } |
|
263 | - else |
|
260 | + } else |
|
264 | 261 | return new $type; |
265 | 262 | } |
266 | 263 | |
@@ -282,24 +279,21 @@ discard block |
||
282 | 279 | try |
283 | 280 | { |
284 | 281 | include_once($namespace.self::CLASS_FILE_EXT); |
285 | - } |
|
286 | - catch(Exception $e) |
|
282 | + } catch(Exception $e) |
|
287 | 283 | { |
288 | 284 | if($checkClassExistence && !class_exists($namespace,false)) |
289 | 285 | throw new TInvalidOperationException('prado_component_unknown',$namespace,$e->getMessage()); |
290 | 286 | else |
291 | 287 | throw $e; |
292 | 288 | } |
293 | - } |
|
294 | - else if(($path=self::getPathOfNamespace($namespace,self::CLASS_FILE_EXT))!==null) |
|
289 | + } else if(($path=self::getPathOfNamespace($namespace,self::CLASS_FILE_EXT))!==null) |
|
295 | 290 | { |
296 | 291 | $className=substr($namespace,$pos+1); |
297 | 292 | if($className==='*') // a directory |
298 | 293 | { |
299 | 294 | self::$_usings[$namespace]=$path; |
300 | 295 | set_include_path(get_include_path().PATH_SEPARATOR.$path); |
301 | - } |
|
302 | - else // a file |
|
296 | + } else // a file |
|
303 | 297 | { |
304 | 298 | self::$_usings[$namespace]=$path; |
305 | 299 | if(!$checkClassExistence || !class_exists($className,false)) |
@@ -307,8 +301,7 @@ discard block |
||
307 | 301 | try |
308 | 302 | { |
309 | 303 | include_once($path); |
310 | - } |
|
311 | - catch(Exception $e) |
|
304 | + } catch(Exception $e) |
|
312 | 305 | { |
313 | 306 | if($checkClassExistence && !class_exists($className,false)) |
314 | 307 | throw new TInvalidOperationException('prado_component_unknown',$className,$e->getMessage()); |
@@ -317,8 +310,7 @@ discard block |
||
317 | 310 | } |
318 | 311 | } |
319 | 312 | } |
320 | - } |
|
321 | - else |
|
313 | + } else |
|
322 | 314 | throw new TInvalidDataValueException('prado_using_invalid',$namespace); |
323 | 315 | } |
324 | 316 | |
@@ -384,8 +376,7 @@ discard block |
||
384 | 376 | self::$_aliases[$alias]=$rp; |
385 | 377 | else |
386 | 378 | throw new TInvalidDataValueException('prado_aliasname_invalid',$alias); |
387 | - } |
|
388 | - else |
|
379 | + } else |
|
389 | 380 | throw new TInvalidDataValueException('prado_alias_invalid',$alias,$path); |
390 | 381 | } |
391 | 382 | |
@@ -430,8 +421,7 @@ discard block |
||
430 | 421 | echo "'". substr($str, 0, 70) . "...'"; |
431 | 422 | else |
432 | 423 | echo "'" . $str . "'"; |
433 | - } |
|
434 | - else if (is_int($item) || is_float($item)) |
|
424 | + } else if (is_int($item) || is_float($item)) |
|
435 | 425 | echo $item; |
436 | 426 | else if (is_object($item)) |
437 | 427 | echo get_class($item); |
@@ -526,8 +516,7 @@ discard block |
||
526 | 516 | if(isset($trace[0]['file']) && isset($trace[0]['line'])) |
527 | 517 | $msg.=" (line {$trace[0]['line']}, {$trace[0]['file']})"; |
528 | 518 | $level=TLogger::DEBUG; |
529 | - } |
|
530 | - else |
|
519 | + } else |
|
531 | 520 | $level=TLogger::INFO; |
532 | 521 | self::log($msg,$level,$category,$ctl); |
533 | 522 | } |
@@ -213,8 +213,7 @@ |
||
213 | 213 | return $this->postscript[0]. |
214 | 214 | strtr($string, $args). |
215 | 215 | $this->postscript[1]; |
216 | - } |
|
217 | - else |
|
216 | + } else |
|
218 | 217 | return strtr($target, $args); |
219 | 218 | } |
220 | 219 | } |
@@ -58,8 +58,7 @@ |
||
58 | 58 | if ($this->sourcepath === NULL) |
59 | 59 | { |
60 | 60 | $this->sourcepath = $sourcepath; |
61 | - } |
|
62 | - else |
|
61 | + } else |
|
63 | 62 | { |
64 | 63 | $this->sourcepath->append($sourcepath); |
65 | 64 | } |