Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static function load(string $className)
} else {
self::$composerAutoloader = false;
}
}//end if
}

$ds = DIRECTORY_SEPARATOR;
$path = false;
Expand Down Expand Up @@ -332,4 +332,4 @@ public static function getLoadedFiles()
// it gets a chance to hear about every autoload request, and record
// the file and class name for it.
spl_autoload_register(__NAMESPACE__ . '\Autoload::load', true, true);
}//end if
}
1 change: 0 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
<rule ref="Squiz.Commenting.EmptyCatchComment"/>
<rule ref="Squiz.Commenting.InlineComment"/>
<rule ref="Squiz.Commenting.LongConditionClosingComment"/>
<rule ref="Squiz.Commenting.PostStatementComment">
<exclude name="Squiz.Commenting.PostStatementComment.AnnotationFound"/>
</rule>
Expand Down
4 changes: 2 additions & 2 deletions scripts/BuildRequirementsCheckMatrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ private function getMissingExtensionsBuilds()
];
}
}
}//end foreach
}//end foreach
}
}

return $builds;
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-phar.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function stripWhitespaceAndComments(string $fullpath, Config $config)
}

++$fileCount;
}//end foreach
}

// Add requirements check.
$phar->addFromString('requirements.php', stripWhitespaceAndComments(realpath(__DIR__ . '/../requirements.php'), $config));
Expand Down Expand Up @@ -168,7 +168,7 @@ function stripWhitespaceAndComments(string $fullpath, Config $config)
$phar->setStub($stub);

echo 'done' . PHP_EOL;
}//end foreach
}

Timing::printRunTime();

Expand Down
30 changes: 15 additions & 15 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public function __set(string $name, $value)
default :
// No validation required.
break;
}//end switch
}

$this->settings[$name] = $value;
}
Expand Down Expand Up @@ -444,7 +444,7 @@ public function __construct(array $cliArgs = [], bool $dieOnUnknownArg = true)
$lastDir = $currentDir;
$currentDir = dirname($currentDir);
} while ($currentDir !== '.' && $currentDir !== $lastDir && Common::isReadable($currentDir) === true);
}//end if
}

if (defined('STDIN') === false
|| PHP_OS_FAMILY === 'Windows'
Expand Down Expand Up @@ -478,7 +478,7 @@ public function __construct(array $cliArgs = [], bool $dieOnUnknownArg = true)
$this->overriddenDefaults['stdin'] = true;
$this->overriddenDefaults['stdinContent'] = true;
}
}//end if
}

fclose($handle);
}
Expand Down Expand Up @@ -529,8 +529,8 @@ public function setCommandLineValues(array $args)
}
} else {
$this->processUnknownArgument($arg, $i);
}//end if
}//end for
}
}
}


Expand Down Expand Up @@ -764,7 +764,7 @@ public function processShortArgument(string $arg, int $pos)
} else {
$this->processUnknownArgument('-' . $arg, $pos);
}
}//end switch
}
}


Expand Down Expand Up @@ -958,7 +958,7 @@ public function processLongArgument(string $arg, int $pos)
$this->cacheFile = $dir . '/' . basename($this->cacheFile);
}
}
}//end if
}

$this->overriddenDefaults['cacheFile'] = true;

Expand Down Expand Up @@ -1035,7 +1035,7 @@ public function processLongArgument(string $arg, int $pos)
}

$this->reportFile = $dir . '/' . basename($this->reportFile);
}//end if
}

$this->overriddenDefaults['reportFile'] = true;

Expand Down Expand Up @@ -1106,8 +1106,8 @@ public function processLongArgument(string $arg, int $pos)
$error .= $this->printShortUsage(true);
throw new DeepExitException($error, ExitCode::PROCESS_ERROR);
}
}//end if
}//end if
}
}

$reports[$report] = $output;
} else {
Expand All @@ -1120,7 +1120,7 @@ public function processLongArgument(string $arg, int $pos)
foreach ($reportNames as $report) {
$reports[$report] = null;
}
}//end if
}

// Remove the default value so the CLI value overrides it.
if (isset($this->overriddenDefaults['reports']) === false) {
Expand Down Expand Up @@ -1293,9 +1293,9 @@ public function processLongArgument(string $arg, int $pos)
} else {
$this->processUnknownArgument('--' . $arg, $pos);
}
}//end if
}
break;
}//end switch
}
}


Expand Down Expand Up @@ -1343,7 +1343,7 @@ private function parseSniffCodes(string $input, string $argument)
$parts = explode('.', $sniff, 4);
$sniffs[] = $parts[0] . '.' . $parts[1] . '.' . $parts[2];
}
}//end foreach
}

$sniffs = array_reduce(
$sniffs,
Expand Down Expand Up @@ -1639,7 +1639,7 @@ public function setConfigData(string $key, ?string $value, bool $temp = false)
$error = 'ERROR: Config file ' . $configFile . ' is not writable' . PHP_EOL . PHP_EOL;
throw new DeepExitException($error, ExitCode::PROCESS_ERROR);
}
}//end if
}

$phpCodeSnifferConfig = self::getAllConfigData();

Expand Down
Loading
Loading