Lines Matching refs:values

60     protected $values = array();  variable in PHP_CodeSniffer_CLI
396 if (empty($this->values) === false) {
397 return $this->values;
417 $this->values['stdin'] = $fileContents;
421 return $this->values;
436 $this->values = array(
440 } else if (empty($this->values) === true) {
441 $this->values = $this->getDefaults();
498 if ($this->values['quiet'] === true) {
503 if (isset($this->values['verbosity']) === false) {
504 $this->values['verbosity'] = 1;
506 $this->values['verbosity']++;
510 $this->values['local'] = true;
513 $this->values['showSources'] = true;
516 $this->values['interactive'] = true;
519 $this->values['explain'] = true;
522 if ($this->values['quiet'] === true) {
527 $this->values['showProgress'] = true;
531 $this->values['quiet'] = true;
532 $this->values['showProgress'] = false;
533 $this->values['verbosity'] = 0;
545 $this->values['warningSeverity'] = 0;
548 $this->values['warningSeverity'] = null;
552 $this->values[$arg] = $arg;
730 …echo 'ERROR: The specified report file path "'.$this->values['reportFile'].'" points to a non-exis…
754 …echo 'ERROR: The specified report file path "'.$this->values['reportFile'].'" is a directory'.PHP_…
894 $this->values['files'][] = $file;
903 * @param array $values An array of values determined from CLI args.
908 public function process($values=array()) argument
910 if (empty($values) === true) {
911 $values = $this->getCommandLineValues();
913 $values = array_merge($this->getDefaults(), $values);
914 $this->values = $values;
917 if ($values['generator'] !== '') {
918 $phpcs = new PHP_CodeSniffer($values['verbosity']);
919 if ($values['standard'] === null) {
920 $values['standard'] = $this->validateStandard(null);
923 foreach ($values['standard'] as $standard) {
926 $values['sniffs'],
927 $values['generator']
935 $values['standard'] = $this->validateStandard($values['standard']);
936 foreach ($values['standard'] as $standard) {
946 if ($values['explain'] === true) {
947 foreach ($values['standard'] as $standard) {
954 $phpcs = new PHP_CodeSniffer($values['verbosity'], null, null, null);
956 $phpcs->initStandard($values['standard'], $values['sniffs'], $values['exclude']);
957 $values = $this->values;
959 $phpcs->setTabWidth($values['tabWidth']);
960 $phpcs->setEncoding($values['encoding']);
961 $phpcs->setInteractive($values['interactive']);
965 if (empty($values['extensions']) === false) {
966 $phpcs->setAllowedFileExtensions($values['extensions']);
970 if (empty($values['ignored']) === false) {
971 $ignorePatterns = array_merge($phpcs->getIgnorePatterns(), $values['ignored']);
976 if ($values['errorSeverity'] === null) {
979 $this->errorSeverity = $values['errorSeverity'];
982 if ($values['warningSeverity'] === null) {
985 $this->warningSeverity = $values['warningSeverity'];
988 if (empty($values['reports']) === true) {
989 $values['reports']['full'] = $values['reportFile'];
990 $this->values['reports'] = $values['reports'];
994 foreach ($values['bootstrap'] as $bootstrap) {
998 $phpcs->processFiles($values['files'], $values['local']);
1000 if (empty($values['files']) === true || $values['stdin'] !== null) {
1001 $fileContents = $values['stdin'];
1016 $this->values['stdin'] = $fileContents;
1024 if ($values['interactive'] === true) {
1030 $values['reports'],
1031 $values['showSources'],
1032 $values['reportFile'],
1033 $values['reportWidth']
1085 $this->values,
1101 || (($errors + $warnings) === 0 && $this->values['showProgress'] === true))