@@ -34,8 +34,8 @@  | 
                                                    ||
| 34 | 34 |      { | 
                                                        
| 35 | 35 | return [  | 
                                                        
| 36 | 36 | // key, value exists?  | 
                                                        
| 37 | - [ 'No such key', null, false ], // missing key  | 
                                                        |
| 38 | - [ StoreTest::KEY, StoreTest::$MOST_RECENT_VALUE, true ], // present key  | 
                                                        |
| 37 | + ['No such key', null, false], // missing key  | 
                                                        |
| 38 | + [StoreTest::KEY, StoreTest::$MOST_RECENT_VALUE, true], // present key  | 
                                                        |
| 39 | 39 | ];  | 
                                                        
| 40 | 40 | }  | 
                                                        
| 41 | 41 | |
@@ -34,8 +34,8 @@  | 
                                                    ||
| 34 | 34 |      { | 
                                                        
| 35 | 35 | return [  | 
                                                        
| 36 | 36 | // storedValue, checkedValue, expectedResult  | 
                                                        
| 37 | - [ 'This is a value', 'is a', true ],  | 
                                                        |
| 38 | - [ 'This is a value', 'words', false ],  | 
                                                        |
| 37 | + ['This is a value', 'is a', true],  | 
                                                        |
| 38 | + ['This is a value', 'words', false],  | 
                                                        |
| 39 | 39 | ];  | 
                                                        
| 40 | 40 | }  | 
                                                        
| 41 | 41 | |
@@ -58,15 +58,15 @@  | 
                                                    ||
| 58 | 58 |      public function happyPathProvider() { | 
                                                        
| 59 | 59 | return [  | 
                                                        
| 60 | 60 | // key parsed key expected  | 
                                                        
| 61 | - 'Noun without index returns most recent noun' => [StoreTest::KEY, [[StoreTest::KEY, null]], StoreTest::$MOST_RECENT_VALUE],  | 
                                                        |
| 62 | - 'Noun with index returns specific noun' => ['1st ' . StoreTest::KEY, [[StoreTest::KEY, 0]], StoreTest::$FIRST_VALUE],  | 
                                                        |
| 63 | - 'Non-existent noun returns null' => ['3rd ' . StoreTest::KEY, [[StoreTest::KEY, 2]], null],  | 
                                                        |
| 64 | - 'Possessive noun w/o index string property' => [StoreTest::KEY . "'s color", [[StoreTest::KEY, null], ['color', null]], 'Blue'],  | 
                                                        |
| 65 | - 'Possessive noun with index string property' => ['1st ' . StoreTest::KEY . "'s color", [[StoreTest::KEY, 0], ['color', null]], 'Red'],  | 
                                                        |
| 66 | - 'Possessive noun w/o index collection w/o index' => [StoreTest::KEY . "'s option", [[StoreTest::KEY, null], ['option', null]], 'Air Conditioning'],  | 
                                                        |
| 67 | - 'Possessive noun with index collection w/o index' => ['1st ' . StoreTest::KEY . "'s option", [[StoreTest::KEY, 0], ['option', null]], 'Heated Seats'],  | 
                                                        |
| 68 | - 'Possessive noun w/o index collection with index' => [StoreTest::KEY . "'s 1st option", [[StoreTest::KEY, null], ['option', 0]], 'Cruise Control'],  | 
                                                        |
| 69 | - 'Possessive noun with index collection with index' => ['1st ' . StoreTest::KEY . "'s 1st option", [[StoreTest::KEY, 0], ['option', 0]], 'GPS'],  | 
                                                        |
| 61 | + 'Noun without index returns most recent noun' => [StoreTest::KEY, [[StoreTest::KEY, null]], StoreTest::$MOST_RECENT_VALUE],  | 
                                                        |
| 62 | + 'Noun with index returns specific noun' => ['1st ' . StoreTest::KEY, [[StoreTest::KEY, 0]], StoreTest::$FIRST_VALUE],  | 
                                                        |
| 63 | + 'Non-existent noun returns null' => ['3rd ' . StoreTest::KEY, [[StoreTest::KEY, 2]], null],  | 
                                                        |
| 64 | + 'Possessive noun w/o index string property' => [StoreTest::KEY . "'s color", [[StoreTest::KEY, null], ['color', null]], 'Blue'],  | 
                                                        |
| 65 | + 'Possessive noun with index string property' => ['1st ' . StoreTest::KEY . "'s color", [[StoreTest::KEY, 0], ['color', null]], 'Red'],  | 
                                                        |
| 66 | + 'Possessive noun w/o index collection w/o index' => [StoreTest::KEY . "'s option", [[StoreTest::KEY, null], ['option', null]], 'Air Conditioning'],  | 
                                                        |
| 67 | + 'Possessive noun with index collection w/o index' => ['1st ' . StoreTest::KEY . "'s option", [[StoreTest::KEY, 0], ['option', null]], 'Heated Seats'],  | 
                                                        |
| 68 | + 'Possessive noun w/o index collection with index' => [StoreTest::KEY . "'s 1st option", [[StoreTest::KEY, null], ['option', 0]], 'Cruise Control'],  | 
                                                        |
| 69 | + 'Possessive noun with index collection with index' => ['1st ' . StoreTest::KEY . "'s 1st option", [[StoreTest::KEY, 0], ['option', 0]], 'GPS'],  | 
                                                        |
| 70 | 70 | ];  | 
                                                        
| 71 | 71 | }  | 
                                                        
| 72 | 72 | }  | 
                                                        
@@ -19,11 +19,11 @@  | 
                                                    ||
| 19 | 19 | public function successScenariosDataProvider()  | 
                                                        
| 20 | 20 |      { | 
                                                        
| 21 | 21 | return [  | 
                                                        
| 22 | - [0, 'th'], [1, 'st'], [2, 'nd'], [3, 'rd'],  | 
                                                        |
| 23 | - [4, 'th'], [5, 'th'], [6, 'th'], [7, 'th'],  | 
                                                        |
| 24 | - [8, 'th'], [9, 'th'], [10, 'th'], [11, 'th'],  | 
                                                        |
| 25 | - [12, 'th'], [13, 'th'], [14, 'th'], [21, 'st'],  | 
                                                        |
| 26 | - [22, 'nd'], [23, 'rd'], [24, 'th'], [101, 'st'],  | 
                                                        |
| 22 | + [0, 'th'], [1, 'st'], [2, 'nd'], [3, 'rd'],  | 
                                                        |
| 23 | + [4, 'th'], [5, 'th'], [6, 'th'], [7, 'th'],  | 
                                                        |
| 24 | + [8, 'th'], [9, 'th'], [10, 'th'], [11, 'th'],  | 
                                                        |
| 25 | + [12, 'th'], [13, 'th'], [14, 'th'], [21, 'st'],  | 
                                                        |
| 26 | + [22, 'nd'], [23, 'rd'], [24, 'th'], [101, 'st'],  | 
                                                        |
| 27 | 27 | [102, 'nd'], [103, 'rd'], [104, 'th'],  | 
                                                        
| 28 | 28 | ];  | 
                                                        
| 29 | 29 | }  | 
                                                        
@@ -25,12 +25,12 @@  | 
                                                    ||
| 25 | 25 |      { | 
                                                        
| 26 | 26 | return [  | 
                                                        
| 27 | 27 | // key parsedKey, parsedIndex  | 
                                                        
| 28 | - ['Thing', 'Thing', null],  | 
                                                        |
| 29 | - ['1st Thing', 'Thing', 0],  | 
                                                        |
| 30 | - ['2nd Thing', 'Thing', 1],  | 
                                                        |
| 31 | - ['3rd Thing', 'Thing', 2],  | 
                                                        |
| 32 | - ['4th Thing', 'Thing', 3],  | 
                                                        |
| 33 | - ['478th Thing', 'Thing', 477],  | 
                                                        |
| 28 | + ['Thing', 'Thing', null],  | 
                                                        |
| 29 | + ['1st Thing', 'Thing', 0],  | 
                                                        |
| 30 | + ['2nd Thing', 'Thing', 1],  | 
                                                        |
| 31 | + ['3rd Thing', 'Thing', 2],  | 
                                                        |
| 32 | + ['4th Thing', 'Thing', 3],  | 
                                                        |
| 33 | + ['478th Thing', 'Thing', 477],  | 
                                                        |
| 34 | 34 | ];  | 
                                                        
| 35 | 35 | }  | 
                                                        
| 36 | 36 | |
@@ -36,11 +36,11 @@  | 
                                                    ||
| 36 | 36 | public function nouns()  | 
                                                        
| 37 | 37 |      { | 
                                                        
| 38 | 38 | return [  | 
                                                        
| 39 | - ['Customer', ['Customer' ]],  | 
                                                        |
| 40 | - ["Customer's Car", ['Customer', 'Car' ]],  | 
                                                        |
| 41 | - ["8th Customer's Car", ['8th Customer', 'Car' ]],  | 
                                                        |
| 42 | - ["Customer's 2nd Car", ['Customer', '2nd Car' ]],  | 
                                                        |
| 43 | - ["7th Customer's 4th Car", ['7th Customer', '4th Car' ]],  | 
                                                        |
| 39 | + ['Customer', ['Customer']],  | 
                                                        |
| 40 | + ["Customer's Car", ['Customer', 'Car']],  | 
                                                        |
| 41 | + ["8th Customer's Car", ['8th Customer', 'Car']],  | 
                                                        |
| 42 | + ["Customer's 2nd Car", ['Customer', '2nd Car']],  | 
                                                        |
| 43 | + ["7th Customer's 4th Car", ['7th Customer', '4th Car']],  | 
                                                        |
| 44 | 44 | ["7th Customer's 4th Car's Wheel", ['7th Customer', '4th Car', 'Wheel']],  | 
                                                        
| 45 | 45 | ];  | 
                                                        
| 46 | 46 | }  | 
                                                        
@@ -15,7 +15,7 @@  | 
                                                    ||
| 15 | 15 |      { | 
                                                        
| 16 | 16 | $class = get_parent_class($context);  | 
                                                        
| 17 | 17 | |
| 18 | -        return function () use ($class, $method) { | 
                                                        |
| 18 | +        return function() use ($class, $method) { | 
                                                        |
| 19 | 19 | throw new UnMockedResponseException(  | 
                                                        
| 20 | 20 | "$class::$method was called on mock without having its response mocked"  | 
                                                        
| 21 | 21 | );  | 
                                                        
@@ -56,7 +56,7 @@  | 
                                                    ||
| 56 | 56 |      { | 
                                                        
| 57 | 57 | return array_reduce(  | 
                                                        
| 58 | 58 | $this->keyService->parse($key),  | 
                                                        
| 59 | -            static function ($carry, $item) { | 
                                                        |
| 59 | +            static function($carry, $item) { | 
                                                        |
| 60 | 60 | list($noun, $index) = $item;  | 
                                                        
| 61 | 61 | |
| 62 | 62 | $carry = data_get($carry, $noun);  |