Skip to content

Instantly share code, notes, and snippets.

View igor-imaginemage's full-sized avatar

Igor Ludgero Miura igor-imaginemage

View GitHub Profile
parameters:
level: 1
ignoreErrors:
- '#Variable \$this might not be defined#'
- '#Variable \$block might not be defined#'
- '#^Should not use node with type "Stmt_Echo", please change the code\.$#'
banned_code:
nodes:
# enable detection of eval
-
@igor-imaginemage
igor-imaginemage / gist:0484ba12e5f3b84a06740404d33e722d
Last active November 15, 2018 20:50
Magento 2 Developer Toolbar (Macbook Touch Bar)
This combination of settings will create these buttons to be used while you are working with Magento 2 development on PHPStorm
Printscreen: http://prntscr.com/l7n4zc
Instructions
1) First install BetterTouchTool (https://folivora.ai/)
2) Then download this profile https://gist.github.com/igor-imaginemage/b1dc812d9896c0f087c0ceaef838a476, rename the file to Default.bttpreset and import on BetterTouchTool. It should import configurations for PHPStorm.
3) The buttons will prompt only on PhpStorm and you should be with PHPStorm terminal opened.
It's a first release of this configuration, any contribution is welcome =)
@igor-imaginemage
igor-imaginemage / gist:b1dc812d9896c0f087c0ceaef838a476
Created October 18, 2018 17:50
Magento 2 toolbar for Macbook Touch Bar config file
{
"BTTPresetName" : "Default",
"BTTGeneralSettings" : {
"disableScrollingIf3" : true,
"BTTForceNormalClickPressure5F" : 200,
"disableScrollingIf2" : true,
"BTTDidRegisterForUpdateStats" : "2.645",
"BTTShowControlStrip" : true,
"BTTShowControlStripItem" : true,
"BTTForceForceClickPressure5F" : 600,