]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
BBCode - fixed syntax error
[friendica.git] / src / Object / Post.php
index a1d6c1eab0c23b883b36a3719ad7b6e460e28de3..c9e5cddb699f6ebb950cf13870a95a2f4e114ede 100644 (file)
@@ -16,7 +16,6 @@ use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
 use Friendica\Model\Contact;
-use Friendica\Model\Conversation;
 use Friendica\Model\Item;
 use Friendica\Model\Term;
 use Friendica\Util\Crypto;
@@ -61,6 +60,7 @@ class Post extends BaseObject
         * Constructor
         *
         * @param array $data data array
+        * @throws \Exception
         */
        public function __construct(array $data)
        {
@@ -116,6 +116,8 @@ class Post extends BaseObject
         *
         * @return mixed The data requested on success
         *               false on failure
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+        * @throws \ImagickException
         */
        public function getTemplateData(array $conv_responses, $thread_level = 1)
        {
@@ -248,7 +250,7 @@ class Post extends BaseObject
                        }
                }
 
-               $responses = get_responses($conv_responses, $response_verbs, $this, $item);
+               $responses = get_responses($conv_responses, $response_verbs, $item, $this);
 
                foreach ($response_verbs as $value => $verbs) {
                        $responses[$verbs]['output'] = !empty($conv_responses[$verbs][$item['uri']]) ? format_like($conv_responses[$verbs][$item['uri']], $conv_responses[$verbs][$item['uri'] . '-l'], $verbs, $item['uri']) : '';
@@ -501,6 +503,7 @@ class Post extends BaseObject
         * @param Post $item The child item to add
         *
         * @return mixed
+        * @throws \Exception
         */
        public function addChild(Post $item)
        {
@@ -590,6 +593,7 @@ class Post extends BaseObject
         * @param Post $item The child to be removed
         *
         * @return boolean Success or failure
+        * @throws \Exception
         */
        public function removeChild(Post $item)
        {
@@ -679,6 +683,7 @@ class Post extends BaseObject
         *
         * @param string $name template name
         * @return bool
+        * @throws \Exception
         */
        private function setTemplate($name)
        {
@@ -770,6 +775,7 @@ class Post extends BaseObject
         *
         * @return mixed The comment box string (empty if no comment box)
         *               false on failure
+        * @throws \Exception
         */
        private function getCommentBox($indent)
        {
@@ -783,7 +789,7 @@ class Post extends BaseObject
                }
 
                if ($conv->isWritable() && $this->isWritable()) {
-                       $qc = $qcomment = null;
+                       $qcomment = null;
 
                        /*
                         * Hmmm, code depending on the presence of a particular addon?
@@ -849,6 +855,7 @@ class Post extends BaseObject
         * Check if we are a wall to wall item and set the relevant properties
         *
         * @return void
+        * @throws \Exception
         */
        protected function checkWallToWall()
        {