@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $allCharacteristics = app(GetAllCharacteristics::class)->get(); |
| 36 | 36 | try { |
| 37 | 37 | $context = $contextQueryByUser->execute(Auth::user()->uuid)->toArray(); |
| 38 | - }catch (\Throwable $e){ |
|
| 38 | + } catch (\Throwable $e) { |
|
| 39 | 39 | Log::emergency($e->getMessage().' '.$e->getLine().' '.$e->getFile().' '.$e->getTraceAsString()); |
| 40 | 40 | return redirect()->route('wizard.profile'); |
| 41 | 41 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $roles = app(GetUserRole::class)->get()->toArray(); |
| 44 | 44 | $practises = app(GetUserPractises::class)->get(Auth::user()->uuid); |
| 45 | 45 | $interactions = app(InteractionsQueryByUser::class)->get(Auth::user()->uuid); |
| 46 | - $usersCharacteristics = array_merge($context['productions'], $context['characteristics']); |
|
| 46 | + $usersCharacteristics = array_merge($context['productions'], $context['characteristics']); |
|
| 47 | 47 | $uuidsUserCharacteristics = array_column($usersCharacteristics, 'uuid'); |
| 48 | 48 | $role = last($user['roles']); |
| 49 | 49 | |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | try { |
| 68 | 68 | $user = app(GetUser::class)->get($userId)->toArray(); |
| 69 | - }catch (UserNotFound $e){ |
|
| 69 | + } catch (UserNotFound $e) { |
|
| 70 | 70 | throw new NotFoundHttpException(); |
| 71 | 71 | } |
| 72 | 72 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $roles = app(GetUserRole::class)->get()->toArray(); |
| 75 | 75 | $practises = app(GetUserPractises::class)->get($userId); |
| 76 | 76 | $interactions = app(InteractionsQueryByUser::class)->get($userId); |
| 77 | - $usersCharacteristics = array_merge($context['productions'], $context['characteristics']); |
|
| 77 | + $usersCharacteristics = array_merge($context['productions'], $context['characteristics']); |
|
| 78 | 78 | $uuidsUserCharacteristics = array_column($usersCharacteristics, 'uuid'); |
| 79 | 79 | $role = last($user['roles']); |
| 80 | 80 | |
@@ -139,9 +139,9 @@ discard block |
||
| 139 | 139 | $uri = config('wiki.api_uri').'?action=query&list=search&srwhat=text&srsearch='.$qry.'&srqiprofile=classic_noboostlinks&srnamespace=3000&format=json'; |
| 140 | 140 | $response = $client->get($uri); |
| 141 | 141 | $content = json_decode($response->getBody()->getContents(), true); |
| 142 | - if(isset($content['query']['search'])){ |
|
| 142 | + if (isset($content['query']['search'])) { |
|
| 143 | 143 | $results = array_column($content['query']['search'], 'title'); |
| 144 | - return array_map(function ($item){ |
|
| 144 | + return array_map(function($item) { |
|
| 145 | 145 | return str_replace('Structure:', '', $item); |
| 146 | 146 | }, $results); |
| 147 | 147 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $allCharacteristics = app(GetAllCharacteristics::class)->get(); |
| 36 | 36 | try { |
| 37 | 37 | $context = $contextQueryByUser->execute(Auth::user()->uuid)->toArray(); |
| 38 | - }catch (\Throwable $e){ |
|
| 38 | + } catch (\Throwable $e){ |
|
| 39 | 39 | Log::emergency($e->getMessage().' '.$e->getLine().' '.$e->getFile().' '.$e->getTraceAsString()); |
| 40 | 40 | return redirect()->route('wizard.profile'); |
| 41 | 41 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | try { |
| 68 | 68 | $user = app(GetUser::class)->get($userId)->toArray(); |
| 69 | - }catch (UserNotFound $e){ |
|
| 69 | + } catch (UserNotFound $e){ |
|
| 70 | 70 | throw new NotFoundHttpException(); |
| 71 | 71 | } |
| 72 | 72 | |