diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.1.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.1.inc deleted file mode 100755 index 1b4be0b37a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.1.inc +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.2.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.2.inc deleted file mode 100755 index f5af896add..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.2.inc +++ /dev/null @@ -1,4 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php deleted file mode 100755 index 7fd685783d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php +++ /dev/null @@ -1,82 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DuplicateClassNameUnitTest.php 263478 2008-07-25 04:24:11Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DuplicateClassName multi-file sniff. - * - * A multi-file sniff unit test checks a .1.inc and a .2.inc file for expected violations - * of a single coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Classes_DuplicateClassNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList($testFile='') - { - switch ($testFile) { - case 'DuplicateClassNameUnitTest.1.inc': - return array( - 6 => 1, - 7 => 1, - ); - break; - case 'DuplicateClassNameUnitTest.2.inc': - return array( - 2 => 1, - 3 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.inc deleted file mode 100755 index 2f362dd2fc..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.inc +++ /dev/null @@ -1,70 +0,0 @@ -getTraceAsString(); - } -} - -try { - throw Exception('Error...'); -} catch (Exception $e) {} - -try { - throw Exception('Error...'); -} catch (Exception $e) { - // TODO: Handle this exception later :-) -} \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php deleted file mode 100755 index 6268974c0f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: EmptyStatementUnitTest.php 252356 2008-02-06 02:38:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the EmptyStatement sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_CodeAnalysis_EmptyStatementUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 64 => 1, - 68 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 3 => 1, - 15 => 1, - 17 => 1, - 19 => 1, - 30 => 1, - 35 => 1, - 41 => 1, - 47 => 1, - 52 => 1, - 55 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc deleted file mode 100755 index 6b65e628fc..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc +++ /dev/null @@ -1,13 +0,0 @@ -valid();) { - $it->next(); -} - -for (;(($it1->valid() && $foo) || (!$it2->value && ($bar || false)));/*Could be ingored*/) { - $it1->next(); - $it2->next(); -} \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php deleted file mode 100755 index a08442e029..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: ForLoopShouldBeWhileLoopUnitTest.php 252356 2008-02-06 02:38:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ForLoopShouldBeWhileLoop sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_CodeAnalysis_ForLoopShouldBeWhileLoopUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 6 => 1, - 10 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.inc deleted file mode 100755 index ef51b5a1ed..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.inc +++ /dev/null @@ -1,15 +0,0 @@ -rewind(); $it->valid(); $it->next()) { - echo $it->current(); -} \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php deleted file mode 100755 index f773dd9609..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: ForLoopWithTestFunctionCallUnitTest.php 252356 2008-02-06 02:38:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ForLoopWithTestFunctionCall sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_CodeAnalysis_ForLoopWithTestFunctionCallUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 4 => 1, - 13 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.inc deleted file mode 100755 index dc7b88e052..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.inc +++ /dev/null @@ -1,25 +0,0 @@ - 3; $i++) { - - } - } -} - -for ($i = 0; $i < 20; $i++) { - for ($j = 0; $j < 5; $j += 2) { - for ($k = 0; $k > 3; $k++) { - - } - } -} - -for ($i = 0; $i < 20; $i++) { - for ($j = 0; $j < 5; $j += 2) { - for ($k = 0; $k > 3; $j++) { - - } - } -} \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php deleted file mode 100755 index e9d5ecd930..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: JumbledIncrementerUnitTest.php 252356 2008-02-06 02:38:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the JumbledIncrementer sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_CodeAnalysis_JumbledIncrementerUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 3 => 2, - 4 => 1, - 20 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc deleted file mode 100755 index 1d980ae26c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc +++ /dev/null @@ -1,13 +0,0 @@ - - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: UnconditionalIfStatementUnitTest.php 252356 2008-02-06 02:38:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the UnconditionalIfStatement sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_CodeAnalysis_UnconditionalIfStatementUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 3 => 1, - 5 => 1, - 7 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc deleted file mode 100755 index 9e8ad1a5b5..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc +++ /dev/null @@ -1,24 +0,0 @@ - - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: UnnecessaryFinalModifierUnitTest.php 252356 2008-02-06 02:38:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the UnnecessaryFinalModifier sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_CodeAnalysis_UnnecessaryFinalModifierUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 11 => 1, - 14 => 1, - 17 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc deleted file mode 100755 index 35a2ed541f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc +++ /dev/null @@ -1,34 +0,0 @@ - - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: UnusedFunctionParameterUnitTest.php 252356 2008-02-06 02:38:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the UnusedFunctionParameter sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_CodeAnalysis_UnusedFunctionParameterUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 3 => 1, - 7 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.inc deleted file mode 100755 index f9fe67ca55..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.inc +++ /dev/null @@ -1,25 +0,0 @@ - - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: UselessOverridingMethodUnitTest.php 252356 2008-02-06 02:38:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the UselessOverridingMethod sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Manuel Pichler - * @copyright 2007-2008 Manuel Pichler. All rights reserved. - * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_CodeAnalysis_UselessOverridingMethodUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 4 => 1, - 16 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Commenting/TodoUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Commenting/TodoUnitTest.inc deleted file mode 100755 index 5c11160526..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Commenting/TodoUnitTest.inc +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Commenting/TodoUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Commenting/TodoUnitTest.js deleted file mode 100755 index 72085ceea1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Commenting/TodoUnitTest.js +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Commenting/TodoUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Commenting/TodoUnitTest.php deleted file mode 100755 index b6faffff36..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Commenting/TodoUnitTest.php +++ /dev/null @@ -1,98 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: TodoUnitTest.php 265108 2008-08-19 05:26:35Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the Todo sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Commenting_TodoUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='TodoUnitTest.inc') - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getWarningList($testFile='TodoUnitTest.inc') - { - switch ($testFile) { - case 'TodoUnitTest.inc': - return array( - 3 => 1, - 7 => 1, - 10 => 1, - 13 => 1, - 16 => 1, - 18 => 1, - 21 => 1, - ); - break; - case 'TodoUnitTest.js': - return array( - 3 => 1, - 7 => 1, - 10 => 1, - 13 => 1, - 16 => 1, - 18 => 1, - 21 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc deleted file mode 100755 index 00a41a9433..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc +++ /dev/null @@ -1,26 +0,0 @@ - 0; $i--) echo 'hello'; - -while ($something) echo 'hello'; - -do { - $i--; -} while ($something); - -if(true) - $someObject->{$name}; - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js deleted file mode 100755 index 95b7b58bb6..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js +++ /dev/null @@ -1,21 +0,0 @@ - 0; $i--) echo 'hello'; - -while ($something) echo 'hello'; - -do { - $i--; -} while ($something); - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php deleted file mode 100755 index 08f43f5cc7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php +++ /dev/null @@ -1,94 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: InlineControlStructureUnitTest.php 261815 2008-07-01 01:25:08Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the InlineControlStructure sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_ControlStructures_InlineControlStructureUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='InlineControlStructureUnitTest.inc') - { - switch ($testFile) { - case 'InlineControlStructureUnitTest.inc': - return array( - 3 => 1, - 7 => 1, - 11 => 1, - 13 => 1, - 15 => 1, - 17 => 1, - 23 => 1, - ); - break; - case 'InlineControlStructureUnitTest.js': - return array( - 3 => 1, - 7 => 1, - 11 => 1, - 13 => 1, - 15 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.css deleted file mode 100755 index a8c96255f6..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.css +++ /dev/null @@ -1,3 +0,0 @@ -#login-container { - margin-left: -225px; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc deleted file mode 100755 index 8b199b4f10..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.js deleted file mode 100755 index 49c58d8e05..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.js +++ /dev/null @@ -1,2 +0,0 @@ -alert('hi'); -alert('hi'); diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.php deleted file mode 100755 index 0de1d11515..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineEndingsUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LineEndingsUnitTest.php 237136 2007-06-06 23:31:35Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LineEndings sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Files_LineEndingsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 1 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineLengthUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineLengthUnitTest.inc deleted file mode 100755 index 1418aa602f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Files/LineLengthUnitTest.inc +++ /dev/null @@ -1,55 +0,0 @@ - -Hellob> - - - - - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LineLengthUnitTest.php 261688 2008-06-27 01:58:38Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LineLength sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Files_LineLengthUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 31 => 1, - 34 => 1, - 55 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 9 => 1, - 15 => 1, - 21 => 1, - 24 => 1, - 29 => 1, - 37 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.inc deleted file mode 100755 index c22e25994c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.inc +++ /dev/null @@ -1,9 +0,0 @@ -wizardid = 10; $this->paint(); echo 'x'; -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php deleted file mode 100755 index 8261e033d9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowMultipleStatementsUnitTest.php 261566 2008-06-24 06:37:54Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowMultipleStatements sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Formatting_DisallowMultipleStatementsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 6 => 1, - 7 => 1, - 8 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc deleted file mode 100755 index c65f810714..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc +++ /dev/null @@ -1,203 +0,0 @@ -findPrevious(); -$commentEnd = $this->_phpcsFile; -$expected .= '...'; - -// Invalid -$this->okButton = new Button(); -$content = new MyClass(); - - -$GLOBALS['_PEAR_ERRORSTACK_SINGLETON'] = array(); - -class MyClass -{ - const MODE_DEBUG = 'debug'; - const MODE_DEBUG2 = 'debug'; - - $array[$test] = 'anything'; - $var = 'anything'; - - const MODE_DEBUG2 = 'debug'; - $array[$test] = 'anything'; - $var = 'anything'; - $array[($test + 1)] = 'anything'; - $array[($blah + (10 - $test))] = 'anything'; -} - -function myFunction($var=true) -{ - if ($strict === true) { - $length = strlen($string); - $lastCharWasCaps = ($classFormat === false) ? false : true; - - for ($i = 1; $i < $length; $i++) { - $isCaps = (strtoupper($string{$i}) === $string{$i}) ? true : false; - if ($isCaps === true && $lastCharWasCaps === true) { - return false; - } - - $lastCharWasCaps = $isCaps; - } - } -} - -// Valid -for ($i = 0; $i < 10; $i += 2) { - $i = ($i - 1); -} - -// Invalid -foreach ($files as $file) { - $saves[$file] = array(); - $contents = stripslashes(file_get_contents($file)); - list($assetid, $time, $content) = explode("\n", $contents); - $saves[$file]['assetid'] = $assetid; -} - -$i = ($i - 10); -$ip = ($i - 10); -for ($i = 0; $i < 10; $i += 2) { - $i = ($i - 10); -} - -// Valid -$variable = 12; -$var = a_very(long_line('that', 'contains'), - a_bunch('of long', 'parameters'), - 'that_need to be aligned with the equal sign'); -$var2 = 12; - -// Valid -$variable = 12; -$var = 'a very long line of text that contains ' - .$someVar - .' and some other stuff that is too long to fit on one line'; -$var2 = 12; - -// Invalid -$variable = 12; -$var = a_very(long_line('that', 'contains'), - a_bunch('of long', 'parameters'), - 'that_need to be aligned with the equal sign'); -$var2 = 12; - -// Invalid -$variable = 12; -$var = 'a very long line of text that contains ' - .$someVar - .' and some other stuff that is too long to fit on one line'; -$var2 = 12; - -// Valid -$variable = 12; -$var .= 'a very long line of text that contains ' - .$someVar - .' and some other stuff that is too long to fit on one line'; -$var2 = 12; - -// Valid -$variable += 12; -$var .= 'a very long line of text that contains ' - .$someVar - .' and some other stuff that is too long to fit on one line'; -$var2 = 12; - -// Invalid -$variable = 12; -$var .= 'a very long line of text that contains ' - .$someVar - .' and some other stuff that is too long to fit on one line'; -$var2 = 12; - -// Valid -$error = false; -while (list($h, $f) = each($handle)) { - $error = true; -} - -// Valid -$value = false; -function blah ($value = true) { - $value = false; - if ($value === true) { - $value = false; - } -} - -if (TRUE) { - $args = array('foo' => 'foo'); - $res = 'bar'; -} -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js deleted file mode 100755 index 672f5176a9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js +++ /dev/null @@ -1,93 +0,0 @@ - - -// Valid -var1 = 'var1'; -var10 = 'var1'; -var100 = 'var1'; -var1000 = 'var1'; - -// Invalid -var1 = 'var1'; -var10 = 'var1'; -var100 = 'var1'; -var1000 = 'var1'; - -// Valid -var1 = 'var1'; -var10 = 'var1'; - -var100 = 'var1'; -var1000 = 'var1'; - -// Invalid -var1 = 'var1'; -var10 = 'var1'; - -var100 = 'var1'; -var1000 = 'var1'; - -// Valid -var1 += 'var1'; -var10 += 'var1'; -var100 += 'var1'; -var1000 += 'var1'; - -// Invalid -var1 += 'var1'; -var10 += 'var1'; -var100 += 'var1'; -var1000 += 'var1'; - -// Valid -var1 = 'var1'; -var10 += 'var1'; -var100 = 'var1'; -var1000 += 'var1'; - -// Invalid -var1 = 'var1'; -var10 += 'var1'; -var100 = 'var1'; -var1000 += 'var1'; - -// Valid -var1 += 'var1'; -var10 += 'var1'; - -var100 += 'var1'; -var1000 += 'var1'; - -// Invalid -var1 += 'var1'; -var10 += 'var1'; - -var100 += 'var1'; -var1000 += 'var1'; - -// Valid -var test = 100; - -// InValid -var test = 100; - -commentStart = phpcsFile.findPrevious(); -commentEnd = this._phpcsFile; -expected += '...'; - -// Invalid -this.okButton = {}; -content = {}; - -var buttonid = [this.id, '-positionFormats-add'].join(''); -var buttonWidget = WidgetStore.get(buttonid); -var spinButtonid = [this.id, '-positionFormats-spinButton'].join(''); -var spinButtonWidget = WidgetStore.get(spinButtonid); -var position = spinButtonWidget.getValue(); -var posForamatsList = WidgetStore.get([self.id, '-positionFormats-list'].join('')); - -dfx.stripTags = function(content, allowedTags) -{ - var match; - var re = 'blah'; -}; - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php deleted file mode 100755 index 4c81f55153..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php +++ /dev/null @@ -1,135 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: MultipleStatementAlignmentUnitTest.php 253383 2008-02-21 05:21:12Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the MultipleStatementAlignment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Formatting_MultipleStatementAlignmentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getWarningList($testFile='MultipleStatementAlignmentUnitTest.inc') - { - switch ($testFile) { - case 'MultipleStatementAlignmentUnitTest.inc': - return array( - 11 => 1, - 12 => 1, - 23 => 1, - 24 => 1, - 26 => 1, - 27 => 1, - 37 => 1, - 38 => 1, - 48 => 1, - 50 => 1, - 61 => 1, - 62 => 1, - 64 => 1, - 65 => 1, - 71 => 1, - 78 => 1, - 79 => 1, - 86 => 1, - 92 => 1, - 93 => 1, - 94 => 1, - 95 => 1, - 123 => 1, - 124 => 1, - 126 => 1, - 129 => 1, - 154 => 1, - 161 => 1, - 178 => 1, - 179 => 1, - 182 => 1, - ); - break; - case 'MultipleStatementAlignmentUnitTest.js': - return array( - 11 => 1, - 12 => 1, - 23 => 1, - 24 => 1, - 26 => 1, - 27 => 1, - 37 => 1, - 38 => 1, - 48 => 1, - 50 => 1, - 61 => 1, - 62 => 1, - 64 => 1, - 65 => 1, - 71 => 1, - 78 => 1, - 79 => 1, - 81 => 1, - 82 => 1, - 83 => 1, - 85 => 1, - 86 => 1, - ); - break; - default: - return array(); - break; - } - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc deleted file mode 100755 index ad10f6638a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc +++ /dev/null @@ -1,47 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.php deleted file mode 100755 index a1f1f46abb..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.php +++ /dev/null @@ -1,91 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: NoSpaceAfterCastUnitTest.php 238831 2007-06-29 00:57:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the NoSpaceAfterCast sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Formatting_NoSpaceAfterCastUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 5 => 1, - 7 => 1, - 9 => 1, - 11 => 1, - 13 => 1, - 15 => 1, - 17 => 1, - 19 => 1, - 21 => 1, - 23 => 1, - 25 => 1, - 27 => 1, - 29 => 1, - 31 => 1, - 33 => 1, - 35 => 1, - 37 => 1, - 39 => 1, - 41 => 1, - 43 => 1, - 45 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc deleted file mode 100755 index ad10f6638a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc +++ /dev/null @@ -1,47 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php deleted file mode 100755 index 55cb2e0d88..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php +++ /dev/null @@ -1,91 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: SpaceAfterCastUnitTest.php 238831 2007-06-29 00:57:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the SpaceAfterCast sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Formatting_SpaceAfterCastUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 5 => 1, - 8 => 1, - 9 => 1, - 12 => 1, - 13 => 1, - 16 => 1, - 17 => 1, - 20 => 1, - 21 => 1, - 24 => 1, - 25 => 1, - 28 => 1, - 29 => 1, - 32 => 1, - 33 => 1, - 36 => 1, - 37 => 1, - 40 => 1, - 41 => 1, - 44 => 1, - 45 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc deleted file mode 100755 index 8e31452bac..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc +++ /dev/null @@ -1,20 +0,0 @@ -myfunc(&$myvar); -$this->myfunc($myvar); - -myclass::myfunc(&$myvar); -myclass::myfunc($myvar); - -while(testfunc($var1, &$var2, $var3, &$var4) === false) { -} -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php deleted file mode 100755 index 9241b631c3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: OpeningFunctionBraceKernighanRitchieUnitTest.php 247623 2007-12-04 23:24:33Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the CallTimePassByReference sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Functions_CallTimePassByReferenceUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 9 => 1, - 12 => 1, - 15 => 1, - 18 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc deleted file mode 100755 index f2f20d81b6..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc +++ /dev/null @@ -1,54 +0,0 @@ -getArray($one, $two,$three),$this->arrayMap); -$this->error($obj->getCode(),$obj->getMessage(),$obj->getFile(),$obj->getLine()); - -make_foo($string /*the string*/ , true /*test*/); -make_foo($string/*the string*/ , /*test*/ true); -make_foo($string /*the string*/, /*test*/ true); - -class MyClass { - function myFunction() { - blah($foo, "{{$config['host']}}", "{$config}", "hi there{}{}{{{}{}{}}"); - } -} -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php deleted file mode 100755 index c0a30ee8d9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php +++ /dev/null @@ -1,80 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionCallArgumentSpacingUnitTest.php 226877 2007-01-10 03:14:44Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FunctionCallArgumentSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Functions_FunctionCallArgumentSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 5 => 1, - 6 => 1, - 7 => 2, - 8 => 1, - 11 => 2, - 12 => 2, - 13 => 3, - 42 => 3, - 43 => 3, - 45 => 1, - 46 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc deleted file mode 100755 index 012ffa0a5f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc +++ /dev/null @@ -1,157 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php deleted file mode 100755 index 53ad9eb1db..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php +++ /dev/null @@ -1,88 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: OpeningFunctionBraceBsdAllmanUnitTest.php 247623 2007-12-04 23:24:33Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the OpeningFunctionBraceBsdAllman sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Functions_OpeningFunctionBraceBsdAllmanUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 13 => 1, - 19 => 1, - 24 => 1, - 30 => 1, - 40 => 1, - 44 => 1, - 50 => 1, - 55 => 1, - 67 => 1, - 78 => 1, - 85 => 1, - 91 => 1, - 98 => 1, - 110 => 1, - 115 => 1, - 122 => 1, - 128 => 1, - 155 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc deleted file mode 100755 index 8e082be1ce..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc +++ /dev/null @@ -1,117 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php deleted file mode 100755 index 44e509112a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php +++ /dev/null @@ -1,82 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: OpeningFunctionBraceKernighanRitchieUnitTest.php 247623 2007-12-04 23:24:33Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the OpeningFunctionBraceKernighanRitchie sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Functions_OpeningFunctionBraceKernighanRitchieUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 9 => 1, - 13 => 1, - 17 => 1, - 29 => 1, - 33 => 1, - 37 => 1, - 53 => 1, - 58 => 1, - 63 => 1, - 77 => 1, - 82 => 1, - 87 => 1, - 104 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.inc deleted file mode 100755 index 2f270edfe8..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.inc +++ /dev/null @@ -1,160 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php deleted file mode 100755 index 3bc6a95841..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: CyclomaticComplexityUnitTest.php 240469 2007-07-30 04:55:35Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the CyclomaticComplexity sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Metrics_CyclomaticComplexityUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 116 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 45 => 1, - 72 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.inc deleted file mode 100755 index 9708792418..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.inc +++ /dev/null @@ -1,102 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php deleted file mode 100755 index 7b70946dc2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: NestingLevelUnitTest.php 240469 2007-07-30 04:55:35Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the NestingLevel sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Metrics_NestingLevelUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 73 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 27 => 1, - 46 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.inc deleted file mode 100755 index 4904322a8d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.inc +++ /dev/null @@ -1,31 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php deleted file mode 100755 index 9ad23b64bf..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ConstructorNameUnitTest.php 276279 2009-02-23 05:16:22Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ConstructorName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_NamingConventions_ConstructorNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 5 => 1, - 6 => 1, - 11 => 1, - 20 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.inc deleted file mode 100755 index d6bec5937e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.inc +++ /dev/null @@ -1,95 +0,0 @@ -define('bar'); -$foo->getBar()->define('foo'); - -// This is allowed as it is required for PHPUnit. -if (PHPUnit_MAIN_METHOD == 'PHP_Shell_AllTests::main') { - PHP_Shell_AllTests::main(); -} -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php deleted file mode 100755 index b75784ac35..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php +++ /dev/null @@ -1,79 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: UpperCaseConstantNameUnitTest.php 295617 2010-03-01 03:40:05Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidConstantName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_NamingConventions_UpperCaseConstantNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 8 => 1, - 10 => 1, - 15 => 1, - 25 => 1, - 26 => 1, - 27 => 1, - 28 => 1, - 29 => 1, - 32 => 1, - 35 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.inc deleted file mode 100755 index 6ed7dadfa3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.inc +++ /dev/null @@ -1,6 +0,0 @@ -
- -Some content here. - - -
diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php deleted file mode 100755 index 7c4d6ad142..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php +++ /dev/null @@ -1,77 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowShortOpenTagUnitTest.php 224867 2006-12-12 02:31:20Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowShortOpenTag sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_PHP_DisallowShortOpenTagUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - $option = (boolean) ini_get('short_open_tag'); - - if ($option === false) { - return array(); - } - - return array( - 4 => 1, - 5 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc deleted file mode 100755 index ea075d923c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc +++ /dev/null @@ -1,22 +0,0 @@ -sizeof($array); -$size = $class->count($array); -$class->delete($filepath); -$class->unset($filepath); - -function delete() {} -function unset() {} -function sizeof() {} -function count() {} -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php deleted file mode 100755 index f0926a30b4..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ForbiddenFunctionsUnitTest.php 225921 2006-12-28 06:01:17Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ForbiddenFunctions sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_PHP_ForbiddenFunctionsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 4 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc deleted file mode 100755 index d4996f3e52..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc +++ /dev/null @@ -1,50 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js deleted file mode 100755 index 87cfb820c0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js +++ /dev/null @@ -1,14 +0,0 @@ -if (variable === true) { } -if (variable === TRUE) { } -if (variable === True) { } -variable = True; - -if (variable === false) { } -if (variable === FALSE) { } -if (variable === False) { } -variable = false; - -if (variable === null) { } -if (variable === NULL) { } -if (variable === Null) { } -variable = NULL; diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php deleted file mode 100755 index cf6c960ee2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php +++ /dev/null @@ -1,102 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LowerCaseConstantUnitTest.php 253114 2008-02-18 00:01:06Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LowerCaseConstant sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_PHP_LowerCaseConstantUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='LowerCaseConstantUnitTest.inc') - { - switch ($testFile) { - case 'LowerCaseConstantUnitTest.inc': - return array( - 7 => 1, - 10 => 1, - 15 => 1, - 16 => 1, - 23 => 1, - 26 => 1, - 31 => 1, - 32 => 1, - 39 => 1, - 42 => 1, - 47 => 1, - 48 => 1, - ); - break; - case 'LowerCaseConstantUnitTest.js': - return array( - 2 => 1, - 3 => 1, - 4 => 1, - 7 => 1, - 8 => 1, - 12 => 1, - 13 => 1, - 14 => 1, - ); - break; - default: - return array(); - break; - } - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc deleted file mode 100755 index 7ff31ba704..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php deleted file mode 100755 index fdd70299ec..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php +++ /dev/null @@ -1,68 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: NoSilencedErrorsUnitTest.php 270342 2008-12-03 04:42:07Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the NoSilencedErrors sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_PHP_NoSilencedErrorsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 5 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc deleted file mode 100755 index cce640134b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc +++ /dev/null @@ -1,50 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php deleted file mode 100755 index 13cedec422..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: UpperCaseConstantUnitTest.php 226877 2007-01-10 03:14:44Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the UpperCaseConstant sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_PHP_UpperCaseConstantUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 1, - 10 => 1, - 15 => 1, - 16 => 1, - 23 => 1, - 26 => 1, - 31 => 1, - 32 => 1, - 39 => 1, - 42 => 1, - 47 => 1, - 48 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.inc deleted file mode 100755 index a97f0922b7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.inc +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.js deleted file mode 100755 index df69b5e837..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.js +++ /dev/null @@ -1,11 +0,0 @@ -var x = 'My ' + 'string'; -var x = 'My ' + 1234; -var x = 'My ' + y + ' test'; - -this.errors['test'] = x; -this.errors['test' + 10] = x; -this.errors['test' + y] = x; -this.errors['test' + 'blah'] = x; -this.errors[y] = x; -this.errors[y + z] = x; -this.errors[y + z + 'My' + 'String'] = x; diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php deleted file mode 100755 index 473de5cf23..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php +++ /dev/null @@ -1,87 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: UnnecessaryStringConcatUnitTest.php 287523 2009-08-21 04:20:07Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the UnnecessaryStringConcat sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_Strings_UnnecessaryStringConcatUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='UnnecessaryStringConcatUnitTest.inc') - { - switch ($testFile) { - case 'UnnecessaryStringConcatUnitTest.inc': - return array( - 2 => 1, - 6 => 1, - 9 => 1, - 12 => 1, - ); - break; - case 'UnnecessaryStringConcatUnitTest.js': - return array( - 1 => 1, - 8 => 1, - 11 => 1, - ); - break; - default: - return array(); - break; - } - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css deleted file mode 100755 index 77d4914f80..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css +++ /dev/null @@ -1,5 +0,0 @@ -#login-container { - margin-left: -225px; - width: 450px; -} - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc deleted file mode 100755 index 85f84af37b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js deleted file mode 100755 index ff825f1baa..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js +++ /dev/null @@ -1,9 +0,0 @@ -var x = { - abc: 1, - zyz: 2, - abc: 5, - mno: { - abc: 4 - }, - abc: 5 -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php deleted file mode 100755 index d8affba2d9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php +++ /dev/null @@ -1,92 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowTabIndentUnitTest.php 267906 2008-10-28 04:43:57Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowTabIndent sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_WhiteSpace_DisallowTabIndentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='DisallowTabIndentUnitTest.inc') - { - switch ($testFile) { - case 'DisallowTabIndentUnitTest.inc': - return array( - 5 => 1, - 9 => 1, - 15 => 1, - ); - break; - case 'DisallowTabIndentUnitTest.js': - return array( - 3 => 1, - 6 => 1, - ); - break; - case 'DisallowTabIndentUnitTest.css': - return array( - 2 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc deleted file mode 100755 index b827873583..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc +++ /dev/null @@ -1,364 +0,0 @@ -hello(); // error here - } - - function hello() // error here - { // no error here as brackets can be put anywhere in the pear standard - echo 'hello'; - } - - function hello2() - { - if (TRUE) { // error here - echo 'hello'; // no error here as its more than 4 spaces. - } else { - echo 'bye'; // error here - } - - while (TRUE) { - echo 'hello'; // error here - }// no error here as its handled by another test. - - do { // error here - echo 'hello'; // error here - } while (TRUE); // no error here as its aligned with the do. - }// no error here as its handled by another test. - - function hello3() - { - switch ($hello) { - case 'hello': - break; - } - } - -} - -?> -
-
-
-validate()) {
-    $safe = $form->getSubmitValues();
-}
-?>
-
-open(); // error here - } - - public function open() - { - // Some inline stuff that shouldn't error - if (TRUE) echo 'hello'; - foreach ($tokens as $token) echo $token; - } - - /** - * This is a comment 1. - * This is a comment 2. - * This is a comment 3. - * This is a comment 4. - */ - public function close() - { - // All ok. - if (TRUE) { - if (TRUE) { - } else if (FALSE) { - foreach ($tokens as $token) { - switch ($token) { - case '1': - case '2': - if (true) { - if (false) { - if (false) { - if (false) { - echo 'hello'; - } - } - } - } - break; - case '5': - break; - } - do { - while (true) { - foreach ($tokens as $token) { - for ($i = 0; $i < $token; $i++) { - echo 'hello'; - } - } - } - } while (true); - } - } - } - } - - /* - This is another c style comment 1. - This is another c style comment 2. - This is another c style comment 3. - This is another c style comment 4. - This is another c style comment 5. - */ - - /* - * - * - * - */ - - /** - */ - - /* - This comment has a newline in it. - - */ - - public function read() - { - echo 'hello'; - - // no errors below. - $array = array( - 'this', - 'that' => array( - 'hello', - 'hello again' => array( - 'hello', - ), - ), - ); - } -} - -abstract class Test3 -{ - public function parse() - { - - foreach ($t as $ndx => $token) { - if (is_array($token)) { - echo 'here'; - } else { - $ts[] = array("token" => $token, "value" => ''); - - $last = count($ts) - 1; - - switch ($token) { - case '(': - - if ($last >= 3 && - $ts[0]['token'] != T_CLASS && - $ts[$last - 2]['token'] == T_OBJECT_OPERATOR && - $ts[$last - 3]['token'] == T_VARIABLE ) { - - - if (true) { - echo 'hello'; - } - } - array_push($braces, $token); - break; - } - } - } - } -} - -public function test() -{ - $o = << - - - - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php deleted file mode 100755 index 419ea7b59e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php +++ /dev/null @@ -1,90 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ScopeIndentUnitTest.php 293533 2010-01-14 05:55:31Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ScopeIndent sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Generic_Tests_WhiteSpace_ScopeIndentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 1, - 10 => 1, - 17 => 1, - 20 => 1, - 24 => 1, - 27 => 1, - 28 => 1, - 58 => 1, - 123 => 1, - 126 => 1, - 224 => 1, - 225 => 1, - 279 => 1, - 280 => 1, - 281 => 1, - 282 => 1, - 283 => 1, - 284 => 1, - 311 => 1, - 336 => 1, - 349 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.css deleted file mode 100755 index 339ee1544f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.css +++ /dev/null @@ -1,13 +0,0 @@ -.SettingsTabPaneWidgetType-tab-mid { - background: transparent url(tab_inact_mid.png) repeat-x; - line-height: -25px; - cursor: pointer; - -moz-user-select: none; -} - -.AssetLineageWidgetType-item { - float: left; - list-style: none; - height: 22px; - cursor: pointer; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php deleted file mode 100755 index 54e944975e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php +++ /dev/null @@ -1,67 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ForbiddenStylesUnitTest.php 268254 2008-11-04 05:08:07Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the BrowserSpecificStyles sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_CSS_BrowserSpecificStylesUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 5 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc deleted file mode 100755 index ce29b79790..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc +++ /dev/null @@ -1,49 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php deleted file mode 100755 index ede7f1dcf1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowSelfActionsUnitTest.php 265572 2008-08-28 03:43:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowSelfActionsUnitTest sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Channels_DisallowSelfActionsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 12 => 1, - 26 => 1, - 27 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc deleted file mode 100755 index c8ace40867..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc +++ /dev/null @@ -1,107 +0,0 @@ -fetch(PDO::FETCH_NUM) -BaseSystem::getDataDir(); -Util::getArrayIndex(array(), ''); - - -Channels::includeSystem('Widget'); -Widget::includeWidget('AbstractContainer'); -class MyWidget extends AbstractContainerWidgetType {} -class MyOtherWidget extends BookWidgetType {} - -$zip = new ZipArchive(); -$res = $zip->open($path, ZipArchive::CREATE); - -class AssetListingUnitTest extends AbstractMySourceUnitTest -{ - function setUp() { - parent::setUp(); - Channels::includeSystem('MySystem2'); - include_once 'Libs/FileSystem.inc'; - } - - function two() { - $siteid = MySystem2::getCurrentSiteId(); - $parserFiles = FileSystem::listDirectory(); - } - - function three() { - $siteid = MySystem3::getCurrentSiteId(); - $parserFiles = FileSystem::listDirectory(); - } -} - -if (Channels::systemExists('Log') === TRUE) { - Channels::includeSystem('Log'); -} else { - return; -} - -Log::addProjectLog('metadata.field.update', $msg); - -function two() { - Widget::includeWidget('CacheAdminScreen'); - $barChart = CacheAdminScreenWidgetType::constructBarchart($data); -} - -$adjustDialog->setOrientation(AbstractWidgetWidgetType::CENTER); -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php deleted file mode 100755 index 5b189f4b4c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php +++ /dev/null @@ -1,78 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: IncludeSystemUnitTest.php 283091 2009-06-30 02:08:55Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the IncludeSystem sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Channels_IncludeSystemUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 9 => 1, - 14 => 1, - 24 => 1, - 27 => 1, - 28 => 1, - 31 => 1, - 36 => 1, - 41 => 1, - 60 => 1, - 69 => 1, - 88 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.inc deleted file mode 100755 index 0ce78517a9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.inc +++ /dev/null @@ -1,67 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php deleted file mode 100755 index 6118b4bf92..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: UnusedSystemUnitTest.php 252279 2008-02-05 00:34:19Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the UnusedSystem sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Channels_UnusedSystemUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 5 => 1, - 8 => 1, - 24 => 1, - 34 => 1, - 54 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.inc deleted file mode 100755 index 19d5c5d4cc..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.inc +++ /dev/null @@ -1,101 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php deleted file mode 100755 index c146cb9f17..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php +++ /dev/null @@ -1,75 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionCommentUnitTest.php 292513 2009-12-23 00:41:20Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for FunctionCommentSniff. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Commenting_FunctionCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 28 => 1, - 36 => 1, - 37 => 2, - 49 => 1, - 58 => 1, - 65 => 1, - 77 => 1, - 79 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 67 => 1, - 68 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/DebugCodeUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/DebugCodeUnitTest.inc deleted file mode 100755 index 349016101a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/DebugCodeUnitTest.inc +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php deleted file mode 100755 index d018514834..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DebugCodeUnitTest.php 265159 2008-08-20 05:37:21Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DebugCode sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Debug_DebugCodeUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 3 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.js deleted file mode 100755 index d5e3df5719..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.js +++ /dev/null @@ -1,8 +0,0 @@ -console.info(); -console.warn(); -console.test(); -con.sole(); -var console = { - console: 'string'; -}; -function console() {} \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php deleted file mode 100755 index c5ca63224c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php +++ /dev/null @@ -1,79 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FirebugConsoleUnitTest.php 253189 2008-02-19 03:35:31Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FirebugConsole sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Debug_FirebugConsoleUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='FirebugConsoleUnitTest.js') - { - if ($testFile !== 'FirebugConsoleUnitTest.js') { - return array(); - } - - return array( - 1 => 1, - 2 => 1, - 3 => 1, - 5 => 1, - 6 => 1, - 8 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/AssignThisUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/AssignThisUnitTest.js deleted file mode 100755 index ca7f12fbcb..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/AssignThisUnitTest.js +++ /dev/null @@ -1,18 +0,0 @@ -var self = this; -buttonWidget.addClickEvent(function() { - self.addDynamicSouce(); -}); - -var x = self; -var y = this; - -var test = ''; -if (true) { - test = this -} - -var itemid = this.items[i].getAttribute('itemid'); - -for (var x = this; y < 10; y++) { - var x = this + 1; -} \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/AssignThisUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/AssignThisUnitTest.php deleted file mode 100755 index 0a745bf040..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/AssignThisUnitTest.php +++ /dev/null @@ -1,76 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: AssignThisUnitTest.php 253717 2008-02-25 03:25:05Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the AssignThis sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Objects_AssignThisUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='AssignThisUnitTest.js') - { - if ($testFile !== 'AssignThisUnitTest.js') { - return array(); - } - - return array( - 7 => 1, - 11 => 1, - 16 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.js deleted file mode 100755 index 791ff2bea3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.js +++ /dev/null @@ -1,186 +0,0 @@ -SampleWidgetType.prototype = { - - create: function(callback) - { - if (x === 1) { - return; - } - - if (y === 1) { - callback.call(this); - // A comment here to explain the return is okay. - return; - } - - if (a === 1) { - // Cant return value even after calling callback. - callback.call(this); - return something; - } - - if (a === 1) { - // Need to pass self or this to callback function. - callback.call(a); - } - - callback.call(self); - - var self = this; - this.createChildren(null, function() { - callback.call(self, div); - }); - - // Never good to return a vaue. - return something; - - callback.call(self); - } - -}; - -AnotherSampleWidgetType.prototype = { - - create: function(input) - { - return; - } - - getSomething: function(input) - { - return 1; - } - -}; - - -NoCreateWidgetType.prototype = { - - getSomething: function(input) - { - return; - } - -}; - - -SomeRandom.prototype = { - - create: function(input) - { - return; - } - -}; - -SampleWidgetType.prototype = { - - create: function(callback) - { - if (a === 1) { - // This is ok because it is the last statement, - // even though it is conditional. - callback.call(self); - } - - } - -}; - -SampleWidgetType.prototype = { - - create: function(callback) - { - var something = callback; - - } - -}; - -SampleWidgetType.prototype = { - - create: function(callback) - { - // Also valid because we are passing the callback to - // someone else to call. - if (y === 1) { - this.something(callback); - return; - } - - this.init(callback); - - } - -}; - -SampleWidgetType.prototype = { - - create: function(callback) - { - // Also valid because we are passing the callback to - // someone else to call. - if (y === 1) { - this.something(callback); - } - - this.init(callback); - - } - -}; - -SampleWidgetType.prototype = { - - create: function(callback) - { - if (a === 1) { - // This is ok because it is the last statement, - // even though it is conditional. - this.something(callback); - } - - } - -}; - - -SampleWidgetType.prototype = { - - create: function(callback) - { - if (dfx.isFn(callback) === true) { - callback.call(this, cont); - return; - } - } - -}; - - -SampleWidgetType.prototype = { - - create: function(callback) - { - dfx.foreach(items, function(item) { - return true; - }); - - if (dfx.isFn(callback) === true) { - callback.call(this); - } - } - -}; - -SampleWidgetType.prototype = { - - create: function(callback) - { - var self = this; - this.createChildren(null, function() { - callback.call(self, div); - return; - }); - } - -}; \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php deleted file mode 100755 index 834673065a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: CreateWidgetTypeCallbackUnitTest.php 287794 2009-08-27 06:08:58Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the CreateWidgetTypeCallback sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Objects_CreateWidgetTypeCallbackUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js') - { - if ($testFile !== 'CreateWidgetTypeCallbackUnitTest.js') { - return array(); - } - - return array( - 18 => 1, - 23 => 2, - 26 => 1, - 30 => 1, - 34 => 1, - 43 => 2, - 91 => 1, - 123 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.inc deleted file mode 100755 index acf9baf7ea..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php deleted file mode 100755 index 7f3032cf58..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php +++ /dev/null @@ -1,68 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowNewWidgetUnitTest.php 253718 2008-02-25 03:48:52Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowNewWidget sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Objects_DisallowNewWidgetUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc deleted file mode 100755 index 992a7dc19c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc +++ /dev/null @@ -1,26 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php deleted file mode 100755 index ad1bafc010..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: EvalObjectFactoryUnitTest.php 238112 2007-06-20 05:52:41Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the EvalObjectFactory sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_PHP_EvalObjectFactoryUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 4 => 1, - 12 => 1, - 21 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.inc deleted file mode 100755 index 7999763f2a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.inc +++ /dev/null @@ -1,30 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php deleted file mode 100755 index 7bba1d69d3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php +++ /dev/null @@ -1,74 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: GetRequestDataUnitTest.php 292098 2009-12-14 00:36:04Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the GetRequestData sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_PHP_GetRequestDataUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 5 => 1, - 8 => 1, - 21 => 1, - 26 => 1, - 27 => 1, - 28 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.inc deleted file mode 100755 index f9148a782c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.inc +++ /dev/null @@ -1,9 +0,0 @@ -myFunction(); -return $obj->variable; -return MyClass::VARIABLE; -return $variable; -return ($var + 1); -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php deleted file mode 100755 index 2dc8942cae..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ReturnFunctionValueUnitTest.php 238195 2007-06-21 06:58:38Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ReturnFunctionValue sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_PHP_ReturnFunctionValueUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 2 => 1, - 3 => 1, - 4 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Strings/JoinStringsUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Strings/JoinStringsUnitTest.js deleted file mode 100755 index 9d5ac285e1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Strings/JoinStringsUnitTest.js +++ /dev/null @@ -1,15 +0,0 @@ -one = (1 + 2); -two = (one + 2); -two = (one + one); -three = ('1' + 2); - -four = ['1', two].join(); -four = ['1', two].join(''); -four = ['1', [one, two].join(',')].join(' '); -four = ['1', [one, two].join()].join(' '); -four = ['1', [one, two].join()].join(); - -five = 'string' + ['1', [one, two].join()].join() + 'string'; - -six = myArray.join(' '); -six = [arrayOne, arrayTwo].join(); \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php deleted file mode 100755 index 5bef094456..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php +++ /dev/null @@ -1,80 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: JoinStringsUnitTest.php 267645 2008-10-23 03:13:59Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the JoinStrings sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer_MySource - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class MySource_Tests_Strings_JoinStringsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='JoinStringsUnitTest.js') - { - if ($testFile !== 'JoinStringsUnitTest.js') { - return array(); - } - - return array( - 6 => 1, - 7 => 1, - 8 => 2, - 9 => 2, - 10 => 2, - 12 => 2, - 15 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.inc deleted file mode 100755 index 982d375f6e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.inc +++ /dev/null @@ -1,63 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php deleted file mode 100755 index 6c250d5a44..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php +++ /dev/null @@ -1,76 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClassDeclarationUnitTest.php 247622 2007-12-04 23:23:33Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ClassDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Classes_ClassDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 21 => 1, - 22 => 1, - 23 => 1, - 27 => 1, - 33 => 1, - 38 => 1, - 49 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc deleted file mode 100755 index 605c01c528..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc +++ /dev/null @@ -1,110 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.0 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Extra_Description_Newlines -{ - -}//end class - - -/** - * Sample class comment - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Missing_Newlines_Before_Tags -{ - -}//end class - - -/** - * Simple class comment - * - * @category _wrong_category - * @package PHP_CodeSniffer - * @package ADDITIONAL PACKAGE TAG - * @subpackage SUBPACKAGE TAG - * @author Original Author - * @author Rayn Ong rong@squiz.net - * @author - * @copyright 1997~1994 The PHP Group - * @license http://www.php.net/license/3_0.txt - * @version INVALID VERSION CONTENT - * @see - * @see - * @link sdfsdf - * @see Net_Sample::Net_Sample() - * @see Net_Other - * @deprecated asd - * @unknown Unknown tag - * @since Class available since Release 1.2.0 - */ -class Checking_Tags -{ - class Sub_Class { - - }//end class - - -}//end class - - -/** - * - * - */ -class Empty_Class_Doc -{ - -}//end class - - -/** - * - * - */ -interface Empty_Interface_Doc -{ - -}//end interface -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php deleted file mode 100755 index 740d411e3f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php +++ /dev/null @@ -1,91 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClassCommentUnitTest.php 252358 2008-02-06 02:54:57Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for ClassCommentSniff. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Commenting_ClassCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 15 => 1, - 22 => 1, - 25 => 1, - 28 => 1, - 46 => 1, - 51 => 1, - 63 => 1, - 65 => 2, - 66 => 1, - 68 => 2, - 69 => 1, - 70 => 1, - 71 => 1, - 73 => 2, - 74 => 1, - 76 => 1, - 77 => 1, - 78 => 1, - 84 => 1, - 92 => 1, - 102 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 70 => 1, - 72 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.inc deleted file mode 100755 index 89a75abbd6..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.inc +++ /dev/null @@ -1,48 +0,0 @@ - -* @author Rayn Ong rong@squiz.net -* @author -* @copyright 1997~1994 The PHP Group -* @copyright 1997~1994 The PHP Group -* @license http://www.php.net/license/3_0.txt -* @see -* @see -* @version INVALID VERSION CONTENT -* @see Net_Sample::Net_Sample() -* @see Net_Other -* @deprecated asd -* @since Class available since Release 1.2.0 -* @summary An unknown summary tag -*/ -?> - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php deleted file mode 100755 index e61990360e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php +++ /dev/null @@ -1,98 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FileCommentUnitTest.php 245567 2007-11-05 03:00:12Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for FunctionCommentSniff. - * - * Verifies that : - *
    - *
  • A doc comment exists.
  • - *
  • Short description must start with a capital letter and end with a period.
  • - *
  • There must be one blank newline after the short description.
  • - *
  • A PHP version is specified.
  • - *
  • Check the order of the tags.
  • - *
  • Check the indentation of each tag.
  • - *
  • Check required and optional tags and the format of their content.
  • - *
- * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Commenting_FileCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 6 => 1, - 8 => 1, - 21 => 2, - 23 => 2, - 24 => 1, - 26 => 2, - 27 => 1, - 28 => 1, - 29 => 1, - 30 => 1, - 31 => 2, - 32 => 1, - 34 => 1, - 35 => 1, - 36 => 1, - 39 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 28 => 1, - 29 => 1, - 33 => 1, - 39 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc deleted file mode 100755 index a68434f334..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc +++ /dev/null @@ -1,254 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php deleted file mode 100755 index e1477200c6..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php +++ /dev/null @@ -1,92 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionCommentUnitTest.php 245695 2007-11-06 09:14:05Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for FunctionCommentSniff. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Commenting_FunctionCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 10 => 1, - 12 => 2, - 13 => 2, - 14 => 1, - 15 => 1, - 28 => 1, - 35 => 1, - 38 => 1, - 41 => 1, - 53 => 1, - 103 => 1, - 109 => 1, - 112 => 1, - 122 => 1, - 123 => 3, - 124 => 3, - 125 => 5, - 126 => 6, - 139 => 1, - 155 => 1, - 165 => 1, - 172 => 1, - 183 => 1, - 193 => 2, - 204 => 1, - 234 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc deleted file mode 100755 index f4572e97ce..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc +++ /dev/null @@ -1,27 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php deleted file mode 100755 index b9eb891471..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php +++ /dev/null @@ -1,72 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: InlineCommentUnitTest.php 224870 2006-12-12 02:57:38Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the InlineComment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Commenting_InlineCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 15 => 1, - 24 => 1, - 25 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc deleted file mode 100755 index 20e9077cee..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc +++ /dev/null @@ -1,155 +0,0 @@ - 0); - -do -{ - echo $i; -} while ($i > 0); - -do -{ - echo $i; -} -while ($i > 0); - -do { echo $i; } while ($i > 0); - -do{ - echo $i; -}while($i > 0); - - -// while -while ($i < 1) { - echo $i; -} - -while($i < 1){ - echo $i; -} - -while ($i < 1) { echo $i; } - - -// for -for ($i = 1; $i < 1; $i++) { - echo $i; -} - -for($i = 1; $i < 1; $i++){ - echo $i; -} - -for ($i = 1; $i < 1; $i++) { echo $i; } - - -// foreach -foreach ($items as $item) { - echo $item; -} - -foreach($items as $item){ - echo $item; -} - -for ($items as $item) { echo $item; } - - -// if -if ($i == 0) { - $i = 1; -} - -if($i == 0){ - $i = 1; -} - -if ($i == 0) { $i = 1; } - - -// else -if ($i == 0) { - $i = 1; -} else { - $i = 0; -} - -if ($i == 0) { - $i = 1; -}else{ - $i = 0; -} - -if ($i == 0) { $i = 1; } else { $i = 0; } - - -// else -if ($i == 0) { - $i = 1; -} else { - $i = 0; -} - -if ($i == 0) { - $i = 1; -}else{ - $i = 0; -} - -if ($i == 0) { $i = 1; } else { $i = 0; } - - -// else if -if ($i == 0) { - $i = 1; -} else if ($i == 2) { - $i = 0; -} - -if ($i == 0) { - $i = 1; -} elseif ($i == 2) { - $i = 0; -} - -if ($i == 0) { - $i = 1; -}else if($i == 2){ - $i = 0; -} - -if ($i == 0) { - $i = 1; -}elseif($i == 2){ - $i = 0; -} - -if ($i == 0) { $i = 1; } else if ($i == 2) { $i = 0; } -if ($i == 0) { $i = 1; } elseif ($1 == 2) { $i = 0; } - -if ($i == 0) { // this is ok because comments are allowed - $i = 1; -} - -if ($i == 0) {// this is ok because comments are allowed - $i = 1; -} - -if ($i == 0) { /* this is ok because comments are allowed*/ - $i = 1; -} - -if ($i == 0) -{ // this is not ok - $i = 1; -} - -if ($i == 0) /* this is ok */ { -} - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php deleted file mode 100755 index ccc4fe758c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php +++ /dev/null @@ -1,90 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ControlSignatureUnitTest.php 226877 2007-01-10 03:14:44Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ControlSignature sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_ControlStructures_ControlSignatureUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 9 => 1, - 14 => 1, - 20 => 1, - 22 => 1, - 32 => 1, - 36 => 1, - 44 => 1, - 48 => 1, - 56 => 1, - 60 => 1, - 68 => 1, - 72 => 1, - 84 => 1, - 88 => 2, - 100 => 1, - 104 => 2, - 122 => 2, - 128 => 1, - 132 => 3, - 133 => 2, - 147 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc deleted file mode 100755 index f247a13a72..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc +++ /dev/null @@ -1,124 +0,0 @@ - -

some text

- \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php deleted file mode 100755 index 6e32806f5c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php +++ /dev/null @@ -1,85 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: MultiLineConditionUnitTest.php 289839 2009-10-21 23:11:33Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the MultiLineCondition sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_ControlStructures_MultiLineConditionUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 22 => 1, - 35 => 1, - 40 => 1, - 41 => 1, - 42 => 1, - 43 => 1, - 49 => 1, - 54 => 1, - 58 => 1, - 59 => 1, - 61 => 1, - 88 => 1, - 89 => 1, - 90 => 1, - 96 => 2, - 109 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc deleted file mode 100755 index ec3f398d2f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc +++ /dev/null @@ -1,98 +0,0 @@ - -
-Some content goes here.
-
-
- -
-    Some content goes here.
-    
-    
- diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php deleted file mode 100755 index b9d2260750..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php +++ /dev/null @@ -1,85 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: IncludingFileUnitTest.php 226877 2007-01-10 03:14:44Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the IncludingFile sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Files_IncludingFileUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 5 => 1, - 11 => 1, - 12 => 1, - 16 => 1, - 17 => 1, - 33 => 1, - 34 => 1, - 47 => 1, - 48 => 1, - 64 => 1, - 65 => 1, - 73 => 1, - 74 => 1, - 85 => 1, - 86 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.inc deleted file mode 100755 index 62253271ee..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.inc +++ /dev/null @@ -1,22 +0,0 @@ -additionalHeaderData[$this->strApplicationName] - = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax')); - -$GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName] - = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax')); - -$GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName] = - $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax')); - -$GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName] - = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax')); -$GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName] = 'boo' - -$var='string'; - -function getInstalledStandards( - $includeGeneric=false, - $standardsDir='' -) { -} -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php deleted file mode 100755 index 40526c4b1e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: MultiLineAssignmentUnitTest.php 269135 2008-11-17 05:59:24Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the MultiLineAssignment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Formatting_MultiLineAssignmentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 6 => 1, - 8 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc deleted file mode 100755 index 2e4427a667..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc +++ /dev/null @@ -1,88 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php deleted file mode 100755 index 6fe6d5f6bc..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php +++ /dev/null @@ -1,84 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionCallSignatureUnitTest.php 300682 2010-06-23 00:42:04Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FunctionCallSignature sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Functions_FunctionCallSignatureUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 5 => 1, - 6 => 1, - 7 => 1, - 8 => 1, - 9 => 2, - 10 => 3, - 17 => 1, - 18 => 1, - 31 => 1, - 34 => 1, - 57 => 1, - 59 => 1, - 63 => 1, - 64 => 1, - 82 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc deleted file mode 100755 index e4b86fdba0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc +++ /dev/null @@ -1,64 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php deleted file mode 100755 index 73e4af9223..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php +++ /dev/null @@ -1,80 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionDeclarationUnitTest.php 290494 2009-11-11 01:00:54Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FunctionDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Functions_FunctionDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 4 => 1, - 5 => 1, - 9 => 1, - 10 => 1, - 11 => 1, - 14 => 1, - 27 => 1, - 44 => 2, - 51 => 1, - 61 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc deleted file mode 100755 index cac748ef48..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc +++ /dev/null @@ -1,86 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php deleted file mode 100755 index 1dcfd042f3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php +++ /dev/null @@ -1,75 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ValidDefaultValueUnitTest.php 225906 2006-12-27 23:19:36Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidDefaultValue sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_Functions_ValidDefaultValueUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 29 => 1, - 34 => 1, - 39 => 1, - 71 => 1, - 76 => 1, - 81 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc deleted file mode 100755 index c6a7fab797..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc +++ /dev/null @@ -1,48 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php deleted file mode 100755 index 0fca214407..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ValidClassNameUnitTest.php 258612 2008-04-28 01:02:28Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidClassName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_NamingConventions_ValidClassNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 5 => 1, - 7 => 2, - 9 => 1, - 19 => 1, - 24 => 1, - 26 => 2, - 28 => 1, - 38 => 1, - 40 => 2, - 42 => 2, - 44 => 1, - 46 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc deleted file mode 100755 index f5c67bc926..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc +++ /dev/null @@ -1,184 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php deleted file mode 100755 index 2debc116e8..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php +++ /dev/null @@ -1,176 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ValidFunctionNameUnitTest.php 251151 2008-01-22 23:50:23Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidFunctionName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_NamingConventions_ValidFunctionNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 11 => 1, - 12 => 1, - 13 => 1, - 14 => 1, - 15 => 1, - 16 => 1, - 17 => 1, - 18 => 1, - 19 => 1, - 20 => 1, - 24 => 1, - 25 => 1, - 26 => 1, - 27 => 1, - 28 => 1, - 29 => 1, - 30 => 1, - 31 => 1, - 32 => 1, - 33 => 1, - 35 => 1, - 36 => 1, - 37 => 1, - 38 => 1, - 39 => 1, - 40 => 1, - 43 => 1, - 44 => 1, - 45 => 1, - 46 => 1, - 50 => 1, - 51 => 1, - 52 => 1, - 53 => 1, - 56 => 1, - 57 => 1, - 58 => 1, - 59 => 1, - 67 => 1, - 68 => 1, - 69 => 1, - 70 => 1, - 71 => 1, - 72 => 1, - 73 => 1, - 74 => 1, - 75 => 1, - 76 => 1, - 80 => 1, - 81 => 1, - 82 => 1, - 83 => 1, - 84 => 1, - 85 => 1, - 86 => 1, - 87 => 1, - 88 => 1, - 89 => 1, - 91 => 1, - 92 => 1, - 93 => 1, - 94 => 1, - 95 => 1, - 96 => 1, - 99 => 1, - 100 => 1, - 101 => 1, - 102 => 1, - 106 => 1, - 107 => 1, - 108 => 1, - 109 => 1, - 112 => 1, - 113 => 1, - 114 => 1, - 115 => 1, - 121 => 1, - 122 => 1, - 123 => 1, - 124 => 1, - 125 => 1, - 126 => 1, - 127 => 1, - 128 => 1, - 129 => 1, - 130 => 1, - 149 => 1, - 150 => 1, - 151 => 1, - 154 => 1, - 155 => 1, - 156 => 1, - 157 => 1, - 158 => 1, - 159 => 1, - 160 => 1, - 161 => 1, - 162 => 1, - 163 => 1, - 164 => 1, - 165 => 1, - 166 => 1, - 168 => 1, - 169 => 1, - 171 => 1, - 172 => 1, - 173 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.inc deleted file mode 100755 index 106667e8f1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.inc +++ /dev/null @@ -1,74 +0,0 @@ -def["POP_{$cc}_A"]}' - and POP_{$cc}_B = -'{$this->def["POP_{$cc}_B"]}')"; - } -} - -class mpgResponse{ - var $term_id; - var $currentTag; - function characterHandler($parser,$data){ - switch($this->currentTag) - { - case "term_id": { - $this->term_id=$data; - break; - } - } - }//end characterHandler -}//end class mpgResponse -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php deleted file mode 100755 index 2b9a5b9c4e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ValidVariableNameUnitTest.php 251886 2008-01-31 22:17:02Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidVariableName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_NamingConventions_ValidVariableNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 12 => 1, - 17 => 1, - 22 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc deleted file mode 100755 index b7436d8521..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc +++ /dev/null @@ -1,40 +0,0 @@ -someFunction("some", "parameter") -->someOtherFunc(23, 42)-> - someOtherFunc2($one, $two) - - ->someOtherFunc3(23, 42) - ->andAThirdFunction(); - - $someObject->someFunction("some", "parameter") - ->someOtherFunc(23, 42); - -$someObject->someFunction("some", "parameter")->someOtherFunc(23, 42); - -$someObject->someFunction("some", "parameter") - ->someOtherFunc(23, 42); - -func( - $bar->foo() -) - ->bar(); - -func( - $bar->foo() -) - ->bar( - $bar->foo() - ->bar() - ->func() - ); - -$object - ->setBar($foo) - ->setFoo($bar); - -if ($bar) { - $object - ->setBar($foo) - ->setFoo($bar); -} -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php deleted file mode 100755 index 8740143966..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ObjectOperatorIndentUnitTest.php 288251 2009-09-10 23:50:52Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ObjectOperatorIndent sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_WhiteSpace_ObjectOperatorIndentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 2, - 6 => 1, - 15 => 1, - 27 => 1, - 37 => 1, - 38 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc deleted file mode 100755 index 97dd1dfc35..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc +++ /dev/null @@ -1,97 +0,0 @@ -{$property} =& new $class_name($this->db_index); - $this->modules[$module] =& $this->{$property}; -} - -foreach ($elements as $element) { - if ($something) { - // Do IF. - } else if ($somethingElse) { - // Do ELSE. - } -} - -switch ($foo) { -case 1: - switch ($bar) { - default: - if ($something) { - echo $string{1}; - } else if ($else) { - switch ($else) { - case 1: - // Do something. - break; - default: - // Do something. - break; - } - } - } -break; -case 2: - // Do something; - break; -} - -switch ($httpResponseCode) { - case 100: - return 'Continue.'; - case 101: - return 'Switching protocols.'; - case 102: - return 'Processing.'; - default: - return 'Unknown'; -} - -switch ($httpResponseCode) { - case 100: - return 'Continue.'; - case 101: - return 'Switching protocols.'; - case 102: - return 'Processing.'; - default: - return 'Unknown'; - break; -} - -switch($i) { -case 1: {} -} -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php deleted file mode 100755 index f1097b6043..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php +++ /dev/null @@ -1,76 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ScopeClosingBraceUnitTest.php 295076 2010-02-15 03:13:51Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ScopeClosingBrace sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_WhiteSpace_ScopeClosingBraceUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 11 => 1, - 13 => 1, - 24 => 1, - 61 => 1, - 65 => 1, - 91 => 1, - 95 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.inc deleted file mode 100755 index 77788eada9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.inc +++ /dev/null @@ -1,315 +0,0 @@ -hello(); // error here - } - - function hello() // error here - { // no error here as brackets can be put anywhere in the pear standard - echo 'hello'; - } - - function hello2() - { - if (TRUE) { // error here - echo 'hello'; // no error here as its more than 4 spaces. - } else { - echo 'bye'; // error here - } - - while (TRUE) { - echo 'hello'; // error here - }// no error here as its handled by another test. - - do { // error here - echo 'hello'; // error here - } while (TRUE); // no error here as its aligned with the do. - }// no error here as its handled by another test. - - function hello3() - { - switch ($hello) { - case 'hello': // no error here as switch statements shouldn't be indented ??? - break; - } - } - -} - -?> -
-
-
-validate()) {
-    $safe = $form->getSubmitValues();
-}
-?>
-
-open(); // error here - } - - public function open() - { - // Some inline stuff that shouldn't error - if (TRUE) echo 'hello'; - foreach ($tokens as $token) echo $token; - } - - /** - * This is a comment 1. - * This is a comment 2. - * This is a comment 3. - * This is a comment 4. - */ - public function close() - { - // All ok. - if (TRUE) { - if (TRUE) { - } else if (FALSE) { - foreach ($tokens as $token) { - switch ($token) { - case '1': - case '2': - if (true) { - if (false) { - if (false) { - if (false) { - echo 'hello'; - } - } - } - } - break; - case '5': - break; - } - do { - while (true) { - foreach ($tokens as $token) { - for ($i = 0; $i < $token; $i++) { - echo 'hello'; - } - } - } - } while (true); - } - } - } - } - - /* - This is another c style comment 1. - This is another c style comment 2. - This is another c style comment 3. - This is another c style comment 4. - This is another c style comment 5. - */ - - /* - * - * - * - */ - - /** - */ - - /* - This comment has a newline in it. - - */ - - public function read() - { - echo 'hello'; - - // no errors below. - $array = array( - 'this', - 'that' => array( - 'hello', - 'hello again' => array( - 'hello', - ), - ), - ); - } -} - -abstract class Test3 -{ - public function parse() - { - - foreach ($t as $ndx => $token) { - if (is_array($token)) { - echo 'here'; - } else { - $ts[] = array("token" => $token, "value" => ''); - - $last = count($ts) - 1; - - switch ($token) { - case '(': - - if ($last >= 3 && - $ts[0]['token'] != T_CLASS && - $ts[$last - 2]['token'] == T_OBJECT_OPERATOR && - $ts[$last - 3]['token'] == T_VARIABLE ) { - - - if (true) { - echo 'hello'; - } - } - array_push($braces, $token); - break; - } - } - } - } -} - -public function test() -{ - $o = << diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php deleted file mode 100755 index 56fc1e8097..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php +++ /dev/null @@ -1,84 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ScopeIndentUnitTest.php 300682 2010-06-23 00:42:04Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ScopeIndent sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class PEAR_Tests_WhiteSpace_ScopeIndentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 1, - 10 => 1, - 17 => 1, - 20 => 1, - 24 => 1, - 27 => 1, - 28 => 1, - 58 => 1, - 123 => 1, - 126 => 1, - 224 => 1, - 225 => 1, - 279 => 1, - 284 => 1, - 311 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc deleted file mode 100755 index 8131b5cfe2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php deleted file mode 100755 index faaf7e4657..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ArrayBracketSpacingUnitTest.php 243868 2007-10-09 03:38:35Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ArrayBracketSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Arrays_ArrayBracketSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 4 => 2, - 5 => 3, - 7 => 3, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.inc deleted file mode 100755 index 4aec26bccb..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.inc +++ /dev/null @@ -1,175 +0,0 @@ - 1, - ); -} - - -class TestClass -{ - public $good = array( - 'width' => '', - 'height' => '', - ); - - private $_bad = Array( - 'width' => '', - 'height' => '' - ); - - - public function test() - { - $truck = array( - 'width' => '', - 'height' => '', - ); - - $plane = Array( - 'width' => '', - 'height' => '', - ); - - $car = array( - 'width' => '', - 'height' => '', - ); - - $bus = array( - 'width' => '', - 'height' => '' - ); - - $train = array ( - TRUE, - FALSE, - 'aaa' - ); - - $inline = array('aaa', 'bbb', 'ccc'); - $inline = array('aaa'); - $inline = Array('aaa'); - - $bigone = array( - 'name' => 'bigone', - 'children' => Array( - '1a' => 'child', - '11b' => 'child', - '111c' => 'child', - 'children' => Array( - 'child' => 'aaa', - ), - ), - 'short_name' => 'big' - ); - } - -}//end class - -$value = array ( ); -$value = array( ); -$value = array('1'=>$one, '2' => $two, '3'=> $three, '4' =>$four); -$value = array('1'=>$one); - -if (in_array('1', array('1','2','3')) === TRUE) { - $value = in_array('1', array('1' , '2', '3','4')); -} - -$value = array( - '1'=> TRUE, - FALSE, - '3' => 'aaa',); - -$value = array( - '1'=> TRUE, - FALSE, - ); - -$value = array( - TRUE, - '1' => FALSE, - ); - -$value = array(1, - 2 , - 3 , - ); - -$value = array(1 => $one, - 2 => $two , - 3 => $three , - ); - -$value = array( - 'tag' => $tag, - 'space' => $this->_getIndentation($tag, $tagElement), - ); - -$expected = array( - array( - '1' => 1, - '1' => 2, - ), - ); - -$expected = array( - array( - '1' => 1, - '1' => 2 - ) - ); - -// Space in second arg. -$args = array( - '"'.$this->id.'"', - (int) $hasSessions, - ); - -// No errors. -$paths = array( - Init::ROOT_DIR.'/Systems' => 'Systems', - Init::ROOT_DIR.'/Installer' => 'Systems', - ); - -$x = array( - ); - -$x = array('test' - ); -$x = array('test', - ); -$x = array('name' => 'test', - ); - -$x = array( - $x, - ); - -$func = array( - $x, - 'get'.$x.'Replacement' - ); - -$array = array( - 'input_one' => 'one', - 'inputTwo' => 'two', - 'input_3' => 3, - ); - -$array = array( - 'input_one', - 'inputTwo', - 'input_3', - ); - -// Malformed -$foo = array(1 -, 2); -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php deleted file mode 100755 index a4ce91810d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php +++ /dev/null @@ -1,118 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ArrayDeclarationUnitTest.php 287724 2009-08-26 02:56:44Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ArrayDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Arrays_ArrayDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 2, - 9 => 2, - 22 => 1, - 23 => 1, - 24 => 1, - 25 => 1, - 31 => 1, - 35 => 1, - 36 => 1, - 41 => 1, - 46 => 1, - 47 => 1, - 50 => 1, - 51 => 1, - 53 => 1, - 56 => 1, - 58 => 1, - 61 => 1, - 62 => 1, - 63 => 1, - 64 => 1, - 65 => 1, - 66 => 3, - 70 => 1, - 76 => 2, - 77 => 1, - 78 => 7, - 79 => 2, - 81 => 2, - 82 => 4, - 87 => 1, - 88 => 1, - 92 => 1, - 97 => 1, - 100 => 1, - 101 => 1, - 102 => 1, - 105 => 1, - 106 => 1, - 107 => 1, - 125 => 1, - 126 => 1, - 141 => 1, - 144 => 1, - 146 => 1, - 148 => 1, - 151 => 1, - 157 => 1, - 174 => 3, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.css deleted file mode 100755 index 9a189cc303..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.css +++ /dev/null @@ -1,30 +0,0 @@ -.my-style { -} - - -.my-style { -} - -/* Comment */ - -.my-style { -} - - -/* Comment */ - -.my-style { - float: left; - -} - -.AssetLineageWidgetType-item { - color: #CCC; -} - -/*.AssetLineageWidgetType-item2 .selected, -.AssetLineageWidgetType-item .selected { -}*/ - -.AssetLineageWidgetType-item.selected { -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.php deleted file mode 100755 index 65507fe462..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClassDefinitionClosingBraceSpaceUnitTest.php 268066 2008-10-31 05:36:54Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ClassDefinitionClosingBraceSpace sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_ClassDefinitionClosingBraceSpaceUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 11 => 1, - 19 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.css deleted file mode 100755 index 275c7f550f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.css +++ /dev/null @@ -1,44 +0,0 @@ -.AssetListingEditWidgetType-BottomPanel select, -#EditEditingModeWidgetType-assetEditor-filters-assetTypes-addNew { - float: left; -} - -.AssetListingEditWidgetType-BottomPanel select, - -#EditEditingModeWidgetType-assetEditor-filters-assetTypes-addNew { - float: left; -} - -.AssetListingEditWidgetType-BottomPanel select, -/*.AssetListingEditWidgetType-BottomPanel ul,*/ -#EditEditingModeWidgetType-assetEditor-filters-assetTypes-addNew { - float: left; -} - -.AssetListingEditWidgetType-BottomPanel select, - -.AssetListingEditWidgetType-BottomPanel ul, -#EditEditingModeWidgetType-assetEditor-filters-assetTypes-addNew { - float: left; -} - -#SuperUsersSystemConfigScreen-table { - display: block; - left: 50%; - margin-left: -500px; - margin-top: 180px; - position: relative; - width: 1000px; -} - -td.TableWidgetType-header.TableWidgetType-header-lastLogin, -td.TableWidgetType-header.TableWidgetType-header-remove, -td.TableWidgetType-header.TableWidgetType-header-email, -td.TableWidgetType-header.TableWidgetType-header-userName { - background: url(images/ScreenImages/table_header_bg.png) repeat-x; - border-top: 1px solid #D4D4D4; - color: #787878; - height: 33px; - padding-left: 12px; - width: 150px; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.php deleted file mode 100755 index 84cbc227b5..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClassDefinitionNameSpacingUnitTest.php 268691 2008-11-10 02:52:25Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ClassDefinitionNameSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_ClassDefinitionNameSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 1, - 19 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.css deleted file mode 100755 index bfc8ca606c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.css +++ /dev/null @@ -1,16 +0,0 @@ -.HelpWidgetType-new-bug-title { - float: left; -} -.HelpWidgetType-new-bug-title { - float: left; -} -.HelpWidgetType-new-bug-title { - float: left; -} -.HelpWidgetType-new-bug-title{ - float: left; -} -.HelpWidgetType-new-bug-title { - - float: left; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.php deleted file mode 100755 index df5991c84d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClassDefinitionOpeningBraceSpaceUnitTest.php 268066 2008-10-31 05:36:54Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ClassDefinitionOpeningBraceSpace sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_ClassDefinitionOpeningBraceSpaceUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 7 => 1, - 10 => 1, - 13 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.css deleted file mode 100755 index 8bf9a82e2e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.css +++ /dev/null @@ -1,23 +0,0 @@ -body { -font-family: Arial, Helvetica, sans-serif; -margin : 40px 0 0 0; -padding : 0; -background: #8FB7DB url(diag_lines_bg.gif) top left; -margin-top: -10px; -margin-bottom: -0px; -} - -.TableWidgetType .recover:hover { - background-color: #FFF; -} - -#clearCache-settings:rootNodes-list_0 { - border-top: none; -} - -.LookupEditScreenWidgetType-urls a, .LookupEditScreenWidgetType-urls a:visited { - text-decoration: none; - color: #444; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.php deleted file mode 100755 index 3439664f32..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ColonSpacingUnitTest.php 267953 2008-10-29 02:52:32Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ColonSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_ColonSpacingUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 4 => 2, - 5 => 1, - 6 => 1, - 8 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.css deleted file mode 100755 index f60bb0c3db..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.css +++ /dev/null @@ -1,7 +0,0 @@ -#title-bar-bottom-right { - background-color: #333333; - padding: 10px; - border-bottom: 1px dotted #F0F0F0; - border-top: 1px dotted #FF00FF; - background: #8fb7db url(diag_lines_bg.gif) top left; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.php deleted file mode 100755 index 4b30809c8f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ColourDefinitionUnitTest.php 267911 2008-10-28 05:17:23Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ColourDefinition sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_ColourDefinitionUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 5 => 1, - 6 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.css deleted file mode 100755 index 4952a386ba..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.css +++ /dev/null @@ -1,6 +0,0 @@ -.SettingsTabPaneWidgetType-tab-mid { - background: transparent url(tab_inact_mid.png) repeat-x; - height: 100%;float: left; - line-height: -25px; - cursor: pointer; margin: 10px; float: right; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.php deleted file mode 100755 index 19f0576090..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.php +++ /dev/null @@ -1,68 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowMultipleStyleDefinitionsUnitTest.php 268250 2008-11-04 03:05:00Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowMultipleStyleDefinitions sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_DisallowMultipleStyleDefinitionsUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 5 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.css deleted file mode 100755 index 91ee7ef5ed..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.css +++ /dev/null @@ -1,33 +0,0 @@ -.AssetLineageWidgetType-item { - color: #FFF; -} - -.AssetLineageWidgetType-title { - color: #CCC; -} - -.AssetLineageWidgetType-item { - color: #CCC; -} - -.AssetLineageWidgetType-item .selected { -} - -.AssetLineageWidgetType-item.selected { -} - -#Blah .AssetLineageWidgetType-item { -} - -#X.selected, -.AssetLineageWidgetType-item { -} - -.MyClass, .YourClass { -} - -.YourClass, .MyClass { -} - -.YourClass, .MyClass, .OurClass { -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.php deleted file mode 100755 index 3c5eb4f10c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DuplicateClassDefinitionUnitTest.php 270954 2008-12-10 22:29:13Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DuplicateClassDefinition sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_DuplicateClassDefinitionUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 9 => 1, - 29 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.css deleted file mode 100755 index 6665d67a89..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.css +++ /dev/null @@ -1,8 +0,0 @@ -.ViperSubToolbar-wrapper { - height: 34px; - left: 0; - position: fixed; - top: 60px; - z-index: 997; - left: 50%; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.php deleted file mode 100755 index 5dd57defa9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.php +++ /dev/null @@ -1,68 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DuplicateClassDefinitionUnitTest.php 270954 2008-12-10 22:29:13Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DuplicateStyleDefinition sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_DuplicateStyleDefinitionUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.css deleted file mode 100755 index 801dcda119..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.css +++ /dev/null @@ -1,15 +0,0 @@ -.HelpWidgetType-new-bug-title {} -.HelpWidgetType-new-bug-title { -} -.HelpWidgetType-new-bug-title { - -} -.HelpWidgetType-new-bug-title { - -} -.HelpWidgetType-new-bug-title { - /* Nothing to see here */ -} -.HelpWidgetType-new-bug-title { - float: left; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.php deleted file mode 100755 index 9715969fc9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: EmptyClassDefinitionUnitTest.php 267996 2008-10-30 05:21:34Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the EmptyClassDefinition sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_EmptyClassDefinitionUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 1 => 1, - 2 => 1, - 4 => 1, - 7 => 1, - 10 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.css deleted file mode 100755 index 88699a85e6..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.css +++ /dev/null @@ -1,5 +0,0 @@ -#MetadataAdminScreen-addField-fieldType { - margin-left: 10px; - margin-right: - float: ; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.php deleted file mode 100755 index c9c3b16465..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.php +++ /dev/null @@ -1,68 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: EmptyStyleDefinitionUnitTest.php 267954 2008-10-29 03:13:02Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the EmptyStyleDefinition sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_EmptyStyleDefinitionUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 4 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/IndentationUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/IndentationUnitTest.css deleted file mode 100755 index 80158d171a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/IndentationUnitTest.css +++ /dev/null @@ -1,23 +0,0 @@ -body { - - font-family: Arial, Helvetica, sans-serif; - margin: 40px 0 0 0; -padding: 0; - background: #8FB7DB url(diag_lines_bg.gif) top left; - -} - -td { - margin: 40px; - - padding: 20px; -} - -/* -#AdminScreenModeWidgetType-tab_pane-containers .TabPaneWidgetType-tab-selected-left { - background: transparent url(images/ScreenImages/tab_on_left.png) no-repeat; -} -#AdminScreenModeWidgetType-tab_pane-containers .TabPaneWidgetType-tab-selected-right { - background: transparent url(images/ScreenImages/tab_on_right.png) no-repeat; -} -*/ diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/IndentationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/IndentationUnitTest.php deleted file mode 100755 index 3c87a4410b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/IndentationUnitTest.php +++ /dev/null @@ -1,72 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: IndentationUnitTest.php 268171 2008-11-03 04:58:13Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the Indentation sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_IndentationUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 3 => 1, - 5 => 1, - 6 => 1, - 7 => 1, - 12 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.css deleted file mode 100755 index 79df88c0aa..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.css +++ /dev/null @@ -1,6 +0,0 @@ -.SettingsTabPaneWidgetType-tab-mid { - font-family: Arial; - Font-Family: arial; - background-color: #DA9393; - BACKGROUND-IMAGE: URL(Warning_Close.png); -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.php deleted file mode 100755 index da2daa0f5e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LowercaseStyleDefinitionUnitTest.php 268459 2008-11-07 03:18:48Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LowercaseStyleDefinition sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_LowercaseStyleDefinitionUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 3 => 1, - 5 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/MissingColonUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/MissingColonUnitTest.css deleted file mode 100755 index 129aab64ae..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/MissingColonUnitTest.css +++ /dev/null @@ -1,7 +0,0 @@ -.my-style { - margin-right 15px; - float: left; - margin-left 15px; - margin-top: 15px; - margin-bottom 15px; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/MissingColonUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/MissingColonUnitTest.php deleted file mode 100755 index 0ff996c671..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/MissingColonUnitTest.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: MissingColonUnitTest.php 268461 2008-11-07 05:15:47Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the MissingColon sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_MissingColonUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 4 => 1, - 6 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/OpacityUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/OpacityUnitTest.css deleted file mode 100755 index 2b85360bf2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/OpacityUnitTest.css +++ /dev/null @@ -1,12 +0,0 @@ -.my-style { - opacity: 0; - opacity: 0.0; - opacity: 1; - opacity: 1.0; - opacity: 1.5; - opacity: .5; - opacity: 0.5; - opacity: 2; - opacity: -1; - opacity: 0.55; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/OpacityUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/OpacityUnitTest.php deleted file mode 100755 index b644c202c4..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/OpacityUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: OpacityUnitTest.php 268457 2008-11-07 00:32:51Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the Opacity sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_OpacityUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 5 => 1, - 6 => 1, - 7 => 1, - 9 => 1, - 10 => 1, - 11 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.css deleted file mode 100755 index 75ccfad0bb..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.css +++ /dev/null @@ -1,20 +0,0 @@ -.HelpWidgetType-new-bug-title { - width: 308px - float: left; -} - -#MetadataAdminScreen-addField-add { - float: left ; -} - -.TableWidgetType .recover:hover { - background-color: #FFF; -} - -#clearCache-settings:rootNodes-list_0 { - border-top: none; -} - -.HelpWidgetType-list { - list-style-image: url(); -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.php deleted file mode 100755 index 7e55930f37..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.php +++ /dev/null @@ -1,68 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: SemicolonSpacingUnitTest.php 267989 2008-10-30 00:09:15Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the SemicolonSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CSS_SemicolonSpacingUnitTest extends AbstractSniffUnitTest -{ - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 7 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc deleted file mode 100755 index 4220c79c34..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc +++ /dev/null @@ -1,96 +0,0 @@ - - - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClassDeclarationUnitTest.php 247874 2007-12-10 03:30:14Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ClassDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Classes_ClassDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 10 => 1, - 15 => 2, - 18 => 1, - 22 => 3, - 23 => 3, - 24 => 3, - 27 => 2, - 28 => 1, - 30 => 2, - 34 => 1, - 35 => 1, - 39 => 1, - 42 => 2, - 45 => 1, - 48 => 1, - 50 => 2, - 55 => 1, - 59 => 4, - 63 => 1, - 65 => 1, - 69 => 2, - 74 => 2, - 77 => 1, - 80 => 1, - 85 => 1, - 88 => 1, - 93 => 1, - 96 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc deleted file mode 100755 index d0e089cdb8..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc +++ /dev/null @@ -1,21 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php deleted file mode 100755 index c790af017f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php +++ /dev/null @@ -1,76 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClassFileNameUnitTest.php 225273 2006-12-19 05:51:12Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ClassFileName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Classes_ClassFileNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 9 => 1, - 10 => 1, - 11 => 1, - 15 => 1, - 16 => 1, - 17 => 1, - 18 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.js deleted file mode 100755 index 04126f86ab..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.js +++ /dev/null @@ -1,45 +0,0 @@ -var x = { - abc: 1, - zyz: 2, - abc: 5, - mno: { - abc: 4 - }, - abc: 5 - - this.request({ - action: 'getSubmissions' - }); - - this.request({ - action: 'deleteSubmission' - }); -} - - -LinkingEditScreenWidgetType.prototype = { - - _addDeleteButtonEvent: function(parentid) - { - var params = { - screen: 'LinkingEditScreenWidget', - assetid: self.assetid, - parentid: parentid, - assetid: parentid, - op: 'deleteLink' - }; - - }, - - saveDesignEdit: function() - { - var params = { - screen: [this.id, 'Widget'].join(''), - assetid: this.assetid, - changes: dfx.jsonEncode(this.currnetLinksWdgt.getChanges()), - op: 'saveLinkEdit' - }; - - } - -}; \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.php deleted file mode 100755 index e73265acc0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DuplicatePropertyUnitTest.php 265815 2008-09-02 06:16:50Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DuplicateProperty sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Classes_DuplicatePropertyUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 8 => 1, - 28 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc deleted file mode 100755 index f67f143dd8..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php deleted file mode 100755 index 5952eb5a32..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php +++ /dev/null @@ -1,74 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LowercaseClassKeywordsUnitTest.php 238614 2007-06-26 03:30:00Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LowercaseClassKeywords sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Classes_LowercaseClassKeywordsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 3, - 3 => 3, - 4 => 1, - 8 => 1, - 9 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc deleted file mode 100755 index c7eeaa54de..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc +++ /dev/null @@ -1,48 +0,0 @@ -testResults; - - - // Correct call to self. - $testResults[] = self::selfMemberReferenceUnitTestFunction(); - $testResults[] = parent::selfMemberReferenceUnitTestFunction(); - - // Incorrect case. - $testResults[] = Self::selfMemberReferenceUnitTestFunction(); - $testResults[] = SELF::selfMemberReferenceUnitTestFunction(); - $testResults[] = SelfMemberReferenceUnitTestExample::selfMemberReferenceUnitTestFunction(); - - - // Incorrect spacing. - $testResults[] = self ::selfMemberReferenceUnitTestFunction(); - $testResults[] = self:: selfMemberReferenceUnitTestFunction(); - $testResults[] = self :: selfMemberReferenceUnitTestFunction(); - - } - - - function selfMemberReferenceUnitTestFunction() - { - $this->testCount = $this->testCount + 1; - return $this->testCount; - - } - - -} - - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php deleted file mode 100755 index 8e3ac2ef70..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php +++ /dev/null @@ -1,75 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: SelfMemberReferenceUnitTest.php 226228 2007-01-02 03:46:54Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the SelfMemberReference sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Classes_SelfMemberReferenceUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 24 => 1, - 25 => 1, - 26 => 1, - 30 => 1, - 31 => 1, - 32 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.inc deleted file mode 100755 index 55fdb396d8..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.inc +++ /dev/null @@ -1,35 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php deleted file mode 100755 index 8e0732cc7e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php +++ /dev/null @@ -1,76 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ValidClassNameUnitTest.php 292396 2009-12-21 02:50:28Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidClassName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Classes_ValidClassNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 9 => 1, - 10 => 1, - 14 => 1, - 15 => 1, - 20 => 1, - 30 => 1, - 32 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CodeAnalysis/EmptyStatementUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CodeAnalysis/EmptyStatementUnitTest.inc deleted file mode 100755 index 94976fe182..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/CodeAnalysis/EmptyStatementUnitTest.inc +++ /dev/null @@ -1,57 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the EmptyStatement sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_CodeAnalysis_EmptyStatementUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 15 => 1, - 17 => 1, - 19 => 1, - 30 => 1, - 35 => 1, - 41 => 1, - 47 => 1, - 52 => 1, - 55 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc deleted file mode 100755 index 03453adfa4..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc +++ /dev/null @@ -1,132 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php deleted file mode 100755 index c10f24ed8f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php +++ /dev/null @@ -1,95 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: BlockCommentUnitTest.php 252414 2008-02-06 22:37:22Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the BlockComment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_BlockCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 8 => 1, - 19 => 1, - 20 => 1, - 24 => 1, - 30 => 1, - 31 => 1, - 34 => 1, - 40 => 1, - 45 => 1, - 49 => 1, - 51 => 1, - 53 => 1, - 57 => 1, - 60 => 1, - 61 => 1, - 63 => 1, - 65 => 1, - 68 => 1, - 70 => 1, - 75 => 1, - 84 => 1, - 85 => 2, - 86 => 1, - 87 => 1, - 89 => 1, - 92 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc deleted file mode 100755 index 9031cd6ed6..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc +++ /dev/null @@ -1,133 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php deleted file mode 100755 index 6d3c3d6d1c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php +++ /dev/null @@ -1,88 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClassCommentUnitTest.php 302088 2010-08-11 01:52:10Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for ClassCommentSniff. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_ClassCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 15 => 1, - 22 => 1, - 25 => 1, - 28 => 1, - 49 => 1, - 55 => 1, - 64 => 2, - 77 => 1, - 88 => 1, - 97 => 1, - 99 => 1, - 108 => 1, - 110 => 1, - 118 => 1, - 128 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 30 => 1, - 31 => 1, - 51 => 1, - 68 => 1, - 69 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc deleted file mode 100755 index 9868a5bbf5..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc +++ /dev/null @@ -1,77 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php deleted file mode 100755 index 7007a6c974..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php +++ /dev/null @@ -1,78 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClosingDeclarationCommentUnitTest.php 259290 2008-05-08 03:58:12Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ClosingDeclarationComment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_ClosingDeclarationCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 13 => 1, - 17 => 1, - 31 => 1, - 41 => 1, - 59 => 1, - 63 => 1, - 67 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 71 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc deleted file mode 100755 index 69b42d6402..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc +++ /dev/null @@ -1,52 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php deleted file mode 100755 index 1d9e6da6c1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DocCommentAlignmentUnitTest.php 250474 2008-01-12 13:47:32Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DocCommentAlignment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_DocCommentAlignmentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 11 => 1, - 17 => 1, - 18 => 1, - 19 => 1, - 23 => 1, - 24 => 1, - 25 => 2, - 26 => 1, - 32 => 1, - 33 => 1, - 38 => 1, - 39 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc deleted file mode 100755 index cde6e462fb..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc +++ /dev/null @@ -1,55 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php deleted file mode 100755 index c71d34d3b3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php +++ /dev/null @@ -1,75 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: EmptyCatchCommentUnitTest.php 225257 2006-12-18 23:39:25Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the EmptyCatchComment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_EmptyCatchCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 13 => 1, - 33 => 1, - 49 => 1, - 50 => 1, - 51 => 1, - 52 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.inc deleted file mode 100755 index 8fcd6155fb..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.inc +++ /dev/null @@ -1,39 +0,0 @@ - -* @author -* @copyright 1997~1994 The PHP Group -* @license http://www.php.net/license/3_0.txt -* @summary An unknown summary tag -* -*/ -?> - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.js deleted file mode 100755 index 9777c03a36..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.js +++ /dev/null @@ -1,38 +0,0 @@ - - - - -/** -* -* 0Multi-line short description without full stop -* -* -* asdasd -* long description for file (if any) -* asdasdadada -* -* PHP versio -* -* LICENSE: This source file is subject to version 3.0 of the PHP license -* that is available through the world-wide-web at the following URI: -* http://www.php.net/license/3_0.txt. If you did not receive a copy of -* the PHP License and are unable to obtain it through the web, please -* send a note to license@php.net so we can mail you a copy immediately. -* @package PHP_CodeSniffer -* @package ADDITIONAL PACKAGE TAG -* @subpackage not_camelcased -* @author Antônio Carlos Venâncio Júnior -* @author -* @copyright 1997~1994 The PHP Group -* @license http://www.php.net/license/3_0.txt -* @summary An unknown summary tag -* -*/ - - -/** -* This bit here is not qualified as file comment -* -* as it is not the first comment in the file -* -*/ diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php deleted file mode 100755 index fd32d765d6..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php +++ /dev/null @@ -1,90 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FileCommentUnitTest.php 302756 2010-08-25 05:12:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for FileCommentSniff. - * - * Verifies that : - *
    - *
  • A doc comment exists.
  • - *
  • Short description must start with a capital letter and end with a period.
  • - *
  • There must be one blank newline after the short description.
  • - *
  • A PHP version is specified.
  • - *
  • Check the order of the tags.
  • - *
  • Check the indentation of each tag.
  • - *
  • Check required and optional tags and the format of their content.
  • - *
- * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_FileCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 1 => 1, - 6 => 3, - 8 => 1, - 10 => 1, - 21 => 1, - 22 => 2, - 23 => 1, - 24 => 2, - 26 => 1, - 27 => 2, - 30 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 28 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.inc deleted file mode 100755 index de3810f22d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.inc +++ /dev/null @@ -1,169 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php deleted file mode 100755 index 0a9708d505..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionCommentThrowTagUnitTest.php 247209 2007-11-27 23:49:02Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for FunctionCommentThrowTagSniff. - * - * Verifies that : - *
    - *
  • A @throws tag exists for a function that throws exceptions.
  • - *
  • The number of @throws tags and the number of throw tokens matches.
  • - *
  • The exception type in comment matches the token.
  • - *
- * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_FunctionCommentThrowTagUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 9 => 1, - 21 => 1, - 35 => 1, - 46 => 1, - 59 => 1, - 60 => 1, - 106 => 1, - 123 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc deleted file mode 100755 index 5e3a0bc323..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc +++ /dev/null @@ -1,505 +0,0 @@ -MyClass) - */ -public function caseSensitive($a1, $a2, $a3, arRay $a4, $a5, $a6, myclas $a7) -{ - -}//end caseSensitive() - - -/** - * More type hint check for custom type and array. - * - * @param array $a1 Comment here. - * @param array $a2 Comment here. - * @param MyClass $a3 Comment here. - * @param MyClass $a4 Comment here. - * - * @return array(int => MyClass) - */ -public function typeHint(MyClass $a1, $a2, myclass $a3, $a4) -{ - return (3 => 'myclass obj'); - -}//end typeHint() - - -/** - * Mixed variable type separated by a '|'. - * - * @param array|string $a1 Comment here. - * @param mixed $a2 Comment here. - * @param string|array $a3 Comment here. - * @param MyClass|int $a4 Comment here. - * - * @return bool - */ -public function mixedType($a1, $a2, $a3, $a4) -{ - return true; - -}//end mixedType() - - -/** - * Array type. - * - * @param array(MyClass) $a1 OK. - * @param array() $a2 Invalid type. - * @param array( $a3 Typo. - * @param array(int) $a4 Use 'array(integer)' instead. - * @param array(int => integer) $a5 Use 'array(integer => integer)' instead. - * @param array(integer => bool) $a6 Use 'array(integer => boolean)' instead. - * @param aRRay $a7 Use 'array' instead. - * @param string $a8 String with unknown type hint. - * - * @return int - */ -public function mixedArrayType($a1, $a2, array $a3, $a4, $a5, $a6, $a7, unknownTypeHint $a8) -{ - return 1; - -}//end mixedArrayType() - - -/** - */ -function empty1() -{ -}//end empty1() - - -/** - * - */ -function empty2() -{ -}//end empty2() - - -/** - * - * - * - */ -function empty3() -{ -}//end empty3 - - -/** - * @return boolean - */ -public function missingShortDescriptionInFunctionComment() -{ - return true; - -}//end missingShortDescriptionInFunctionComment() - - -class Another_Class -{ - - /** - * Destructor should not include a return tag. - * - * @return void - */ - function __destruct() - { - return; - } - - /** - * Constructor should not include a return tag. - * - * @return void - */ - function __construct() - { - return; - } - -}//end class - - -/** - * Comment param alignment test. - * - * @param string $varrr1 Comment1.. - * @param string $vr2 Comment2. - * @param string $var3 Comment3.. - * - * @return void - */ -public static function paramAlign($varrr1, $vr2, $var3) -{ - -}//end paramAlign() - - -/** - * Comment. - * - * @param string $id Comment. - * @param array $design Comment. - * - * @return void - */ -public static function paint($id, array $design) -{ - -}//end paint() - - -/** - * Adds specified class name to class attribute of this widget. - * - * @since 4.0.0 - * @return string - */ -public function myFunction() -{ - if ($condition === FALSE) { - echo 'hi'; - } - -}//end myFunction() - - -/** - * Adds specified class name to class attribute of this widget. - * - * @return string - */ -public function myFunction() -{ - if ($condition === FALSE) { - echo 'hi'; - return; - } - - return 'blah'; - -}//end myFunction() - - -/** - * Adds specified class name to class attribute of this widget. - * - * @return string - */ -public function myFunction() -{ - if ($condition === FALSE) { - echo 'hi'; - } - - return 'blah'; - -}//end myFunction() - -/** - * Test function. - * - * @param string $arg1 An argument - * - * @access public - * @return bool - */ - -echo $blah; - -function myFunction($arg1) {} - -class MyClass() { - /** - * An abstract function. - * - * @return array(string) - */ - abstract final protected function myFunction(); -} - -/** - * Comment. - * - * @param mixed $test An argument. - * - * @return mixed - */ -function test($test) -{ - if ($test === TRUE) { - return; - } - - return $test; - -}//end test() - - -/** Comment. - * - * @return mixed - * - */ -function test() -{ - -}//end test() - -/** - * Comment. - * - * @param \other\namespace\item $test An argument. - * - * @return mixed - */ -function test(\other\namespace\item $test) -{ - return $test; - -}//end test() - -/** - * Comment. - * - * @param item $test An argument. - * - * @return mixed - */ -function test(\other\namespace\item $test) -{ - return $test; - -}//end test() -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php deleted file mode 100755 index 47417eb8be..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php +++ /dev/null @@ -1,143 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionCommentUnitTest.php 302989 2010-09-02 04:09:16Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for FunctionCommentSniff. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_FunctionCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 6 => 1, - 8 => 1, - 10 => 4, - 12 => 3, - 13 => 3, - 14 => 1, - 15 => 1, - 28 => 1, - 35 => 3, - 38 => 1, - 40 => 1, - 41 => 1, - 43 => 1, - 52 => 1, - 53 => 1, - 103 => 1, - 109 => 1, - 110 => 1, - 112 => 2, - 122 => 1, - 123 => 4, - 124 => 3, - 125 => 5, - 126 => 6, - 137 => 3, - 138 => 2, - 139 => 3, - 143 => 2, - 155 => 2, - 158 => 1, - 166 => 1, - 173 => 1, - 180 => 1, - 183 => 1, - 193 => 4, - 195 => 1, - 196 => 1, - 199 => 2, - 210 => 1, - 211 => 1, - 222 => 1, - 223 => 1, - 224 => 1, - 225 => 1, - 226 => 1, - 227 => 1, - 230 => 2, - 232 => 1, - 246 => 1, - 248 => 4, - 261 => 1, - 263 => 1, - 276 => 1, - 277 => 1, - 278 => 1, - 279 => 1, - 280 => 1, - 281 => 1, - 284 => 1, - 286 => 2, - 293 => 1, - 300 => 1, - 308 => 1, - 318 => 1, - 334 => 1, - 344 => 1, - 358 => 1, - 359 => 1, - 373 => 2, - 387 => 1, - 407 => 1, - 441 => 1, - 470 => 1, - 474 => 1, - 500 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 198 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc deleted file mode 100755 index 6717599851..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc +++ /dev/null @@ -1,80 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.js deleted file mode 100755 index b34e224cc2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.js +++ /dev/null @@ -1,99 +0,0 @@ -// Some content here. -var code = 'hello'; - -// This comment contains # multiple -// hash signs (#). -code = 'hello'; - -/** - * This is the first line of a function comment. - * This is the second line. - */ -function testFunction() -{ - // Callback methods which are added by external objects. - this.callbacks = {}; - -}//end testFunction() - -/** - * This is the first line of a class comment. - * This is the second line. - */ -myClass.prototype = { - - /** - * This is the first line of a method comment. - * This is the second line. - */ - load: function(url, callback) - { - // Some code here. - - } -}; - -// some code goes here! - -/* - A longer comment goes here. - It spans multiple lines!! - Or does it? -*/ - -// 0This is a simple multi-line -// comment! -code = 'hello'; - -//This is not valid. -code = 'hello'; - -// Neither is this! -code = 'hello'; - -// -code = 'hello'; - -/** Neither is this! **/ -code = 'hello'; - -/** - * This is the first line of a function comment. - * This is the second line. - */ -var myFunction = function() { -} - -/** - * This is the first line of a function comment. - * This is the second line. - */ -myFunction = function() { -} - -/** - * This is the first line of a function comment. - * This is the second line. - */ -myClass.myFunction = function() { -} - -dfx.getIframeDocument = function(iframe) -{ - return doc; - -};//end dfx.getIframeDocument() - -mig.Gallery.prototype = { - - init: function(cb) - { - - },//end init() - - imageClicked: function(id) - { - - }//end imageClicked() - -}; \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php deleted file mode 100755 index 87f3a7293d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php +++ /dev/null @@ -1,100 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: InlineCommentUnitTest.php 288252 2009-09-11 01:50:05Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the InlineComment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_InlineCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='InlineCommentUnitTest.inc') - { - switch ($testFile) { - case 'InlineCommentUnitTest.inc': - return array( - 17 => 1, - 27 => 1, - 28 => 1, - 32 => 2, - 36 => 1, - 44 => 2, - 54 => 1, - 58 => 1, - 61 => 1, - 64 => 2, - 67 => 1, - ); - break; - case 'InlineCommentUnitTest.js': - return array( - 31 => 1, - 36 => 2, - 44 => 1, - 48 => 1, - 51 => 1, - 54 => 2, - 57 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc deleted file mode 100755 index d5133a89a7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc +++ /dev/null @@ -1,696 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.js deleted file mode 100755 index 1eebb8486c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.js +++ /dev/null @@ -1,444 +0,0 @@ -function long_function() -{ - if (longFunction) { - // This is a long - // IF statement - // that does - // not have - // and ELSE - // block on it - variable = 'hello'; - - if (variable === 'hello') { - // This is a short - // IF statement - } - - if (variable === 'hello') { - // This is a short - // IF statement - } else { - // This is a short ELSE - // statement - } - }//end if - - if (longFunction) { - // This is a long - // IF statement - // that does - // not have - // and ELSE - // block on it - variable = 'hello'; - - if (variable === 'hello') { - // This is a short - // IF statement - } - - if (variable === 'hello') { - // This is a short - // IF statement - } else { - // This is a short ELSE - // statement - } - } - - if (longFunction) { - // This is a long - // IF statement - // that does - // not have - // and ELSE - // block on it - variable = 'hello'; - - if (variable === 'hello') { - // This is a short - // IF statement - } - - if (variable === 'hello') { - // This is a short - // IF statement - } else { - // This is a short ELSE - // statement - } - } else { - // Short ELSE - }//end if - - if (longFunction) { - // This is a long - // IF statement - // that does - // not have - // and ELSE - // block on it - variable = 'hello'; - - if (variable === 'hello') { - // This is a short - // IF statement - } - - if (variable === 'hello') { - // This is a short - // IF statement - } else { - // This is a short ELSE - // statement - } - } else { - // Short ELSE - } -} - -for (variable=1; variable < 20; variable++) { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - // Line 10 - // Line 11 - // Line 12 - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -}//end for - -for (variable=1; variable < 20; variable++) { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - for (val =1; val < 20; val++) { - // Short for. - } - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -} - -while (variable < 20) { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - // Line 10 - // Line 11 - // Line 12 - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -}//end while - -while (variable < 20) { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - while (something) { - // Short while. - } - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -} - -if (longFunction) { - // This is a long - // IF statement - // that does - // not have - // and ELSE - // block on it - variable = 'hello'; - - if (variable === 'hello') { - // This is a short - // IF statement - } - - if (variable === 'hello') { - // This is a short - // IF statement - } else { - // This is a short ELSE - // statement - } -} //end if - -if (longFunction) { - // This is a long - // IF statement - // that does - // not have - // and ELSE - // block on it - variable = 'hello'; - - if (variable === 'hello') { - // This is a short - // IF statement - } - - if (variable === 'hello') { - // This is a short - // IF statement - } else { - // This is a short ELSE - // statement - } -} else { - // Short ELSE -} //end if - -for (variable=1; variable < 20; variable++) { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - // Line 10 - // Line 11 - // Line 12 - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -} //end for - -while (variable < 20) { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - // Line 10 - // Line 11 - // Line 12 - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -} //end while - -while (variable < 20) { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - // Line 10 - // Line 11 - // Line 12 - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -}//end for - -if (true) { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - // Line 10 - // Line 11 - // Line 12 - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -} else if (condition) { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - // Line 10 - // Line 11 - // Line 12 - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -} else { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - // Line 10 - // Line 11 - // Line 12 - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -}//end if - -if (something) { - // Line 1 - // Line 2 -} else if (somethingElse) { - // Line 1 - // Line 2 -} else { - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - // Line 6 - // Line 7 - // Line 8 - // Line 9 - // Line 10 - // Line 11 - // Line 12 - // Line 13 - // Line 14 - // Line 15 - // Line 16 - // Line 17 - // Line 18 - // Line 19 - // Line 20 -} - -switch (something) { - case '1': - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - break; - case '2': - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - break; - case '3': - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - break; - case '4': - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - break; - case '5': - // Line 1 - // Line 2 - // Line 3 - // Line 4 - // Line 5 - break; -} - -// Wrong comment -if (condition) { - condition = true; -}//end foreach \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php deleted file mode 100755 index 564d38b391..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php +++ /dev/null @@ -1,114 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LongConditionClosingCommentUnitTest.php 301223 2010-07-13 01:41:39Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LongConditionClosingComment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_LongConditionClosingCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='LongConditionClosingCommentUnitTest.inc') - { - switch ($testFile) { - case 'LongConditionClosingCommentUnitTest.inc': - return array( - 49 => 1, - 99 => 1, - 146 => 1, - 192 => 1, - 215 => 1, - 238 => 1, - 261 => 1, - 286 => 1, - 309 => 1, - 332 => 1, - 355 => 1, - 378 => 1, - 493 => 1, - 531 => 1, - 536 => 1, - 540 => 1, - 562 => 1, - 601 => 1, - 629 => 1, - 663 => 1, - ); - break; - case 'LongConditionClosingCommentUnitTest.js': - return array( - 47 => 1, - 97 => 1, - 144 => 1, - 190 => 1, - 213 => 1, - 238 => 1, - 261 => 1, - 284 => 1, - 307 => 1, - 401 => 1, - 439 => 1, - 444 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc deleted file mode 100755 index a731ccf2df..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc +++ /dev/null @@ -1,22 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.js deleted file mode 100755 index 65537236a4..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.js +++ /dev/null @@ -1,30 +0,0 @@ -function test(id, buttons) // cool function -{ - alert('hello'); - alert('hello again'); // And again. - // Valid comment. - -}//end test() - -var good = true; // Indeed. - -mig.Gallery.prototype = { - - init: function(cb) - { - - },//end init() - - imageClicked: function(id) - { - - }//end imageClicked() - -}; - -dfx.getIframeDocument = function(iframe) -{ - - return doc; - -};//end dfx.getIframeDocument() \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php deleted file mode 100755 index eeadcde3d0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php +++ /dev/null @@ -1,88 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: PostStatementCommentUnitTest.php 265199 2008-08-21 04:47:42Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the PostStatementComment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_PostStatementCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='PostStatementCommentUnitTest.inc') - { - switch ($testFile) { - case 'PostStatementCommentUnitTest.inc': - return array( - 6 => 1, - 10 => 1, - 18 => 1, - ); - break; - case 'PostStatementCommentUnitTest.js': - return array( - 1 => 1, - 4 => 1, - 9 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc deleted file mode 100755 index a13e29bf81..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc +++ /dev/null @@ -1,189 +0,0 @@ - $content) { - echo $content; - } - - return $var1; - - }//end checkVariable() - - - /** - * - * - */ - $emptyVarDoc = ''; - - /** - * Var type checking (int v.s. integer). - * - * @var int - */ - private $_varSimpleTypeCheck; - - - /** - * Var type checking (array(int => string) v.s. array(int => string)). - * - * @var array(int => string) - */ - private $_varArrayTypeCheck; - - - /** - * Var type checking (STRING v.s. string). - * - * @var STRING - */ - private $_varCaseTypeCheck; - - - /** - * @var integer - */ - private $_varWithNoShortComment; - - protected $noComment2 = ''; - - -}//end class - - -/** - * VariableCommentUnitTest2. - * - * Long description goes here. - * - */ -class VariableCommentUnitTest2 -{ - - public $hello; - - /** Comment starts here. - * - * @var string - * - */ - private $_varCaseTypeCheck; - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php deleted file mode 100755 index a74bd0f46b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php +++ /dev/null @@ -1,96 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: VariableCommentUnitTest.php 302088 2010-08-11 01:52:10Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for VariableCommentSniff. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Commenting_VariableCommentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 6 => 1, - 8 => 1, - 21 => 1, - 24 => 1, - 28 => 1, - 38 => 1, - 41 => 1, - 53 => 1, - 56 => 1, - 63 => 1, - 64 => 1, - 69 => 2, - 73 => 1, - 81 => 1, - 82 => 1, - 84 => 1, - 90 => 1, - 92 => 1, - 128 => 1, - 137 => 1, - 145 => 1, - 153 => 1, - 158 => 1, - 159 => 1, - 163 => 1, - 178 => 1, - 180 => 1, - 184 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 93 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc deleted file mode 100755 index ad2f8e854f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc +++ /dev/null @@ -1,155 +0,0 @@ - 0); - -do -{ - echo $i; -} while ($i > 0); - -do -{ - echo $i; -} -while ($i > 0); - -do { echo $i; } while ($i > 0); - -do{ - echo $i; -}while($i > 0); - - -// while -while ($i < 1) { - echo $i; -} - -while($i < 1){ - echo $i; -} - -while ($i < 1) { echo $i; } - - -// for -for ($i = 1; $i < 1; $i++) { - echo $i; -} - -for($i = 1; $i < 1; $i++){ - echo $i; -} - -for ($i = 1; $i < 1; $i++) { echo $i; } - - -// foreach -foreach ($items as $item) { - echo $item; -} - -foreach($items as $item){ - echo $item; -} - -for ($items as $item) { echo $item; } - - -// if -if ($i == 0) { - $i = 1; -} - -if($i == 0){ - $i = 1; -} - -if ($i == 0) { $i = 1; } - - -// else -if ($i == 0) { - $i = 1; -} else { - $i = 0; -} - -if ($i == 0) { - $i = 1; -}else{ - $i = 0; -} - -if ($i == 0) { $i = 1; } else { $i = 0; } - - -// else -if ($i == 0) { - $i = 1; -} else { - $i = 0; -} - -if ($i == 0) { - $i = 1; -}else{ - $i = 0; -} - -if ($i == 0) { $i = 1; } else { $i = 0; } - - -// else if -if ($i == 0) { - $i = 1; -} else if ($i == 2) { - $i = 0; -} - -if ($i == 0) { - $i = 1; -}else if($i == 2){ - $i = 0; -} - -if ($i == 0) { $i = 1; } else if ($i == 2) { $i = 0; } - -if ($i == 0) { // comments are not allowed - $i = 1; -} - -if ($i == 0) {// comments are not allowed - $i = 1; -} - -if ($i == 0) { /* comments are not allowed*/ - $i = 1; -} - -if ($i == 0) -{ // this is not ok - $i = 1; -} - -if ($i == 0) /* this is not ok */ { -} - -try { - $code = 'this'; -} catch (Exception $e) { - // Caught! -} - -try { $code = 'this'; } catch (Exception $e) { - // Caught! -} - -do { echo $i; -} while ($i > 0); - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js deleted file mode 100755 index fcbbb0dfcb..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js +++ /dev/null @@ -1,125 +0,0 @@ -// do ... while -i = 0; -do { - i = 0; -} while (i > 0); - -do -{ - i = 0; -} while (i > 0); - -do -{ - i = 0; -} -while (i > 0); - -do { i = 0; } while (i > 0); - -do{ - i = 0; -}while(i > 0); - -// while -while (i < 1) { - i = 0; -} - -while(i < 1){ - i = 0; -} - -while (i < 1) { i = 0; } - -// for -for (i = 1; i < 1; i++) { - i = 0; -} - -for(i = 1; i < 1; i++){ - i = 0; -} - -for (i = 1; i < 1; i++) { i = 0; } - -// if -if (i == 0) { - i = 1; -} - -if(i == 0){ - i = 1; -} - -if (i == 0) { i = 1; } - -// else -if (i == 0) { - i = 1; -} else { - i = 0; -} - -if (i == 0) { - i = 1; -}else{ - i = 0; -} - -if (i == 0) { i = 1; } else { i = 0; } - -// else -if (i == 0) { - i = 1; -} else { - i = 0; -} - -// else if -if (i == 0) { - i = 1; -} else if (i == 2) { - i = 0; -} - -if (i == 0) { - i = 1; -}else if(i == 2){ - i = 0; -} - -if (i == 0) { i = 1; } else if (i == 2) { i = 0; } - -if (i == 0) { // comments are not allowed - i = 1; -} - -if (i == 0) {// comments are not allowed - i = 1; -} - -if (i == 0) { /* comments are not allowed*/ - i = 1; -} - -if (i == 0) -{ // this is not ok - i = 1; -} - -if (i == 0) /* this is not ok */ { -} - -try { - code = 'this'; -} catch (e) { - // Caught! -} - -try { code = 'this'; } catch (e) { - // Caught! -} - -do { i = 0; -} while (i > 0); \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php deleted file mode 100755 index 4e0e7d1d1a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php +++ /dev/null @@ -1,128 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ControlSignatureUnitTest.php 253132 2008-02-18 03:04:42Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ControlSignature sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_ControlStructures_ControlSignatureUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='ControlSignatureUnitTest.inc') - { - switch ($testFile) { - case 'ControlSignatureUnitTest.inc': - return array( - 9 => 1, - 14 => 1, - 20 => 1, - 22 => 1, - 32 => 1, - 36 => 1, - 44 => 1, - 48 => 1, - 56 => 1, - 60 => 1, - 68 => 1, - 72 => 1, - 84 => 1, - 88 => 2, - 100 => 1, - 104 => 2, - 116 => 2, - 120 => 3, - 122 => 1, - 126 => 1, - 130 => 1, - 134 => 1, - 139 => 1, - 148 => 1, - 152 => 1, - ); - break; - case 'ControlSignatureUnitTest.js': - return array( - 7 => 1, - 12 => 1, - 18 => 1, - 20 => 1, - 29 => 1, - 33 => 1, - 40 => 1, - 44 => 1, - 51 => 1, - 55 => 1, - 66 => 1, - 70 => 2, - 88 => 2, - 92 => 3, - 94 => 1, - 98 => 1, - 102 => 1, - 106 => 1, - 111 => 1, - 120 => 1, - 124 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc deleted file mode 100755 index 18d01ae052..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php deleted file mode 100755 index 09a0a8b75f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ElseIfDeclarationUnitTest.php 226877 2007-01-10 03:14:44Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ElseIfDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_ControlStructures_ElseIfDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 8 => 1, - 13 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc deleted file mode 100755 index 70cf85b517..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc +++ /dev/null @@ -1,24 +0,0 @@ - $that) { -} - -// Invalid. -foreach ( $something as $blah => $that ) { -} - -foreach ($something as $blah => $that) { -} - -foreach ($something as $blah => $that) { -} - -foreach (${something}AS$blah=>$that) { -} - -// The works. -foreach ( $something aS $blah => $that ) { -} - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php deleted file mode 100755 index 43d53b82bb..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php +++ /dev/null @@ -1,74 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ForEachLoopDeclarationUnitTest.php 238600 2007-06-26 01:18:51Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ForEachLoopDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_ControlStructures_ForEachLoopDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 8 => 2, - 11 => 2, - 14 => 2, - 17 => 5, - 21 => 7, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.inc deleted file mode 100755 index 90cf601617..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.inc +++ /dev/null @@ -1,24 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.js deleted file mode 100755 index dbf924b1f5..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.js +++ /dev/null @@ -1,29 +0,0 @@ -// Valid. -for (var i = 0; i < 10; i++) { -} - -// Invalid. -for ( i = 0; i < 10; i++ ) { -} - -for (i = 0; i < 10; i++) { -} - -for (var i = 0 ; i < 10 ; i++) { -} - -for (i = 0;i < 10;i++) { -} - -// The works. -for ( var i = 0 ; i < 10 ; i++ ) { -} - -this.formats = {}; -dfx.inherits('ContentFormat', 'Widget'); - -for (var widgetid in this.loadedContents) { - if (dfx.isset(widget) === true) { - widget.loadAutoSaveCWidgetStore.setData('activeScreen', null);widget.getContents(this.loadedContents[widgetid], function() {self.widgetLoaded(widget.id);}); - } -} \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php deleted file mode 100755 index 48c4aa1490..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php +++ /dev/null @@ -1,92 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ForLoopDeclarationUnitTest.php 253190 2008-02-19 03:36:11Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ForEachLoopDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_ControlStructures_ForLoopDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='ForLoopDeclarationUnitTest.inc') - { - switch ($testFile) { - case 'ForLoopDeclarationUnitTest.inc': - return array( - 8 => 2, - 11 => 2, - 14 => 2, - 17 => 2, - 21 => 6, - ); - break; - case 'ForLoopDeclarationUnitTest.js': - return array( - 6 => 2, - 9 => 2, - 12 => 2, - 15 => 2, - 19 => 6, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc deleted file mode 100755 index 37e5fd2f62..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc +++ /dev/null @@ -1,26 +0,0 @@ -id.'"', - '"'.$this->stepInfo['title'].'"', - '"'.((isset($this->stepInfo['description']) === TRUE) ? $this->stepInfo['description'] : '').'"', - '"'.(isset($this->stepInfo['description']) === TRUE ? $this->stepInfo['description'] : '').'"', - '"'.$this->stepInfo['title'].'"', - ); - -echo (TRUE)?'Hello':'Bye'; - -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php deleted file mode 100755 index 9a6edafd8f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php +++ /dev/null @@ -1,79 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: InlineIfDeclarationUnitTest.php 292097 2009-12-14 00:35:17Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the InlineIfDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_ControlStructures_InlineIfDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 5 => 1, - 6 => 1, - 7 => 1, - 8 => 1, - 9 => 1, - 10 => 1, - 13 => 1, - 20 => 1, - 24 => 4, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.inc deleted file mode 100755 index 4c26db7bcb..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.inc +++ /dev/null @@ -1,23 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php deleted file mode 100755 index 280767d1c1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php +++ /dev/null @@ -1,80 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LowercaseDeclarationUnitTest.php 238599 2007-06-26 01:11:19Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LowercaseDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_ControlStructures_LowercaseDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 5 => 1, - 7 => 1, - 9 => 1, - 10 => 1, - 12 => 1, - 14 => 1, - 15 => 1, - 16 => 1, - 20 => 1, - 21 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc deleted file mode 100755 index 3ad6f45fb8..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc +++ /dev/null @@ -1,229 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.js deleted file mode 100755 index 4e4ca35331..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.js +++ /dev/null @@ -1,228 +0,0 @@ - - -// Valid SWITCH statement. -switch (something) { - case '1': - myvar = '1'; - break; - - case '2': - case '3': - myvar = '5'; - break; - - case '4': - myvar = '4'; - break; - - default: - myvar = null; - break; -} - -// Alignment wrong. -switch (something) { - case '1': - myvar = '1'; - break; - -case '2': - case '3': - myvar = '5'; - break; - -case '4': - myvar = '4'; -break; - - default: - myvar = null; - break; -} - -// Closing brace wrong. -switch (something) { - case '1': - myvar = '1'; - break; - } - -// PEAR style. -switch (something) { -case '1': - myvar = '1'; - break; -case '2': -case '3': - myvar = '5'; - break; -case '4': - myvar = '4'; - break; -default: - myvar = null; - break; -} - -// Valid, but missing BREAKS. -switch (something) { - case '1': - myvar = '1'; - - case '2': - case '3': - myvar = '5'; - - case '4': - myvar = '4'; - - default: - myvar = null; -} - -// Invalid, and missing BREAKS. -switch (something) { - Case '1' : - myvar = '1'; - -case '2': - case '3' : - myvar = '5'; - - case'4': - myvar = '4'; - - Default : - myvar = null; - something = 'hello'; - other = 'hi'; - } - -// Valid -switch (condition) { - case 'string': - varStr = 'test'; - - default: - // Ignore the default. - break; -} - -// No default comment -switch (condition) { - case 'string': - varStr = 'test'; - - default: - break; -} - -// Break problems -switch (condition) { - case 'string': - - - varStr = 'test'; - - break; - - - case 'bool': - varStr = 'test'; - - - break; - default: - - varStr = 'test'; - break; - -} - -switch (var) { - case 'one': - case 'two': - break; - - case 'three': - // Nothing to do. - break; - - case 'four': - echo hi; - break; - - default: - // No default. - break; -} - -switch (var) { - case 'one': - if (blah) { - } - - break; - - default: - // No default. - break; -} - -switch (name) { - case "1": - switch (name2) { - case "1": - return true; - break; - - case "2": - return true; - break; - - default: - // No default. - break; - } - break; - - case "2": -switch (name2) { - case "1": - return true; - break; - - case "2": - return true; - break; - - default: - // No default. - break; -} - break; -} - -switch (name) { - case "1": - switch (name2) { - case "1": - return true; - break; - - default: - // No default. - break; - } - break; - - default: - // No default. - break; -} - -switch (name2) { - default: - // No default. - break; -} \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php deleted file mode 100755 index 1a355b7bea..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php +++ /dev/null @@ -1,103 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: SwitchDeclarationUnitTest.php 270520 2008-12-04 06:07:51Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the SwitchDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_ControlStructures_SwitchDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='SwitchDeclarationUnitTest.inc') - { - return array( - 27 => 1, - 29 => 1, - 34 => 1, - 36 => 1, - 44 => 1, - 48 => 1, - 52 => 1, - 54 => 1, - 55 => 1, - 56 => 1, - 58 => 1, - 59 => 1, - 61 => 1, - 62 => 1, - 79 => 1, - 85 => 2, - 88 => 2, - 89 => 2, - 92 => 1, - 95 => 3, - 99 => 1, - 116 => 1, - 122 => 1, - 127 => 2, - 134 => 2, - 135 => 1, - 138 => 1, - 143 => 1, - 147 => 1, - 165 => 1, - 172 => 1, - 224 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JSLintUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JSLintUnitTest.js deleted file mode 100755 index 797e0eea2a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JSLintUnitTest.js +++ /dev/null @@ -1,2 +0,0 @@ -alert('hi') -alert('hi'); diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JSLintUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JSLintUnitTest.php deleted file mode 100755 index 681f6e1c24..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JSLintUnitTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: JSLintUnitTest.php 268848 2008-11-12 04:44:15Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the JSLint sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Debug_JSLintUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Should this test be skipped for some reason. - * - * @return void - */ - protected function shouldSkipTest() - { - $jslPath = PHP_CodeSniffer::getConfigData('jslint_path'); - return (is_null($jslPath)); - - }//end shouldSkipTest() - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 1 => 2, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.js deleted file mode 100755 index 797e0eea2a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.js +++ /dev/null @@ -1,2 +0,0 @@ -alert('hi') -alert('hi'); diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.php deleted file mode 100755 index d3ecdf8688..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: JavaScriptLintUnitTest.php 256389 2008-03-31 00:52:00Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the JavaScriptLint sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Debug_JavaScriptLintUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Should this test be skipped for some reason. - * - * @return void - */ - protected function shouldSkipTest() - { - $jslPath = PHP_CodeSniffer::getConfigData('jsl_path'); - return (is_null($jslPath)); - - }//end shouldSkipTest() - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 2 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Files/FileExtensionUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Files/FileExtensionUnitTest.inc deleted file mode 100755 index 3279edb54b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Files/FileExtensionUnitTest.inc +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php deleted file mode 100755 index 647442b3c2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FileExtensionUnitTest.php 226221 2007-01-02 00:10:14Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FileExtension sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Files_FileExtensionUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 1 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc deleted file mode 100755 index c61803d346..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc +++ /dev/null @@ -1,133 +0,0 @@ -words[$wordPos-1]) || $this->words[$wordPos-1] !== ' ') { -} else if ($this->tokens[$pos + 1] === "\n") { -} - -if ($pos === count($this->tokens) - 1) { - $file = '...'.substr($file, (($padding * -1) + 3)); -} - -if (substr($basename, -5) !== 'Sniff') { - $i = ($this->_tokens[$i]['parenthesis_closer'] + 1); -} - -$pos = $this->_getShortCommentEndPos(); -if ($pos === -1) { - $stackPtr = ($tokens[$next][$to] - 1); - $stackPtr = ($tokens[$next][$pattern[$i]['to']] + 1); - $var = (($var1 + $var2) + $var3 + $var4) -} - -$commentStart = ($phpcsFile->findPrevious(T_DOC_COMMENT, ($commentEnd - 1), null, true) + 1); -$commentEnd = ($this->_phpcsFile->findNext(T_DOC_COMMENT, ($commentStart + 1), null, true) - 1); -$expected .= '...'.substr($tokens[($stackPtr - 2)]['content'], -5).$tokens[$stackPtr]['content']; - -if (($tokens[$nextToken - 1]['code']) !== T_WHITESPACE) { - $errorPos = ($params[(count($params) - 1)]->getLine() + $commentStart); -} - -while (($nextSpace = $phpcsFile->findNext(T_WHITESPACE, $nextSpace + 1, $nextBreak)) !== false) { -} - -foreach ($attributes as $id => &$attribute) { -} - -class MyClass -{ - - - public function &myFunction(array &$one, array &$two) - { - - }//end myFunction() - - -}//end class - -if ($index < -1) $index = 0; -if ($index < - 1) $index = 0; - -$three = ceil($one / $two); -$three = ceil(($one / $two) / $four); -$three = ceil($one / ($two / $four)); - -$four = -0.25; - -$three = ceil($one[1] / $two); - -switch ($number % 10) { - case 1: - $suffix = 'st'; - break; -} - -$expectedPermission = array( - 'granted' => 4, - 'denied' => 1, - 'cascade' => TRUE, - 'blockergranted' => 2, - 'blockerdenied' => - 3, - 'effective' => TRUE, - ); -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js deleted file mode 100755 index e44fce8e80..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js +++ /dev/null @@ -1,106 +0,0 @@ -value = (one + two); -value = one + two; - -value = (one - two); -value = one - two; - -value = (one * two); -value = one * two; - -value = (one / two); -value = one / two; - -value = (one % two); -value = one % two; - -value = (one + two + three); -value = one + two + three; -value = (one + (two + three)); -value = one + (two + three); - -value++; -value--; -value = -1; -value = - 1; - -value = (1 + 2); -value = 1 + 2; - -value = (1 - 2); -value = 1 - 2; - -value = (1 * 2); -value = 1 * 2; - -value = (1 / 2); -value = 1 / 2; - -value = (1 % 2); -value = 1 % 2; - -value = (1 + 2 + 3); -value = 1 + 2 + 3; -value = (1 + (2 + 3)); -value = 1 + (2 + 3); - -value = one + 2 + 3 - (four * five * (6 + 7)) + nine + 2; -value = myFunction(tokens[stackPtr - 1]); - -for (i = 1 + 2; i < 4 + 5; i++) { -} - -function myFunction() -{ - value = (one + 1) + (two + 2) + (myFunction() + 2); - value = myFunction() + 2; - value = (myFunction(mvar) + myFunction2(mvar)); - return -1; -} - -params['mode'] = id.replace(/WidgetType/, ''); - -if (index < -1) index = 0; -if (index < - 1) index = 0; - -var classN = prvId.replace(/\./g, '-'); - -three = myFunction(one / two); -three = myFunction((one / two) / four); -three = myFunction(one / (two / four)); - -four = -0.25; - -id = id.replace(/row\/:/gi, ''); -return /MSIE/.test(navigator.userAgent); - -var re = new RegExp(/<\/?(\w+)((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>/gim); - -var options = { - minVal: -1, - maxVal: -1 -}; - -stepWidth = Math.round(this.width / 5); - -date.setMonth(d[2] - 1); - -switch (number % 10) { - case 1: - suffix = 'st'; - break; -} - -var pathSplit = ipt.value.split(/\/|\\/); - -if (pairs[i].search(/=/) !== -1) { -} - -if (urlValue.search(/[a-zA-z]+:\/\//) !== 0) { -} - -if (urlValue.search(/[a-zA-z]+:\/\/*/) !== 0) { -} - -if (!value || /^\s*$/.test(value)) { - return true; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php deleted file mode 100755 index daef9ed1a2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php +++ /dev/null @@ -1,121 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: OperatorBracketUnitTest.php 297117 2010-03-30 00:07:44Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the OperatorBracket sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Formatting_OperatorBracketUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='OperatorBracketUnitTest.inc') - { - switch ($testFile) { - case 'OperatorBracketUnitTest.inc': - return array( - 3 => 1, - 6 => 1, - 9 => 1, - 12 => 1, - 15 => 1, - 18 => 2, - 20 => 1, - 25 => 1, - 28 => 1, - 31 => 1, - 34 => 1, - 37 => 1, - 40 => 1, - 43 => 2, - 45 => 1, - 47 => 5, - 48 => 1, - 50 => 2, - 55 => 2, - 56 => 1, - 63 => 2, - 64 => 1, - 67 => 1, - 86 => 1, - 90 => 1, - 109 => 1, - 130 => 1, - ); - break; - case 'OperatorBracketUnitTest.js': - return array( - 5 => 1, - 8 => 1, - 11 => 1, - 14 => 1, - 24 => 1, - 30 => 1, - 33 => 1, - 36 => 1, - 39 => 1, - 46 => 1, - 47 => 1, - 63 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OutputBufferingIndentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OutputBufferingIndentUnitTest.inc deleted file mode 100755 index 7a8273aa94..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OutputBufferingIndentUnitTest.inc +++ /dev/null @@ -1,76 +0,0 @@ -

Sign up for a new account

-
-

Sign up for a new account

- - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OutputBufferingIndentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OutputBufferingIndentUnitTest.php deleted file mode 100755 index 23b52bf39a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Formatting/OutputBufferingIndentUnitTest.php +++ /dev/null @@ -1,77 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: OutputBufferingIndentUnitTest.php 301644 2010-07-28 07:13:47Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the OutputBufferingIndent sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Formatting_OutputBufferingIndentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 10 => 1, - 11 => 1, - 12 => 1, - 24 => 1, - 25 => 1, - 33 => 1, - 34 => 2, - 74 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc deleted file mode 100755 index 770d4e6f81..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc +++ /dev/null @@ -1,34 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php deleted file mode 100755 index b24b77fdf3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php +++ /dev/null @@ -1,80 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionDeclarationArgumentSpacingUnitTest.php 230967 2007-03-01 00:47:47Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FunctionDeclarationArgumentSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Functions_FunctionDeclarationArgumentSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 5 => 2, - 7 => 2, - 8 => 2, - 9 => 2, - 11 => 2, - 13 => 7, - 14 => 2, - 15 => 2, - 16 => 4, - 18 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.inc deleted file mode 100755 index 9f92f040e4..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.inc +++ /dev/null @@ -1,66 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php deleted file mode 100755 index 882f3d198a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionDeclarationUnitTest.php 274897 2009-01-29 23:39:52Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FunctionDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Functions_FunctionDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 55 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.inc deleted file mode 100755 index 27102d057e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php deleted file mode 100755 index 47e9fed1c4..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php +++ /dev/null @@ -1,72 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionDuplicateArgumentUnitTest.php 244439 2007-10-19 07:06:57Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FunctionDuplicateArgument sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Functions_FunctionDuplicateArgumentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 4 => 2, - 5 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.inc deleted file mode 100755 index b7b7f205c7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.inc +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php deleted file mode 100755 index f0556e8771..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: GlobalFunctionUnitTest.php 225905 2006-12-27 23:18:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the GlobalFunction sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Functions_GlobalFunctionUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 2 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.inc deleted file mode 100755 index a44f5ccd78..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.inc +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php deleted file mode 100755 index 0e002094f1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php +++ /dev/null @@ -1,74 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LowercaseFunctionKeywordsUnitTest.php 238606 2007-06-26 01:50:11Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LowercaseFunctionKeywords sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Functions_LowercaseFunctionKeywordsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 3 => 1, - 4 => 1, - 5 => 1, - 6 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc deleted file mode 100755 index 9a4c673d6b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc +++ /dev/null @@ -1,60 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php deleted file mode 100755 index ddcffc9dc2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php +++ /dev/null @@ -1,80 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: MultiLineFunctionDeclarationUnitTest.php 269973 2008-11-28 01:05:37Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the MultiLineFunctionDeclaration sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Functions_MultiLineFunctionDeclarationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 3 => 1, - 4 => 3, - 5 => 1, - 7 => 1, - 11 => 1, - 12 => 1, - 13 => 1, - 16 => 1, - 33 => 1, - 36 => 1, - 43 => 2, - 48 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ConstantCaseUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ConstantCaseUnitTest.inc deleted file mode 100755 index cce640134b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ConstantCaseUnitTest.inc +++ /dev/null @@ -1,50 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ConstantCaseUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ConstantCaseUnitTest.js deleted file mode 100755 index 87cfb820c0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ConstantCaseUnitTest.js +++ /dev/null @@ -1,14 +0,0 @@ -if (variable === true) { } -if (variable === TRUE) { } -if (variable === True) { } -variable = True; - -if (variable === false) { } -if (variable === FALSE) { } -if (variable === False) { } -variable = false; - -if (variable === null) { } -if (variable === NULL) { } -if (variable === Null) { } -variable = NULL; diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ConstantCaseUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ConstantCaseUnitTest.php deleted file mode 100755 index b6bd84ef77..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ConstantCaseUnitTest.php +++ /dev/null @@ -1,102 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ConstantCaseUnitTest.php 253133 2008-02-18 03:04:58Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ConstantCase sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_NamingConventions_ConstantCaseUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='ConstantCaseUnitTest.inc') - { - switch ($testFile) { - case 'ConstantCaseUnitTest.inc': - return array( - 7 => 1, - 10 => 1, - 15 => 1, - 16 => 1, - 23 => 1, - 26 => 1, - 31 => 1, - 32 => 1, - 39 => 1, - 42 => 1, - 47 => 1, - 48 => 1, - ); - break; - case 'ConstantCaseUnitTest.js': - return array( - 2 => 1, - 3 => 1, - 4 => 1, - 7 => 1, - 8 => 1, - 12 => 1, - 13 => 1, - 14 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.inc deleted file mode 100755 index 5db9e95f53..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.inc +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php deleted file mode 100755 index f3ebcc480e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php +++ /dev/null @@ -1,80 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ValidFunctionNameUnitTest.php 238190 2007-06-21 06:30:06Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidFunctionName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_NamingConventions_ValidFunctionNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 5 => 1, - 6 => 1, - 7 => 1, - 8 => 1, - 9 => 1, - 11 => 1, - 12 => 1, - 13 => 1, - 14 => 1, - 16 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.inc deleted file mode 100755 index 6fac0cad19..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.inc +++ /dev/null @@ -1,84 +0,0 @@ -varName2; -echo $this->var_name2; -echo $this->varname2; -echo $this->_varName2; -echo $object->varName2; -echo $object->var_name2; -echo $object_name->varname2; -echo $object_name->_varName2; - -echo $this->myFunction($one, $two); -echo $object->myFunction($one_two); - -$error = "format is \$GLOBALS['$varName']"; - -echo $_SESSION['var_name']; -echo $_FILES['var_name']; -echo $_ENV['var_name']; -echo $_COOKIE['var_name']; - -$XML = 'hello'; -$myXML = 'hello'; -$XMLParser = 'hello'; -$xmlParser = 'hello'; - -echo "{$_SERVER['HOSTNAME']} $var_name"; - -// Need to be the last thing in this test file. -$obj->$classVar = $prefix.'-'.$type; -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php deleted file mode 100755 index bb77ebbc90..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php +++ /dev/null @@ -1,94 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ValidVariableNameUnitTest.php 249068 2007-12-26 21:17:49Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidVariableName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_NamingConventions_ValidVariableNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 5 => 1, - 10 => 1, - 12 => 1, - 15 => 1, - 17 => 1, - 20 => 1, - 22 => 1, - 25 => 1, - 27 => 1, - 31 => 1, - 33 => 1, - 36 => 1, - 38 => 1, - 41 => 1, - 43 => 1, - 52 => 1, - 57 => 1, - 61 => 1, - 62 => 1, - 63 => 1, - 66 => 1, - 75 => 1, - 77 => 1, - 80 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js deleted file mode 100755 index 1bf6aa50cd..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js +++ /dev/null @@ -1,37 +0,0 @@ -function test(id) -{ - - this.id = id; - -} - -test.prototype = { - init: function() - { - var x = {}; - x.name = 'test'; - x['phone'] = 123124324; - var t = ['test', 'this'].join(''); - var y = ['test'].join(''); - var a = x[0]; - var z = x[x['name']]; - var p = x[x.name]; - } - -}; - -function test() { - this.errors['step_' + step] = errors; - this.errors['test'] = x; - this.errors['test' + 10] = x; - this.errors['test' + y] = x; - this.errors['test' + 'blah'] = x; - this.errors[y] = x; - this.errors[y + z] = x; - this.permissions['workflow.cancel'] = x; -} - -if (child.prototype) { - above.prototype['constructor'] = parent; - child.prototype['super'] = new above(); -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.php deleted file mode 100755 index 1308b7ccc1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.php +++ /dev/null @@ -1,77 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowObjectStringIndexUnitTest.php 291906 2009-12-09 02:19:39Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowObjectStringIndex sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Sertan Danis - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Objects_DisallowObjectStringIndexUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='DisallowObjectStringIndexUnitTest.js') - { - if ($testFile !== 'DisallowObjectStringIndexUnitTest.js') { - return array(); - } - - return array( - 13 => 1, - 17 => 1, - 25 => 1, - 35 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.inc deleted file mode 100755 index 5a266e758b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.inc +++ /dev/null @@ -1,11 +0,0 @@ - new MyClass()); -$object->myFunction(new MyClass()); - -throw new MyException($msg); -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php deleted file mode 100755 index 104a3f9349..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ObjectInstantiationUnitTest.php 244306 2007-10-17 03:56:59Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ObjectInstantiation sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Objects_ObjectInstantiationUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 5 => 1, - 8 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.js deleted file mode 100755 index 8adcdd9917..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.js +++ /dev/null @@ -1,39 +0,0 @@ -this.request({ action: 'getTypeFormatContents', }); - -addTypeFormatButton.addClickEvent(function() { - self.addNewTypeFormat(); -}); - -var x = {}; - -var y = { - VarOne : 'If you ask me, thats if you ask', - VarTwo : ['Alonzo played you', 'for a fool', 'esse'], - VarThree: function(arg) { - console.info(1); - } -}; - -var z = { - VarOne : 'If you ask me, thats if you ask', - VarTwo : ['Alonzo played you', 'for a fool', 'esse'], - VarThree: function(arg) { - console.info(1); - }, -}; - -var x = function() { - console.info(2); -}; - -AssetListingEditWidgetType.prototype = { - init: function(data, assetid, editables) - { - } -}; - -AssetListingEditWidgetType.prototype = { - init: function(data, assetid, editables) - { - }, -}; diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.php deleted file mode 100755 index 83362771da..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.php +++ /dev/null @@ -1,76 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ObjectMemberCommaUnitTest.php 253111 2008-02-17 22:26:12Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ObjectMemberComma sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Objects_ObjectMemberCommaUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='ObjectMemberCommaUnitTest.js') - { - if ($testFile !== 'ObjectMemberCommaUnitTest.js') { - return array(); - } - - return array( - 1 => 1, - 22 => 1, - 38 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc deleted file mode 100755 index 361d71989f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc +++ /dev/null @@ -1,81 +0,0 @@ - - - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.js deleted file mode 100755 index e2d8d1cd0e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.js +++ /dev/null @@ -1,38 +0,0 @@ -if (value === TRUE) { -} else if (value === FALSE) { -} - -if (value == TRUE) { -} else if (value == FALSE) { -} - -if (value) { -} else if (!value) { -} - -if (value.isSomething === TRUE) { -} else if (myFunction(value) === FALSE) { -} - -if (value.isSomething == TRUE) { -} else if (myFunction(value) == FALSE) { -} - -if (value.isSomething) { -} else if (!myFunction(value)) { -} - -if (value === TRUE || other === FALSE) { -} - -if (value == TRUE || other == FALSE) { -} - -if (value || !other) { -} - -if (one === TRUE || two === TRUE || three === FALSE || four === TRUE) { -} - -if (one || two || !three || four) { -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php deleted file mode 100755 index af370f4df9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php +++ /dev/null @@ -1,104 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ComparisonOperatorUsageUnitTest.php 267855 2008-10-27 04:29:28Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ComparionOperatorUsage sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Operators_ComparisonOperatorUsageUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='ComparisonOperatorUsageUnitTest.inc') - { - switch ($testFile) { - case 'ComparisonOperatorUsageUnitTest.inc': - return array( - 6 => 1, - 7 => 1, - 10 => 1, - 11 => 1, - 18 => 1, - 19 => 1, - 22 => 1, - 23 => 1, - 29 => 2, - 32 => 2, - 38 => 4, - 47 => 2, - 69 => 1, - 72 => 1, - 75 => 1, - 78 => 1, - 80 => 1, - ); - break; - case 'ComparisonOperatorUsageUnitTest.js': - return array( - 5 => 1, - 6 => 1, - 17 => 1, - 18 => 1, - 28 => 2, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.inc deleted file mode 100755 index 56aca83d53..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.inc +++ /dev/null @@ -1,39 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php deleted file mode 100755 index aa0e22a508..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php +++ /dev/null @@ -1,78 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: IncrementDecrementUsageUnitTest.php 253950 2008-02-28 22:40:50Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the IncrementDecrementUsage sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Operators_IncrementDecrementUsageUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 6 => 1, - 12 => 1, - 16 => 1, - 25 => 1, - 26 => 1, - 27 => 1, - 29 => 1, - 31 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.inc deleted file mode 100755 index 328ccc5d46..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.inc +++ /dev/null @@ -1,28 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php deleted file mode 100755 index 0e1f3a501a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php +++ /dev/null @@ -1,74 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ValidLogicalOperatorsUnitTest.php 290894 2009-11-18 00:24:03Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidLogicalOperators sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Operators_ValidLogicalOperatorsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 5 => 1, - 11 => 1, - 17 => 2, - 23 => 1, - 26 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.css deleted file mode 100755 index 94cc8f27cf..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.css +++ /dev/null @@ -1,23 +0,0 @@ -/* CSS Document */ - -body { -font-family: Arial, Helvetica, sans-serif; -margin : 40px 0 0 0; -padding : 0; -/*background: #8FB7DB url(login_glow_bg.jpg) no-repeat 30% 0;*/ -background: #8FB7DB url(diag_lines_bg.gif) top left; -} - -#login-container { - margin-left: -225px; - margin-top: -161px; - position:absolute; - top :50%; - /*left :50%;*/ - width:450px; -} - -#cacheConfig-dayLabel, #cacheConfig-hourLabel, #cacheConfig-minuteLabel { - float: left; - padding-right: 8px; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.inc deleted file mode 100755 index 2810d85e01..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.inc +++ /dev/null @@ -1,61 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php deleted file mode 100755 index 80f3a228dd..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php +++ /dev/null @@ -1,86 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: CommentedOutCodeUnitTest.php 267907 2008-10-28 04:45:58Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the CommentedOutCode sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_CommentedOutCodeUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList($testFile='CommentedOutCodeUnitTest.inc') - { - switch ($testFile) { - case 'CommentedOutCodeUnitTest.inc': - return array( - 6 => 1, - 8 => 1, - 15 => 1, - 19 => 1, - ); - break; - case 'CommentedOutCodeUnitTest.css': - return array( - 7 => 1, - 16 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.inc deleted file mode 100755 index f778b99726..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.inc +++ /dev/null @@ -1,39 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php deleted file mode 100755 index 379f8f56a3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php +++ /dev/null @@ -1,75 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowMultipleAssignmentsUnitTest.php 244091 2007-10-12 02:19:43Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowComparisonAssignment sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_DisallowComparisonAssignmentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 5 => 1, - 6 => 1, - 7 => 1, - 8 => 1, - 10 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc deleted file mode 100755 index 2704fae1d1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php deleted file mode 100755 index b31381b230..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php +++ /dev/null @@ -1,82 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowInlineIfUnitTest.php 265193 2008-08-21 01:24:08Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowInlineIf sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_DisallowInlineIfUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList($testFile='DisallowInlineIfUnitTest.inc') - { - switch ($testFile) { - case 'DisallowInlineIfUnitTest.inc': - return array( - 8 => 1, - ); - break; - case 'DisallowInlineIfUnitTest.js': - return array( - 1 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.inc deleted file mode 100755 index 001e12e4c4..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.inc +++ /dev/null @@ -1,40 +0,0 @@ -fetch(PDO::FETCH_NUM)) { - $result[$row[0]] = array() - $result[$row[0]][] = $current; - - self::$_inTransaction = TRUE; - $$varName = $varValue; - } - -}//end getVar() - -class myClass -{ - private static $_dbh = NULL; - public $dbh = NULL; - protected $dbh = NULL; -} - -$var = $var2; -list ($a, $b) = explode(',', $c); -$var1 ? $var2 = 0 : $var2 = 1; - -$obj->$classVar = $prefix.'-'.$type; -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php deleted file mode 100755 index 083872009e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php +++ /dev/null @@ -1,75 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowMultipleAssignmentsUnitTest.php 244091 2007-10-12 02:19:43Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowMultipleAssignments sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_DisallowMultipleAssignmentsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 5 => 2, - 7 => 1, - 9 => 1, - 12 => 1, - 14 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.inc deleted file mode 100755 index b421c8c004..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.inc +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.php deleted file mode 100755 index 63460723ac..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowObEndFlushUnitTest.php 225868 2006-12-26 23:44:53Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowObEndFlush sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_DisallowObEndFlushUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 9 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc deleted file mode 100755 index 52bd066ee8..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc +++ /dev/null @@ -1,52 +0,0 @@ -children); $i++) { -} - - - -for ($i = 0; $i < sizeof($array); $i++) { -} - -$num = sizeof($array); - -while ($i < sizeof($array)) { -} - -do { -} while ($i < sizeof($array)); - -for ($i = 0; $i < sizeof($this->children); $i++) { -} - - - - -for ($i = 0; $i < strlen($string); $i++) { -} - -$num = strlen($string); - -while ($i < strlen($string)) { -} - -do { -} while ($i < strlen($string)); - -for ($i = 0; $i < strlen($this->string); $i++) { -} - -for ($i = sizeof($array); $i > 0; $i--) { -} - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.js deleted file mode 100755 index 8f7f7b94f0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.js +++ /dev/null @@ -1,13 +0,0 @@ -for (var i = 0; i < permissions.length; i++) { - // Code here. -} - -var permLen = permissions.length; -for (var length = 0; i < permLen; i++) { - // Code here. -} - -var myArray = [1, 2, 3, 4]; -for (var i = myArray.length; i >= 0; i--) { - var x = i; -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php deleted file mode 100755 index 3758322033..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php +++ /dev/null @@ -1,95 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DisallowSizeFunctionsInLoopsUnitTest.php 264911 2008-08-15 00:37:30Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DisallowSizeFunctionsInLoops sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_DisallowSizeFunctionsInLoopsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='DisallowSizeFunctionsInLoopsUnitTest.inc') - { - switch ($testFile) { - case 'DisallowSizeFunctionsInLoopsUnitTest.inc': - return array( - 2 => 1, - 7 => 1, - 11 => 1, - 13 => 1, - 18 => 1, - 23 => 1, - 27 => 1, - 29 => 1, - 35 => 1, - 40 => 1, - 44 => 1, - 46 => 1, - ); - break; - case 'DisallowSizeFunctionsInLoopsUnitTest.js': - return array( - 1 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.inc deleted file mode 100755 index 370207b94b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.inc +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php deleted file mode 100755 index 22e77b15d9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DiscouragedFunctionsUnitTest.php 265110 2008-08-19 06:36:11Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DiscouragedFunctions sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_DiscouragedFunctionsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 2 => 1, - 3 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc deleted file mode 100755 index e73c0fa2fe..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc +++ /dev/null @@ -1,48 +0,0 @@ - - - -<?php echo $title ?> - - - - - hello - - - - - - - - - - - - - - - - - - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php deleted file mode 100755 index f98aafc4d7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php +++ /dev/null @@ -1,85 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: EmbeddedPhpUnitTest.php 226877 2007-01-10 03:14:44Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the EmbeddedPhp sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_EmbeddedPhpUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 1, - 12 => 1, - 18 => 1, - 19 => 2, - 20 => 1, - 21 => 1, - 22 => 3, - 24 => 1, - 26 => 1, - 29 => 1, - 30 => 1, - 31 => 1, - 34 => 1, - 36 => 1, - 40 => 1, - 41 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EvalUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EvalUnitTest.inc deleted file mode 100755 index ee4c73e5f7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EvalUnitTest.inc +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EvalUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EvalUnitTest.php deleted file mode 100755 index debc438b10..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/EvalUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: EvalUnitTest.php 238022 2007-06-18 23:44:24Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the Eval sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_EvalUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 2 => 1, - 4 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.inc deleted file mode 100755 index a315d92ab6..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.inc +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.php deleted file mode 100755 index bd5cd56a21..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ForbiddenFunctionsUnitTest.php 251093 2008-01-21 21:40:50Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ForbiddenFunctions sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_ForbiddenFunctionsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 3 => 1, - 4 => 1, - 5 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.inc deleted file mode 100755 index 4b2a21094d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.inc +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php deleted file mode 100755 index c83644eaf2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: GlobalKeywordUnitTest.php 225922 2006-12-28 06:03:47Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the GlobalKeyword sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_GlobalKeywordUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 8 => 1, - 9 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/HeredocUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/HeredocUnitTest.inc deleted file mode 100755 index 8994d3f132..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/HeredocUnitTest.inc +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/HeredocUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/HeredocUnitTest.php deleted file mode 100755 index 1019058793..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/HeredocUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: HeredocUnitTest.php 225922 2006-12-28 06:03:47Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the Heredoc sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_HeredocUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.inc deleted file mode 100755 index 533b625955..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.inc +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php deleted file mode 100755 index 70f2dca2f1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: InnerFunctionsUnitTest.php 225922 2006-12-28 06:03:47Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the InnerFunctions sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_InnerFunctionsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 5 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc deleted file mode 100755 index 700e653d16..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc +++ /dev/null @@ -1,34 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php deleted file mode 100755 index f73b511ef5..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php +++ /dev/null @@ -1,89 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LowercasePHPFunctionsUnitTest.php 238615 2007-06-26 03:30:45Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LowercasePHPFunctions sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_LowercasePHPFunctionsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 3 => 1, - 4 => 1, - 5 => 1, - 7 => 1, - 8 => 1, - 9 => 1, - 10 => 1, - 11 => 1, - 12 => 1, - 14 => 1, - 15 => 1, - 18 => 1, - 19 => 1, - 20 => 1, - 21 => 1, - 22 => 1, - 24 => 1, - 27 => 1, - 29 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.inc deleted file mode 100755 index 15b651cc74..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.inc +++ /dev/null @@ -1,112 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php deleted file mode 100755 index 3e8cf4333d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php +++ /dev/null @@ -1,94 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: NonExecutableCodeUnitTest.php 293565 2010-01-15 01:18:35Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the NonExecutableCode sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_PHP_NonExecutableCodeUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 5 => 1, - 11 => 1, - 17 => 1, - 18 => 1, - 19 => 1, - 20 => 1, - 28 => 1, - 32 => 1, - 33 => 1, - 34 => 1, - 35 => 1, - 42 => 1, - 45 => 1, - 54 => 1, - 58 => 1, - 73 => 1, - 83 => 1, - 95 => 1, - 103 => 1, - 104 => 1, - 105 => 1, - 106 => 1, - 107 => 1, - 108 => 1, - 110 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.inc deleted file mode 100755 index 65f87b12e2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.inc +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php deleted file mode 100755 index 115d3934bf..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: MemberVarScopeUnitTest.php 225917 2006-12-28 00:25:43Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the MemberVarScope sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Scope_MemberVarScopeUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.inc deleted file mode 100755 index ca90175a9d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.inc +++ /dev/null @@ -1,21 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php deleted file mode 100755 index 3551ac0bae..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: MethodScopeUnitTest.php 225917 2006-12-28 00:25:43Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the MethodScope sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Scope_MethodScopeUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 6 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc deleted file mode 100755 index c88ca30adc..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc +++ /dev/null @@ -1,28 +0,0 @@ -func2()); - $result = $this->getValue($value); - return $this->setValue($result); - } - - public function func1() - { - $value = 'hello'; - $newValue = array($this->func2()); - $result = $this->getValue($value); - return $this->setValue($result); - } - - function func1() - { - $value = 'hello'; - $newValue = array($this->func2()); - $result = $this->getValue($value); - return $this->setValue($result); - } -} -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php deleted file mode 100755 index ee88aba678..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php +++ /dev/null @@ -1,72 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: StaticThisUsageUnitTest.php 225917 2006-12-28 00:25:43Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the StaticThisUsage sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Scope_StaticThisUsageUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 1, - 8 => 1, - 9 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc deleted file mode 100755 index ed9ac6dddd..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc +++ /dev/null @@ -1,8 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php deleted file mode 100755 index 0ee9cd77ce..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php +++ /dev/null @@ -1,72 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ConcatenationSpacingUnitTest.php 225549 2006-12-22 03:17:00Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ConcatenationSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Strings_ConcatenationSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 5, - 6 => 1, - 7 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc deleted file mode 100755 index a09e95172b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc +++ /dev/null @@ -1,19 +0,0 @@ -"; -$string = "Value: $var[test]"; -$string = "\0"; - -$x = "bar = '$z', -baz = '" . $a . "'...$x"; -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php deleted file mode 100755 index 6c263bcdd7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php +++ /dev/null @@ -1,77 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: DoubleQuoteUsageUnitTest.php 297604 2010-04-07 04:16:23Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the DoubleQuoteUsage sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Strings_DoubleQuoteUsageUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 5 => 1, - 6 => 1, - 8 => 2, - 13 => 1, - 14 => 1, - 17 => 1, - 18 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc deleted file mode 100755 index 32412b59bf..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php deleted file mode 100755 index 8b36e248b3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: EchoedStringsUnitTest.php 225922 2006-12-28 06:03:47Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the EchoedStrings sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_Strings_EchoedStringsUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 5 => 1, - 6 => 1, - 7 => 1, - 8 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.inc deleted file mode 100755 index c0dd255f4e..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.inc +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php deleted file mode 100755 index 8e9fca6c9d..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: CastSpacingUnitTest.php 238836 2007-06-29 01:28:16Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the CastSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_CastSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 4 => 1, - 5 => 1, - 6 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc deleted file mode 100755 index 14c4110bd7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc +++ /dev/null @@ -1,125 +0,0 @@ - - - - - -
- children as $child) { - // There should be no error after this - // foreach, because it is followed by a - // close PHP tag. - } - ?> -
-children as $child) { - echo $child; - -} - -if ($defaultPageDesign === 0 - && $defaultCascade === TRUE - && $defaultChildDesign === 0 -) { - $settingsUpdated = FALSE; -} - -foreach ( $blah as $var ) { - if ( $blah ) { - } -} - -if ( - $defaultPageDesign === 0 - && $defaultCascade === TRUE - && $defaultChildDesign === 0 -) { - $settingsUpdated = FALSE; -} -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js deleted file mode 100755 index 8f8a476964..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js +++ /dev/null @@ -1,86 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php deleted file mode 100755 index ba4a774b73..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php +++ /dev/null @@ -1,107 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ControlStructureSpacingUnitTest.php 291858 2009-12-08 04:27:43Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ControlStructureSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_ControlStructureSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='ControlStructureSpacingUnitTest.inc') - { - switch ($testFile) { - case 'ControlStructureSpacingUnitTest.inc': - return array( - 3 => 1, - 5 => 1, - 8 => 1, - 15 => 1, - 23 => 1, - 74 => 1, - 79 => 1, - 82 => 1, - 83 => 1, - 87 => 1, - 103 => 1, - 113 => 2, - 114 => 2, - 118 => 1, - ); - break; - case 'ControlStructureSpacingUnitTest.js': - return array( - 3 => 1, - 9 => 1, - 15 => 1, - 21 => 1, - 56 => 1, - 61 => 1, - 64 => 1, - 65 => 1, - 68 => 1, - 74 => 2, - 75 => 2, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc deleted file mode 100755 index 5930e94ed0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc +++ /dev/null @@ -1,27 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js deleted file mode 100755 index 2a67e13ad0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js +++ /dev/null @@ -1,106 +0,0 @@ -function FuncOne() -{ - // Code here. - -}//end AdjustModalDialogWidgetType - - -Testing.prototype = { - - doSomething: function() - { - // Code here. - }, - - doSomethingElse: function() - { - // Code here. - - }, -}; - -function FuncFour() -{ - // Code here. -} - -function FuncFive() -{ - // Code here. - - -} - -function valid() -{ - if (true) { - test = { - namespaces: {} - }; - } - -} - -dfx.addEvent(this.rightScroll, 'mousedown', function() { - t = setInterval(function() { - pos -= 10; - }, 30); -}); - -// Valid because function is empty. -if (dfx.isFn(callback) === false) { - callback = function() {}; - callback = function() { }; -} - -AbstractAttributeEditorWidgetType.prototype = { - isActive: function() { - return this.active; - }, - - activate: function(data) - { - var x = { - test: function () { - alert('This is ok'); - - } - }; - - this.active = true; - - } - -}; - -var myFunc = function() -{ - var x = 1; - - blah(function() { - alert(2); - }); - - blah(function() { alert(2); }); - - return x; - -} - -CustomFormEditWidgetType.prototype = { - - addQuestion: function() - { - var settings = { - default: '' - }; - - }, - - addQuestionRulesEvent: function() - { - var self = this; - - } - -}; diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php deleted file mode 100755 index 41225a4c25..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php +++ /dev/null @@ -1,91 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionClosingBraceSpaceUnitTest.php 267848 2008-10-27 02:16:59Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FunctionClosingBraceSpace sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_FunctionClosingBraceSpaceUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='FunctionClosingBraceSpaceUnitTest.inc') - { - switch ($testFile) { - case 'FunctionClosingBraceSpaceUnitTest.inc': - return array( - 10 => 1, - 21 => 1, - ); - break; - case 'FunctionClosingBraceSpaceUnitTest.js': - return array( - 13 => 1, - 25 => 1, - 32 => 1, - 53 => 1, - 59 => 1, - 67 => 1, - 84 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc deleted file mode 100755 index f18116632f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc +++ /dev/null @@ -1,40 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.js deleted file mode 100755 index 156e79cdc2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.js +++ /dev/null @@ -1,112 +0,0 @@ -function FuncOne() -{ - // Code here. - -}//end AdjustModalDialogWidgetType - - -Testing.prototype = { - - doSomething: function() - { - - // Code here. - - }, - - doSomethingElse: function() - { - // Code here. - - }, - - start: function() - { - this.toolbarPlugin.addButton('Image', 'imageEditor', 'Insert/Edit Image', function () { self.editImage() }); - - }, -}; - -function FuncFour() -{ - - - // Code here. -} - -AbstractAttributeEditorWidgetType.prototype = { - isActive: function() { - return this.active; - - }, - - activate: function(data) - { - var x = { - test: function () { - alert('This is ok'); - } - }; - - this.active = true; - - } - -}; - -function test() { - var x = 1; - var y = function() - { - alert(1); - } - - return x; - -} - -var myFunc = function() -{ - var x = 1; - - blah(x, y, function() - { - alert(2); - }, z); - - blah(function() { alert(2); }); - - return x; - -} - -HelpWidgetType.prototype = { - init: function() { - var x = 1; - var y = { - test: function() { - alert(3); - } - } - return x; - - } -} - -CustomFormEditWidgetType.prototype = { - - addQuestion: function() - { - var settings = { - default: '' - }; - - }, - - addQuestionRulesEvent: function() - { - var self = this; - - } - -}; diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php deleted file mode 100755 index bfbbd8c9d1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php +++ /dev/null @@ -1,92 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionOpeningBraceSpaceUnitTest.php 267850 2008-10-27 03:00:03Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FunctionOpeningBraceSpace sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_FunctionOpeningBraceSpaceUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='FunctionOpeningBraceSpaceUnitTest.inc') - { - switch ($testFile) { - case 'FunctionOpeningBraceSpaceUnitTest.inc': - return array( - 10 => 1, - 25 => 1, - ); - break; - case 'FunctionOpeningBraceSpaceUnitTest.js': - return array( - 11 => 1, - 31 => 1, - 38 => 1, - 57 => 1, - 60 => 1, - 73 => 1, - 84 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc deleted file mode 100755 index 6f276996f1..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc +++ /dev/null @@ -1,187 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php deleted file mode 100755 index 27b44b4a70..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php +++ /dev/null @@ -1,86 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: FunctionSpacingUnitTest.php 227480 2007-01-18 03:31:05Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the FunctionSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_FunctionSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 9 => 1, - 18 => 1, - 25 => 1, - 29 => 1, - 35 => 1, - 38 => 1, - 40 => 1, - 55 => 1, - 74 => 1, - 85 => 1, - 87 => 1, - 93 => 2, - 115 => 1, - 134 => 1, - 147 => 2, - 164 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc deleted file mode 100755 index 3fe7eac971..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc +++ /dev/null @@ -1,33 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php deleted file mode 100755 index 1bb3ec8ebe..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php +++ /dev/null @@ -1,84 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: LanguageConstructSpacingUnitTest.php 245680 2007-11-06 01:09:34Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LanguageConstructSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_LanguageConstructSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 4 => 1, - 7 => 1, - 8 => 1, - 11 => 1, - 12 => 1, - 15 => 1, - 16 => 1, - 19 => 1, - 20 => 1, - 23 => 1, - 24 => 1, - 27 => 1, - 31 => 1, - 32 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.inc deleted file mode 100755 index 77ac62482b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.inc +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.js deleted file mode 100755 index e822530aca..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.js +++ /dev/null @@ -1,18 +0,0 @@ - - -if (foo || bar) {} -if (foo||bar && baz) {} -if (foo|| bar&&baz) {} -if (foo || bar && baz) {} - -if (foo || - bar - && baz -) { -} - -if (foo|| - bar - &&baz -) { -} diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php deleted file mode 100755 index 1ea1c500b4..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php +++ /dev/null @@ -1,74 +0,0 @@ - - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: OperatorSpacingUnitTest.php 267858 2008-10-27 05:00:29Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the LogicalOperatorSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_LogicalOperatorSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='LogicalOperatorSpacingUnitTest.inc') - { - return array( - 4 => 2, - 5 => 3, - 6 => 3, - 14 => 1, - 16 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc deleted file mode 100755 index d5614b829b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc +++ /dev/null @@ -1,110 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php deleted file mode 100755 index 1c6cfa64f3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php +++ /dev/null @@ -1,78 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: MemberVarSpacingUnitTest.php 230518 2007-02-22 22:55:05Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the MemberVarSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_MemberVarSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 4 => 1, - 7 => 1, - 20 => 1, - 30 => 1, - 35 => 1, - 44 => 1, - 50 => 1, - 73 => 1, - 86 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc deleted file mode 100755 index e4b7b10821..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc +++ /dev/null @@ -1,7 +0,0 @@ -testThis(); -$this-> testThis(); -$this -> testThis(); -$this->/* comment here */testThis(); -$this/* comment here */ -> testThis(); -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php deleted file mode 100755 index 1ddbad5547..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php +++ /dev/null @@ -1,73 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ObjectOperatorSpacingUnitTest.php 243878 2007-10-09 06:33:07Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ObjectOperatorSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_ObjectOperatorSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 4 => 2, - 5 => 1, - 6 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc deleted file mode 100755 index 0a4c19e7ce..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc +++ /dev/null @@ -1,102 +0,0 @@ - $j && $k< $l && $m>= $n && $o<= $p && $q<> $r; - -$a ==$b && $c !=$d && $e ===$f && $g !==$h; -$i >$j && $k <$l && $m >=$n && $o <=$p && $q <>$r; - -function myFunction($variable=0, $var2='string') {} - -if (index > -1) { -} - -// This is all valid. -$boo = -$foo; -function foo($boo = -1) {} -$foo = array('boo' => -1); -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js deleted file mode 100755 index 2861aa701b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js +++ /dev/null @@ -1,48 +0,0 @@ - - -result = 1 + 2; -result = 1 + 2; -result = 1 + 2; -result = 1 +2; -result = 1+ 2; -result = 1+2; - -result = 1 - 2; -result = 1 - 2; -result = 1 - 2; -result = 1 -2; -result = 1- 2; -result = 1-2; - -result = 1 * 2; -result = 1 * 2; -result = 1 * 2; -result = 1 *2; -result = 1* 2; -result = 1*2; - -result = 1 / 2; -result = 1 / 2; -result = 1 / 2; -result = 1 /2; -result = 1/ 2; -result = 1/2; - -result = 1 % 2; -result = 1 % 2; -result = 1 % 2; -result = 1 %2; -result = 1% 2; -result = 1%2; -result = '100%'; - -result += 4; -result+=4; -result -= 4; -result-=4; -result /= 4; -result/=4; -result *=4; -result*=4; - -$.localScroll({offset: {top: -32}}); diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php deleted file mode 100755 index 7132c8a7d9..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php +++ /dev/null @@ -1,157 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: OperatorSpacingUnitTest.php 267858 2008-10-27 05:00:29Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the OperatorSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_OperatorSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='OperatorSpacingUnitTest.inc') - { - switch ($testFile) { - case 'OperatorSpacingUnitTest.inc': - return array( - 4 => 1, - 5 => 2, - 6 => 1, - 7 => 1, - 8 => 2, - 11 => 1, - 12 => 2, - 13 => 1, - 14 => 1, - 15 => 2, - 18 => 1, - 19 => 2, - 20 => 1, - 21 => 1, - 22 => 2, - 25 => 1, - 26 => 2, - 27 => 1, - 28 => 1, - 29 => 2, - 32 => 1, - 33 => 2, - 34 => 1, - 35 => 1, - 36 => 2, - 40 => 2, - 42 => 2, - 44 => 2, - 45 => 1, - 46 => 2, - 53 => 2, - 54 => 1, - 59 => 10, - 64 => 1, - 77 => 4, - 78 => 1, - 79 => 1, - 80 => 2, - 81 => 1, - 84 => 6, - 85 => 6, - 87 => 4, - 88 => 5, - 90 => 4, - 91 => 5, - ); - break; - case 'OperatorSpacingUnitTest.js': - return array( - 4 => 1, - 5 => 2, - 6 => 1, - 7 => 1, - 8 => 2, - 11 => 1, - 12 => 2, - 13 => 1, - 14 => 1, - 15 => 2, - 18 => 1, - 19 => 2, - 20 => 1, - 21 => 1, - 22 => 2, - 25 => 1, - 26 => 2, - 27 => 1, - 28 => 1, - 29 => 2, - 32 => 1, - 33 => 2, - 34 => 1, - 35 => 1, - 36 => 2, - 40 => 2, - 42 => 2, - 44 => 2, - 45 => 1, - 46 => 2, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js deleted file mode 100755 index 1b1e351482..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js +++ /dev/null @@ -1,39 +0,0 @@ -var x = { - b: 'x', - xasd: x, - a: function () { - alert('thats right'); - x = (x?a:x); - }, - casdasd : 123123, - omgwtfbbq: { - a: 1, - b: 2 - } -}; - -id = id.replace(/row\/:/gi, ''); - -outer_loop: -for (i=0; i<3; i++) { - for (j=0; j<5; j++) { - if (j==x) - break outer_loop; - } -} -alert('hi'); - -even_number: if ((i % 2) == 0) { - if (i == 12) - break even_number; -} - -switch (blah) { - case dfx.DOM_VK_LEFT: - this.caretLeft(shiftKey); - break; - default: - if (blah) { - } - break; -} \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.php deleted file mode 100755 index 65c4734d62..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.php +++ /dev/null @@ -1,74 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: PropertyLabelSpacingUnitTest.php 265196 2008-08-21 04:08:27Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the PropertyLabel sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_PropertyLabelSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 2 => 1, - 8 => 2, - 9 => 1, - 11 => 1, - 17 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc deleted file mode 100755 index c5aa74a333..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc +++ /dev/null @@ -1,56 +0,0 @@ -{$property} =& new $class_name($this->db_index); - $this->modules[$module] =& $this->{$property}; -} - -foreach ($elements as $element) { - if ($something) { - // Do IF. - } else if ($somethingElse) { - // Do ELSE. - } -} - -switch ($blah) { - case 'one': - echo 'one'; - break; - default: - echo 'another'; -} - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php deleted file mode 100755 index ce062fa95b..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php +++ /dev/null @@ -1,72 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ScopeClosingBraceUnitTest.php 237151 2007-06-07 05:45:30Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ScopeClosingBrace sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_ScopeClosingBraceUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 11 => 1, - 13 => 1, - 24 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeIndentUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeIndentUnitTest.inc deleted file mode 100755 index 562b8f700f..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeIndentUnitTest.inc +++ /dev/null @@ -1,91 +0,0 @@ -validators as $validator) { - if ($result === FALSE) { - $valid = FALSE; - } - } -ob_end_clean(); - -ob_start(); -foreach ($request->validators as $validator) { - if ($result === FALSE) { - $valid = FALSE; - } -} -ob_end_clean(); - -ob_start(); - foreach ($request->validators as $validator) { - ob_start(); - if ($result === FALSE) { - $valid = FALSE; - } - ob_end_clean(); - } -ob_end_clean(); - -function myFunction() -{ - ob_start(); - foreach ($request->validators as $validator) { - if ($result === FALSE) { - $valid = FALSE; - } - } - ob_end_clean(); - - ob_start(); - foreach ($request->validators as $validator) { - if ($result === FALSE) { - $valid = FALSE; - } - } - ob_end_clean(); - - ob_start(); - foreach ($request->validators as $validator) { - ob_start(); - if ($result === FALSE) { - $valid = FALSE; - } - ob_end_clean(); - } - ob_end_clean(); - -}//end myFunction() - -foreach ($request->validators as $validator) { - if ($result === FALSE) { - $valid = FALSE; - }//end if -}//end foreach - -class MyClass -{ - /** - * Function comment - */ - function myFunction() - { - /* - This is a comment - over multiple lines. - */ - - $x = array( - '1' => $one, - '2' => $two, - ); - - switch ($var) { - case 'one': - echo 'one'; - break; - default: - echo 'two'; - break; - }//end switch - }//end myFunction() -} -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeIndentUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeIndentUnitTest.php deleted file mode 100755 index aa216ed8d0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeIndentUnitTest.php +++ /dev/null @@ -1,79 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ScopeIndentUnitTest.php 254096 2008-03-03 03:28:15Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ScopeIndent sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_ScopeIndentUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 11 => 1, - 12 => 1, - 13 => 1, - 21 => 1, - 22 => 1, - 39 => 1, - 40 => 1, - 41 => 1, - 49 => 1, - 50 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.inc deleted file mode 100755 index 6b608e93df..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.inc +++ /dev/null @@ -1,34 +0,0 @@ - \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php deleted file mode 100755 index 207af385f7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php +++ /dev/null @@ -1,75 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ScopeKeywordSpacingUnitTest.php 244265 2007-10-16 01:29:10Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ScopeKeywordSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_ScopeKeywordSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 7 => 2, - 8 => 1, - 13 => 1, - 14 => 1, - 15 => 1, - 17 => 2, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc deleted file mode 100755 index 8336493472..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc +++ /dev/null @@ -1,10 +0,0 @@ -testThis(); -$test = $this->testThis() ; -$test = $this->testThis() ; -for ($var = 1 ; $var < 10 ; $var++) { - echo $var ; -} -$test = $this->testThis() /* comment here */; -$test = $this->testThis() /* comment here */ ; -?> \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js deleted file mode 100755 index 2d988383d0..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js +++ /dev/null @@ -1,16 +0,0 @@ -var x = { - a: function () { - alert('thats right') ; - x = (x?a:x) ; - }, -} ; - -id = id.replace(/row\/:;/gi, ''); - -for (i=0 ; i<3 ; i++) { - for (j=0; j<5 ; j++) { - if (j==x) - break ; - } -} -alert('hi'); \ No newline at end of file diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php deleted file mode 100755 index f999b46e38..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php +++ /dev/null @@ -1,94 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: SemicolonSpacingUnitTest.php 265197 2008-08-21 04:32:35Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the SemicolonSpacing sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_SemicolonSpacingUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='SemicolonSpacingUnitTest.inc') - { - switch ($testFile) { - case 'SemicolonSpacingUnitTest.inc': - return array( - 3 => 1, - 4 => 1, - 5 => 2, - 6 => 1, - 8 => 1, - 9 => 1, - ); - break; - case 'SemicolonSpacingUnitTest.js': - return array( - 3 => 1, - 4 => 1, - 6 => 1, - 10 => 2, - 11 => 1, - 13 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.css b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.css deleted file mode 100755 index c5db7c61f2..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.css +++ /dev/null @@ -1,14 +0,0 @@ - -.HelpWidgetType-new-bug-title { - float: left; -} -.HelpWidgetType-new-bug-title { - float: left; -} -.HelpWidgetType-new-bug-title { - float: left; -} -.HelpWidgetType-new-bug-title{ - float: left; -} - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc deleted file mode 100755 index f72bb7be9c..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.js b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.js deleted file mode 100755 index 71f4079626..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.js +++ /dev/null @@ -1,35 +0,0 @@ - -alert('hi'); -alert('hello'); - -if (something) { - -} - - -function myFunction() -{ - alert('code here'); - - alert('code here'); - - - // Hello. - - /* - HI - */ - - -} - -function myFunction2() -{ - alert('code here'); - - - alert('code here'); - -} - - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php deleted file mode 100755 index af80372ed7..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php +++ /dev/null @@ -1,108 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: SuperfluousWhitespaceUnitTest.php 267998 2008-10-30 05:50:00Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the SuperfluousWhitespace sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Squiz_Tests_WhiteSpace_SuperfluousWhitespaceUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @param string $testFile The name of the file being tested. - * - * @return array(int => int) - */ - public function getErrorList($testFile='SuperfluousWhitespaceUnitTest.inc') - { - switch ($testFile) { - case 'SuperfluousWhitespaceUnitTest.inc': - return array( - 2 => 1, - 4 => 1, - 5 => 1, - 6 => 1, - 7 => 1, - 16 => 1, - 23 => 1, - 30 => 1, - 36 => 1, - ); - break; - case 'SuperfluousWhitespaceUnitTest.js': - return array( - 1 => 1, - 3 => 1, - 4 => 1, - 5 => 1, - 6 => 1, - 15 => 1, - 22 => 1, - 29 => 1, - 35 => 1, - ); - break; - case 'SuperfluousWhitespaceUnitTest.css': - return array( - 1 => 1, - 8 => 1, - 9 => 1, - 14 => 1, - ); - break; - default: - return array(); - break; - }//end switch - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.inc deleted file mode 100755 index c8d0499dd4..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.php deleted file mode 100755 index a0b1e70edd..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.php +++ /dev/null @@ -1,83 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: CodeAnalyzerUnitTest.php 244213 2007-10-15 05:41:34Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the CodeAnalyzer sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Zend_Tests_Debug_CodeAnalyzerUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Should this test be skipped for some reason. - * - * @return void - */ - protected function shouldSkipTest() - { - $analyzerPath = PHP_CodeSniffer::getConfigData('zend_ca_path'); - return (is_null($analyzerPath)); - - }//end shouldSkipTest() - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array(); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 2 => 1, - ); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Files/ClosingTagUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Files/ClosingTagUnitTest.inc deleted file mode 100755 index 6e39998a0a..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Files/ClosingTagUnitTest.inc +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Files/ClosingTagUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Files/ClosingTagUnitTest.php deleted file mode 100755 index 9cc0a4f665..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/Files/ClosingTagUnitTest.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ClosingTagUnitTest.php 240933 2007-08-09 04:51:52Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ClosingTag sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Zend_Tests_Files_ClosingTagUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 11 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array(); - - }//end getWarningList() - - -}//end class - -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.inc b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.inc deleted file mode 100755 index 29d6369ddd..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.inc +++ /dev/null @@ -1,100 +0,0 @@ -varName; -echo $this->var_name; -echo $this->varname; -echo $this->_varName; -echo $this->varName2; -echo $object->varName; -echo $object->var_name; -echo $object->varName2; -echo $object_name->varname; -echo $object_name->_varName; -echo $object_name->varName2; - -echo $this->myFunction($one, $two); -echo $object->myFunction($one_two, $var2); - -$error = "format is \$GLOBALS['$varName']"; -$error = "format is \$GLOBALS['$varName2']"; - -echo $_SESSION['var_name']; -echo $_FILES['var_name']; -echo $_ENV['var_name']; -echo $_COOKIE['var_name']; -echo $_COOKIE['var_name2']; - -$XML = 'hello'; -$myXML = 'hello'; -$XMLParser = 'hello'; -$xmlParser = 'hello'; -$xmlParser2 = 'hello'; - -echo "{$_SERVER['HOSTNAME']} $var_name"; - -$someObject->{$name}; -$someObject->my_function($var_name); -?> diff --git a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php b/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php deleted file mode 100755 index d797c87dc3..0000000000 --- a/main/inc/lib/phpdocx/lib/php_codesniffer/CodeSniffer/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php +++ /dev/null @@ -1,112 +0,0 @@ - - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version CVS: $Id: ValidVariableNameUnitTest.php 261899 2008-07-02 05:08:16Z squiz $ - * @link http://pear.php.net/package/PHP_CodeSniffer - */ - -/** - * Unit test class for the ValidVariableName sniff. - * - * A sniff unit test checks a .inc file for expected violations of a single - * coding standard. Expected errors and warnings are stored in this class. - * - * @category PHP - * @package PHP_CodeSniffer - * @author Greg Sherwood - * @author Marc McIntyre - * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) - * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence - * @version Release: 1.3.0RC1 - * @link http://pear.php.net/package/PHP_CodeSniffer - */ -class Zend_Tests_NamingConventions_ValidVariableNameUnitTest extends AbstractSniffUnitTest -{ - - - /** - * Returns the lines where errors should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of errors that should occur on that line. - * - * @return array(int => int) - */ - public function getErrorList() - { - return array( - 3 => 1, - 5 => 1, - 11 => 1, - 13 => 1, - 17 => 1, - 19 => 1, - 23 => 1, - 25 => 1, - 29 => 1, - 31 => 1, - 36 => 1, - 38 => 1, - 42 => 1, - 44 => 1, - 48 => 1, - 50 => 1, - 61 => 1, - 67 => 1, - 72 => 1, - 74 => 1, - 75 => 1, - 76 => 1, - 79 => 1, - 90 => 1, - 92 => 1, - 96 => 1, - 99 => 1, - ); - - }//end getErrorList() - - - /** - * Returns the lines where warnings should occur. - * - * The key of the array should represent the line number and the value - * should represent the number of warnings that should occur on that line. - * - * @return array(int => int) - */ - public function getWarningList() - { - return array( - 6 => 1, - 14 => 1, - 20 => 1, - 26 => 1, - 32 => 1, - 39 => 1, - 45 => 1, - 51 => 1, - 64 => 1, - 70 => 1, - 73 => 1, - 76 => 1, - 79 => 1, - 82 => 1, - 94 => 1, - ); - - }//end getWarningList() - - -}//end class - -?>