for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\PluginBundle\XApi\ToolExperience\Activity;
use Xabbuh\XApi\Model\Activity;
use Xabbuh\XApi\Model\Definition;
use Xabbuh\XApi\Model\IRI;
use Xabbuh\XApi\Model\LanguageMap;
/**
* Class Site.
*/
class Site extends BaseActivity
{
public function generate(): Activity
$platformLanguageIso = api_get_language_isocode(
api_get_setting('platformLanguage')
);
$platform = api_get_setting('Institution').' - '.api_get_setting('siteName');
api_get_setting('Institution')
array|string
concatenation
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
ignore-type
$platform = /** @scrutinizer ignore-type */ api_get_setting('Institution').' - '.api_get_setting('siteName');
api_get_setting('siteName')
$platform = api_get_setting('Institution').' - './** @scrutinizer ignore-type */ api_get_setting('siteName');
return new Activity(
IRI::fromString('http://id.tincanapi.com/activitytype/lms'),
new Definition(
LanguageMap::create([$platformLanguageIso => $platform])
)
}