for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Model\Behavior;
trait AppTranslateTrait
{
/**
* Set the transaltions to be saved.
*
* @param array $data The data to save.
* @return void
*/
public function setTranslations($data = [])
if (array_key_exists('translations', $data)) {
foreach ($data['translations'] as $locale => $dataLocale) {
$this->translation($locale)->set($dataLocale, ['guard' => false]);
translation()
App\Model\Behavior\AppTranslateTrait
setTranslations()
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.
}
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.