File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33namespace Native \Laravel \Compactor ;
44
55use PhpToken ;
6+ use RuntimeException ;
7+ use Webmozart \Assert \Assert ;
68
79class Php
810{
@@ -17,7 +19,7 @@ public function compact(string $file, string $contents): string
1719 return $ this ->compactContent ($ contents );
1820 }
1921
20- $ this ->compactContent ($ contents );
22+ return $ this ->compactContent ($ contents );
2123 }
2224
2325 protected function compactContent (string $ contents ): string
@@ -145,7 +147,6 @@ private function retokenizeAttribute(array &$tokens, int $opener): ?array
145147 {
146148 Assert::keyExists ($ tokens , $ opener );
147149
148- /** @var PhpToken $token */
149150 $ token = $ tokens [$ opener ];
150151 $ attributeBody = mb_substr ($ token ->text , 2 );
151152 $ subTokens = PhpToken::tokenize ('<?php ' .$ attributeBody );
You can’t perform that action at this time.
0 commit comments