for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jumilla\Addomnipot\Laravel\Console;
trait Functions
{
protected function validPhpNamespace($namespace)
foreach (explode('\\', $namespace) as $part) {
if (! preg_match('/^[0-9a-zA-Z_]+$/', $part)) {
return false;
}
if (! preg_match('/^[^\d]/', $part)) {
return true;