Andrea

Avatar
  • Total activity 57
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 15
  • Created

    Live templates expressions: how to decapitalize with underscores?

    Hi,I'm trying to create some live templates following the company code styling and I'd like to have a variable named all lowercase, with underscore.So something similar to what capitalizeAndUndersc...
    • 2 followers
    • 2 comments
    • 0 votes
  • Created

    Breakpoints on find usages results (filtered)

    I need to put a breakpoint in all places where a variable is written.With find usage I can show only "Value write" results, but there is any way to mark these result as breakpoints, without going t...
    • 3 followers
    • 3 comments
    • 0 votes
  • Created

    How to specify variable scope

    In some classes I've a code like this:function my_method() {     $something = array();     if ( $a != $b ) {           $something = $this->my_other_method( $a, $b);     }      include SOME_CONSTAN...
    • 2 followers
    • 2 comments
    • 0 votes
  • Created

    Can't use Xdebug anymore

    Since yesterday phpstorm stopped working with xDebug.Environment:- Mac OS X 10.9- MAMP PRO 2.1.4- PHP 5.4.10This, from terminal, shows nothing:netstat -an | grep 9000I'm using MAMP PRO, with PGP 5....
    • 1 follower
    • 1 comment
    • 0 votes
  • Created

    How to customize contextual menu?

    I'd like to add items to the contextual menu when in the editor.To be more specific, I'd like to have a bookmark toggler when right-clicking onm any part of my code.I need that since I can't use th...
    • 2 followers
    • 2 comments
    • 0 votes
  • Created

    WordPress prepared queries

    In WordPress you often make use of SQL statements such as this:$post_type = $wpdb->get_var($wpdb->prepare("SELECT p.post_type FROM {$wpdb->posts} p WHERE p.ID=%d", $request_id));In this case PhpSto...
    • 2 followers
    • 0 comments
    • 3 votes
  • Created

    Debugging CLI php script

    Hello,I've tried to find a way to debug a CLI php script I'm working on and the few solution I've found all require editing one or more .ini anc configurations files, that I don't want to edit, sin...
    • 3 followers
    • 14 comments
    • 0 votes
  • Created

    Define common global variables types as a project setting

    I usually add PHPDoc comments to global variables to remove all the code inspection warnings and to get intellisense, but a client a work for is complaining about them and asked me to remove all th...
    • 2 followers
    • 5 comments
    • 0 votes
  • Created

    Exclude one or more directory from inspection

    I've some recurring inspection issues caused by third part javascript and php libraries (e.g. TinyMCE, jquery, etc.).I'd like to set PhpStorm in order to ignore files and/or directories, so I can g...
    • 2 followers
    • 6 comments
    • 0 votes
  • Created

    URI is not registered: what should I do?

    I'm facing a small issue with the code below:                <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"     width=...
    • 2 followers
    • 8 comments
    • 0 votes