@@ -20,8 +20,9 @@ |
||
| 20 | 20 | $agentFileName = end($formattedClassName); |
| 21 | 21 | $agents = config("sms.agents"); |
| 22 | 22 | foreach ($agents as $key => $value) { |
| 23 | - if (strcmp($value['executableFile'], $agentFileName) == 0) |
|
| 24 | - return $key; |
|
| 23 | + if (strcmp($value['executableFile'], $agentFileName) == 0) { |
|
| 24 | + return $key; |
|
| 25 | + } |
|
| 25 | 26 | } |
| 26 | 27 | } |
| 27 | 28 | throw new \InvalidArgumentException("Unauthorized access."); |