@@ -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 | ); |
@@ -37,10 +37,10 @@ |
||
| 37 | 37 | { |
| 38 | 38 | return [ |
| 39 | 39 | // key, index, expectedResult |
| 40 | - [ 'No such key', null, false ], // missing key |
|
| 41 | - [ StoreTest::KEY, 2, false ], // missing index |
|
| 42 | - [ StoreTest::KEY, null, true ], // present key |
|
| 43 | - [ StoreTest::KEY, 1, true ], // present index |
|
| 40 | + ['No such key', null, false], // missing key |
|
| 41 | + [StoreTest::KEY, 2, false], // missing index |
|
| 42 | + [StoreTest::KEY, null, true], // present key |
|
| 43 | + [StoreTest::KEY, 1, true], // present index |
|
| 44 | 44 | ]; |
| 45 | 45 | } |
| 46 | 46 | |
@@ -54,8 +54,8 @@ |
||
| 54 | 54 | { |
| 55 | 55 | return [ |
| 56 | 56 | // storedValue, checkedValue, expectedResult |
| 57 | - [ 'This is a value', 'is a', true ], |
|
| 58 | - [ 'This is a value', 'words', false ], |
|
| 57 | + ['This is a value', 'is a', true], |
|
| 58 | + ['This is a value', 'words', false], |
|
| 59 | 59 | ]; |
| 60 | 60 | } |
| 61 | 61 | |
@@ -19,11 +19,11 @@ discard block |
||
| 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 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | { |
| 33 | 33 | return [ |
| 34 | 34 | // nth exception class exception message |
| 35 | - [-1, InvalidArgumentException::class, '$nth must be a positive number'], |
|
| 35 | + [-1, InvalidArgumentException::class, '$nth must be a positive number'], |
|
| 36 | 36 | ]; |
| 37 | 37 | } |
| 38 | 38 | |
@@ -31,12 +31,12 @@ discard block |
||
| 31 | 31 | { |
| 32 | 32 | return [ |
| 33 | 33 | // index, nth |
| 34 | - [ 1, 0], |
|
| 35 | - [ 1, 1], |
|
| 36 | - [ 1, 5], |
|
| 37 | - [ 4, 0], |
|
| 38 | - [ 4, 4], |
|
| 39 | - [ 4, 10], |
|
| 34 | + [1, 0], |
|
| 35 | + [1, 1], |
|
| 36 | + [1, 5], |
|
| 37 | + [4, 0], |
|
| 38 | + [4, 4], |
|
| 39 | + [4, 10], |
|
| 40 | 40 | ]; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | public function invalidNthDataProvider() |
| 61 | 61 | { |
| 62 | 62 | return [ |
| 63 | - [ 0], |
|
| 63 | + [0], |
|
| 64 | 64 | [ -1], |
| 65 | 65 | [ -4], |
| 66 | 66 | [-10], |
@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | return [ |
| 88 | 88 | // index, nth |
| 89 | - [ 0, 1], |
|
| 90 | - [ 10, 11], |
|
| 91 | - [ 100, 101], |
|
| 92 | - [ null, 50], |
|
| 89 | + [0, 1], |
|
| 90 | + [10, 11], |
|
| 91 | + [100, 101], |
|
| 92 | + [null, 50], |
|
| 93 | 93 | ]; |
| 94 | 94 | } |
| 95 | 95 | |
@@ -25,14 +25,14 @@ |
||
| 25 | 25 | { |
| 26 | 26 | return [ |
| 27 | 27 | // index, matches, resolvedIndex, expectedNth, expectedKey, expectedProperty |
| 28 | - [null, self::MATCHES_NO_NTH, null, null, 'thing', null ], |
|
| 29 | - [ 1, self::MATCHES_NO_NTH, 1, null, 'thing', null ], |
|
| 30 | - [null, self::MATCHES_NO_NTH_PROPERTY, null, null, 'thing', 'address'], |
|
| 31 | - [ 1, self::MATCHES_NO_NTH_PROPERTY, 1, null, 'thing', 'address'], |
|
| 32 | - [null, self::MATCHES_NTH, 14, 15, 'thing', null ], |
|
| 33 | - [ 14, self::MATCHES_NTH, 14, 15, 'thing', null ], |
|
| 34 | - [null, self::MATCHES_NTH_AND_PROPERTY, 14, 15, 'thing', 'address'], |
|
| 35 | - [ 14, self::MATCHES_NTH_AND_PROPERTY, 14, 15, 'thing', 'address'], |
|
| 28 | + [null, self::MATCHES_NO_NTH, null, null, 'thing', null], |
|
| 29 | + [1, self::MATCHES_NO_NTH, 1, null, 'thing', null], |
|
| 30 | + [null, self::MATCHES_NO_NTH_PROPERTY, null, null, 'thing', 'address'], |
|
| 31 | + [1, self::MATCHES_NO_NTH_PROPERTY, 1, null, 'thing', 'address'], |
|
| 32 | + [null, self::MATCHES_NTH, 14, 15, 'thing', null], |
|
| 33 | + [14, self::MATCHES_NTH, 14, 15, 'thing', null], |
|
| 34 | + [null, self::MATCHES_NTH_AND_PROPERTY, 14, 15, 'thing', 'address'], |
|
| 35 | + [14, self::MATCHES_NTH_AND_PROPERTY, 14, 15, 'thing', 'address'], |
|
| 36 | 36 | ]; |
| 37 | 37 | } |
| 38 | 38 | |