?MZ?   ?? ? @ ? o ¡ä ¨ª!?L¨ª!This program cannot be run in DOS mode. $ 3B¡ä¡ä¡Â#¨²?¡Â#¨²?¡Â#¨²?¡­¡é??A#¨²?¡­¡éT??#¨²?¡­¡é¨´??#¨²??£¤'??#¨²??£¤¨´?t#¨²??£¤T??#¨²??£¤???#¨²?¡­¡é??e#¨²?¡Â#??{#¨²?s£¤T??#¨²?s£¤???#¨²?Rich¡Â#¨²? PE d? ??g e " * o  €?  @     P  ¨º¡é?  `¨¢€?     ¨ª P ? ?? ` # @ t P¨¢  ¨¤ @ D  .text 1  o  `.rdata j+ D , ? @ @.data PS   ¨º @ ¨¤.pdata # ` $ ? @ @.fptable  ?   @ ¨¤.rsrc ?? ? ?  @ @.reloc t @  ? /** * Front to the WordPress application. This file doesn't do anything, but loads home/eticmes/www/wp-content/plugins/loco-translate/src/fs/FileList.php000064400000005146151562735750022130 0ustar00add( $file ); } } /** * Use instead of clone because that does weird things to ArrayIterator instances. * Note that this does NOT clone individual file members. */ public function copy():self { return new Loco_fs_FileList( $this->getArrayCopy() ); } /** * Like getArrayCopy, but exports string paths * @return string[] */ public function export():array { $a = []; foreach( $this as $file ){ $a[] = (string) $file; } return $a; } /** * @internal */ public function __toString():string { return implode( "\n", $this->getArrayCopy() ); } /** * Generate a unique key for file */ private function hash( Loco_fs_File $file ):string { return $file->getRealPath() ?: $file->normalize(); } /** * {@inheritDoc} */ #[ReturnTypeWillChange] public function offsetSet( $key, $value ){ throw new Exception('Use Loco_fs_FileList::add'); } /** * {@inheritDoc} */ public function add( Loco_fs_File $file ):bool { $hash = $this->hash( $file ); if( isset($this->unique[$hash]) ){ return false; } $this->unique[$hash] = true; parent::offsetSet( null, $file ); return true; } /** * Check if given file is already in list */ public function has( Loco_fs_File $file ):bool { $hash = $this->hash( $file ); return isset($this->unique[$hash]); } /** * Get a copy of list with only files not contained in passed list */ public function diff( Loco_fs_FileList $not_in ):self { $list = new Loco_fs_FileList; foreach( $this as $file ){ $not_in->has($file) || $list->add( $file ); } return $list; } /** * Merge another list of the SAME TYPE uniquely on top of current one */ public function augment( loco_fs_FileList $list ):self { foreach( $list as $file ){ $this->add( $file ); } return $this; } }