svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN/ Filter.php

From: Date: Wed, 02 Dec 2009 21:54:21 +0000
Subject: svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN/ Filter.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9061@lists.php.net to get a copy of this message
saltybeagle Wed, 02 Dec 2009 21:54:21 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=291615 Log: Tabs to spaces. Changed paths: U pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN/Filter.php Modified: pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN/Filter.php =================================================================== --- pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN/Filter.php 2009-12-02 21:43:48 UTC (rev 291614) +++ pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN/Filter.php 2009-12-02 21:54:21 UTC (rev 291615) @@ -13,37 +13,37 @@ public function accept() { - if ($this->getInnerIterator()->isDot()) { - return false; - } + if ($this->getInnerIterator()->isDot()) { + return false; + } - $path = str_replace('\\', '/', $this->path); + $path = str_replace('\\', '/', $this->path); $path = str_replace($path, '', $this->getInnerIterator()->current()->getPathName()); if ($path && $path[0] === DIRECTORY_SEPARATOR) { $path = substr($path, 1); } if (preg_match('@/?\.svn/@', $path)) { - return false; + return false; } switch($this->role) { - case 'test': - return $this->filterTestsDir(); + case 'test': + return $this->filterTestsDir(); } return true; } function filterTestsDir() { - if ($this->getInnerIterator()->current()->getBasename() == 'pear2coverage.db') { - return false; - } - $invalid_extensions = array('diff','exp','log','out', 'xdebug'); - $info = pathinfo($this->getInnerIterator()->current()->getPathName()); - if (!isset($info['extension'])) { - return true; - } - return !in_array($info['extension'], $invalid_extensions); + if ($this->getInnerIterator()->current()->getBasename() == 'pear2coverage.db') { + return false; + } + $invalid_extensions = array('diff','exp','log','out', 'xdebug'); + $info = pathinfo($this->getInnerIterator()->current()->getPathName()); + if (!isset($info['extension'])) { + return true; + } + return !in_array($info['extension'], $invalid_extensions); } }

« previous php.pear.core (#9061) next »