summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/OC_DB.php6
-rw-r--r--lib/private/legacy/OC_FileChunking.php2
-rw-r--r--lib/private/legacy/OC_Helper.php6
-rw-r--r--lib/private/legacy/OC_Hook.php8
-rw-r--r--lib/private/legacy/OC_Response.php4
5 files changed, 13 insertions, 13 deletions
diff --git a/lib/private/legacy/OC_DB.php b/lib/private/legacy/OC_DB.php
index 63f1447ad91..1d2e9bd1429 100644
--- a/lib/private/legacy/OC_DB.php
+++ b/lib/private/legacy/OC_DB.php
@@ -58,7 +58,7 @@ class OC_DB {
*
* SQL query via Doctrine prepare(), needs to be execute()'d!
*/
- static public function prepare($query , $limit = null, $offset = null, $isManipulation = null) {
+ public static function prepare($query , $limit = null, $offset = null, $isManipulation = null) {
$connection = \OC::$server->getDatabaseConnection();
if ($isManipulation === null) {
@@ -84,7 +84,7 @@ class OC_DB {
* @param string $sql
* @return bool
*/
- static public function isManipulation($sql) {
+ public static function isManipulation($sql) {
$selectOccurrence = stripos($sql, 'SELECT');
if ($selectOccurrence !== false && $selectOccurrence < 10) {
return false;
@@ -113,7 +113,7 @@ class OC_DB {
* @return OC_DB_StatementWrapper
* @throws \OC\DatabaseException
*/
- static public function executeAudited($stmt, array $parameters = []) {
+ public static function executeAudited($stmt, array $parameters = []) {
if (is_string($stmt)) {
// convert to an array with 'sql'
if (stripos($stmt, 'LIMIT') !== false) { //OFFSET requires LIMIT, so we only need to check for LIMIT
diff --git a/lib/private/legacy/OC_FileChunking.php b/lib/private/legacy/OC_FileChunking.php
index 37cf42a31cb..188023a960a 100644
--- a/lib/private/legacy/OC_FileChunking.php
+++ b/lib/private/legacy/OC_FileChunking.php
@@ -40,7 +40,7 @@ class OC_FileChunking {
*/
protected $ttl;
- static public function decodeName($name) {
+ public static function decodeName($name) {
preg_match('/(?P<name>.*)-chunking-(?P<transferid>\d+)-(?P<chunkcount>\d+)-(?P<index>\d+)/', $name, $matches);
return $matches;
}
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index 3439d1f8936..8cd492de117 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -135,7 +135,7 @@ class OC_Helper {
* @param string $dest target folder
*
*/
- static function copyr($src, $dest) {
+ public static function copyr($src, $dest) {
if (is_dir($src)) {
if (!is_dir($dest)) {
mkdir($dest);
@@ -157,7 +157,7 @@ class OC_Helper {
* @param bool $deleteSelf if set to false only the content of the folder will be deleted
* @return bool
*/
- static function rmdirr($dir, $deleteSelf = true) {
+ public static function rmdirr($dir, $deleteSelf = true) {
if (is_dir($dir)) {
$files = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS),
@@ -193,7 +193,7 @@ class OC_Helper {
* @deprecated 18.0.0
* @return \OC\Files\Type\TemplateManager
*/
- static public function getFileTemplateManager() {
+ public static function getFileTemplateManager() {
if (!self::$templateManager) {
self::$templateManager = new \OC\Files\Type\TemplateManager();
}
diff --git a/lib/private/legacy/OC_Hook.php b/lib/private/legacy/OC_Hook.php
index 4e75c9da747..980eb609259 100644
--- a/lib/private/legacy/OC_Hook.php
+++ b/lib/private/legacy/OC_Hook.php
@@ -51,7 +51,7 @@ class OC_Hook {
*
* TODO: write example
*/
- static public function connect($signalClass, $signalName, $slotClass, $slotName) {
+ public static function connect($signalClass, $signalName, $slotClass, $slotName) {
// If we're trying to connect to an emitting class that isn't
// yet registered, register it
if (!array_key_exists($signalClass, self::$registered)) {
@@ -91,7 +91,7 @@ class OC_Hook {
*
* TODO: write example
*/
- static public function emit($signalClass, $signalName, $params = []) {
+ public static function emit($signalClass, $signalName, $params = []) {
// Return false if no hook handlers are listening to this
// emitting class
@@ -129,7 +129,7 @@ class OC_Hook {
* @param string $signalClass
* @param string $signalName
*/
- static public function clear($signalClass='', $signalName='') {
+ public static function clear($signalClass='', $signalName='') {
if ($signalClass) {
if ($signalName) {
self::$registered[$signalClass][$signalName]=[];
@@ -145,7 +145,7 @@ class OC_Hook {
* DO NOT USE!
* For unit tests ONLY!
*/
- static public function getHooks() {
+ public static function getHooks() {
return self::$registered;
}
}
diff --git a/lib/private/legacy/OC_Response.php b/lib/private/legacy/OC_Response.php
index bbeb6258109..89f0ee5247b 100644
--- a/lib/private/legacy/OC_Response.php
+++ b/lib/private/legacy/OC_Response.php
@@ -33,7 +33,7 @@ class OC_Response {
* @param string $filename file name
* @param string $type disposition type, either 'attachment' or 'inline'
*/
- static public function setContentDispositionHeader($filename, $type = 'attachment') {
+ public static function setContentDispositionHeader($filename, $type = 'attachment') {
if (\OC::$server->getRequest()->isUserAgent(
[
\OC\AppFramework\Http\Request::USER_AGENT_IE,
@@ -51,7 +51,7 @@ class OC_Response {
* Sets the content length header (with possible workarounds)
* @param string|int|float $length Length to be sent
*/
- static public function setContentLengthHeader($length) {
+ public static function setContentLengthHeader($length) {
if (PHP_INT_SIZE === 4) {
if ($length > PHP_INT_MAX && stripos(PHP_SAPI, 'apache') === 0) {
// Apache PHP SAPI casts Content-Length headers to PHP integers.