for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Ship\Engine\Loaders;
use File;
/**
* Class ViewsLoaderTrait.
*
* @author Mahmoud Zalt <[email protected]>
*/
trait ViewsLoaderTrait
{
* @param $containerName
public function loadViewsFromContainers($containerName)
$containerViewDirectory = base_path('app/Containers/' . $containerName . '/UI/WEB/Views/');
$this->loadViews($containerViewDirectory, $containerName);
}
* @param void
public function loadViewsFromShip()
// ..
* @param $directory
private function loadViews($directory, $containerName)
if (File::isDirectory($directory)) {
$this->loadViewsFrom($directory, strtolower($containerName));
loadViewsFrom()
App\Ship\Engine\Loaders\ViewsLoaderTrait
loadViewsFromContainers()
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.