Skip to content

Commit ab41ed1

Browse files
authored
Format code by the latest cs-fixer. (#6617)
1 parent 7b446b7 commit ab41ed1

File tree

83 files changed

+88
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+88
-5
lines changed

src/Blade.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine;
1314

1415
use Hyperf\Context\ApplicationContext;

src/Command/GenerateViewCacheCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Command;
1314

1415
use Hyperf\Command\Command as HyperfCommand;

src/Command/ViewPublishCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Command;
1314

1415
use Hyperf\Command\Command as HyperfCommand;

src/Compiler/BladeCompiler.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler;
1314

1415
use Hyperf\Collection\Arr;

src/Compiler/Compiler.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler;
1314

1415
use Hyperf\Support\Filesystem\Filesystem;

src/Compiler/CompilerInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler;
1314

1415
interface CompilerInterface

src/Compiler/ComponentTagCompiler.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler;
1314

1415
use Hyperf\Stringable\Str;
@@ -117,8 +118,6 @@ public function componentClass(string $component): string
117118

118119
/**
119120
* Guess the view or class name for the given component.
120-
*
121-
* @return string
122121
*/
123122
public function guessComponentFromAutoload(FactoryInterface $viewFactory, string $component): ?string
124123
{

src/Compiler/Concern/CompilesComments.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
trait CompilesComments

src/Compiler/Concern/CompilesComponents.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
use Hyperf\Stringable\Str;

src/Compiler/Concern/CompilesConditionals.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
use Hyperf\Contract\ConfigInterface;

src/Compiler/Concern/CompilesEchos.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
trait CompilesEchos

src/Compiler/Concern/CompilesErrors.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
trait CompilesErrors

src/Compiler/Concern/CompilesIncludes.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
trait CompilesIncludes

src/Compiler/Concern/CompilesInjections.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
trait CompilesInjections

src/Compiler/Concern/CompilesJson.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
trait CompilesJson

src/Compiler/Concern/CompilesLayouts.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
use Hyperf\ViewEngine\Factory as ViewFactory;

src/Compiler/Concern/CompilesLoops.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
use Hyperf\ViewEngine\Exception\ViewCompilationException;

src/Compiler/Concern/CompilesRawPhp.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
trait CompilesRawPhp

src/Compiler/Concern/CompilesStacks.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
trait CompilesStacks

src/Compiler/Concern/CompilesTranslations.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Compiler\Concern;
1314

1415
trait CompilesTranslations

src/Component/AnonymousComponent.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Component;
1314

1415
class AnonymousComponent extends Component

src/Component/Component.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Component;
1314

1415
use Closure;

src/Component/ComponentAttributeBag.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Component;
1314

1415
use ArrayAccess;
@@ -18,6 +19,7 @@
1819
use Hyperf\Stringable\Str;
1920
use Hyperf\ViewEngine\Contract\Htmlable;
2021
use Hyperf\ViewEngine\HtmlString;
22+
use Hyperf\ViewEngine\T;
2123
use IteratorAggregate;
2224
use Traversable;
2325

@@ -221,7 +223,7 @@ public function merge(array $attributeDefaults = [], bool $forceMerge = false)
221223
return $value;
222224
}
223225

224-
return \Hyperf\ViewEngine\T::e($value);
226+
return T::e($value);
225227
}, $attributeDefaults);
226228

227229
foreach ($this->attributes as $key => $value) {

src/Component/DynamicComponent.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Component;
1314

1415
use Hyperf\Stringable\Str;

src/Component/InvokableComponentVariable.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Component;
1314

1415
use ArrayIterator;

src/Concern/ManagesComponents.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Concern;
1314

1415
use Closure;

src/Concern/ManagesEvents.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Concern;
1314

1415
use Closure;

src/Concern/ManagesLayouts.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Concern;
1314

1415
use Hyperf\ViewEngine\Contract\ViewInterface;

src/Concern/ManagesLoops.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Concern;
1314

1415
use Countable;

src/Concern/ManagesStacks.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Concern;
1314

1415
use InvalidArgumentException;

src/Concern/ManagesTranslations.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Concern;
1314

1415
use Hyperf\ViewEngine\Blade;

src/ConfigProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine;
1314

1415
use Hyperf\ViewEngine\Command\GenerateViewCacheCommand;

src/Contract/DeferringDisplayableValue.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Contract;
1314

1415
interface DeferringDisplayableValue

src/Contract/EngineInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Contract;
1314

1415
interface EngineInterface

src/Contract/EngineResolverInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Contract;
1314

1415
use Closure;

src/Contract/Enumerable.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Contract;
1314

1415
use Countable;

src/Contract/FactoryInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Contract;
1314

1415
use Closure;

src/Contract/FinderInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Contract;
1314

1415
interface FinderInterface

src/Contract/Htmlable.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Contract;
1314

1415
use Stringable;

src/Contract/Renderable.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Contract;
1314

1415
interface Renderable

src/Contract/ViewInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Contract;
1314

1415
interface ViewInterface extends Renderable

src/Engine/CompilerEngine.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Engine;
1314

1415
use ErrorException;

src/Engine/Engine.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Engine;
1314

1415
abstract class Engine

src/Engine/EngineResolver.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Engine;
1314

1415
use Closure;

src/Engine/FileEngine.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Engine;
1314

1415
use Hyperf\Support\Filesystem\Filesystem;

src/Engine/PhpEngine.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\ViewEngine\Engine;
1314

1415
use Hyperf\Support\Filesystem\Filesystem;

0 commit comments

Comments
 (0)