Changeset 8154
- Timestamp:
- 03/30/08 00:57:25 (8 months ago)
- Files:
-
- branches/dwhittle/1.1/data/bin/release.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/autoload/sfCoreAutoload.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/autoload/sfSimpleAutoload.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/config/sfAutoloadConfigHandler.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/event/sfEvent.class.php (modified) (11 diffs)
- branches/dwhittle/1.1/lib/event/sfEventDispatcher.class.php (modified) (7 diffs)
- branches/dwhittle/1.1/lib/generator/sfCrudGenerator.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/i18n/extract/sfI18nApplicationExtract.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/propel/addon/sfPropelData.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelDataDumpTask.class.php (modified) (3 diffs)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelGenerateCrudTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelInitAdminTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/cache/sfCacheClearTask.class.php (modified) (3 diffs)
- branches/dwhittle/1.1/lib/task/generator/sfGenerateAppTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/generator/sfGenerateModuleTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/generator/sfGenerateProjectTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/i18n/sfI18nFindTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/log/sfLogClearTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/log/sfLogRotateTask.class.php (modified) (2 diffs)
- branches/dwhittle/1.1/lib/task/project/sfProjectClearControllersTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/project/sfProjectFreezeTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/project/sfProjectPermissionsTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/project/upgrade1.1/sfUpgrade.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/sfFilesystem.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/test/sfTestAllTask.class.php (modified) (1 diff)
- branches/dwhittle/1.1/lib/task/test/sfTestFunctionalTask.class.php (modified) (2 diffs)
- branches/dwhittle/1.1/lib/task/test/sfTestUnitTask.class.php (modified) (2 diffs)
- branches/dwhittle/1.1/lib/util/sfFinder.class.php (modified) (4 diffs)
- branches/dwhittle/1.1/test/bin/loc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dwhittle/1.1/data/bin/release.php
r8082 r8154 78 78 79 79 // add class files 80 $finder = sfFinder::type('file')-> ignore_version_control()->relative();80 $finder = sfFinder::type('file')->relative(); 81 81 $xml_classes = ''; 82 82 $dirs = array('lib' => 'php', 'data' => 'data'); branches/dwhittle/1.1/lib/autoload/sfCoreAutoload.class.php
r8017 r8154 103 103 104 104 $files = sfFinder::type('file') 105 ->ignore_version_control()106 105 ->prune('plugins') 107 106 ->prune('vendor') branches/dwhittle/1.1/lib/autoload/sfSimpleAutoload.class.php
r7797 r8154 184 184 if ($dirs = glob($dir)) 185 185 { 186 $finder = sfFinder::type('file')-> ignore_version_control()->follow_link()->name('*'.$ext);186 $finder = sfFinder::type('file')->follow_link()->name('*'.$ext); 187 187 foreach ($dirs as $dir) 188 188 { branches/dwhittle/1.1/lib/config/sfAutoloadConfigHandler.class.php
r7853 r8154 66 66 // we automatically add our php classes 67 67 require_once(sfConfig::get('sf_symfony_lib_dir').'/util/sfFinder.class.php'); 68 $finder = sfFinder::type('file')-> ignore_version_control()->name('*'.$ext)->follow_link();68 $finder = sfFinder::type('file')->name('*'.$ext)->follow_link(); 69 69 70 70 // recursive mapping? branches/dwhittle/1.1/lib/event/sfEvent.class.php
r6506 r8154 29 29 * Constructs a new sfEvent. 30 30 * 31 * @param mixed The subject32 * @param string The event name33 * @param array An array of parameters31 * @param mixed $subject The subject 32 * @param string $name The event name 33 * @param array $parameters An array of parameters 34 34 */ 35 35 public function __construct($subject, $name, $parameters = array()) … … 44 44 * Returns the subject. 45 45 * 46 * @ parammixed The subject46 * @return mixed The subject 47 47 */ 48 48 public function getSubject() … … 54 54 * Returns the event name. 55 55 * 56 * @ paramstring The event name56 * @return string The event name 57 57 */ 58 58 public function getName() … … 64 64 * Sets the return value for this event. 65 65 * 66 * @param mixed The return value66 * @param mixed $value The return value 67 67 */ 68 68 public function setReturnValue($value) … … 84 84 * Sets the processed flag. 85 85 * 86 * @param Boolean The processed flag value86 * @param Boolean $processed The processed flag value 87 87 */ 88 88 public function setProcessed($processed) … … 94 94 * Returns whether the event has been processed by a listener or not. 95 95 * 96 * @ paramBoolean true if the event has been processed, false otherwise96 * @return Boolean true if the event has been processed, false otherwise 97 97 */ 98 98 public function isProcessed() … … 101 101 } 102 102 103 /** 104 * Returns the event parameters. 105 * 106 * @return array The event parameters 107 */ 103 108 public function getParameters() 104 109 { … … 109 114 * Returns true if the parameter exists (implements the ArrayAccess interface). 110 115 * 111 * @param string The parameter name116 * @param string $name The parameter name 112 117 * 113 118 * @return Boolean true if the parameter exists, false otherwise … … 121 126 * Returns a parameter value (implements the ArrayAccess interface). 122 127 * 123 * @param string The parameter name128 * @param string $name The parameter name 124 129 * 125 130 * @return mixed The parameter value … … 133 138 * Sets a parameter (implements the ArrayAccess interface). 134 139 * 135 * @param string The parameter name136 * @param mixed 140 * @param string $name The parameter name 141 * @param mixed $value The parameter value 137 142 */ 138 143 public function offsetSet($name, $value) … … 144 149 * Removes a parameter (implements the ArrayAccess interface). 145 150 * 146 * @param string The parameter name151 * @param string $name The parameter name 147 152 */ 148 153 public function offsetUnset($name) branches/dwhittle/1.1/lib/event/sfEventDispatcher.class.php
r5125 r8154 27 27 * Connects a listener to a given event name. 28 28 * 29 * @param string An event name30 * @param mixed A PHP callable29 * @param string $name An event name 30 * @param mixed $listener A PHP callable 31 31 */ 32 32 public function connect($name, $listener) … … 43 43 * Disconnects a listener for a given event name. 44 44 * 45 * @param string An event name 46 * @param mixed A PHP callable 45 * @param string $name An event name 46 * @param mixed $listener A PHP callable 47 * 48 * @return mixed false if listener does not exist, null otherwise 47 49 */ 48 50 public function disconnect($name, $listener) … … 65 67 * Notifies all listeners of a given event. 66 68 * 67 * @param sfEvent A sfEvent instance69 * @param sfEvent $event A sfEvent instance 68 70 * 69 71 * @return sfEvent The sfEvent instance … … 82 84 * Notifies all listeners of a given event until one returns a non null value. 83 85 * 84 * @param sfEvent A sfEvent instance86 * @param sfEvent $event A sfEvent instance 85 87 * 86 88 * @return sfEvent The sfEvent instance … … 103 105 * Filters a value by calling all listeners of a given event. 104 106 * 105 * @param sfEvent A sfEvent instance106 * @param mixed The value to be filtered107 * @param sfEvent $event A sfEvent instance 108 * @param mixed $value The value to be filtered 107 109 * 108 110 * @return sfEvent The sfEvent instance … … 123 125 * Returns true if the given event name has some listeners. 124 126 * 125 * @param string The event name127 * @param string $name The event name 126 128 * 127 129 * @return Boolean true if some listeners are connected, false otherwise … … 140 142 * Returns all listeners associated with a given event name. 141 143 * 142 * @param string The event name144 * @param string $name The event name 143 145 * 144 146 * @return array An array of listeners branches/dwhittle/1.1/lib/generator/sfCrudGenerator.class.php
r7618 r8154 79 79 80 80 $this->setTheme($theme); 81 $files = sfFinder::type('file')-> ignore_version_control()->relative()->in($themeDir);81 $files = sfFinder::type('file')->relative()->in($themeDir); 82 82 83 83 $this->generatePhpFiles($this->generatedModuleName, $files); branches/dwhittle/1.1/lib/i18n/extract/sfI18nApplicationExtract.class.php
r7697 r8154 27 27 28 28 // Modules 29 $moduleNames = sfFinder::type('dir')->maxdepth(0)-> ignore_version_control()->relative()->in(sfConfig::get('sf_app_module_dir'));29 $moduleNames = sfFinder::type('dir')->maxdepth(0)->relative()->in(sfConfig::get('sf_app_module_dir')); 30 30 foreach ($moduleNames as $moduleName) 31 31 { branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/propel/addon/sfPropelData.class.php
r8133 r8154 315 315 * Returns data from one or more tables. 316 316 * 317 * @param string directory or file to dump to318 317 * @param mixed name or names of tables to dump (or all to dump all tables) 319 318 * @param string connection name branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelDataDumpTask.class.php
r7989 r8154 34 34 new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environement', 'cli'), 35 35 new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel'), 36 new sfCommandOption('classes', null, sfCommandOption::PARAMETER_REQUIRED, 'The class names to dump (separated by a colon)', null), 36 37 )); 37 38 … … 61 62 62 63 [./symfony propel:data-load --connection="name" frontend|INFO] 64 65 If you only want to dump some classes, use the [classes|COMMENT] option: 66 67 [./symfony propel:data-load --classes="Article,Category" frontend|INFO] 63 68 EOF; 64 69 } … … 85 90 $data = new sfPropelData(); 86 91 92 $classes = is_null($options['classes']) ? 'all' : explode(',', $options['classes']); 93 87 94 if (!is_null($filename)) 88 95 { 89 $data->dumpData($filename, 'all', $options['connection']);96 $data->dumpData($filename, $classes, $options['connection']); 90 97 } 91 98 else 92 99 { 93 fwrite(STDOUT, sfYaml::dump($data->getData( 'all', $options['connection']), 3));100 fwrite(STDOUT, sfYaml::dump($data->getData($classes, $options['connection']), 3)); 94 101 } 95 102 } branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelGenerateCrudTask.class.php
r7697 r8154 136 136 137 137 // create basic application structure 138 $finder = sfFinder::type('any')-> ignore_version_control()->discard('.sf');138 $finder = sfFinder::type('any')->discard('.sf'); 139 139 $dirs = $this->configuration->getGeneratorSkeletonDirs('sfPropelCrud', $options['theme']); 140 140 foreach ($dirs as $dir) branches/dwhittle/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelInitAdminTask.class.php
r7697 r8154 77 77 78 78 // create module structure 79 $finder = sfFinder::type('any')-> ignore_version_control()->discard('.sf');79 $finder = sfFinder::type('any')->discard('.sf'); 80 80 $dirs = $this->configuration->getGeneratorSkeletonDirs('sfPropelAdmin', $options['theme']); 81 81 foreach ($dirs as $dir) branches/dwhittle/1.1/lib/task/cache/sfCacheClearTask.class.php
r8061 r8154 78 78 79 79 // finder to find directories (1 level) in a directory 80 $dirFinder = sfFinder::type('dir')-> ignore_version_control()->discard('.sf')->maxdepth(0)->relative();80 $dirFinder = sfFinder::type('dir')->discard('.sf')->maxdepth(0)->relative(); 81 81 82 82 // iterate through applications … … 125 125 if (is_null($options['app'])) 126 126 { 127 $this->getFilesystem()->remove(sfFinder::type('file')-> ignore_version_control()->discard('.sf')->in(sfConfig::get('sf_cache_dir')));127 $this->getFilesystem()->remove(sfFinder::type('file')->discard('.sf')->in(sfConfig::get('sf_cache_dir'))); 128 128 } 129 129 } … … 150 150 { 151 151 // remove cache files 152 $this->getFilesystem()->remove(sfFinder::type('file')-> ignore_version_control()->discard('.sf')->in($subDir));152 $this->getFilesystem()->remove(sfFinder::type('file')->discard('.sf')->in($subDir)); 153 153 } 154 154 } branches/dwhittle/1.1/lib/task/generator/sfGenerateAppTask.class.php
r8085 r8154 82 82 83 83 // Create basic application structure 84 $finder = sfFinder::type('any')-> ignore_version_control()->discard('.sf');84 $finder = sfFinder::type('any')->discard('.sf'); 85 85 $this->getFilesystem()->mirror(dirname(__FILE__).DIRECTORY_SEPARATOR.'skeleton'.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'app', $appDir, $finder); 86 86 branches/dwhittle/1.1/lib/task/generator/sfGenerateModuleTask.class.php
r7697 r8154 95 95 96 96 // create basic application structure 97 $finder = sfFinder::type('any')-> ignore_version_control()->discard('.sf');97 $finder = sfFinder::type('any')->discard('.sf'); 98 98 $this->getFilesystem()->mirror($skeletonDir.DIRECTORY_SEPARATOR.'module', $moduleDir, $finder); 99 99 branches/dwhittle/1.1/lib/task/generator/sfGenerateProjectTask.class.php
r7989 r8154 68 68 69 69 // create basic project structure 70 $finder = sfFinder::type('any')-> ignore_version_control()->discard('.sf');70 $finder = sfFinder::type('any')->discard('.sf'); 71 71 $this->getFilesystem()->mirror(dirname(__FILE__).DIRECTORY_SEPARATOR.'skeleton'.DIRECTORY_SEPARATOR.'project', sfConfig::get('sf_root_dir'), $finder); 72 72 branches/dwhittle/1.1/lib/task/i18n/sfI18nFindTask.class.php
r7697 r8154 48 48 49 49 // Look in templates 50 $moduleNames = sfFinder::type('dir')->maxdepth(0)-> ignore_version_control()->relative()->in(sfConfig::get('sf_app_module_dir'));50 $moduleNames = sfFinder::type('dir')->maxdepth(0)->relative()->in(sfConfig::get('sf_app_module_dir')); 51 51 52 52 $strings = array(); branches/dwhittle/1.1/lib/task/log/sfLogClearTask.class.php
r7416 r8154 41 41 protected function execute($arguments = array(), $options = array()) 42 42 { 43 $logs = sfFinder::type('file')->i gnore_version_control()->in(sfConfig::get('sf_log_dir'));43 $logs = sfFinder::type('file')->in(sfConfig::get('sf_log_dir')); 44 44 $this->getFilesystem()->remove($logs); 45 45 } branches/dwhittle/1.1/lib/task/log/sfLogRotateTask.class.php
r7349 r8154 93 93 94 94 // determine date of last rotation 95 $logs = sfFinder::type('file')-> ignore_version_control()->maxdepth(1)->name($logfile.'_*.log')->in($logdir.DIRECTORY_SEPARATOR.'history'.DIRECTORY_SEPARATOR);95 $logs = sfFinder::type('file')->maxdepth(1)->name($logfile.'_*.log')->in($logdir.'/history/'); 96 96 $recentlog = is_array($logs) ? array_pop($logs) : null; 97 97 … … 138 138 139 139 // get all log history files for this application and environment 140 $newLogs = sfFinder::type('file')-> ignore_version_control()->maxdepth(1)->name($logfile.'_*.log')->in($logdir.DIRECTORY_SEPARATOR.'history'.DIRECTORY_SEPARATOR);140 $newLogs = sfFinder::type('file')->maxdepth(1)->name($logfile.'_*.log')->in($logdir.'/history/'); 141 141 142 142 // if the number of logs in history exceeds history then remove the oldest log branches/dwhittle/1.1/lib/task/project/sfProjectClearControllersTask.class.php
r7618 r8154 62 62 protected function execute($arguments = array(), $options = array()) 63 63 { 64 $finder = sfFinder::type('file')-> ignore_version_control()->maxdepth(1)->name('*.php');64 $finder = sfFinder::type('file')->maxdepth(1)->name('*.php'); 65 65 foreach ($finder->in(sfConfig::get('sf_web_dir')) as $controller) 66 66 { branches/dwhittle/1.1/lib/task/project/sfProjectFreezeTask.class.php
r7989 r8154 84 84 $this->getFilesystem()->mkdirs($sf_data_dir.DIRECTORY_SEPARATOR.'symfony'); 85 85 86 $finder = sfFinder::type('any')-> ignore_version_control()->exec(array($this, 'excludeTests'));86 $finder = sfFinder::type('any')->exec(array($this, 'excludeTests')); 87 87 $this->getFilesystem()->mirror($symfonyLibDir, sfConfig::get('sf_lib_dir').'/symfony', $finder); 88 88 $this->getFilesystem()->mirror($symfonyDataDir, sfConfig::get('sf_data_dir').'/symfony', $finder); branches/dwhittle/1.1/lib/task/project/sfProjectPermissionsTask.class.php
r7416 r8154 48 48 49 49 $dirs = array(sfConfig::get('sf_cache_dir'), sfConfig::get('sf_upload_dir'), sfConfig::get('sf_log_dir')); 50 $dirFinder = sfFinder::type('dir') ->ignore_version_control();51 $fileFinder = sfFinder::type('file') ->ignore_version_control();50 $dirFinder = sfFinder::type('dir'); 51 $fileFinder = sfFinder::type('file'); 52 52 foreach ($dirs as $dir) 53 53 { branches/dwhittle/1.1/lib/task/project/upgrade1.1/sfUpgrade.class.php
r7918 r8154 108 108 protected function getApplications() 109 109 { 110 return sfFinder::type('dir')->maxdepth(0)-> ignore_version_control()->relative()->in(sfConfig::get('sf_apps_dir'));110 return sfFinder::type('dir')->maxdepth(0)->relative()->in(sfConfig::get('sf_apps_dir')); 111 111 } 112 112 } branches/dwhittle/1.1/lib/task/sfFilesystem.class.php
r7416 r8154 201 201 if (!function_exists('symlink') && $copyOnWindows) 202 202 { 203 $finder = sfFinder::type('any') ->ignore_version_control();203 $finder = sfFinder::type('any'); 204 204 $this->mirror($originDir, $targetDir, $finder); 205 205 return; branches/dwhittle/1.1/lib/task/test/sfTestAllTask.class.php
r7955 r8154 52 52 53 53 // register all tests 54 $finder = sfFinder::type('file')-> ignore_version_control()->follow_link()->name('*Test.php');54 $finder = sfFinder::type('file')->follow_link()->name('*Test.php'); 55 55 $h->register($finder->in($h->base_dir)); 56 56 branches/dwhittle/1.1/lib/task/test/sfTestFunctionalTask.class.php
r7955 r8154 64 64 foreach ($arguments['controller'] as $controller) 65 65 { 66 $files = sfFinder::type('file')-> ignore_version_control()->follow_link()->name(basename($controller).'Test.php')->in(sfConfig::get('sf_test_dir').DIRECTORY_SEPARATOR.'functional'.DIRECTORY_SEPARATOR.$app.DIRECTORY_SEPARATOR.dirname($controller));66 $files = sfFinder::type('file')->follow_link()->name(basename($controller).'Test.php')->in(sfConfig::get('sf_test_dir').DIRECTORY_SEPARATOR.'functional'.DIRECTORY_SEPARATOR.$app.DIRECTORY_SEPARATOR.dirname($controller)); 67 67 foreach ($files as $file) 68 68 { … … 79 79 80 80 // register functional tests 81 $finder = sfFinder::type('file')-> ignore_version_control()->follow_link()->name('*Test.php');81 $finder = sfFinder::type('file')->follow_link()->name('*Test.php'); 82 82 $h->register($finder->in($h->base_dir)); 83 83 branches/dwhittle/1.1/lib/task/test/sfTestUnitTask.class.php
r7955 r8154 59 59 foreach ($arguments['name'] as $name) 60 60 { 61 $files = sfFinder::type('file')-> ignore_version_control()->follow_link()->name(basename($name).'Test.php')->in(sfConfig::get('sf_test_dir').DIRECTORY_SEPARATOR.'unit'.DIRECTORY_SEPARATOR.dirname($name));61 $files = sfFinder::type('file')->follow_link()->name(basename($name).'Test.php')->in(sfConfig::get('sf_test_dir').DIRECTORY_SEPARATOR.'unit'.DIRECTORY_SEPARATOR.dirname($name)); 62 62 foreach ($files as $file) 63 63 { … … 74 74 75 75 // register unit tests 76 $finder = sfFinder::type('file')-> ignore_version_control()->follow_link()->name('*Test.php');76 $finder = sfFinder::type('file')->follow_link()->name('*Test.php'); 77 77 $h->register($finder->in($h->base_dir)); 78 78 branches/dwhittle/1.1/lib/util/sfFinder.class.php
r7772 r8154 31 31 class sfFinder 32 32 { 33 protected $type = 'file'; 34 protected $names = array(); 35 protected $prunes = array(); 36 protected $discards = array(); 37 protected $execs = array(); 38 protected $mindepth = 0; 39 protected $sizes = array(); 40 protected $maxdepth = 1000000; 41 protected $relative = false; 42 protected $follow_link = false; 43 protected $sort = false; 33 protected $type = 'file'; 34 protected $names = array(); 35 protected $prunes = array(); 36 protected $discards = array(); 37 protected $execs = array(); 38 protected $mindepth = 0; 39 protected $sizes = array(); 40 protected $maxdepth = 1000000; 41 protected $relative = false; 42 protected $follow_link = false; 43 protected $sort = false; 44 protected $ignore_version_control = true; 44 45 45 46 /** … … 236 237 * @return object current sfFinder object 237 238 */ 238 public function ignore_version_control( )239 { 240 $ ignores = array('.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg');241 242 return $this ->discard($ignores)->prune($ignores);239 public function ignore_version_control($ignore = true) 240 { 241 $this->ignore_version_control = $ignore; 242 243 return $this; 243 244 } 244 245 … … 334 335 $arg_list = func_get_args(); 335 336 337 $finder = clone $this; 338 339 if ($this->ignore_version_control) 340 { 341 $ignores = array('.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg'); 342 343 $finder->discard($ignores)->prune($ignores); 344 } 345 336 346 // first argument is an array? 337 347 if ($numargs == 1 && is_array($arg_list[0])) … … 362 372 if ($this->relative) 363 373 { 364 $files = array_merge($files, str_replace($dir.DIRECTORY_SEPARATOR, '', $ this->search_in($dir)));374 $files = array_merge($files, str_replace($dir.DIRECTORY_SEPARATOR, '', $finder->search_in($dir))); 365 375 } 366 376 else 367 377 { 368 $files = array_merge($files, $ this->search_in($dir));378 $files = array_merge($files, $finder->search_in($dir)); 369 379 } 370 380 } branches/dwhittle/1.1/test/bin/loc.php
r7618 r8154 13 13 // symfony core LOC 14 14 $total_loc = 0; 15 $files = sfFinder::type('file')->name('*.php')-> ignore_version_control()->prune('vendor')->in($root_dir.'/lib');15 $files = sfFinder::type('file')->name('*.php')->prune('vendor')->in($root_dir.'/lib'); 16 16 foreach ($files as $file) 17 17 { … … 21 21 // symfony tests LOC 22 22 $total_tests_loc = 0; 23 $files = sfFinder::type('file')->name('*Test.php')->i gnore_version_control()->in(array($root_dir.'/test/unit', $root_dir.'/test/functional', $root_dir.'/test/other'));23 $files = sfFinder::type('file')->name('*Test.php')->in(array($root_dir.'/test/unit', $root_dir.'/test/functional', $root_dir.'/test/other')); 24 24 foreach ($files as $file) 25 25 {