Skip to content

Commit

Permalink
Merge branch '7.x' into 8.x
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Sep 1, 2023
2 parents d1113bf + 7078100 commit ca0c13e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"composer/semver": "^3.0",
"illuminate/database": "^10.17",
"illuminate/support": "^10.17",
"orchestra/canvas-core": "^8.5",
"orchestra/canvas-core": "^8.6",
"symfony/yaml": "^6.2"
},
"require-dev": {
Expand Down
6 changes: 3 additions & 3 deletions src/Processors/GeneratesControllerCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
class GeneratesControllerCode extends GeneratesCode
{
/**
* Replace the namespace for the given stub.
* Handle generating code.
*/
protected function replaceNamespace(string $stub, string $name): string
protected function generatingCode(string $stub, string $name): string
{
$stub = parent::replaceNamespace($stub, $name);
$stub = parent::generatingCode($stub, $name);

$controllerNamespace = $this->getNamespace($name);

Expand Down
6 changes: 3 additions & 3 deletions src/Processors/GeneratesFactoryCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
class GeneratesFactoryCode extends GeneratesCode
{
/**
* Replace the namespace for the given stub.
* Handle generating code.
*/
protected function replaceNamespace(string $stub, string $name): string
protected function generatingCode(string $stub, string $name): string
{
$stub = parent::replaceNamespace($stub, $name);
$stub = parent::generatingCode($stub, $name);

$namespaceModel = ! empty($this->options['model'])
? $this->qualifyClass($this->options['model'])
Expand Down
6 changes: 3 additions & 3 deletions src/Processors/GeneratesListenerCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
class GeneratesListenerCode extends GeneratesCode
{
/**
* Replace the namespace for the given stub.
* Handle generating code.
*/
protected function replaceNamespace(string $stub, string $name): string
protected function generatingCode(string $stub, string $name): string
{
$stub = parent::replaceNamespace($stub, $name);
$stub = parent::generatingCode($stub, $name);

$event = $this->options['event'];

Expand Down
6 changes: 3 additions & 3 deletions src/Processors/GeneratesPolicyCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
class GeneratesPolicyCode extends GeneratesCode
{
/**
* Replace the namespace for the given stub.
* Handle generating code.
*/
protected function replaceNamespace(string $stub, string $name): string
protected function generatingCode(string $stub, string $name): string
{
$stub = $this->replaceUserNamespace(
parent::replaceNamespace($stub, $name)
parent::generatingCode($stub, $name)
);

$model = $this->options['model'];
Expand Down
6 changes: 3 additions & 3 deletions src/Processors/GeneratesRuleCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
class GeneratesRuleCode extends GeneratesCode
{
/**
* Replace the namespace for the given stub.
* Handle generating code.
*/
protected function replaceNamespace(string $stub, string $name): string
protected function generatingCode(string $stub, string $name): string
{
$stub = parent::replaceNamespace($stub, $name);
$stub = parent::generatingCode($stub, $name);

return str_replace(
'{{ ruleType }}', $this->options['implicit'] ? 'ImplicitRule' : 'Rule', $stub
Expand Down
6 changes: 3 additions & 3 deletions src/Processors/GeneratesTestingCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
class GeneratesTestingCode extends GeneratesCode
{
/**
* Replace the namespace for the given stub.
* Handle generating code.
*/
protected function replaceNamespace(string $stub, string $name): string
protected function generatingCode(string $stub, string $name): string
{
$stub = parent::replaceNamespace($stub, $name);
$stub = parent::generatingCode($stub, $name);

$testCase = $this->options['unit']
? $this->preset->config('testing.extends.unit', 'PHPUnit\Framework\TestCase')
Expand Down

0 comments on commit ca0c13e

Please sign in to comment.