NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
"extract method or function" is not available


Joined: 03 Jan 2013
Posts: 24
Reply with quote
"extract method or function" refactoring is not available
begin and edn of selected code block belong to defferent ctontext,extration is not possible

I want to refactor the following codes into an method :
Code:

            $hid = $_POST['hid'];
            $uid = $_G['uid'];
            $username = $_G['username'];
            $title = $_POST['title'];
            $content  = $_POST['content'];
            $query = "insert into ".DB::table("hdsoso_house_rent_reply")."(hid,uid,uname,title,content)values(";
            $query.="$hid,$uid,'$username','$title','$content'";
            $query.=")";
            DB::query($query);


when I select the code above , right click and select refactor->refactor method of function , show the messages above.
View user's profileFind all posts by sclschSend private message
"extract method or function" is not available
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic