Opps, left-overs from merge ... rewrites-master/type-hints-asserts
authorRoland Haeder <roland@mxchange.org>
Sat, 30 Jan 2016 12:50:35 +0000 (13:50 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 30 Jan 2016 12:50:35 +0000 (13:50 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/Bookmark/classes/Bookmark.php
plugins/Event/classes/RSVP.php
plugins/OStatus/lib/salmonaction.php
plugins/TwitterBridge/actions/twitterauthorization.php

index 7fd3f53ac1546ea008dcde34bd8b4bfc0256fdc7..b593bc1909cef57d26f34d70656fe133fbe82a1e 100644 (file)
@@ -92,16 +92,12 @@ class Bookmark extends Managed_DataObject
      * @return  Bookmark            The found bookmark object.
      * @throws  NoResultException   When you don't find it after all.
      */
-<<<<<<< .merge_file_ZPs3Af
     static public function fromStored(Notice $stored)
     {
         return self::getByPK(array('uri' => $stored->getUri()));
     }
 
     public function getStored()
-=======
-    static function getByNotice(Notice $notice)
->>>>>>> .merge_file_eD7Wwf
     {
         return Notice::getByKeys(array('uri' => $this->getUri()));
     }
@@ -161,12 +157,7 @@ class Bookmark extends Managed_DataObject
      *
      * @return Bookmark the Bookmark object
      */
-<<<<<<< .merge_file_ZPs3Af
     static function saveActivityObject(ActivityObject $actobj, Notice $stored)
-=======
-    static function saveNew(Profile $profile, $title, $url, $rawtags, $description,
-                            array $options=array())
->>>>>>> .merge_file_eD7Wwf
     {
         $url = null;
         // each extra element is array('tagname', array('attr'=>'val', ...), 'content')
@@ -186,20 +177,11 @@ class Bookmark extends Managed_DataObject
             throw new ClientException(sprintf(_m('Expected exactly 1 link rel=related in a Bookmark, got %1$d.'), count($relLinkEls)));
         }
 
-<<<<<<< .merge_file_ZPs3Af
         if (!strlen($actobj->title)) {
             throw new ClientException(_m('You must provide a non-empty title.'));
         }
         if (!common_valid_http_url($url)) {
             throw new ClientException(_m('Only web bookmarks can be posted (HTTP or HTTPS).'));
-=======
-        if (array_key_exists('uri', $options)) {
-            $other = Bookmark::getKV('uri', $options['uri']);
-            if (!empty($other)) {
-                // TRANS: Client exception thrown when trying to save a new bookmark that already exists.
-                throw new ClientException(_m('Bookmark already exists.'));
-            }
->>>>>>> .merge_file_eD7Wwf
         }
 
         try {
index 7fa76d7151a390addf0ad6e41f170c3ce2793331..f6b8c0aa7c847a2a28509132f8a6d9ebe8209df0 100644 (file)
@@ -91,11 +91,7 @@ class RSVP extends Managed_DataObject
         );
     }
 
-<<<<<<< .merge_file_oq2F7C
     static public function beforeSchemaUpdate()
-=======
-    function saveNew(Profile $profile, $event, $verb, array $options = array())
->>>>>>> .merge_file_L3oA6C
     {
         $table = strtolower(get_called_class());
         $schema = Schema::get();
index f328f0916a2a6d520dc7fd6f7caa26e092472ab0..2f48042820ba9add9c411afd7e761eac64a2ebeb 100644 (file)
@@ -79,17 +79,8 @@ class SalmonAction extends Action
             $this->clientError($e->getMessage());
         }
 
-<<<<<<< .merge_file_l1W8if
         // Cryptographic verification test, throws exception on failure
         $magic_env->verify($this->actor);
-=======
-        // Cryptographic verification test
-        if (!$magic_env->verify($this->actor)) {
-            common_debug("Salmon signature verification failed.");
-            // TRANS: Client error.
-            $this->clientError(_m('Salmon signature verification failed.'));
-        }
->>>>>>> .merge_file_ISiK5f
 
         return true;
     }
index d3df46bfefc68ed5246683cc60f62c7858f3a15c..c9b892b6408d74ec5b388cf0333704c92699dfae 100644 (file)
@@ -56,50 +56,17 @@ class TwitterauthorizationAction extends FormAction
     var $access_token = null;
     var $verifier     = null;
 
-<<<<<<< .merge_file_Bq71r4
     protected $needLogin = false;   // authorization page can also be used to create a new user
-=======
-    /**
-     * Initialize class members. Looks for 'oauth_token' parameter.
-     *
-     * @param array $args misc. arguments
-     *
-     * @return boolean true
-     */
-    function prepare(array $args=array())
-    {
-        parent::prepare($args);
->>>>>>> .merge_file_Ad5nH4
 
     protected function doPreparation()
     {
         $this->oauth_token = $this->arg('oauth_token');
         $this->verifier    = $this->arg('oauth_verifier');
 
-<<<<<<< .merge_file_Bq71r4
         if ($this->scoped instanceof Profile) {
             try {
                 $flink = Foreign_link::getByUserID($this->scoped->getID(), TWITTER_SERVICE);
                 $fuser = $flink->getForeignUser();
-=======
-        return true;
-    }
-
-    /**
-     * Handler method
-     *
-     * @param array $args is ignored since it's now passed in in prepare()
-     *
-     * @return nothing
-     */
-    function handle(array $args=array())
-    {
-        parent::handle($args);
-
-        if (common_logged_in()) {
-            $user  = common_current_user();
-            $flink = Foreign_link::getByUserID($user->id, TWITTER_SERVICE);
->>>>>>> .merge_file_Ad5nH4
 
                 // If there's already a foreign link record and a foreign user
                 // (no exceptions were thrown when fetching either of them...)