From 002046cc6283ce62b2850a70f29f096cf29a66c8 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Tue, 19 Jul 2016 14:44:17 +0200 Subject: [PATCH] some minor cleanups --- js/privatebin.js | 1 - lib/model/abstract.php | 2 +- lib/privatebin/abstract.php | 6 +++--- lib/privatebin/data.php | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index abc2e47..8219cfd 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -973,7 +973,6 @@ $(function() { this.showStatus(i18n._('Sending paste...'), true); var randomkey = sjcl.codec.base64.fromBits(sjcl.random.randomWords(8, 0), 0); - var cipherdata_attachment; var password = this.passwordInput.val(); if(files && files[0]) { diff --git a/lib/model/abstract.php b/lib/model/abstract.php index ba75a12..5e0435d 100644 --- a/lib/model/abstract.php +++ b/lib/model/abstract.php @@ -112,7 +112,7 @@ abstract class model_abstract * Get instance data. * * @access public - * @return stdObject + * @return stdClass */ abstract public function get(); diff --git a/lib/privatebin/abstract.php b/lib/privatebin/abstract.php index 8102c12..8a6223f 100644 --- a/lib/privatebin/abstract.php +++ b/lib/privatebin/abstract.php @@ -86,7 +86,7 @@ abstract class privatebin_abstract * Test if a paste exists. * * @access public - * @param string $dataid + * @param string $pasteid * @return bool */ abstract public function exists($pasteid); @@ -116,7 +116,7 @@ abstract class privatebin_abstract * Test if a comment exists. * * @access public - * @param string $dataid + * @param string $pasteid * @param string $parentid * @param string $commentid * @return void @@ -158,7 +158,7 @@ abstract class privatebin_abstract * @access public * @param array $comments * @param int|string $postdate - * @return void + * @return int|string */ protected function getOpenSlot(&$comments, $postdate) { diff --git a/lib/privatebin/data.php b/lib/privatebin/data.php index 354fbbe..e1d125a 100644 --- a/lib/privatebin/data.php +++ b/lib/privatebin/data.php @@ -124,7 +124,7 @@ class privatebin_data extends privatebin_abstract * Test if a paste exists. * * @access public - * @param string $dataid + * @param string $pasteid * @return void */ public function exists($pasteid) @@ -197,7 +197,7 @@ class privatebin_data extends privatebin_abstract * Test if a comment exists. * * @access public - * @param string $dataid + * @param string $pasteid * @param string $parentid * @param string $commentid * @return void