@@ -92,7 +92,7 @@ public function handle()
92
92
*
93
93
* @return int
94
94
*/
95
- public function import (array $ users = []) : int
95
+ public function import (array $ users = []): int
96
96
{
97
97
$ imported = 0 ;
98
98
@@ -164,7 +164,7 @@ public function display(array $users = [])
164
164
*
165
165
* @return bool
166
166
*/
167
- public function isLogging () : bool
167
+ public function isLogging (): bool
168
168
{
169
169
return ! $ this ->option ('no-log ' );
170
170
}
@@ -175,7 +175,7 @@ public function isLogging() : bool
175
175
*
176
176
* @return bool
177
177
*/
178
- public function isDeleting () : bool
178
+ public function isDeleting (): bool
179
179
{
180
180
return $ this ->option ('delete ' ) == 'true ' ;
181
181
}
@@ -186,7 +186,7 @@ public function isDeleting() : bool
186
186
*
187
187
* @return bool
188
188
*/
189
- public function isRestoring () : bool
189
+ public function isRestoring (): bool
190
190
{
191
191
return $ this ->option ('restore ' ) == 'true ' ;
192
192
}
@@ -198,7 +198,7 @@ public function isRestoring() : bool
198
198
*
199
199
* @return array
200
200
*/
201
- public function getUsers () : array
201
+ public function getUsers (): array
202
202
{
203
203
/** @var \Adldap\Query\Builder $query */
204
204
$ query = Resolver::query ();
@@ -234,7 +234,7 @@ public function getUsers() : array
234
234
*
235
235
* @return bool
236
236
*/
237
- protected function save (User $ user , Model $ model ) : bool
237
+ protected function save (User $ user , Model $ model ): bool
238
238
{
239
239
if ($ model ->save () && $ model ->wasRecentlyCreated ) {
240
240
Event::dispatch (new Imported ($ user , $ model ));
@@ -313,7 +313,7 @@ protected function delete(User $user, Model $model)
313
313
*
314
314
* @return Model
315
315
*/
316
- protected function model () : Model
316
+ protected function model (): Model
317
317
{
318
318
if (! $ this ->model ) {
319
319
$ this ->model = $ this ->option ('model ' ) ?? Config::get ('ldap_auth.model ' ) ?: $ this ->determineModel ();
@@ -355,7 +355,7 @@ protected function determineModel()
355
355
*
356
356
* @return bool
357
357
*/
358
- protected function isUsingSoftDeletes (Model $ model ) : bool
358
+ protected function isUsingSoftDeletes (Model $ model ): bool
359
359
{
360
360
return method_exists ($ model , 'trashed ' );
361
361
}
0 commit comments