We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 102-115 (lines=14) @@ | ||
99 | * |
|
100 | * @return [Eloquent Collection] The row in the db. |
|
101 | */ |
|
102 | public function findOrFail($id) |
|
103 | { |
|
104 | $translation_locale = \Request::input('locale'); |
|
105 | $default_locale = \App::getLocale(); |
|
106 | ||
107 | if ($translation_locale) { |
|
108 | $item = parent::findOrFail($id); |
|
109 | $item->setLocale($translation_locale); |
|
110 | ||
111 | return $item; |
|
112 | } |
|
113 | ||
114 | return parent::findOrFail($id); |
|
115 | } |
|
116 | ||
117 | /** |
|
118 | * Get the database entry in the wanted locale. |
|
@@ 124-137 (lines=14) @@ | ||
121 | * |
|
122 | * @return [Eloquent Collection] The row in the db. |
|
123 | */ |
|
124 | public function find($id) |
|
125 | { |
|
126 | $translation_locale = \Request::input('locale'); |
|
127 | $default_locale = \App::getLocale(); |
|
128 | ||
129 | if ($translation_locale) { |
|
130 | $item = parent::find($id); |
|
131 | $item->setLocale($translation_locale); |
|
132 | ||
133 | return $item; |
|
134 | } |
|
135 | ||
136 | return parent::find($id); |
|
137 | } |
|
138 | ||
139 | /* |
|
140 | |-------------------------------------------------------------------------- |