repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
restcord/restcord
https://github.com/restcord/restcord/blob/8619e1a05e4df994c15bd457562eddbf99dea35f/src/Traits/IconTrait.php
src/Traits/IconTrait.php
<?php /* * Copyright 2017 Aaron Scherer * * This source file is subject to the license that is bundled * with this source code in the file LICENSE * * @package restcord/restcord * @copyright Aaron Scherer 2017 * @license MIT */ namespace RestCord\Traits; use RestCord\Constants; /** * @author Aar...
php
MIT
8619e1a05e4df994c15bd457562eddbf99dea35f
2026-01-05T03:41:05.801827Z
false
restcord/restcord
https://github.com/restcord/restcord/blob/8619e1a05e4df994c15bd457562eddbf99dea35f/src/Logging/MessageFormatter.php
src/Logging/MessageFormatter.php
<?php /* * Copyright 2017 Aaron Scherer * * This source file is subject to the license that is bundled * with this source code in the file LICENSE * * @package restcord/restcord * @copyright Aaron Scherer 2017 * @license MIT */ namespace RestCord\Logging; use Psr\Http\Message\RequestInterface; use...
php
MIT
8619e1a05e4df994c15bd457562eddbf99dea35f
2026-01-05T03:41:05.801827Z
false
restcord/restcord
https://github.com/restcord/restcord/blob/8619e1a05e4df994c15bd457562eddbf99dea35f/src/RateLimit/RateLimiter.php
src/RateLimit/RateLimiter.php
<?php /* * Copyright 2017 Aaron Scherer * * This source file is subject to the license that is bundled * with this source code in the file LICENSE * * @package restcord/restcord * @copyright Aaron Scherer 2017 * @license MIT */ namespace RestCord\RateLimit; use Psr\Http\Message\RequestInterface; u...
php
MIT
8619e1a05e4df994c15bd457562eddbf99dea35f
2026-01-05T03:41:05.801827Z
false
restcord/restcord
https://github.com/restcord/restcord/blob/8619e1a05e4df994c15bd457562eddbf99dea35f/src/RateLimit/RatelimitException.php
src/RateLimit/RatelimitException.php
<?php /* * Copyright 2017 Aaron Scherer * * This source file is subject to the license that is bundled * with this source code in the file LICENSE * * @package restcord/restcord * @copyright Aaron Scherer 2017 * @license MIT */ namespace RestCord\RateLimit; /** * @author Aaron Scherer <aequasi@gm...
php
MIT
8619e1a05e4df994c15bd457562eddbf99dea35f
2026-01-05T03:41:05.801827Z
false
restcord/restcord
https://github.com/restcord/restcord/blob/8619e1a05e4df994c15bd457562eddbf99dea35f/src/RateLimit/Provider/MemoryRateLimitProvider.php
src/RateLimit/Provider/MemoryRateLimitProvider.php
<?php /* * Copyright 2017 Aaron Scherer * * This source file is subject to the license that is bundled * with this source code in the file LICENSE * * @package restcord/restcord * @copyright Aaron Scherer 2017 * @license MIT */ namespace RestCord\RateLimit\Provider; use Psr\Http\Message\RequestInt...
php
MIT
8619e1a05e4df994c15bd457562eddbf99dea35f
2026-01-05T03:41:05.801827Z
false
restcord/restcord
https://github.com/restcord/restcord/blob/8619e1a05e4df994c15bd457562eddbf99dea35f/src/RateLimit/Provider/RedisRateLimitProvider.php
src/RateLimit/Provider/RedisRateLimitProvider.php
<?php /* * Copyright 2017 Aaron Scherer * * This source file is subject to the license that is bundled * with this source code in the file LICENSE * * @package restcord/restcord * @copyright Aaron Scherer 2017 * @license MIT */ namespace RestCord\RateLimit\Provider; use Psr\Http\Message\RequestInt...
php
MIT
8619e1a05e4df994c15bd457562eddbf99dea35f
2026-01-05T03:41:05.801827Z
false
restcord/restcord
https://github.com/restcord/restcord/blob/8619e1a05e4df994c15bd457562eddbf99dea35f/src/RateLimit/Provider/AbstractRateLimitProvider.php
src/RateLimit/Provider/AbstractRateLimitProvider.php
<?php /* * Copyright 2017 Aaron Scherer * * This source file is subject to the license that is bundled * with this source code in the file LICENSE * * @package restcord/restcord * @copyright Aaron Scherer 2017 * @license MIT */ namespace RestCord\RateLimit\Provider; use Psr\Http\Message\RequestInt...
php
MIT
8619e1a05e4df994c15bd457562eddbf99dea35f
2026-01-05T03:41:05.801827Z
false
restcord/restcord
https://github.com/restcord/restcord/blob/8619e1a05e4df994c15bd457562eddbf99dea35f/tests/ServiceDescriptionTest.php
tests/ServiceDescriptionTest.php
<?php /* * Copyright 2017 Aaron Scherer * * This source file is subject to the license that is bundled * with this source code in the file LICENSE * * @package restcord/restcord * @copyright Aaron Scherer 2017 * @license MIT */ namespace RestCord\Tests; use GuzzleHttp\Command\Result; use PHPUnit\F...
php
MIT
8619e1a05e4df994c15bd457562eddbf99dea35f
2026-01-05T03:41:05.801827Z
false
restcord/restcord
https://github.com/restcord/restcord/blob/8619e1a05e4df994c15bd457562eddbf99dea35f/bin/stupidFunctionalTest.php
bin/stupidFunctionalTest.php
<?php /* * Copyright 2017 Aaron Scherer * * This source file is subject to the license that is bundled * with this source code in the file LICENSE * * @package restcord/restcord * @copyright Aaron Scherer 2017 * @license MIT */ require __DIR__.'/../vendor/autoload.php'; set_error_handler( func...
php
MIT
8619e1a05e4df994c15bd457562eddbf99dea35f
2026-01-05T03:41:05.801827Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/src/StringBladeServiceProvider.php
src/StringBladeServiceProvider.php
<?php namespace Wpb\String_Blade_Compiler; use Illuminate\View\FileViewFinder; use Illuminate\View\ViewServiceProvider; use Illuminate\View\Engines\EngineResolver; use Wpb\String_Blade_Compiler\Engines\CompilerEngine; use Wpb\String_Blade_Compiler\Compilers\StringBladeCompiler; class StringBladeServiceProvider exten...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/src/StringView.php
src/StringView.php
<?php namespace Wpb\String_Blade_Compiler; use Exception; use Throwable; use ArrayAccess; use BadMethodCallException; use Illuminate\Support\Str; use Illuminate\Support\MessageBag; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Renderable; use Illuminate\Contracts\Support\MessageProvider...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/src/Factory.php
src/Factory.php
<?php namespace Wpb\String_Blade_Compiler; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\View\Factory as FactoryParent; use Illuminate\View\Engines\EngineResolver; use Illuminate\View\ViewFinderInterface; use InvalidArgumentException; class Factory extends FactoryParent { /** * The engine imple...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/src/View.php
src/View.php
<?php namespace Wpb\String_Blade_Compiler; use Exception; use Throwable; use ArrayAccess; use BadMethodCallException; use Illuminate\Support\Str; use Illuminate\Support\MessageBag; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Renderable; use Illuminate\Contracts\Support\MessageProvider...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/src/Engines/CompilerEngine.php
src/Engines/CompilerEngine.php
<?php namespace Wpb\String_Blade_Compiler\Engines; use Exception; use ErrorException; use Illuminate\View\Compilers\CompilerInterface; class CompilerEngine extends \Illuminate\View\Engines\CompilerEngine { /** * Bool Flag to Enable/Disable removal of the generated view cache file. * * @var bool ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/src/Facades/StringBlade.php
src/Facades/StringBlade.php
<?php namespace Wpb\String_Blade_Compiler\Facades; use Illuminate\Support\Facades\Facade; use Wpb\String_Blade_Compiler\Compilers\StringBladeCompiler; /** * @method static bool exists(string $view) * @method static \Illuminate\Contracts\View\View file(string $path, array $data = [], array $mergeData = []) * @meth...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/src/Compilers/StringBladeCompiler.php
src/Compilers/StringBladeCompiler.php
<?php namespace Wpb\String_Blade_Compiler\Compilers; use Config; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Str; use Illuminate\View\Compilers\CompilerInterface; use InvalidArgumentException; class StringBladeCompiler extends BladeCompiler { private $use_cache_keys = []; private $viewData ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/src/Compilers/BladeCompiler.php
src/Compilers/BladeCompiler.php
<?php namespace Wpb\String_Blade_Compiler\Compilers; use Illuminate\View\Compilers\BladeCompiler as BladeCompilerParent; class BladeCompiler extends BladeCompilerParent { /** * Switch to force template recompile */ protected $forceTemplateRecompile = false; /** * Switch to track escape ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/bootstrap.php
tests/bootstrap.php
<?php /* |-------------------------------------------------------------------------- | Register The Composer Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader | for our application. We just need to utilize it...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/StringViewTest.php
tests/View/StringViewTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\View; use Closure; use ArrayAccess; use Mockery as m; //use Illuminate\View\View; use Wpb\String_Blade_Compiler\StringView as View; use BadMethodCallException; //use Illuminate\View\Factory; use Wpb\String_Blade_Compiler\Factory; use PHPUnit\Framework\TestCase; use Illu...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/ViewCompilerEngineTest.php
tests/View/ViewCompilerEngineTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\View; use Mockery as m; use PHPUnit\Framework\TestCase; //use Illuminate\View\Engines\CompilerEngine; use \Wpb\String_Blade_Compiler\Engines\CompilerEngine; use Illuminate\View\Compilers\CompilerInterface; class ViewCompilerEngineTest extends TestCase { protected f...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/ViewFactoryTest.php
tests/View/ViewFactoryTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\View; use Closure; use stdClass; use Mockery as m; use ErrorException; use ReflectionFunction; //use Illuminate\View\View; use Wpb\String_Blade_Compiler\View; //use Illuminate\View\Factory; use Wpb\String_Blade_Compiler\Factory; use InvalidArgumentException; use PHPUnit...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/DataObjectStub.php
tests/View/DataObjectStub.php
<?php namespace Wpb\String_Blade_Compiler\Tests\View; class DataObjectStub { public $foo = 'bar'; }
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/ViewStringBladeCompilerTest.php
tests/View/ViewStringBladeCompilerTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\View; use Mockery as m; use InvalidArgumentException; use PHPUnit\Framework\TestCase; use Illuminate\Filesystem\Filesystem; use Wpb\String_Blade_Compiler\Compilers\StringBladeCompiler as BladeCompiler; class ViewStringBladeCompilerTest extends TestCase { protected ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/ViewTest.php
tests/View/ViewTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\View; use Closure; use ArrayAccess; use Mockery as m; //use Illuminate\View\View; use Wpb\String_Blade_Compiler\View; use BadMethodCallException; //use Illuminate\View\Factory; use Wpb\String_Blade_Compiler\Factory; use PHPUnit\Framework\TestCase; use Illuminate\Support...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeIncludeFirstTest.php
tests/View/Blade/BladeIncludeFirstTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeIncludeFirstTest extends AbstractBladeTestCase { public function testIncludeFirstsAreCompiled() { $this->assertEquals('<?php echo $__env->first(["one", "two"], \Illuminate\Support\Arr::except(get_defined_vars(), [\'__data\', \'__path\']...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeYieldTest.php
tests/View/Blade/BladeYieldTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeYieldTest extends AbstractBladeTestCase { public function testYieldsAreCompiled() { $this->assertEquals('<?php echo $__env->yieldContent(\'foo\'); ?>', $this->compiler->compileString('@yield(\'foo\')')); $this->assertEquals('<?p...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeIncludeWhenTest.php
tests/View/Blade/BladeIncludeWhenTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeIncludeWhenTest extends AbstractBladeTestCase { public function testIncludeWhensAreCompiled() { $this->assertEquals('<?php echo $__env->renderWhen(true, \'foo\', ["foo" => "bar"], \Illuminate\Support\Arr::except(get_defined_vars(), [\'_...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/AbstractBladeTestCase.php
tests/View/Blade/AbstractBladeTestCase.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; use Mockery as m; use PHPUnit\Framework\TestCase; use Illuminate\Filesystem\Filesystem; //use Illuminate\View\Compilers\BladeCompiler; use Wpb\String_Blade_Compiler\Compilers\StringBladeCompiler as BladeCompiler; abstract class AbstractBladeTestCase extends Test...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeExpressionTest.php
tests/View/Blade/BladeExpressionTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeExpressionTest extends AbstractBladeTestCase { public function testExpressionsOnTheSameLine() { $this->assertEquals('<?php echo app(\'translator\')->getFromJson(foo(bar(baz(qux(breeze()))))); ?> space () <?php echo app(\'translator\')->...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeForStatementsTest.php
tests/View/Blade/BladeForStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeForStatementsTest extends AbstractBladeTestCase { public function testForStatementsAreCompiled() { $string = '@for ($i = 0; $i < 10; $i++) test @endfor'; $expected = '<?php for($i = 0; $i < 10; $i++): ?> test <?php endfor; ?>'; ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeIfIssetStatementsTest.php
tests/View/Blade/BladeIfIssetStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeIfIssetStatementsTest extends AbstractBladeTestCase { public function testIfStatementsAreCompiled() { $string = '@isset ($test) breeze @endisset'; $expected = '<?php if(isset($test)): ?> breeze <?php endif; ?>'; $this->a...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeCustomTest.php
tests/View/Blade/BladeCustomTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeCustomTest extends AbstractBladeTestCase { public function testCustomPhpCodeIsCorrectlyHandled() { $this->assertEquals('<?php if($test): ?> <?php @show(\'test\'); ?> <?php endif; ?>', $this->compiler->compileString("@if(\$test) <?php @s...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeEchoTest.php
tests/View/Blade/BladeEchoTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeEchoTest extends AbstractBladeTestCase { public function testEchosAreCompiled() { $this->assertEquals('<?php echo $name; ?>', $this->compiler->compileString('{!!$name!!}')); $this->assertEquals('<?php echo $name; ?>', $this->com...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeWhileStatementsTest.php
tests/View/Blade/BladeWhileStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeWhileStatementsTest extends AbstractBladeTestCase { public function testWhileStatementsAreCompiled() { $string = '@while ($foo) test @endwhile'; $expected = '<?php while($foo): ?> test <?php endwhile; ?>'; $this->assertE...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeEscapedTest.php
tests/View/Blade/BladeEscapedTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeEscapedTest extends AbstractBladeTestCase { public function testEscapedWithAtDirectivesAreCompiled() { $this->assertEquals('@foreach', $this->compiler->compileString('@@foreach')); $this->assertEquals('@verbatim @continue @endve...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeForeachStatementsTest.php
tests/View/Blade/BladeForeachStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeForeachStatementsTest extends AbstractBladeTestCase { public function testForeachStatementsAreCompiled() { $string = '@foreach ($this->getUsers() as $user) test @endforeach'; $expected = '<?php $__currentLoopData = $this->getUse...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeElseStatementsTest.php
tests/View/Blade/BladeElseStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeElseStatementsTest extends AbstractBladeTestCase { public function testElseStatementsAreCompiled() { $string = '@if (name(foo(bar))) breeze @else boom @endif'; $expected = '<?php if(name(foo(bar))): ?> breeze <?php else: ?> boom...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeCananyStatementsTest.php
tests/View/Blade/BladeCananyStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeCananyStatementsTest extends AbstractBladeTestCase { public function testCananyStatementsAreCompiled() { $string = '@canany ([\'create\', \'update\'], [$post]) breeze @elsecanany([\'delete\', \'approve\'], [$post]) sneeze @endcan'; ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeIfGuestStatementsTest.php
tests/View/Blade/BladeIfGuestStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; use Mockery as m; use PHPUnit\Framework\TestCase; use Illuminate\Filesystem\Filesystem; use Illuminate\View\Compilers\BladeCompiler; class BladeIfGuestStatementsTest extends TestCase { protected function tearDown(): void { m::close(); } ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeIncludeIfTest.php
tests/View/Blade/BladeIncludeIfTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeIncludeIfTest extends AbstractBladeTestCase { public function testIncludeIfsAreCompiled() { $this->assertEquals('<?php if ($__env->exists(\'foo\')) echo $__env->make(\'foo\', \Illuminate\Support\Arr::except(get_defined_vars(), [\'__data...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeAppendTest.php
tests/View/Blade/BladeAppendTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeAppendTest extends AbstractBladeTestCase { public function testAppendSectionsAreCompiled() { $this->assertEquals('<?php $__env->appendSection(); ?>', $this->compiler->compileString('@append')); } }
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeCommentsTest.php
tests/View/Blade/BladeCommentsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeCommentsTest extends AbstractBladeTestCase { public function testCommentsAreCompiled() { $string = '{{--this is a comment--}}'; $this->assertEmpty($this->compiler->compileString($string)); $string = '{{-- this is a comm...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeElseIfStatementsTest.php
tests/View/Blade/BladeElseIfStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeElseIfStatementsTest extends AbstractBladeTestCase { public function testElseIfStatementsAreCompiled() { $string = '@if(name(foo(bar))) breeze @elseif(boom(breeze)) boom @endif'; $expected = '<?php if(name(foo(bar))): ?> breeze ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeLangTest.php
tests/View/Blade/BladeLangTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeLangTest extends AbstractBladeTestCase { public function testStatementThatContainsNonConsecutiveParenthesisAreCompiled() { $string = "Foo @lang(function_call('foo(blah)')) bar"; $expected = "Foo <?php echo app('translator')->get...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeElseGuestStatementsTest.php
tests/View/Blade/BladeElseGuestStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; use Mockery as m; use PHPUnit\Framework\TestCase; use Illuminate\Filesystem\Filesystem; use Illuminate\View\Compilers\BladeCompiler; class BladeElseGuestStatementsTest extends TestCase { protected function tearDown(): void { m::close(); } ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeCanStatementsTest.php
tests/View/Blade/BladeCanStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeCanStatementsTest extends AbstractBladeTestCase { public function testCanStatementsAreCompiled() { $string = '@can (\'update\', [$post]) breeze @elsecan(\'delete\', [$post]) sneeze @endcan'; $expected = '<?php if (app(\\Illumina...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeExtendsTest.php
tests/View/Blade/BladeExtendsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeExtendsTest extends AbstractBladeTestCase { public function testExtendsAreCompiled() { $string = '@extends(\'foo\') test'; $expected = 'test'.PHP_EOL.'<?php echo $__env->make(\'foo\', \Illuminate\Support\Arr::except(get_defined_...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeEachTest.php
tests/View/Blade/BladeEachTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeEachTest extends AbstractBladeTestCase { public function testShowEachAreCompiled() { $this->assertEquals('<?php echo $__env->renderEach(\'foo\', \'bar\'); ?>', $this->compiler->compileString('@each(\'foo\', \'bar\')')); $this->a...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeIfAuthStatementsTest.php
tests/View/Blade/BladeIfAuthStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; use Mockery as m; use PHPUnit\Framework\TestCase; use Illuminate\Filesystem\Filesystem; use Illuminate\View\Compilers\BladeCompiler; class BladeIfAuthStatementsTest extends TestCase { protected function tearDown(): void { m::close(); } p...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladePhpStatementsTest.php
tests/View/Blade/BladePhpStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladePhpStatementsTest extends AbstractBladeTestCase { public function testPhpStatementsWithExpressionAreCompiled() { $string = '@php($set = true)'; $expected = '<?php ($set = true); ?>'; $this->assertEquals($expected, $this-...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladePushTest.php
tests/View/Blade/BladePushTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladePushTest extends AbstractBladeTestCase { public function testPushIsCompiled() { $string = '@push(\'foo\') test @endpush'; $expected = '<?php $__env->startPush(\'foo\'); ?> test <?php $__env->stopPush(); ?>'; $this->asser...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeElseAuthStatementsTest.php
tests/View/Blade/BladeElseAuthStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; use Mockery as m; use PHPUnit\Framework\TestCase; use Illuminate\Filesystem\Filesystem; use Illuminate\View\Compilers\BladeCompiler; class BladeElseAuthStatementsTest extends TestCase { protected function tearDown(): void { m::close(); } ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeShowTest.php
tests/View/Blade/BladeShowTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeShowTest extends AbstractBladeTestCase { public function testShowsAreCompiled() { $this->assertEquals('<?php echo $__env->yieldSection(); ?>', $this->compiler->compileString('@show')); } }
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeContinueStatementsTest.php
tests/View/Blade/BladeContinueStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeContinueStatementsTest extends AbstractBladeTestCase { public function testContinueStatementsAreCompiled() { $string = '@for ($i = 0; $i < 10; $i++) test @continue @endfor'; $expected = '<?php for($i = 0; $i < 10; $i++): ?> test...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeForelseStatementsTest.php
tests/View/Blade/BladeForelseStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeForelseStatementsTest extends AbstractBladeTestCase { public function testForelseStatementsAreCompiled() { $string = '@forelse ($this->getUsers() as $user) breeze @empty empty @endforelse'; $expected = '<?php $__empty_1 = true; ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeIfStatementsTest.php
tests/View/Blade/BladeIfStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeIfStatementsTest extends AbstractBladeTestCase { public function testIfStatementsAreCompiled() { $string = '@if (name(foo(bar))) breeze @endif'; $expected = '<?php if(name(foo(bar))): ?> breeze <?php endif; ?>'; $this->a...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeEndSectionsTest.php
tests/View/Blade/BladeEndSectionsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeEndSectionsTest extends AbstractBladeTestCase { public function testEndSectionsAreCompiled() { $this->assertEquals('<?php $__env->stopSection(); ?>', $this->compiler->compileString('@endsection')); } }
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeUnlessStatementsTest.php
tests/View/Blade/BladeUnlessStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeUnlessStatementsTest extends AbstractBladeTestCase { public function testUnlessStatementsAreCompiled() { $string = '@unless (name(foo(bar))) breeze @endunless'; $expected = '<?php if (! (name(foo(bar)))): ?> breeze <?php endif; ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeBreakStatementsTest.php
tests/View/Blade/BladeBreakStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeBreakStatementsTest extends AbstractBladeTestCase { public function testBreakStatementsAreCompiled() { $string = '@for ($i = 0; $i < 10; $i++) test @break @endfor'; $expected = '<?php for($i = 0; $i < 10; $i++): ?> test <?php br...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeJsonTest.php
tests/View/Blade/BladeJsonTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeJsonTest extends AbstractBladeTestCase { public function testStatementIsCompiledWithSafeDefaultEncodingOptions() { $string = 'var foo = @json($var);'; $expected = 'var foo = <?php echo json_encode($var, 15, 512) ?>;'; $...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeCannotStatementsTest.php
tests/View/Blade/BladeCannotStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeCannotStatementsTest extends AbstractBladeTestCase { public function testCannotStatementsAreCompiled() { $string = '@cannot (\'update\', [$post]) breeze @elsecannot(\'delete\', [$post]) sneeze @endcannot'; $expected = '<?php if ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeHasSectionTest.php
tests/View/Blade/BladeHasSectionTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeHasSectionTest extends AbstractBladeTestCase { public function testHasSectionStatementsAreCompiled() { $string = '@hasSection("section") breeze @endif'; $expected = '<?php if (! empty(trim($__env->yieldContent("section")))): ?> ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeIncludeTest.php
tests/View/Blade/BladeIncludeTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeIncludeTest extends AbstractBladeTestCase { public function testIncludesAreCompiled() { $this->assertEquals('<?php echo $__env->make(\'foo\', \Illuminate\Support\Arr::except(get_defined_vars(), [\'__data\', \'__path\']))->render(); ?>',...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladePrependTest.php
tests/View/Blade/BladePrependTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladePrependTest extends AbstractBladeTestCase { public function testPrependIsCompiled() { $string = '@prepend(\'foo\') bar @endprepend'; $expected = '<?php $__env->startPrepend(\'foo\'); ?> bar <?php $__env->stopPrepend(); ?>'; ...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeOverwriteSectionTest.php
tests/View/Blade/BladeOverwriteSectionTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeOverwriteSectionTest extends AbstractBladeTestCase { public function testOverwriteSectionsAreCompiled() { $this->assertEquals('<?php $__env->stopSection(true); ?>', $this->compiler->compileString('@overwrite')); } }
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeStackTest.php
tests/View/Blade/BladeStackTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeStackTest extends AbstractBladeTestCase { public function testStackIsCompiled() { $string = '@stack(\'foo\')'; $expected = '<?php echo $__env->yieldPushContent(\'foo\'); ?>'; $this->assertEquals($expected, $this->compile...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeUnsetStatementsTest.php
tests/View/Blade/BladeUnsetStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeUnsetStatementsTest extends AbstractBladeTestCase { public function testUnsetStatementsAreCompiled() { $string = '@unset ($unset)'; $expected = '<?php unset($unset); ?>'; $this->assertEquals($expected, $this->compiler->c...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeIfEmptyStatementsTest.php
tests/View/Blade/BladeIfEmptyStatementsTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeIfEmptyStatementsTest extends AbstractBladeTestCase { public function testIfStatementsAreCompiled() { $string = '@empty ($test) breeze @endempty'; $expected = '<?php if(empty($test)): ?> breeze <?php endif; ?>'; $this->a...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeVerbatimTest.php
tests/View/Blade/BladeVerbatimTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeVerbatimTest extends AbstractBladeTestCase { public function testVerbatimBlocksAreCompiled() { $string = '@verbatim {{ $a }} @if($b) {{ $b }} @endif @endverbatim'; $expected = ' {{ $a }} @if($b) {{ $b }} @endif '; $this-...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeStopSectionTest.php
tests/View/Blade/BladeStopSectionTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeStopSectionTest extends AbstractBladeTestCase { public function testStopSectionsAreCompiled() { $this->assertEquals('<?php $__env->stopSection(); ?>', $this->compiler->compileString('@stop')); } }
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeSectionTest.php
tests/View/Blade/BladeSectionTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeSectionTest extends AbstractBladeTestCase { public function testSectionStartsAreCompiled() { $this->assertEquals('<?php $__env->startSection(\'foo\'); ?>', $this->compiler->compileString('@section(\'foo\')')); $this->assertEqual...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/Blade/BladeHelpersTest.php
tests/View/Blade/BladeHelpersTest.php
<?php namespace Wpb\String_Blade_Compiler\Tests\Blade; class BladeHelpersTest extends AbstractBladeTestCase { public function testEchosAreCompiled() { $this->assertEquals('<?php echo csrf_field(); ?>', $this->compiler->compileString('@csrf')); $this->assertEquals('<?php echo method_field(\'pat...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/fixtures/component.php
tests/View/fixtures/component.php
<?php echo $title; ?> <?php echo $slot; ?> <?php echo $name; ?> <?php echo $website; ?>
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/fixtures/section-exception.php
tests/View/fixtures/section-exception.php
<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->startSection('content'); ?> <?php throw new Exception('section exception message') ?> <?php $__env->stopSection(); ?>
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/fixtures/basic.php
tests/View/fixtures/basic.php
Hello World
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/fixtures/section-exception-layout.php
tests/View/fixtures/section-exception-layout.php
<?php echo $__env->yieldContent('content'); ?>
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/fixtures/nested/basic.php
tests/View/fixtures/nested/basic.php
Hello World
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/fixtures/nested/child.php
tests/View/fixtures/nested/child.php
Hello World <?php echo $sub; ?>
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/tests/View/fixtures/namespaced/basic.php
tests/View/fixtures/namespaced/basic.php
Hello World
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
TerrePorter/StringBladeCompiler
https://github.com/TerrePorter/StringBladeCompiler/blob/4427fbb7d43a75a948517f64405439059724a82c/config/blade.php
config/blade.php
<?php return [ // How many seconds past compiled file last modified time to recompile the template // A value of 0 is always recompile // Note: homestead time verses pc time may be off 'secondsTemplateCacheExpires' => env('STRING_BLADE_CACHE_TIMEOUT', 300), // Determine whether the service provid...
php
MIT
4427fbb7d43a75a948517f64405439059724a82c
2026-01-05T03:41:27.288192Z
false
madeny/lhttps
https://github.com/madeny/lhttps/blob/ef16c5ec6f527fd8f1945a6f307157c952470945/src/Init.php
src/Init.php
<?php namespace Madeny\lhttps; use Madeny\lhttps\Path; use Madeny\lhttps\Config; use Symfony\Component\Dotenv\Dotenv; // Init the necessary file and folder class Init { public $dirs = ['cnf', 'config', 'csr', 'keys', 'live', 'logs']; function __construct($domain) { $i = 0; $path = Config::path(); foreac...
php
MIT
ef16c5ec6f527fd8f1945a6f307157c952470945
2026-01-05T03:41:31.901684Z
false
madeny/lhttps
https://github.com/madeny/lhttps/blob/ef16c5ec6f527fd8f1945a6f307157c952470945/src/TrustTheRootSSLCertificate.php
src/TrustTheRootSSLCertificate.php
<?php namespace Madeny\lhttps; class TrustTheRootSSLCertificate{ protected $error; protected $output; protected $message; function __construct($path) { exec(__DIR__."/../scripts/trust.sh $path", $output, $error); $this->error = $error; } public function getError() { return $this->error; } }
php
MIT
ef16c5ec6f527fd8f1945a6f307157c952470945
2026-01-05T03:41:31.901684Z
false
madeny/lhttps
https://github.com/madeny/lhttps/blob/ef16c5ec6f527fd8f1945a6f307157c952470945/src/CreatorCommand.php
src/CreatorCommand.php
<?php namespace Madeny\lhttps; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputOption; use Madeny\lhttps\Config; use Mad...
php
MIT
ef16c5ec6f527fd8f1945a6f307157c952470945
2026-01-05T03:41:31.901684Z
false
madeny/lhttps
https://github.com/madeny/lhttps/blob/ef16c5ec6f527fd8f1945a6f307157c952470945/src/Config.php
src/Config.php
<?php namespace Madeny\lhttps; use Symfony\Component\Dotenv\Dotenv; class Config { public function __construct($domain) { $path = $this->path(); $this->v3($path, $domain); $this->openssl($path); } private function v3($path, $domain) { $v3 = [ 'authorityKeyIdentifier=keyid,issuer', 'basicConstraint...
php
MIT
ef16c5ec6f527fd8f1945a6f307157c952470945
2026-01-05T03:41:31.901684Z
false
madeny/lhttps
https://github.com/madeny/lhttps/blob/ef16c5ec6f527fd8f1945a6f307157c952470945/tests/InitTest.php
tests/InitTest.php
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use Madeny\lhttps\Config; use Madeny\lhttps\Init; class InitTest extends TestCase { /** @test */ public function it_can_instance_CreatorCommand () { $this->assertInstanceOf(Init::class, (new Init("madeny.dev"))); } /** @test */ public function in...
php
MIT
ef16c5ec6f527fd8f1945a6f307157c952470945
2026-01-05T03:41:31.901684Z
false
madeny/lhttps
https://github.com/madeny/lhttps/blob/ef16c5ec6f527fd8f1945a6f307157c952470945/tests/TrustTheRootSSLCertificateTest.php
tests/TrustTheRootSSLCertificateTest.php
<?php use PHPUnit\Framework\TestCase; use Madeny\lhttps\Config; use Madeny\lhttps\TrustTheRootSSLCertificate; class TrustTheRootSSLCertificateTest extends TestCase { /** @test */ public function it_can_add_root_certificate_authority_to_host_trusted_list() { $cheker = "OS"; $option = null; ...
php
MIT
ef16c5ec6f527fd8f1945a6f307157c952470945
2026-01-05T03:41:31.901684Z
false
madeny/lhttps
https://github.com/madeny/lhttps/blob/ef16c5ec6f527fd8f1945a6f307157c952470945/tests/CreatorCommandTest.php
tests/CreatorCommandTest.php
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use Madeny\lhttps\CreatorCommand; use Madeny\lhttps\Config; class CreatorCommandTest extends TestCase { /** @test */ public function it_can_instance_CreatorCommand () { $this->assertInstanceOf(CreatorCommand::class, (new CreatorCommand())); } /** ...
php
MIT
ef16c5ec6f527fd8f1945a6f307157c952470945
2026-01-05T03:41:31.901684Z
false
madeny/lhttps
https://github.com/madeny/lhttps/blob/ef16c5ec6f527fd8f1945a6f307157c952470945/tests/ConfigTest.php
tests/ConfigTest.php
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use Madeny\lhttps\Config; use Madeny\lhttps\Init; class ConfigTest extends TestCase { /** @test8 */ public function it_can_instance_Config_class () { $this->assertInstanceOf(Config::class, (new Config("madeny.dev"))); } /** @test */ public functio...
php
MIT
ef16c5ec6f527fd8f1945a6f307157c952470945
2026-01-05T03:41:31.901684Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/vendor/MaxMind/Db/Reader.php
vendor/MaxMind/Db/Reader.php
<?php namespace MaxMind\Db; use MaxMind\Db\Reader\Decoder; use MaxMind\Db\Reader\InvalidDatabaseException; use MaxMind\Db\Reader\Metadata; use MaxMind\Db\Reader\Util; /** * Instances of this class provide a reader for the MaxMind DB format. IP * addresses can be looked up using the <code>get</code> method. */ cla...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/vendor/MaxMind/Db/Reader/Util.php
vendor/MaxMind/Db/Reader/Util.php
<?php namespace MaxMind\Db\Reader; class Util { public static function read($stream, $offset, $numberOfBytes) { if ($numberOfBytes === 0) { return ''; } if (fseek($stream, $offset) === 0) { $value = fread($stream, $numberOfBytes); // We check that t...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/vendor/MaxMind/Db/Reader/Metadata.php
vendor/MaxMind/Db/Reader/Metadata.php
<?php namespace MaxMind\Db\Reader; /** * This class provides the metadata for the MaxMind DB file. * * @property int nodeCount This is an unsigned 32-bit integer indicating * the number of nodes in the search tree. * @property int recordSize This is an unsigned 16-bit integer. It * indicates the number of bits ...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/vendor/MaxMind/Db/Reader/InvalidDatabaseException.php
vendor/MaxMind/Db/Reader/InvalidDatabaseException.php
<?php namespace MaxMind\Db\Reader; /** * This class should be thrown when unexpected data is found in the database. */ class InvalidDatabaseException extends \Exception { }
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/vendor/MaxMind/Db/Reader/Decoder.php
vendor/MaxMind/Db/Reader/Decoder.php
<?php namespace MaxMind\Db\Reader; class Decoder { private $fileStream; private $pointerBase; // This is only used for unit testing private $pointerTestHack; private $switchByteOrder; private $types = [ 0 => 'extended', 1 => 'pointer', 2 => 'utf8_string', 3 => ...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/src/ShinyGeoip.php
src/ShinyGeoip.php
<?php /** * ShinyGeoip * * by Simon Samtleben <simon@nekudo.com> * * A IP to location HTTP REST API. * For more information visit: https://github.com/nekudo/shiny_geoip */ declare(strict_types=1); namespace Nekudo\ShinyGeoip; use Nekudo\ShinyGeoip\Action\ShowHomepageAction; use Nekudo\ShinyGeoip\Action\ShowLo...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/src/ShinyGeoipCli.php
src/ShinyGeoipCli.php
<?php declare(strict_types=1); namespace Nekudo\ShinyGeoip; use Nekudo\ShinyGeoip\Action\Cli\BenchmarkAction; use Nekudo\ShinyGeoip\Action\Cli\ShowHelpAction; use Nekudo\ShinyGeoip\Action\Cli\UpdateMmdbAction; use Nekudo\ShinyGeoip\Responder\CliResponder; class ShinyGeoipCli { /** * @var array $config ...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/src/bootstrap_cli.php
src/bootstrap_cli.php
<?php declare(strict_types=1); // include default bootstrap include __DIR__ . '/bootstrap.php'; // include CLI specific files: require_once __DIR__ . '/ShinyGeoipCli.php'; require_once __DIR__ . '/Action/Cli/CliAction.php'; require_once __DIR__ . '/Action/Cli/BenchmarkAction.php'; require_once __DIR__ . '/Action/Cli...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/src/bootstrap.php
src/bootstrap.php
<?php declare(strict_types=1); define('PROJECT_ROOT', __DIR__ . '/../'); $config = include PROJECT_ROOT . 'config/config.php'; require_once PROJECT_ROOT . 'src/ShinyGeoip.php'; require_once PROJECT_ROOT . 'src/Action/ShowHomepageAction.php'; require_once PROJECT_ROOT . 'src/Action/ShowLocationAction.php'; require_o...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/src/Domain/LocationDomain.php
src/Domain/LocationDomain.php
<?php declare(strict_types=1); namespace Nekudo\ShinyGeoip\Domain; use MaxMind\Db\Reader; class LocationDomain { /** * @var Reader $reader */ protected $reader; /** * Init the GeoLite database reader. * * @param array $config * @throws \MaxMind\Db\Reader\InvalidDatabaseExc...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/src/Responder/CliResponder.php
src/Responder/CliResponder.php
<?php declare(strict_types=1); namespace Nekudo\ShinyGeoip\Responder; class CliResponder { /** * Sends a default message to stdout. * * @param string $message */ public function out(string $message) { echo $message . PHP_EOL; } /** * Sends an error/red message to...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false
nekudocom/shiny_geoip
https://github.com/nekudocom/shiny_geoip/blob/298164f8d13e63332d337c54afb2187b91cfbf68/src/Responder/ShowHomepageResponder.php
src/Responder/ShowHomepageResponder.php
<?php declare(strict_types=1); namespace Nekudo\ShinyGeoip\Responder; class ShowHomepageResponder extends HttpResponder { /** * Shows homepage including location data for clients IP. * * @param array $record */ public function showHomepage(array $record) { ob_start(); ...
php
MIT
298164f8d13e63332d337c54afb2187b91cfbf68
2026-01-05T03:41:36.246570Z
false