This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace PHPMD\Rule\CleanCode; | |
use PHPMD\AbstractNode; | |
use PHPMD\AbstractRule; | |
use PHPMD\Rule\FunctionAware; | |
class ErrorControlOperator extends AbstractRule implements FunctionAware | |
{ | |
public function apply(AbstractNode $node) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace PHPMD\Rule\CleanCode; | |
use PHPMD\AbstractTest; | |
class ErrorControlOperatorTest extends AbstractTest | |
{ | |
public function testRuleDoesNotApplyToClassesWithoutUnaryOperators() | |
{ | |
$rule = new ErrorControlOperator(); | |
$rule->setReport($this->getReportMock(0)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function foo() { | |
return @is_dir(__DIR__); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function testRuleDoesNotApplyToClassesWithoutUnaryOperators() | |
{ | |
$foo = array(); | |
for ($i = 0, $i < 10; $i++) { | |
$foo[] = $i; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GOPATH="$HOME/workspace-dir/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export XDEBUG_CONFIG="remote_host=$(echo $SSH_CLIENT | awk '{print $1}') idekey=phpstorm" | |
export PHP_IDE_CONFIG="serverName=server_name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install linux-headers-`uname -r` virtualbox-dkms virtualbox-guest-additions-iso | |
sudo dpkg-reconfigure virtualbox-dkms | |
sudo modprobe vboxdrv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
[xdebug] | |
zend_extension='/usr/lib/php5/20121212/xdebug.so' | |
xdebug.var_display_max_children = 512 ; 128 | |
xdebug.var_display_max_data = 1024 ; 512 | |
xdebug.var_display_max_depth = 10 ; 3 | |
xdebug.collect_params = 2; 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export XDEBUG_CONFIG="idekey=netbeans-xdebug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQL: | |
== | |
UPDATE `ezuser_setting` SET `is_enabled` = '1' WHERE `ezuser_setting`.`user_id` =14; | |
UPDATE `ezuser` SET `password_hash` = 'bab77ccf06f0b1f982e11c60f344c3c2' WHERE `ezuser`.`contentobject_id` =14; | |
SITE.INI: | |
== | |
[UserSettings] | |
HashType=md5_user |