Completed
Push — develop ( 6a1d06...9b69c7 )
by Stuart
02:02
created
src/type-functions.php 1 patch
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,8 +91,6 @@  discard block
 block discarded – undo
91 91
 /**
92 92
  * get the list of extra types that are valid for this specific object
93 93
  *
94
- * @param  object $object
95
- *         the object to examine
96 94
  * @return string[]
97 95
  *         a (possibly empty) list of types for this object
98 96
  */
@@ -104,8 +102,6 @@  discard block
 block discarded – undo
104 102
 /**
105 103
  * what PHP type is $data?
106 104
  *
107
- * @param  mixed $data
108
- *         the data to examine
109 105
  * @param  int $flags
110 106
  *         options to change what we put in the return value
111 107
  * @return string
@@ -121,7 +117,7 @@  discard block
 block discarded – undo
121 117
  *
122 118
  * @param  mixed $item
123 119
  *         the item to examine
124
- * @return array
120
+ * @return string[]
125 121
  *         the list of type(s) that this item can be
126 122
  */
127 123
 function get_strict_types($item)
Please login to merge, or discard this patch.
src/TypeInspectors/GetStrictTypes.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      *
60 60
      * @param  mixed $item
61 61
      *         the item to examine
62
-     * @return array
62
+     * @return string[]
63 63
      *         the list of type(s) that this item can be
64 64
      */
65 65
     public function __invoke($item)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
84 84
         }
85 85
 
86 86
         // if we get here, then we just return the PHP scalar type
87
-        return [ $type ];
87
+        return [$type];
88 88
     }
89 89
 }
Please login to merge, or discard this patch.
src/TypeInspectors/GetStringTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,14 +118,14 @@
 block discarded – undo
118 118
         }
119 119
 
120 120
         // if we get here, then $item will coerce to a PHP numeric type :)
121
-        return [ $retval ];
121
+        return [$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' ];
128
+            return ['string'];
129 129
         }
130 130
 
131 131
         // no, it does not
Please login to merge, or discard this patch.