for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omatech\Mage\Core\Adapters\Translations;
use Omatech\Mage\Core\Domains\Translations\Contracts\AllTranslationInterface;
use Omatech\Mage\Core\Repositories\TranslationBaseRepository;
class GetAllTranslations extends TranslationBaseRepository implements AllTranslationInterface
{
/**
* @param $locales
* @return array
*/
public function get(array $locales): array
$select = ['id', 'group', 'key'];
foreach ($locales as $locale) {
$select[] = "text->$locale as $locale";
}
return $this->query()
select()
Illuminate\Database\Eloquent\Builder
createSelectWithConstraint()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
->select($select)
->get()
->toArray();
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.