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