@@ -136,6 +136,4 @@ |
||
| 136 | 136 | mkdir($dir, $mask, true); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - return file_put_contents($path, $this); |
|
| 140 | - } |
|
| 141 | -} |
|
| 139 | + return file_put_contents($path, $this |
|
| 142 | 140 | \ No newline at end of file |
@@ -136,6 +136,4 @@ |
||
| 136 | 136 | mkdir($dir, $mask, true); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - return file_put_contents($path, $this); |
|
| 140 | - } |
|
| 141 | -} |
|
| 139 | + return file_put_contents($path, $this |
|
| 142 | 140 | \ No newline at end of file |
@@ -136,6 +136,4 @@ |
||
| 136 | 136 | mkdir($dir, $mask, true); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - return file_put_contents($path, $this); |
|
| 140 | - } |
|
| 141 | -} |
|
| 139 | + return file_put_contents($path, $this |
|
| 142 | 140 | \ No newline at end of file |
@@ -136,6 +136,4 @@ |
||
| 136 | 136 | mkdir($dir, $mask, true); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - return file_put_contents($path, $this); |
|
| 140 | - } |
|
| 141 | -} |
|
| 139 | + return file_put_contents($path, $this |
|
| 142 | 140 | \ No newline at end of file |
@@ -136,6 +136,4 @@ |
||
| 136 | 136 | mkdir($dir, $mask, true); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - return file_put_contents($path, $this); |
|
| 140 | - } |
|
| 141 | -} |
|
| 139 | + return file_put_contents($path, $this |
|
| 142 | 140 | \ No newline at end of file |
@@ -23,8 +23,4 @@ |
||
| 23 | 23 | { |
| 24 | 24 | return <<<CODE |
| 25 | 25 | $this->signature { |
| 26 | - {$this->generateContent()} |
|
| 27 | - } |
|
| 28 | - CODE; |
|
| 29 | - } |
|
| 30 | -} |
|
| 26 | + {$this->generateContent()} |
|
| 31 | 27 | \ No newline at end of file |
@@ -23,8 +23,4 @@ |
||
| 23 | 23 | { |
| 24 | 24 | return <<<CODE |
| 25 | 25 | $this->signature { |
| 26 | - {$this->generateContent()} |
|
| 27 | - } |
|
| 28 | - CODE; |
|
| 29 | - } |
|
| 30 | -} |
|
| 26 | + {$this->generateContent()} |
|
| 31 | 27 | \ No newline at end of file |
@@ -23,8 +23,4 @@ |
||
| 23 | 23 | { |
| 24 | 24 | return <<<CODE |
| 25 | 25 | $this->signature { |
| 26 | - {$this->generateContent()} |
|
| 27 | - } |
|
| 28 | - CODE; |
|
| 29 | - } |
|
| 30 | -} |
|
| 26 | + {$this->generateContent()} |
|
| 31 | 27 | \ No newline at end of file |
@@ -23,8 +23,4 @@ |
||
| 23 | 23 | { |
| 24 | 24 | return <<<CODE |
| 25 | 25 | $this->signature { |
| 26 | - {$this->generateContent()} |
|
| 27 | - } |
|
| 28 | - CODE; |
|
| 29 | - } |
|
| 30 | -} |
|
| 26 | + {$this->generateContent()} |
|
| 31 | 27 | \ No newline at end of file |
@@ -23,8 +23,4 @@ |
||
| 23 | 23 | { |
| 24 | 24 | return <<<CODE |
| 25 | 25 | $this->signature { |
| 26 | - {$this->generateContent()} |
|
| 27 | - } |
|
| 28 | - CODE; |
|
| 29 | - } |
|
| 30 | -} |
|
| 26 | + {$this->generateContent()} |
|
| 31 | 27 | \ No newline at end of file |
@@ -25,8 +25,4 @@ |
||
| 25 | 25 | return <<<CODE |
| 26 | 26 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 27 | 27 | { |
| 28 | - {$this->generateContent()} |
|
| 29 | - } |
|
| 30 | - CODE; |
|
| 31 | - } |
|
| 32 | -} |
|
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -25,8 +25,4 @@ |
||
| 25 | 25 | return <<<CODE |
| 26 | 26 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 27 | 27 | { |
| 28 | - {$this->generateContent()} |
|
| 29 | - } |
|
| 30 | - CODE; |
|
| 31 | - } |
|
| 32 | -} |
|
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -25,8 +25,4 @@ |
||
| 25 | 25 | return <<<CODE |
| 26 | 26 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 27 | 27 | { |
| 28 | - {$this->generateContent()} |
|
| 29 | - } |
|
| 30 | - CODE; |
|
| 31 | - } |
|
| 32 | -} |
|
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -25,8 +25,4 @@ |
||
| 25 | 25 | return <<<CODE |
| 26 | 26 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 27 | 27 | { |
| 28 | - {$this->generateContent()} |
|
| 29 | - } |
|
| 30 | - CODE; |
|
| 31 | - } |
|
| 32 | -} |
|
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -25,8 +25,4 @@ |
||
| 25 | 25 | return <<<CODE |
| 26 | 26 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 27 | 27 | { |
| 28 | - {$this->generateContent()} |
|
| 29 | - } |
|
| 30 | - CODE; |
|
| 31 | - } |
|
| 32 | -} |
|
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -58,6 +58,4 @@ |
||
| 58 | 58 | |
| 59 | 59 | public static function doWhile(string $condition) |
| 60 | 60 | { |
| 61 | - return new self($condition, self::TYPE_DO_WHILE); |
|
| 62 | - } |
|
| 63 | -} |
|
| 61 | + return new self($condition |
|
| 64 | 62 | \ No newline at end of file |
@@ -58,6 +58,4 @@ |
||
| 58 | 58 | |
| 59 | 59 | public static function doWhile(string $condition) |
| 60 | 60 | { |
| 61 | - return new self($condition, self::TYPE_DO_WHILE); |
|
| 62 | - } |
|
| 63 | -} |
|
| 61 | + return new self($condition |
|
| 64 | 62 | \ No newline at end of file |
@@ -58,6 +58,4 @@ |
||
| 58 | 58 | |
| 59 | 59 | public static function doWhile(string $condition) |
| 60 | 60 | { |
| 61 | - return new self($condition, self::TYPE_DO_WHILE); |
|
| 62 | - } |
|
| 63 | -} |
|
| 61 | + return new self($condition |
|
| 64 | 62 | \ No newline at end of file |
@@ -58,6 +58,4 @@ |
||
| 58 | 58 | |
| 59 | 59 | public static function doWhile(string $condition) |
| 60 | 60 | { |
| 61 | - return new self($condition, self::TYPE_DO_WHILE); |
|
| 62 | - } |
|
| 63 | -} |
|
| 61 | + return new self($condition |
|
| 64 | 62 | \ No newline at end of file |
@@ -58,6 +58,4 @@ |
||
| 58 | 58 | |
| 59 | 59 | public static function doWhile(string $condition) |
| 60 | 60 | { |
| 61 | - return new self($condition, self::TYPE_DO_WHILE); |
|
| 62 | - } |
|
| 63 | -} |
|
| 61 | + return new self($condition |
|
| 64 | 62 | \ No newline at end of file |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | $args = ''; |
| 114 | 114 | |
| 115 | 115 | foreach ($this->args as $arg) { |
| 116 | - $args .= Utils::stringify($arg) . ', '; |
|
| 116 | + $args .= Utils::stringify($arg).', '; |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | $args = rtrim($args, ', '); |
@@ -122,8 +122,4 @@ |
||
| 122 | 122 | |
| 123 | 123 | public function generate(): string |
| 124 | 124 | { |
| 125 | - return " else {\n{$this->generateContent()}\n}"; |
|
| 126 | - } |
|
| 127 | - }; |
|
| 128 | - } |
|
| 129 | -} |
|
| 125 | + return " else {\n{$this->generateContent()} |
|
| 130 | 126 | \ No newline at end of file |
@@ -122,8 +122,4 @@ |
||
| 122 | 122 | |
| 123 | 123 | public function generate(): string |
| 124 | 124 | { |
| 125 | - return " else {\n{$this->generateContent()}\n}"; |
|
| 126 | - } |
|
| 127 | - }; |
|
| 128 | - } |
|
| 129 | -} |
|
| 125 | + return " else {\n{$this->generateContent()} |
|
| 130 | 126 | \ No newline at end of file |
@@ -122,8 +122,4 @@ |
||
| 122 | 122 | |
| 123 | 123 | public function generate(): string |
| 124 | 124 | { |
| 125 | - return " else {\n{$this->generateContent()}\n}"; |
|
| 126 | - } |
|
| 127 | - }; |
|
| 128 | - } |
|
| 129 | -} |
|
| 125 | + return " else {\n{$this->generateContent()} |
|
| 130 | 126 | \ No newline at end of file |
@@ -122,8 +122,4 @@ |
||
| 122 | 122 | |
| 123 | 123 | public function generate(): string |
| 124 | 124 | { |
| 125 | - return " else {\n{$this->generateContent()}\n}"; |
|
| 126 | - } |
|
| 127 | - }; |
|
| 128 | - } |
|
| 129 | -} |
|
| 125 | + return " else {\n{$this->generateContent()} |
|
| 130 | 126 | \ No newline at end of file |
@@ -122,8 +122,4 @@ |
||
| 122 | 122 | |
| 123 | 123 | public function generate(): string |
| 124 | 124 | { |
| 125 | - return " else {\n{$this->generateContent()}\n}"; |
|
| 126 | - } |
|
| 127 | - }; |
|
| 128 | - } |
|
| 129 | -} |
|
| 125 | + return " else {\n{$this->generateContent()} |
|
| 130 | 126 | \ No newline at end of file |
@@ -24,8 +24,4 @@ |
||
| 24 | 24 | return <<<CODE |
| 25 | 25 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 26 | 26 | { |
| 27 | - {$this->generateContent()} |
|
| 28 | - } |
|
| 29 | - CODE; |
|
| 30 | - } |
|
| 31 | -} |
|
| 32 | 27 | \ No newline at end of file |
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -24,8 +24,4 @@ |
||
| 24 | 24 | return <<<CODE |
| 25 | 25 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 26 | 26 | { |
| 27 | - {$this->generateContent()} |
|
| 28 | - } |
|
| 29 | - CODE; |
|
| 30 | - } |
|
| 31 | -} |
|
| 32 | 27 | \ No newline at end of file |
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -24,8 +24,4 @@ |
||
| 24 | 24 | return <<<CODE |
| 25 | 25 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 26 | 26 | { |
| 27 | - {$this->generateContent()} |
|
| 28 | - } |
|
| 29 | - CODE; |
|
| 30 | - } |
|
| 31 | -} |
|
| 32 | 27 | \ No newline at end of file |
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -24,8 +24,4 @@ |
||
| 24 | 24 | return <<<CODE |
| 25 | 25 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 26 | 26 | { |
| 27 | - {$this->generateContent()} |
|
| 28 | - } |
|
| 29 | - CODE; |
|
| 30 | - } |
|
| 31 | -} |
|
| 32 | 27 | \ No newline at end of file |
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -24,8 +24,4 @@ |
||
| 24 | 24 | return <<<CODE |
| 25 | 25 | {$this->buildDocBlock()}{$this->signature->generate(false)} |
| 26 | 26 | { |
| 27 | - {$this->generateContent()} |
|
| 28 | - } |
|
| 29 | - CODE; |
|
| 30 | - } |
|
| 31 | -} |
|
| 32 | 27 | \ No newline at end of file |
| 28 | + {$this->generateContent()} |
|
| 33 | 29 | \ No newline at end of file |
@@ -48,8 +48,4 @@ |
||
| 48 | 48 | return <<<CODE |
| 49 | 49 | {$this->buildDocBlock()}trait $this->name |
| 50 | 50 | { |
| 51 | - {$this->generateContent()} |
|
| 52 | - } |
|
| 53 | - CODE; |
|
| 54 | - } |
|
| 55 | -} |
|
| 56 | 51 | \ No newline at end of file |
| 52 | + {$this->generateContent()} |
|
| 57 | 53 | \ No newline at end of file |
@@ -48,8 +48,4 @@ |
||
| 48 | 48 | return <<<CODE |
| 49 | 49 | {$this->buildDocBlock()}trait $this->name |
| 50 | 50 | { |
| 51 | - {$this->generateContent()} |
|
| 52 | - } |
|
| 53 | - CODE; |
|
| 54 | - } |
|
| 55 | -} |
|
| 56 | 51 | \ No newline at end of file |
| 52 | + {$this->generateContent()} |
|
| 57 | 53 | \ No newline at end of file |
@@ -48,8 +48,4 @@ |
||
| 48 | 48 | return <<<CODE |
| 49 | 49 | {$this->buildDocBlock()}trait $this->name |
| 50 | 50 | { |
| 51 | - {$this->generateContent()} |
|
| 52 | - } |
|
| 53 | - CODE; |
|
| 54 | - } |
|
| 55 | -} |
|
| 56 | 51 | \ No newline at end of file |
| 52 | + {$this->generateContent()} |
|
| 57 | 53 | \ No newline at end of file |
@@ -48,8 +48,4 @@ |
||
| 48 | 48 | return <<<CODE |
| 49 | 49 | {$this->buildDocBlock()}trait $this->name |
| 50 | 50 | { |
| 51 | - {$this->generateContent()} |
|
| 52 | - } |
|
| 53 | - CODE; |
|
| 54 | - } |
|
| 55 | -} |
|
| 56 | 51 | \ No newline at end of file |
| 52 | + {$this->generateContent()} |
|
| 57 | 53 | \ No newline at end of file |
@@ -48,8 +48,4 @@ |
||
| 48 | 48 | return <<<CODE |
| 49 | 49 | {$this->buildDocBlock()}trait $this->name |
| 50 | 50 | { |
| 51 | - {$this->generateContent()} |
|
| 52 | - } |
|
| 53 | - CODE; |
|
| 54 | - } |
|
| 55 | -} |
|
| 56 | 51 | \ No newline at end of file |
| 52 | + {$this->generateContent()} |
|
| 57 | 53 | \ No newline at end of file |
@@ -12,13 +12,4 @@ |
||
| 12 | 12 | { |
| 13 | 13 | return <<<CODE |
| 14 | 14 | { |
| 15 | - {$this->generateContent()} |
|
| 16 | - } |
|
| 17 | - CODE; |
|
| 18 | - } |
|
| 19 | - |
|
| 20 | - public static function new() |
|
| 21 | - { |
|
| 22 | - return new static(); |
|
| 23 | - } |
|
| 24 | -} |
|
| 15 | + {$this->generateContent()} |
|
| 25 | 16 | \ No newline at end of file |
@@ -12,13 +12,4 @@ |
||
| 12 | 12 | { |
| 13 | 13 | return <<<CODE |
| 14 | 14 | { |
| 15 | - {$this->generateContent()} |
|
| 16 | - } |
|
| 17 | - CODE; |
|
| 18 | - } |
|
| 19 | - |
|
| 20 | - public static function new() |
|
| 21 | - { |
|
| 22 | - return new static(); |
|
| 23 | - } |
|
| 24 | -} |
|
| 15 | + {$this->generateContent()} |
|
| 25 | 16 | \ No newline at end of file |
@@ -12,13 +12,4 @@ |
||
| 12 | 12 | { |
| 13 | 13 | return <<<CODE |
| 14 | 14 | { |
| 15 | - {$this->generateContent()} |
|
| 16 | - } |
|
| 17 | - CODE; |
|
| 18 | - } |
|
| 19 | - |
|
| 20 | - public static function new() |
|
| 21 | - { |
|
| 22 | - return new static(); |
|
| 23 | - } |
|
| 24 | -} |
|
| 15 | + {$this->generateContent()} |
|
| 25 | 16 | \ No newline at end of file |
@@ -12,13 +12,4 @@ |
||
| 12 | 12 | { |
| 13 | 13 | return <<<CODE |
| 14 | 14 | { |
| 15 | - {$this->generateContent()} |
|
| 16 | - } |
|
| 17 | - CODE; |
|
| 18 | - } |
|
| 19 | - |
|
| 20 | - public static function new() |
|
| 21 | - { |
|
| 22 | - return new static(); |
|
| 23 | - } |
|
| 24 | -} |
|
| 15 | + {$this->generateContent()} |
|
| 25 | 16 | \ No newline at end of file |
@@ -12,13 +12,4 @@ |
||
| 12 | 12 | { |
| 13 | 13 | return <<<CODE |
| 14 | 14 | { |
| 15 | - {$this->generateContent()} |
|
| 16 | - } |
|
| 17 | - CODE; |
|
| 18 | - } |
|
| 19 | - |
|
| 20 | - public static function new() |
|
| 21 | - { |
|
| 22 | - return new static(); |
|
| 23 | - } |
|
| 24 | -} |
|
| 15 | + {$this->generateContent()} |
|
| 25 | 16 | \ No newline at end of file |