Skip to content

Commit f05384d

Browse files
committed
Remove obsolete noinspection tags
1 parent 9f42054 commit f05384d

File tree

68 files changed

+7
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+7
-144
lines changed

wcfsetup/install.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php // @codingStandardsIgnoreFile
2+
23
/**
34
* This script tries to find the temp folder and unzip all setup files into.
45
*
@@ -532,7 +533,6 @@ function printException($e)
532533
throw new ErrorException($message, 0, $severity, $file, $line);
533534
}, E_ALL);
534535

535-
/** @noinspection PhpMultipleClassesDeclarationsInOneFile */
536536
/**
537537
* A SystemException is thrown when an unexpected error occurs.
538538
*
@@ -573,9 +573,7 @@ public function getDescription()
573573
* Prints this exception.
574574
* This method is called by WCF::handleException().
575575
*/
576-
public function show()
577-
{
578-
}
576+
public function show() {}
579577
}
580578

581579
/**
@@ -633,7 +631,6 @@ function wcfDebug()
633631
exit;
634632
}
635633

636-
/** @noinspection PhpMultipleClassesDeclarationsInOneFile */
637634
/**
638635
* BasicFileUtil contains file-related functions.
639636
*
@@ -760,7 +757,6 @@ public static function makePath($path): bool
760757
}
761758
}
762759

763-
/** @noinspection PhpMultipleClassesDeclarationsInOneFile */
764760
/**
765761
* Opens tar or tar.gz archives.
766762
*
@@ -1124,7 +1120,6 @@ public function isZipped()
11241120
}
11251121
}
11261122

1127-
/** @noinspection PhpMultipleClassesDeclarationsInOneFile */
11281123
/**
11291124
* The File class handles all file operations.
11301125
*
@@ -1185,15 +1180,13 @@ public function __call($function, $arguments)
11851180
}
11861181
}
11871182

1188-
/** @noinspection PhpMultipleClassesDeclarationsInOneFile */
11891183
/**
11901184
* The File class handles all file operations on a zipped file.
11911185
*
11921186
* @author Marcel Werk
11931187
*/
11941188
final class GZipFile extends File
11951189
{
1196-
/** @noinspection PhpMissingParentConstructorInspection */
11971190
/**
11981191
* Opens a gzip file.
11991192
*

wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function readData()
7070

7171
$conditions = $this->assignment->getConditions();
7272
foreach ($conditions as $condition) {
73-
/** @noinspection PhpUndefinedMethodInspection */
7473
$this->conditions[$condition->getObjectType()->conditiongroup][$condition->objectTypeID]->getProcessor()->setData($condition);
7574
}
7675
}

wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ protected function invoke()
144144

145145
// validate accessibility
146146
$className = $this->className;
147-
/** @noinspection PhpUndefinedFieldInspection */
148147
if (!\property_exists($className, 'allowInvoke') || !\in_array($this->actionName, $className::$allowInvoke)) {
149148
throw new PermissionDeniedException();
150149
}

wcfsetup/install/files/lib/action/AJAXProxyAction.class.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ protected function sendResponse()
9999
{
100100
// add benchmark and debug data
101101
if (ENABLE_BENCHMARK) {
102-
/** @noinspection PhpUndefinedMethodInspection */
103102
$this->response['benchmark'] = [
104103
'executionTime' => WCF::getBenchmark()->getExecutionTime() . 's',
105104
'memoryUsage' => WCF::getBenchmark()->getMemoryUsage(),
@@ -109,7 +108,6 @@ protected function sendResponse()
109108
];
110109

111110
if (ENABLE_DEBUG_MODE) {
112-
/** @noinspection PhpUndefinedMethodInspection */
113111
$this->response['benchmark']['items'] = WCF::getBenchmark()->getItems();
114112
}
115113
}

wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public function execute(): ResponseInterface
3131
$processor = null;
3232
try {
3333
// post back to paypal to validate
34-
/** @noinspection PhpUnusedLocalVariableInspection */
3534
$content = '';
3635
try {
3736
$url = 'https://www.paypal.com/cgi-bin/webscr';

wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ public function __construct(array $objects, $action, array $parameters = [])
141141
throw new SystemException('invalid value of parameter objects given');
142142
}
143143

144-
/** @noinspection PhpVariableVariableInspection */
145144
$this->objectIDs[] = $object->{$indexName};
146145
} else {
147146
$this->objectIDs[] = $object;

wcfsetup/install/files/lib/data/DatabaseObject.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ public static function sort(&$objects, $sortBy, $sortOrder = 'ASC', $maintainInd
229229
{
230230
$sortArray = $objects2 = [];
231231
foreach ($objects as $idx => $obj) {
232-
/** @noinspection PhpVariableVariableInspection */
233232
$sortArray[$idx] = $obj->{$sortBy};
234233

235234
// array_multisort will drop index association if key is not a string

wcfsetup/install/files/lib/data/TLegacyUserPropertyAccess.class.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ trait TLegacyUserPropertyAccess
2323
*/
2424
public function __get($name)
2525
{
26-
/** @noinspection PhpUndefinedClassInspection */
27-
/** @noinspection PhpUndefinedMethodInspection */
2826
$value = parent::__get($name);
2927
if ($value !== null) {
3028
return $value;
@@ -36,7 +34,6 @@ public function __get($name)
3634

3735
// in case any code should rely on directly accessing user properties,
3836
// refer them to the user profile object
39-
/** @noinspection PhpVariableVariableInspection */
4037
return $this->getUserProfile()->{$name};
4138
}
4239
}

wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public function getCategories()
6969

7070
if (!empty($this->categoryIDs)) {
7171
foreach ($this->categoryIDs as $categoryID) {
72-
/** @noinspection PhpUndefinedMethodInspection */
7372
$this->categories[$categoryID] = $className::getCategory($categoryID);
7473
}
7574
} else {
@@ -84,7 +83,6 @@ public function getCategories()
8483
$statement = WCF::getDB()->prepare($sql);
8584
$statement->execute([$this->getObjectID()]);
8685
while ($categoryID = $statement->fetchColumn()) {
87-
/** @noinspection PhpUndefinedMethodInspection */
8886
$this->categories[$categoryID] = $className::getCategory($categoryID);
8987
}
9088
}

wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class ACPSessionLog extends DatabaseObject
2929
*/
3030
protected static $databaseTableIndexName = 'sessionLogID';
3131

32-
/** @noinspection PhpMissingParentConstructorInspection */
33-
3432
/**
3533
* @inheritDoc
3634
*/

0 commit comments

Comments
 (0)