Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Blade/BladeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class BladeManager
* tags, which ours usually is.
*
* @see https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md#v8230-2021-01-19.
*
* @var bool
*/
public static $affectedBySpacingBug = false;
Expand Down
6 changes: 3 additions & 3 deletions src/Blade/CodeComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class CodeComponent extends Component
* Create a new component instance.
*
* @param $language
* @param null $theme
* @param null $contents
* @param null $torchlightId
* @param null $theme
* @param null $contents
* @param null $torchlightId
*/
public function __construct($language, $theme = null, $contents = null, $torchlightId = null)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Block
protected $id;

/**
* @param null|string $id
* @param null|string $id
* @return static
*/
public static function make($id = null)
Expand All @@ -80,7 +80,7 @@ public static function make($id = null)
}

/**
* @param null|string $id
* @param null|string $id
*/
public function __construct($id = null)
{
Expand Down Expand Up @@ -124,7 +124,7 @@ public function hash()
}

/**
* @param string $extra
* @param string $extra
* @return string
*/
public function placeholder($extra = '')
Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ protected function setBlocksFromCache(Collection $blocks)
/**
* In the case where nothing returns from the API, we have to show _something_.
*
* @param Block $block
* @param Block $block
* @return array
*/
protected function defaultResponse(Block $block)
Expand Down
2 changes: 2 additions & 0 deletions src/Commands/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ class Install extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'torchlight:install';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Install the Torchlight config file into your app.';
Expand Down
13 changes: 7 additions & 6 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Manager
protected $currentlyCompilingViews = false;

/**
* @param Client $client
* @param Client $client
* @return Manager
*/
public function setClient(Client $client)
Expand Down Expand Up @@ -100,15 +100,16 @@ public function environment()
}

/**
* @param string|null $environment
* @param string|null $environment
*/
public function overrideEnvironment($environment = null)
{
$this->environment = $environment;
}

/**
* @param array|string $classes
* @param array|string $classes
*
* @throws ConfigurationException
*/
public function addPostProcessors($classes)
Expand Down Expand Up @@ -172,7 +173,7 @@ public function processFileContents($file)
* Get an item out of the config using dot notation.
*
* @param $key
* @param null $default
* @param null $default
* @return mixed
*/
public function config($key, $default = null)
Expand Down Expand Up @@ -209,7 +210,7 @@ public function getConfigUsing($callback)
/**
* Set the cache implementation directly instead of using a driver.
*
* @param Repository $cache
* @param Repository $cache
*/
public function setCacheInstance(Repository $cache)
{
Expand All @@ -235,7 +236,7 @@ public function cache()
/**
* Return all the Torchlight IDs in a given string.
*
* @param string $content
* @param string $content
* @return array
*/
public function findTorchlightIds($content)
Expand Down
4 changes: 2 additions & 2 deletions src/Middleware/RenderTorchlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class RenderTorchlight
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
Expand Down
1 change: 1 addition & 0 deletions src/Torchlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Torchlight extends Facade
{
/**
* @return string
*
* @see Manager
*/
protected static function getFacadeAccessor()
Expand Down
1 change: 1 addition & 0 deletions src/TorchlightServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public function decorateGrahamCampbellEngines()

/**
* Decorate a single view engine.
*
* @param $name
*/
protected function decorateEngine($name)
Expand Down
1 change: 0 additions & 1 deletion tests/MiddlewareAndComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ public function two_code_in_one_pre()
);
}


/** @test */
public function two_components_work()
{
Expand Down