for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Consigliere\Components\Publishing;
class LangPublisher extends Publisher
{
/**
* Determine whether the result message will shown in the console.
*
* @var bool
*/
protected $showMessage = false;
* Get destination path.
* @return string
public function getDestinationPath()
$name = $this->component->getLowerName();
getLowerName
$this->component
string
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.
return base_path("resources/lang/{$name}");
}
* Get source path.
public function getSourcePath()
return $this->getComponent()->getExtraPath(
getExtraPath
$this->getComponent()
$this->repository->config('paths.generator.lang')
);
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.