@@ -99,7 +99,7 @@ |
||
99 | 99 | // in case a named parameter appears multiple times in the format string |
100 | 100 | if ($paramKeys[$paramName] === -1) { |
101 | 101 | // no - it needs a home |
102 | - $messageData[$nextData] =& $args[$paramName]; |
|
102 | + $messageData[$nextData] = & $args[$paramName]; |
|
103 | 103 | $paramKeys[$paramName] = $nextData; |
104 | 104 | $nextData++; |
105 | 105 | } |
@@ -127,7 +127,7 @@ |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | // $data contains an <object, method> pair |
130 | - return "callable<" . get_class($data[0]). "::" . $data[1] . ">"; |
|
130 | + return "callable<" . get_class($data[0]) . "::" . $data[1] . ">"; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $retval = eval($code); |
34 | 34 | |
35 | 35 | // all done |
36 | - return [ $retval, $output ]; |
|
36 | + return [$retval, $output]; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | function typeinspector_run_dataset($inspectorName, $failureTypes) |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | // if we get here, then we just return the PHP scalar type |
101 | - return [ $type => $type ]; |
|
101 | + return [$type => $type]; |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $retval = array_merge( |
116 | 116 | array_slice(GetArrayTypes::from($item), 0, -1), |
117 | 117 | self::$arrayExtras, |
118 | - [ 'array' => 'array' ] |
|
118 | + ['array' => 'array'] |
|
119 | 119 | ); |
120 | 120 | |
121 | 121 | // all done |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $retval = array_merge( |
138 | 138 | GetObjectTypes::from($item), |
139 | 139 | self::getObjectSpecialTypes($item), |
140 | - [ 'object' => 'object' ] |
|
140 | + ['object' => 'object'] |
|
141 | 141 | ); |
142 | 142 | |
143 | 143 | return $retval; |
@@ -118,14 +118,14 @@ |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | // if we get here, then $item will coerce to a PHP numeric type :) |
121 | - return [ $retval => $retval ]; |
|
121 | + return [$retval => $retval]; |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | private static function fromObject($item) |
125 | 125 | { |
126 | 126 | // does this object support being converted to a string? |
127 | 127 | if (method_exists($item, '__toString')) { |
128 | - return [ 'string' => 'string' ]; |
|
128 | + return ['string' => 'string']; |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | // no, it does not |
@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | class GetStrictTypes |
50 | 50 | { |
51 | 51 | private static $dispatchMap = [ |
52 | - 'array' => [ GetArrayTypes::class, 'from' ], |
|
53 | - 'object' => [ GetObjectTypes::class, 'from' ], |
|
54 | - 'string' => [ GetStringTypes::class, 'from' ], |
|
52 | + 'array' => [GetArrayTypes::class, 'from'], |
|
53 | + 'object' => [GetObjectTypes::class, 'from'], |
|
54 | + 'string' => [GetStringTypes::class, 'from'], |
|
55 | 55 | ]; |
56 | 56 | |
57 | 57 | /** |
@@ -84,6 +84,6 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | // if we get here, then we just return the PHP scalar type |
87 | - return [ $type => $type ]; |
|
87 | + return [$type => $type]; |
|
88 | 88 | } |
89 | 89 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | // PHP's stack trace is a little esoteric. To find all the details about |
90 | 90 | // a caller, we have to combine information from two stack frames. |
91 | - $prevFrame = $backtrace[max($index - 1,0)]; |
|
91 | + $prevFrame = $backtrace[max($index - 1, 0)]; |
|
92 | 92 | |
93 | 93 | // find the first backtrace entry that passes our filters |
94 | 94 | for ($i = $index; $i <= $maxIndex; $i++) { |