for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nwidart\Modules\Publishing;
use Nwidart\Modules\Support\Config\GenerateConfigReader;
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->module->getLowerName();
getLowerName
$this->module
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->getModule()->getExtraPath(
getExtraPath
$this->getModule()
GenerateConfigReader::read('lang')->getPath()
);
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.