@@ -111,7 +111,7 @@ public function handle()
111111 * Get the column attributes for the given model.
112112 *
113113 * @param \Illuminate\Database\Eloquent\Model $model
114- * @return Collection
114+ * @return \Illuminate\Support\ Collection
115115 */
116116 protected function getAttributes ($ model )
117117 {
@@ -138,18 +138,18 @@ protected function getAttributes($model)
138138 *
139139 * @param \Illuminate\Database\Eloquent\Model $model
140140 * @param \Doctrine\DBAL\Schema\Column[] $columns
141- * @return Collection
141+ * @return \Illuminate\Support\ Collection
142142 */
143143 protected function getVirtualAttributes ($ model , $ columns )
144144 {
145145 $ class = new ReflectionClass ($ model );
146146
147147 return collect ($ class ->getMethods ())
148- ->filter (fn (\ ReflectionMethod $ method ) => ! $ method ->isStatic ()
148+ ->filter (fn (ReflectionMethod $ method ) => ! $ method ->isStatic ()
149149 && ! $ method ->isAbstract ()
150150 && $ method ->getDeclaringClass ()->getName () === get_class ($ model )
151151 )
152- ->mapWithKeys (function (\ ReflectionMethod $ method ) use ($ model ) {
152+ ->mapWithKeys (function (ReflectionMethod $ method ) use ($ model ) {
153153 if (preg_match ('/^get(.*)Attribute$/ ' , $ method ->getName (), $ matches ) === 1 ) {
154154 return [Str::snake ($ matches [1 ]) => 'Accessor ' ];
155155 } elseif ($ model ->hasAttributeMutator ($ method ->getName ())) {
@@ -176,12 +176,12 @@ protected function getVirtualAttributes($model, $columns)
176176 * Get the relations from the given model.
177177 *
178178 * @param \Illuminate\Database\Eloquent\Model $model
179- * @return Collection
179+ * @return \Illuminate\Support\ Collection
180180 */
181181 protected function getRelations ($ model )
182182 {
183183 return collect (get_class_methods ($ model ))
184- ->map (fn ($ method ) => new \ ReflectionMethod ($ model , $ method ))
184+ ->map (fn ($ method ) => new ReflectionMethod ($ model , $ method ))
185185 ->filter (fn (ReflectionMethod $ method ) => ! $ method ->isStatic ()
186186 && ! $ method ->isAbstract ()
187187 && $ method ->getDeclaringClass ()->getName () === get_class ($ model )
@@ -336,7 +336,7 @@ protected function getCastType($column, $model)
336336 * Get the model casts, including any date casts.
337337 *
338338 * @param \Illuminate\Database\Eloquent\Model $model
339- * @return Collection
339+ * @return \Illuminate\Support\ Collection
340340 */
341341 protected function getCastsWithDates ($ model )
342342 {
0 commit comments