@@ -19,18 +19,11 @@ class LinkedInController extends AdminAbstractController
19
19
{
20
20
use ConnectResponseTrait;
21
21
22
- protected LinkedInClient $ linkedInClient ;
23
- protected EnvironmentServiceInterface $ environmentService ;
24
- protected ConnectorServiceInterface $ connectorService ;
25
-
26
22
public function __construct (
27
- LinkedInClient $ linkedInClient ,
28
- EnvironmentServiceInterface $ environmentService ,
29
- ConnectorServiceInterface $ connectorService
23
+ protected LinkedInClient $ linkedInClient ,
24
+ protected EnvironmentServiceInterface $ environmentService ,
25
+ protected ConnectorServiceInterface $ connectorService
30
26
) {
31
- $ this ->linkedInClient = $ linkedInClient ;
32
- $ this ->environmentService = $ environmentService ;
33
- $ this ->connectorService = $ connectorService ;
34
27
}
35
28
36
29
public function connectAction (Request $ request ): Response
@@ -115,10 +108,6 @@ public function debugTokenAction(Request $request): JsonResponse
115
108
return $ this ->adminJson (['error ' => true , 'message ' => $ e ->getMessage ()]);
116
109
}
117
110
118
- if (!is_array ($ accessTokenMetadata )) {
119
- return $ this ->adminJson (['error ' => true , 'message ' => 'invalid token data ' ]);
120
- }
121
-
122
111
if (isset ($ accessTokenMetadata ['authorized_at ' ])) {
123
112
$ accessTokenMetadata ['authorized_at ' ] = Carbon::createFromTimestamp ($ accessTokenMetadata ['authorized_at ' ])->toDayDateTimeString ();
124
113
}
0 commit comments