From 333b5376ecec06b919d42f2afaea1bfc4896964e Mon Sep 17 00:00:00 2001 From: "Alexia E. Smith" Date: Fri, 22 May 2015 10:07:02 -0500 Subject: [PATCH] Change nuances to nuance for consistency. --- README.md | 8 ++++---- classes/options.php | 6 +++--- classes/tests.php | 2 +- classes/tests/{nuances.php => nuance.php} | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) rename classes/tests/{nuances.php => nuance.php} (97%) diff --git a/README.md b/README.md index 951db43..425727c 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,8 @@ Give a try, use the included `testcases.php` to generate a report: **-t** ``` Types of tests to run. - By default all tests will run. This option allows tests to be selected using a comma delimited list. Allowable values: critical, nuances, and syntax. - *Example: -t="syntax,nuances"* + By default all tests will run. This option allows tests to be selected using a comma delimited list. Allowable values: critical, nuance, and syntax. + *Example: -t="syntax,nuance"* ``` **--php** @@ -66,8 +66,8 @@ Give a try, use the included `testcases.php` to generate a report: ##Critical Critical tests look for issues that will cause broken code, compilation errors, or otherwise create code that works in unintended manors. -##Nuances +##Nuance Nuance tests look for issues that might cause silent underisable code behavior. These tests can report many false positives as they can not determine the intent of the code being checked. ##Syntax -A basic command line based syntax checker that checks all files for standard syntax issues. This is useful for double checking work after making many mass find and replace operations. Please note that syntax checking adds a significant increase to processing time especially for large code bases. To run without syntax checking use the -t option and omit syntax; -t="critical,nuances" \ No newline at end of file +A basic command line based syntax checker that checks all files for standard syntax issues. This is useful for double checking work after making many mass find and replace operations. Please note that syntax checking adds a significant increase to processing time especially for large code bases. To run without syntax checking use the -t option and omit syntax; -t="critical,nuance" \ No newline at end of file diff --git a/classes/options.php b/classes/options.php index 9b58fac..0f6f83b 100644 --- a/classes/options.php +++ b/classes/options.php @@ -70,11 +70,11 @@ class options { 'option' => self::OPTION_OPTIONAL, 'value' => self::VALUE_REQUIRED, 'comment' => 'Types of tests to run.', - 'description' => 'By default all tests will run. This option allows tests to be selected using a comma delimited list. Allowable values: critical, nuances, and syntax.', - 'example' => '-t="syntax,nuances"', + 'description' => 'By default all tests will run. This option allows tests to be selected using a comma delimited list. Allowable values: critical, nuance, and syntax.', + 'example' => '-t="syntax,nuance"', 'allowed' => [ 'critical', - 'nuances', + 'nuance', 'syntax' ] ] diff --git a/classes/tests.php b/classes/tests.php index efb7863..548781b 100644 --- a/classes/tests.php +++ b/classes/tests.php @@ -19,7 +19,7 @@ class tests { */ private $testTypes = [ 'critical' => null, - 'nuances' => null + 'nuance' => null ]; /** diff --git a/classes/tests/nuances.php b/classes/tests/nuance.php similarity index 97% rename from classes/tests/nuances.php rename to classes/tests/nuance.php index 63aace2..e9dda99 100644 --- a/classes/tests/nuances.php +++ b/classes/tests/nuance.php @@ -1,7 +1,7 @@ * @copyright 2015 Alexia E. Smith @@ -10,13 +10,13 @@ namespace mar\tests; -class nuances { +class nuance { /** * What test type this is, should be the same as the class name. * * @var string */ - private $testType = 'nuances'; + private $testType = 'nuance'; /** * Tests to be registered.