summaryrefslogtreecommitdiff
path: root/static/classes/Response.class.php
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2016-05-07 17:13:29 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2016-05-07 17:52:40 +0200
commit6d7042c84acc6552399f6fea124b0dc733721bd2 (patch)
treed8fdf0b8bfe51fddb90caa86adbe45408d5e9745 /static/classes/Response.class.php
parenta5314a2ff4cb503ff41da13ffd0e907f49ee4009 (diff)
Deprecate underscores in PHP function names
camelCase is the preferred coding style for function names in the PSR-2 coding style guide used by Pomf since version 2.0.0. Reference: http://www.php-fig.org/psr/psr-2/
Diffstat (limited to 'static/classes/Response.class.php')
-rwxr-xr-xstatic/classes/Response.class.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php
index 27dbd74..f8555d6 100755
--- a/static/classes/Response.class.php
+++ b/static/classes/Response.class.php
@@ -105,11 +105,17 @@ class Response
echo $response;
}
+ /**
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
+ */
private static function csv_error($description)
{
return '"error"'."\r\n"."\"$description\""."\r\n";
}
+ /**
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
+ */
private static function csv_success($files)
{
$result = '"name","url","hash","size"'."\r\n";
@@ -123,11 +129,17 @@ class Response
return $result;
}
+ /**
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
+ */
private static function html_error($code, $description)
{
return '<p>ERROR: ('.$code.') '.$description.'</p>';
}
+ /**
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
+ */
private static function html_success($files)
{
$result = '';
@@ -139,6 +151,9 @@ class Response
return $result;
}
+ /**
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
+ */
private static function json_error($code, $description)
{
return json_encode(array(
@@ -148,6 +163,9 @@ class Response
), JSON_PRETTY_PRINT);
}
+ /**
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
+ */
private static function json_success($files)
{
return json_encode(array(
@@ -156,11 +174,17 @@ class Response
), JSON_PRETTY_PRINT);
}
+ /**
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
+ */
private static function text_error($code, $description)
{
return 'ERROR: ('.$code.') '.$description;
}
+ /**
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
+ */
private static function text_success($files)
{
$result = '';