Comment style

This commit is contained in:
Alexandre Alapetite 2024-05-14 13:15:22 +02:00
parent a793ac0fcb
commit 5e890bc0b3
No known key found for this signature in database
GPG Key ID: A24378C38E812B23
6 changed files with 12 additions and 12 deletions

View File

@ -267,7 +267,7 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController {
$res = !self::hasGitUpdate();
} else {
require(UPDATE_FILENAME);
/** @phpstan-ignore function.notFound */
// @phpstan-ignore function.notFound
$res = do_post_update();
}
@ -290,12 +290,12 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController {
} else {
require(UPDATE_FILENAME);
if (Minz_Request::isPost()) {
/** @phpstan-ignore function.notFound */
// @phpstan-ignore function.notFound
save_info_update();
}
/** @phpstan-ignore function.notFound */
// @phpstan-ignore function.notFound
if (!need_info_update()) {
/** @phpstan-ignore function.notFound */
// @phpstan-ignore function.notFound
$res = apply_update();
} else {
return;

View File

@ -11,7 +11,7 @@
<h1><?= _t('admin.update') ?></h1>
<?php
/** @phpstan-ignore function.notFound */
// @phpstan-ignore function.notFound
ask_info_update();
?>
</main>

View File

@ -44,7 +44,7 @@ final class Minz_Dispatcher {
$this->createController (Minz_Request::controllerName ());
$this->controller->init ();
$this->controller->firstAction ();
/** @phpstan-ignore booleanNot.alwaysTrue */
// @phpstan-ignore booleanNot.alwaysTrue
if (!self::$needsReset) {
$this->launchAction (
Minz_Request::actionName ()
@ -53,7 +53,7 @@ final class Minz_Dispatcher {
}
$this->controller->lastAction ();
/** @phpstan-ignore booleanNot.alwaysTrue */
// @phpstan-ignore booleanNot.alwaysTrue
if (!self::$needsReset) {
$this->controller->declareCspHeader();
$this->controller->view ()->build ();
@ -61,7 +61,7 @@ final class Minz_Dispatcher {
} catch (Minz_Exception $e) {
throw $e;
}
/** @phpstan-ignore doWhile.alwaysFalse */
// @phpstan-ignore doWhile.alwaysFalse
} while (self::$needsReset);
}

View File

@ -346,7 +346,7 @@ class Minz_View {
public function attributeParams(): void {
foreach (Minz_View::$params as $key => $value) {
/** @phpstan-ignore property.dynamicName */
// @phpstan-ignore property.dynamicName
$this->$key = $value;
}
}

View File

@ -107,13 +107,13 @@ function httpConditional(int $UnixTimeStamp, int $cacheSeconds = 0, int $cachePr
}
$etagServer = '"' . md5($scriptName . $myQuery . '#' . $dateLastModif) . '"';
/** @phpstan-ignore booleanNot.alwaysTrue */
// @phpstan-ignore booleanNot.alwaysTrue
if ((!$is412) && isset($_SERVER['HTTP_IF_MATCH'])) { //rfc2616-sec14.html#sec14.24
$etagsClient = stripslashes($_SERVER['HTTP_IF_MATCH']);
$etagsClient = str_ireplace('-gzip', '', $etagsClient);
$is412 = (($etagsClient !== '*') && (strpos($etagsClient, $etagServer) === false));
}
/** @phpstan-ignore booleanAnd.leftAlwaysTrue */
// @phpstan-ignore booleanAnd.leftAlwaysTrue
if ($is304 && isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) { //rfc2616-sec14.html#sec14.25 //rfc1945.txt
$nbCond++;
$dateCacheClient = $_SERVER['HTTP_IF_MODIFIED_SINCE'];

View File

@ -41,7 +41,7 @@ if (!function_exists('syslog')) {
define('STDERR', fopen('php://stderr', 'w'));
}
function syslog(int $priority, string $message): bool {
/** @phpstan-ignore booleanAnd.rightAlwaysTrue */
// @phpstan-ignore booleanAnd.rightAlwaysTrue
if (COPY_SYSLOG_TO_STDERR && defined('STDERR') && STDERR) {
return fwrite(STDERR, $message . "\n") != false;
}