This file contains hidden or 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
<?xml version="1.0"?> | |
<ruleset name="Custom Standard" namespace="Santore"> | |
<file>./src</file> | |
<file>./tests</file> | |
<rule ref="ZEND"/> | |
<!-- Ignore Camel Case Names In Tests--> | |
<rule ref="PSR1.Methods.CamelCapsMethodName"> | |
<exclude-pattern>*/tests/*</exclude-pattern> | |
</rule> |
This file contains hidden or 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
The follwing code can be in many place, functions, methods, or a single page script. | |
I'd like to put these to pieces of code side by side, so you can have a look and hopefully we can agree, | |
the 2nd version is more readable. | |
The first example is a snippet that expects something to be true, and then acts on that assertion. | |
The code would work, but there is a hanging detail at the bottom, that I think should be cleaned up. | |
If the expectation was false, were going to enter the else protion, and do something there. | |
if($expectation == true) { |