Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Hi! I cleaned up your code for you! #6

Open
wants to merge 1 commit into from

0 participants

@GunioRobot

Hi there!

This is WhitespaceBot. I'm an open-source robot that removes trailing white space in your code, and gives you a gitignore file if you didn't have one!

Why whitespace? Whitespace is an eyesore for developers who use text editors with dark themes. It's not a huge deal, but it's a bit annoying if you use Vim in a terminal. Really, I'm just a proof of concept - GitHub's V3 API allows robots to automatically improve open source projects, and that's really cool. Hopefully, somebody, maybe you!, will fork me and make me even more useful. My owner is funding a bounty to anybody who can add security fixing features to me.

I've only cleaned your most popular project, and I've added you to a list of users not to contact again, so you won't get any more pull requests from me unless you ask. If I'm misbehaving, please email my owner and tell him to turn me off! If this is pull request is of no use to you, please just ignore it.

Thanks!
WhiteSpacebot from Gun.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 30, 2011
  1. Remove whitespace [Gun.io WhitespaceBot]

    Gun.io Whitespace Robot authored
This page is out of date. Refresh to see the latest.
Showing with 84 additions and 84 deletions.
  1. +1 −1  TODO
  2. +1 −1  build.xml
  3. +1 −1  src/Rule/NoVariableVariablesRule.php
  4. +1 −1  src/Tokenizer.php
  5. +7 −7 tests/FileTest.php
  6. +3 −3 tests/LintErrorTest.php
  7. +3 −3 tests/LinterTest.php
  8. +3 −3 tests/MessageTest.php
  9. +5 −5 tests/ResultTest.php
  10. +2 −2 tests/Rule/ClassesMustHaveDocBlockRuleTest.php
  11. +2 −2 tests/Rule/FunctionsMustHaveDocBlockRuleTest.php
  12. +8 −8 tests/Rule/KeywordsAreLowercaseRuleTest.php
  13. +5 −5 tests/Rule/NoCarriageReturnsRuleTest.php
  14. +1 −1  tests/Rule/NoTrailingWhitespaceRuleTest.php
  15. +3 −3 tests/RuleErrorTest.php
  16. +1 −1  tests/TokenFilterIteratorTest.php
  17. +3 −3 tests/UnknownTokenExceptionTest.php
  18. +3 −3 tests/_testdata/Application/_rules/error/ErrorTestRule.php
  19. +3 −3 tests/_testdata/Application/_rules/fail/FailTestRule.php
  20. +3 −3 tests/_testdata/Application/_rules/pass/PassTestRule.php
  21. +3 −3 tests/_testdata/Application/_rules/warning/WarningTestRule.php
  22. +3 −3 tests/_testdata/FailRule.php
  23. +4 −4 tests/_testdata/File/functions.php
  24. +1 −1  tests/_testdata/Loader/ClassD/D.php
  25. +3 −3 tests/_testdata/PassRule.php
  26. +1 −1  tests/_testdata/PhpFileFilterIterator/another_php_file.php
  27. +1 −1  tests/_testdata/PhpFileFilterIterator/php_file.php
  28. +1 −1  tests/_testdata/Tokenizer/level.php
  29. +8 −8 tests/_testdata/trailing_whitespace.php
View
2  TODO
@@ -5,7 +5,7 @@ Roadmap (tasks listed in decreasing priority)
* Port "interesting" rules from phpcs
* write a source code highlighter that highlights violations in the source code and attaches the error message as popup
* write output statistics that aggregate how often each rule has been violated (these are the rules you must teach the developers)
-* trySeekTokenId -> seekTokenId
+* trySeekTokenId -> seekTokenId
Rules to add (in no particular order, just a collection of ideas)
View
2  build.xml
@@ -41,7 +41,7 @@
<arg value="--configuration phpunit.xml"/>
</exec>
</target>
-
+
<target name="apidoc" depends="init">
<exec executable="phpdoc" failonerror="true">
<arg value="-d"/>
View
2  src/Rule/NoVariableVariablesRule.php
@@ -62,7 +62,7 @@ protected function doCheck()
}
$this->file->next();
- $this->file->next();
+ $this->file->next();
}
}
}
View
2  src/Tokenizer.php
@@ -203,7 +203,7 @@ static public function tokenize($fileName, $sourceCode)
}
$id = $tokenObj->getId();
-
+
if ($id == T_SEMICOLON) {
if ($waitForFunctionBegin) {
$functionCurlyLevel = $level;
View
14 tests/FileTest.php
@@ -54,7 +54,7 @@ public function testConstruct()
{
$file = new File('filename', 'sourcecode');
}
-
+
/**
* @covers spriebsch\PHPca\File::getFilename
*/
@@ -80,7 +80,7 @@ public function testGetNamespaces()
{
$file = Tokenizer::tokenize('test.php', file_get_contents(__DIR__ . '/_testdata/File/namespaces.php'));
$this->assertEquals(array('A\\B', 'B\\C', 'D\\E\\F'), $file->getNamespaces());
- }
+ }
/**
* @covers spriebsch\PHPca\File::getNamespaces
@@ -89,7 +89,7 @@ public function testGetNamespacesWithCurlyBraces()
{
$file = Tokenizer::tokenize('test.php', file_get_contents(__DIR__ . '/_testdata/File/namespaces_curly.php'));
$this->assertEquals(array('A\\B', 'B\\C', 'D\\E\\F'), $file->getNamespaces());
- }
+ }
/**
* @covers spriebsch\PHPca\File::getClasses
@@ -98,7 +98,7 @@ public function testGetClasses()
{
$file = Tokenizer::tokenize('test.php', file_get_contents(__DIR__ . '/_testdata/File/classes.php'));
$this->assertEquals(array('A', 'B', 'C'), $file->getClasses());
- }
+ }
/**
* @covers spriebsch\PHPca\File::getFunctions
@@ -108,7 +108,7 @@ public function testGetFunctions()
$file = Tokenizer::tokenize('test.php', file_get_contents(__DIR__ . '/_testdata/File/functions.php'));
$this->assertEquals(array('a', 'b', 'c'), $file->getFunctions());
- }
+ }
/**
* @covers spriebsch\PHPca\File::getMethods
@@ -118,7 +118,7 @@ public function testGetMethods()
$file = Tokenizer::tokenize('test.php', file_get_contents(__DIR__ . '/_testdata/File/functions.php'));
$this->assertEquals(array('x', 'y', 'z', 'a', 'b', 'c'), $file->getMethods('A'));
- }
+ }
/**
* @covers spriebsch\PHPca\File::getMethods
@@ -128,7 +128,7 @@ public function testGetMethodsFindsAbstractMethods()
$file = Tokenizer::tokenize('test.php', file_get_contents(__DIR__ . '/_testdata/File/functions.php'));
$this->assertEquals(array('a', 'b'), $file->getMethods('B'));
- }
+ }
/**
* @covers spriebsch\PHPca\File::__toString
View
6 tests/LintErrorTest.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
6 tests/LinterTest.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
6 tests/MessageTest.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
10 tests/ResultTest.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
@@ -166,7 +166,7 @@ public function testGetViolationsSortsByLine()
$t1 = new Token(T_OPEN_TAG, '<?php', 5);
$violation1 = new Violation('testfile', 'error message', $t1);
$result->addMessage($violation1);
-
+
$t2 = new Token(T_OPEN_TAG, '<?php', 3);
$violation2 = new Violation('testfile', 'another error message', $t2);
$result->addMessage($violation2);
@@ -188,7 +188,7 @@ public function testGetViolationsSortsByColumn()
$t1 = new Token(T_OPEN_TAG, '<?php', 5, 9);
$violation1 = new Violation('testfile', 'error message', $t1);
$result->addMessage($violation1);
-
+
$t2 = new Token(T_OPEN_TAG, '<?php', 5, 4);
$violation2 = new Violation('testfile', 'another error message', $t2);
$result->addMessage($violation2);
View
4 tests/Rule/ClassesMustHaveDocBlockRuleTest.php
@@ -67,7 +67,7 @@ public function testNoClassToken()
/**
* One class and no docblock in the file.
- *
+ *
* @covers \spriebsch\PHPca\Rule\ClassesMustHaveDocBlockRule
*/
public function testReportsViolationWhenFileContainsNoDocBlock()
@@ -79,7 +79,7 @@ public function testReportsViolationWhenFileContainsNoDocBlock()
$this->assertTrue($this->result->hasViolations());
}
-
+
/**
* @covers \spriebsch\PHPca\Rule\ClassesMustHaveDocBlockRule
*/
View
4 tests/Rule/FunctionsMustHaveDocBlockRuleTest.php
@@ -67,7 +67,7 @@ public function testNoFunctionToken()
/**
* One function and no docblock in the file.
- *
+ *
* @covers \spriebsch\PHPca\Rule\FunctionsMustHaveDocBlockRule
*/
public function testReportsViolationWhenFileContainsNoDocBlock()
@@ -79,7 +79,7 @@ public function testReportsViolationWhenFileContainsNoDocBlock()
$this->assertTrue($this->result->hasViolations());
}
-
+
/**
* @covers \spriebsch\PHPca\Rule\FunctionsMustHaveDocBlockRule
*/
View
16 tests/Rule/KeywordsAreLowercaseRuleTest.php
@@ -55,28 +55,28 @@ public function testDetectsNonLowercaseKeywords()
$this->init(__DIR__ . '/../_testdata/non_lowercase.php');
$rule = new KeywordsAreLowercaseRule();
- $rule->check($this->file, $this->result);
-
+ $rule->check($this->file, $this->result);
+
$this->assertTrue($this->result->hasViolations());
$this->assertEquals(7, $this->result->getNumberOfViolations());
-
+
$violations = $this->result->getViolations('test.php');
// Function
$this->assertEquals(11, $violations[0]->getLine());
-
+
// CLASS
$this->assertEquals(15, $violations[1]->getLine());
-
+
// Public
$this->assertEquals(17, $violations[2]->getLine());
-
+
// Protected
$this->assertEquals(21, $violations[3]->getLine());
-
+
// Private
$this->assertEquals(25, $violations[4]->getLine());
-
+
// interFace
$this->assertEquals(30, $violations[5]->getLine());
View
10 tests/Rule/NoCarriageReturnsRuleTest.php
@@ -62,7 +62,7 @@ public function testRuleIsSkippedForCarriageReturnLineEndings()
$configuration = new Configuration(__DIR__);
$configuration->setLineEndings("\r");
-
+
$rule = new NoCarriageReturnsRule();
$rule->setConfiguration($configuration);
$this->assertFalse($rule->check($this->file, $this->result));
@@ -77,12 +77,12 @@ public function testRuleIsEnforcedForLineFeedLineEndings()
$configuration = new Configuration(__DIR__);
$configuration->setLineEndings("\n");
-
+
$rule = new NoCarriageReturnsRule();
$rule->setConfiguration($configuration);
$this->assertTrue($rule->check($this->file, $this->result));
}
-
+
/**
* @covers \spriebsch\PHPca\Rule\NoCarriageReturnsRule
*/
@@ -92,7 +92,7 @@ public function testNoCarriageReturns()
$configuration = new Configuration(__DIR__);
$configuration->setLineEndings("\n");
-
+
$rule = new NoCarriageReturnsRule();
$rule->setConfiguration($configuration);
$rule->check($this->file, $this->result);
@@ -109,7 +109,7 @@ public function testCarriageReturns()
$configuration = new Configuration(__DIR__);
$configuration->setLineEndings("\n");
-
+
$rule = new NoCarriageReturnsRule();
$rule->setConfiguration($configuration);
$rule->check($this->file, $this->result);
View
2  tests/Rule/NoTrailingWhitespaceRuleTest.php
@@ -58,7 +58,7 @@ public function testDetectsTrailingWhitespace()
$rule->check($this->file, $this->result);
$this->assertTrue($this->result->hasViolations());
-
+
$this->assertEquals(8, $this->result->getNumberOfViolations());
$violations = $this->result->getViolations('test.php');
View
6 tests/RuleErrorTest.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
2  tests/TokenFilterIteratorTest.php
@@ -51,7 +51,7 @@ class TokenFilterIteratorTest extends \PHPUnit_Framework_TestCase
public function testAccept()
{
$file = Tokenizer::tokenize('filename', "<?php \n\n function hello()\n{\n print 'hello world';\n} \n ?>");
-
+
$it = new TokenFilterIterator($file, T_FUNCTION);
$result = array();
View
6 tests/UnknownTokenExceptionTest.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
6 tests/_testdata/Application/_rules/error/ErrorTestRule.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
6 tests/_testdata/Application/_rules/fail/FailTestRule.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
6 tests/_testdata/Application/_rules/pass/PassTestRule.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
6 tests/_testdata/Application/_rules/warning/WarningTestRule.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
6 tests/_testdata/FailRule.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
8 tests/_testdata/File/functions.php
@@ -13,11 +13,11 @@ class A
static public function x()
{
}
-
+
static protected function y()
{
}
-
+
static private function z()
{
}
@@ -25,11 +25,11 @@ static private function z()
public function a()
{
}
-
+
protected function b()
{
}
-
+
private function c()
{
}
View
2  tests/_testdata/Loader/ClassD/D.php
@@ -2,7 +2,7 @@
namespace spriebsch\PHPca\Tests;
-class D
+class D
{
}
?>
View
6 tests/_testdata/PassRule.php
@@ -8,13 +8,13 @@
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of Stefan Priebsch nor the names of contributors
- * may be used to endorse or promote products derived from this software
+ * may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
@@ -24,7 +24,7 @@
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
View
2  tests/_testdata/PhpFileFilterIterator/another_php_file.php
@@ -1,5 +1,5 @@
<?php
-/*
+/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
View
2  tests/_testdata/PhpFileFilterIterator/php_file.php
@@ -1,5 +1,5 @@
<?php
-/*
+/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
View
2  tests/_testdata/Tokenizer/level.php
@@ -14,7 +14,7 @@ public function __construct($a, array $b)
} else {
continue;
}
- }
+ }
} else {
for ($i = 0; $i < 23; $i++) {
$this->doRun();
View
16 tests/_testdata/trailing_whitespace.php
@@ -1,22 +1,22 @@
-<?php
+<?php
-$a = 'hello world';
+$a = 'hello world';
/* a comment */
-echo 'something';
-
+echo 'something';
+
$b = 3;
-$c = 4;
+$c = 4;
print $a;
/* with indentation */
$a = 4;
- $b = 2;
+ $b = 2;
$c = 1;
-
+
print $a;
-
+
echo $a;
?>
Something went wrong with that request. Please try again.