Skip to content

Commit

Permalink
style: php-cs-fixer string_implicit_backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Jun 27, 2024
1 parent b198089 commit 1429edc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Command/GMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function handle()
$plugin = $this->plugin->getOneById($this->getPluginId());
$path = $plugin->getBasePath() . '/src/Migration';
$reflection = new \ReflectionClass($plugin);
$namespace = $reflection->getNamespaceName() . '\\Migration';
$namespace = $reflection->getNamespaceName() . '\Migration';

Migration::setOutput($this->output)->create([
'name' => $this->getArgument('name'),
Expand Down
2 changes: 1 addition & 1 deletion src/Command/GRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function createTrait($name, $relation, $isPluralize = false)

// Generate file
$phpFile = new PhpFile();
$namespace = $phpFile->addNamespace('Miaoxing\\' . $pluginNamespace . '\\Model');
$namespace = $phpFile->addNamespace('Miaoxing\\' . $pluginNamespace . '\Model');
$namespace->addUse($class);

// Generate trait
Expand Down
2 changes: 1 addition & 1 deletion src/Command/GSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function handle()
$plugin = $this->plugin->getOneById($this->getArgument('plugin'));
$path = $plugin->getBasePath() . '/src/Seeder';
$reflection = new \ReflectionClass($plugin);
$namespace = $reflection->getNamespaceName() . '\\Seeder';
$namespace = $reflection->getNamespaceName() . '\Seeder';

Seeder::setOutput($this->output)->create([
'name' => $this->getArgument('name'),
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ protected function getEventsById($id)
*/
protected function dash($name)
{
return strtolower(preg_replace('~(?<=\\w)([A-Z])~', '-$1', $name));
return strtolower(preg_replace('~(?<=\w)([A-Z])~', '-$1', $name));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Test/BaseControllerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class BaseControllerTestCase extends BaseTestCase
public function getController()
{
if (!$this->controller) {
preg_match('/Controller\\\\(.+?)ControllerTest/', static::class, $matches);
preg_match('/Controller\\\(.+?)ControllerTest/', static::class, $matches);
$values = [];
foreach (explode('\\', $matches[1]) as $value) {
$values[] = lcfirst($value);
Expand Down

0 comments on commit 1429edc

Please sign in to comment.