Skip to content
Permalink
Browse files

Update phpcs so we can use static function as callback without it com…

…plaing (false positive)
  • Loading branch information...
carakas committed Oct 24, 2019
1 parent 600caee commit a556f1bf16d2e931fe80663fd09f68e36a79c560
@@ -47,7 +47,7 @@
"require-dev": {
"jdorn/sql-formatter": "1.2.17",
"symfony/var-dumper": "^3.3",
"squizlabs/php_codesniffer": "^2.7",
"squizlabs/php_codesniffer": "^3.5",
"symfony/phpunit-bridge": "^3.2",
"phpstan/phpstan": "^0.10.3",
"phpstan/phpstan-symfony": "^0.10.2"

Some generated files are not rendered by default. Learn more.

@@ -161,9 +161,9 @@ public static function getUser(int $id): string
if ($allowed) {
$html .= ' <a href="' .
BackendModel::createUrlForAction(
'Edit',
'Users'
) . '&amp;id=' . $id . '">' . "\n";
'Edit',
'Users'
) . '&amp;id=' . $id . '">' . "\n";
}
$html .= ' <img class="img-circle" src="' . FRONTEND_FILES_URL . '/Users/avatars/32x32/' .
$avatar . '" width="24" height="24" alt="' . $nickname . '" />' . "\n";
@@ -59,16 +59,16 @@ public function parse($template = null): string
if (isset($this->attributes['extension'])) {
$output .= '<p class="help-block">' .
sprintf(
BackendLanguage::getMessage('HelpFileFieldWithMaxFileSize', 'Core'),
$this->attributes['extension'],
Form::getUploadMaxFileSize()
) . '</p>';
BackendLanguage::getMessage('HelpFileFieldWithMaxFileSize', 'Core'),
$this->attributes['extension'],
Form::getUploadMaxFileSize()
) . '</p>';
} else {
$output .= '<p class="help-block">' .
sprintf(
BackendLanguage::getMessage('HelpMaxFileSize'),
Form::getUploadMaxFileSize()
) . '</p>';
BackendLanguage::getMessage('HelpMaxFileSize'),
Form::getUploadMaxFileSize()
) . '</p>';
}
}
@@ -131,9 +131,9 @@ public function parse($template = null): string
if (!$this->hideHelpTxt) {
$output .= '<p class="help-block">' .
sprintf(
BackendLanguage::getMessage('HelpImageFieldWithMaxFileSize', 'Core'),
Form::getUploadMaxFileSize()
) . '</p>';
BackendLanguage::getMessage('HelpImageFieldWithMaxFileSize', 'Core'),
Form::getUploadMaxFileSize()
) . '</p>';
}
// parse to template
@@ -101,10 +101,10 @@ protected function getMovieStorageType(): StorageType
if ($movieStorageType === null
|| !in_array(
(string) $movieStorageType,
StorageType::POSSIBLE_VALUES_FOR_MOVIE,
true
)
(string) $movieStorageType,
StorageType::POSSIBLE_VALUES_FOR_MOVIE,
true
)
) {
throw new AjaxExitException(Language::err('MovieStorageTypeNotExists'));
}
@@ -841,11 +841,11 @@ public static function getSubtree(array $navigation, int $parentId): string
// insert link
$html .= ' <a href="' .
BackendModel::createUrlForAction(
'Edit',
null,
null,
['id' => $page['page_id']]
) . '"><ins>&#160;</ins>' . $page['navigation_title'] . '</a>' . "\n";
'Edit',
null,
null,
['id' => $page['page_id']]
) . '"><ins>&#160;</ins>' . $page['navigation_title'] . '</a>' . "\n";
// get childs
$html .= self::getSubtree($navigation, $page['page_id']);
@@ -939,11 +939,11 @@ public static function getTreeHTML(): string
$homePage = self::get(BackendModel::HOME_PAGE_ID);
$html .= ' <a href="' .
BackendModel::createUrlForAction(
'Edit',
null,
null,
['id' => BackendModel::HOME_PAGE_ID]
) . '"><ins>&#160;</ins>' . $homePage['title'] . '</a>' . "\n";
'Edit',
null,
null,
['id' => BackendModel::HOME_PAGE_ID]
) . '"><ins>&#160;</ins>' . $homePage['title'] . '</a>' . "\n";
// add subpages
$html .= self::getSubtree($navigation, BackendModel::HOME_PAGE_ID);
@@ -970,11 +970,11 @@ public static function getTreeHTML(): string
// insert link
$html .= ' <a href="' .
BackendModel::createUrlForAction(
'Edit',
null,
null,
['id' => $page['page_id']]
) . '"><ins>&#160;</ins>' . $page['navigation_title'] . '</a>' . "\n";
'Edit',
null,
null,
['id' => $page['page_id']]
) . '"><ins>&#160;</ins>' . $page['navigation_title'] . '</a>' . "\n";
// insert subtree
$html .= self::getSubtree($navigation, $page['page_id']);
@@ -1006,11 +1006,11 @@ public static function getTreeHTML(): string
// insert link
$html .= ' <a href="' .
BackendModel::createUrlForAction(
'Edit',
null,
null,
['id' => $page['page_id']]
) . '"><ins>&#160;</ins>' . $page['navigation_title'] . '</a>' . "\n";
'Edit',
null,
null,
['id' => $page['page_id']]
) . '"><ins>&#160;</ins>' . $page['navigation_title'] . '</a>' . "\n";
// insert subtree
$html .= self::getSubtree($navigation, $page['page_id']);
@@ -1041,11 +1041,11 @@ public static function getTreeHTML(): string
// insert link
$html .= ' <a href="' .
BackendModel::createUrlForAction(
'Edit',
null,
null,
['id' => $page['page_id']]
) . '"><ins>&#160;</ins>' . $page['navigation_title'] . '</a>' . "\n";
'Edit',
null,
null,
['id' => $page['page_id']]
) . '"><ins>&#160;</ins>' . $page['navigation_title'] . '</a>' . "\n";
// insert subtree
$html .= self::getSubtree($navigation, $page['page_id']);

0 comments on commit a556f1b

Please sign in to comment.
You can’t perform that action at this time.