@@ -25,7 +25,7 @@ |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
28 | - * @return mixed |
|
28 | + * @return string |
|
29 | 29 | */ |
30 | 30 | public function getFqcn() |
31 | 31 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | { |
56 | 56 | $fqcn = str_replace($base_fqcn, "", $this->getFqcn()); |
57 | 57 | $path = str_replace("\\", "/", $fqcn) . ".php"; |
58 | - if($path[0] == "/") { |
|
58 | + if ($path[0] == "/") { |
|
59 | 59 | $path = substr($path, 1); |
60 | 60 | } |
61 | 61 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | public function getBasePart(): string |
103 | 103 | { |
104 | 104 | $string = str_replace($this->getLastPart(), "", $this->getFqcn()); |
105 | - if($string[ -1 ] == "\\") { |
|
105 | + if ($string[ -1] == "\\") { |
|
106 | 106 | $string = substr($string, 0, -1); |
107 | 107 | } |
108 | 108 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | { |
122 | 122 | $string = str_replace("/", "\\", $string); |
123 | 123 | $string = preg_replace("#(\\\\){2,}#", "\\", $string); |
124 | - if(substr($string, -1, 1) == "\\") { |
|
124 | + if (substr($string, -1, 1) == "\\") { |
|
125 | 125 | $string = substr($string, 0, -1); |
126 | 126 | } |
127 | 127 |
@@ -18,7 +18,6 @@ |
||
18 | 18 | * Primitive constructor. |
19 | 19 | * |
20 | 20 | * @param string $name |
21 | - * @param string $alias |
|
22 | 21 | * @param array $src_stubs |
23 | 22 | * @param array $test_stubs |
24 | 23 | */ |
@@ -59,6 +59,6 @@ |
||
59 | 59 | { |
60 | 60 | Assert::thatAll([$this->name])->minLength(1); |
61 | 61 | Assert::that(count($this->test_stubs) + count($this->src_stubs)) |
62 | - ->min(1, "Provide at least one stub for this primitive"); |
|
62 | + ->min(1, "Provide at least one stub for this primitive"); |
|
63 | 63 | } |
64 | 64 | } |
65 | 65 | \ No newline at end of file |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace DDDGenApp\Input\Console\Commands; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace DDDGen\VO; |
5 | 5 |
@@ -121,8 +121,8 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | $target_path = $layer->getSrcDir() |
124 | - . DIRECTORY_SEPARATOR . $qcn->toPSR4Path() |
|
125 | - . DIRECTORY_SEPARATOR . $filename; |
|
124 | + . DIRECTORY_SEPARATOR . $qcn->toPSR4Path() |
|
125 | + . DIRECTORY_SEPARATOR . $filename; |
|
126 | 126 | |
127 | 127 | $generated_stubs[$target_path] = $stub; |
128 | 128 | |
@@ -140,8 +140,8 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | $target_path = $layer->getTestsDir() |
143 | - . DIRECTORY_SEPARATOR . $qcn->toPSR4Path() |
|
144 | - . DIRECTORY_SEPARATOR . $filename; |
|
143 | + . DIRECTORY_SEPARATOR . $qcn->toPSR4Path() |
|
144 | + . DIRECTORY_SEPARATOR . $filename; |
|
145 | 145 | |
146 | 146 | $generated_stubs[$target_path] = $stub; |
147 | 147 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace DDDGen; |
5 | 5 |