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 |
|---|---|---|---|---|---|---|---|---|
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/environments/prod/web/backend/index.php | environments/prod/web/backend/index.php | <?php
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../../backend/config/bootstrap.p... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
jianyan74/rageframe3 | https://github.com/jianyan74/rageframe3/blob/847c0dee0d01b0994305b978c87cbe94c4179f30/environments/prod/web/merchant/index.php | environments/prod/web/merchant/index.php | <?php
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../../merchant/config/bootstrap.... | php | Apache-2.0 | 847c0dee0d01b0994305b978c87cbe94c4179f30 | 2026-01-05T04:21:36.457503Z | false |
aws-samples/eb-docker-nginx-proxy | https://github.com/aws-samples/eb-docker-nginx-proxy/blob/7b4ad35c381b0d216b404826619d176995d56d7d/php-app/index.php | php-app/index.php | <h1>Hello World!!!</h1>
<h3>PHP Version <?= phpversion() ?></h3>
<a href="/static.html">Static HTML Page</a> | php | Apache-2.0 | 7b4ad35c381b0d216b404826619d176995d56d7d | 2026-01-05T04:22:02.315031Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/src/EchoIt/JsonApi/ErrorResponse.php | src/EchoIt/JsonApi/ErrorResponse.php | <?php namespace EchoIt\JsonApi;
use Illuminate\Http\JsonResponse;
/**
* ErrorResponse represents a HTTP error response with a JSON API compliant payload.
*
* @author Ronni Egeriis Persson <ronni@egeriis.me>
*/
class ErrorResponse extends JsonResponse
{
/**
* Constructor.
*
* @param int $http... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/src/EchoIt/JsonApi/Handler.php | src/EchoIt/JsonApi/Handler.php | <?php namespace EchoIt\JsonApi;
use Illuminate\Support\Collection;
use Illuminate\Pagination\Paginator;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Http\Response as BaseResponse;
/**
* Abstract class used to extend model API handlers from.
*
* @author Ronni Egeriis Persson <ronni@egeriis.me>
*/... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/src/EchoIt/JsonApi/Request.php | src/EchoIt/JsonApi/Request.php | <?php namespace EchoIt\JsonApi;
/**
* A class used to represented a client request to the API.
*
* @author Ronni Egeriis Persson <ronni@egeriis.me>
*/
class Request
{
/**
* Contains the url of the request
*
* @var string
*/
public $url;
/**
* Contains the HTTP method of the r... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/src/EchoIt/JsonApi/Response.php | src/EchoIt/JsonApi/Response.php | <?php namespace EchoIt\JsonApi;
use Illuminate\Http\JsonResponse;
/**
* This class contains the parameters to return in the response to an API request.
*
* @property array $included included resources
*/
class Response
{
/**
* An array of parameters.
*
* @var array
*/
protected $respon... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/src/EchoIt/JsonApi/MultiErrorResponse.php | src/EchoIt/JsonApi/MultiErrorResponse.php | <?php namespace EchoIt\JsonApi;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\MessageBag as ValidationMessages;
/**
* MultiErrorResponse represents a HTTP error response containing multiple errors with a JSON API compliant payload.
*
* @author Matt <matt@ninjapenguin.co.uk>
*/
class MultiErrorResponse ... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/src/EchoIt/JsonApi/Exception.php | src/EchoIt/JsonApi/Exception.php | <?php namespace EchoIt\JsonApi;
/**
* JsonApi\Exception represents an Exception that can be thrown where a JSON response may be expected.
*
* @author Ronni Egeriis Persson <ronni@egeriis.me>
*/
class Exception extends \Exception
{
protected $httpStatusCode;
protected $additionalAttrs;
/**
* Const... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/src/EchoIt/JsonApi/Model.php | src/EchoIt/JsonApi/Model.php | <?php namespace EchoIt\JsonApi;
use Validator;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model as BaseModel;
use Illuminate\Database\Eloquent\Relations\Pivot as Pivot;
/**
* This class is used to extend models from, that will be exposed through
* a JSON API.
*
* @author Ronni E... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/src/EchoIt/JsonApi/Exception/Validation.php | src/EchoIt/JsonApi/Exception/Validation.php | <?php namespace EchoIt\JsonApi\Exception;
use EchoIt\JsonApi\Exception;
use EchoIt\JsonApi\MultiErrorResponse;
use Illuminate\Support\MessageBag as ValidationMessages;
/**
* Validation represents an Exception that can be thrown in the event of a validation failure where a JSON response may be expected.
*
* @author... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/tests/JsonSchemaValidationTrait.php | tests/JsonSchemaValidationTrait.php | <?php namespace EchoIt\JsonApi\Tests;
use JsonSchema\RefResolver;
use JsonSchema\Validator;
trait JsonSchemaValidationTrait
{
/**
* @param \stdClass $data JSON data decoded into object notation
* @throws \Exception
*/
public function assertJsonapiValid($data)
{
$schemaFile = dirname... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/tests/HandlerTest.php | tests/HandlerTest.php | <?php
use EchoIt\JsonApi\Request;
use EchoIt\JsonApi\Response;
use EchoIt\JsonApi\Handler;
class HandlerWithGETSupport extends Handler
{
public function handleGet(Request $req)
{
return new Response([ 'param' => 1 ]);
}
}
class HandlerTest extends PHPUnit_Framework_TestCase
{
public function ... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/tests/ErrorResponseTest.php | tests/ErrorResponseTest.php | <?php
use EchoIt\JsonApi\ErrorResponse;
use EchoIt\JsonApi\Tests\JsonSchemaValidationTrait;
class ErrorResponseTest extends PHPUnit_Framework_TestCase
{
use JsonSchemaValidationTrait;
public function testResponseHeaders()
{
$res = new ErrorResponse(404, 100, 'An error occurred');
$this->... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
egeriis/laravel-jsonapi | https://github.com/egeriis/laravel-jsonapi/blob/6d58e14cba26c0624d38f75273cff86fd4678289/tests/ResponseTest.php | tests/ResponseTest.php | <?php
use EchoIt\JsonApi\Response;
class ResponseTest extends PHPUnit_Framework_TestCase
{
public function testResponseWithUnnamedBodyOnly()
{
$res = new Response([
'value' => 1
]);
$json = $res->toJsonResponse();
$this->assertInstanceOf('Illuminate\\Http\\JsonResp... | php | MIT | 6d58e14cba26c0624d38f75273cff86fd4678289 | 2026-01-05T04:22:09.332808Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArrayTest.php | tests/NumArrayTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest;
use NumPHP\NumArray;
use PHPUnit\Framework\TestCase;
class NumArrayTest extends TestCase
{
public function testIsEqual()
{
$numArray = new NumArray([3, -1]);
$this->assertFalse($numArray->isEqual(new NumArray([])));
$this->assertFal... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/ComplexNumTest.php | tests/ComplexNumTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest;
use NumPHP\ComplexNum;
use PHPUnit\Framework\TestCase;
class ComplexNumTest extends TestCase
{
public function testToString()
{
$com1 = new ComplexNum(6, -1);
$this->assertSame("6-1i", $com1->__toString());
$com2 = new ComplexNum(-2... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/Framework/TestCase.php | tests/Framework/TestCase.php | <?php
declare(strict_types=1);
namespace NumPHPTest\Framework;
use NumPHP\NumArray;
/**
* @SuppressWarnings(PHPMD.NumberOfChildren)
*/
class TestCase extends \PHPUnit\Framework\TestCase
{
public static function assertNumArrayEquals(NumArray $expected, NumArray $actual, string $message = '')
{
stati... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/ZerosLikeTest.php | tests/NumArray/ZerosLikeTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
class ZerosLikeTest extends TestCase
{
public function testZerosLike4()
{
$numArray = new NumArray([8, 6, 1, 1]);
$this->asser... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/ReshapeTest.php | tests/NumArray/ReshapeTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
class ReshapeTest extends TestCase
{
public function test2x3Reshape5()
{
$this->expectException(InvalidArgumentException::class);
... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/GetSizeTest.php | tests/NumArray/GetSizeTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\NumArray;
use PHPUnit\Framework\TestCase;
class GetSizeTest extends TestCase
{
public function testGetSize4()
{
$numArray = new NumArray([6, 9, 3, 4]);
$this->assertSame(4, $numArray->getSize());
}
public functi... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/GetShapeTest.php | tests/NumArray/GetShapeTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\NumArray;
use PHPUnit\Framework\TestCase;
class GetShapeTest extends TestCase
{
public function testGetShape4()
{
$numArray = new NumArray([7, 4, 3, 4]);
$this->assertSame([4], $numArray->getShape());
}
public f... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/ArangeTest.php | tests/NumArray/ArangeTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
class ArangeTest extends TestCase
{
/**
* @dataProvider arangeProvider
*/
public function testArange($arg, $result)
{
$t... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/SubTest.php | tests/NumArray/SubTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
class SubTest extends TestCase
{
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
public function test2x3Sub4()
{
$numArray1... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/ReplaceTest.php | tests/NumArray/ReplaceTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\Exception\OutOfBoundsException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
/**
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
*/
class ReplaceTest extends TestCase
{
/**
* ... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/AddTest.php | tests/NumArray/AddTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
class AddTest extends TestCase
{
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
public function test2x3Add4()
{
$numArray1... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/GetNDimTest.php | tests/NumArray/GetNDimTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\NumArray;
use PHPUnit\Framework\TestCase;
class GetNDimTest extends TestCase
{
public function testGetNDim4()
{
$numArray = new NumArray([8, 9, 3, 6]);
$this->assertSame(1, $numArray->getNDim());
}
public functi... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/ZerosTest.php | tests/NumArray/ZerosTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\MissingArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
class ZerosTest extends TestCase
{
public function testZerosEmpty()
{
$this->expectExce... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/EyeTest.php | tests/NumArray/EyeTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
class EyeTest extends TestCase
{
public function testEyeNegativeMAxis()
{
$this->expect... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/OnesLikeTest.php | tests/NumArray/OnesLikeTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
class OnesLikeTest extends TestCase
{
public function testOnesLike4()
{
$numArray = new NumArray([6, -6, -1, -7]);
$this->asse... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/OnesTest.php | tests/NumArray/OnesTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\MissingArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
class OnesTest extends TestCase
{
public function testOnesEmpty()
{
$this->expectExcept... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/ToStringTest.php | tests/NumArray/ToStringTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\NumArray;
use PHPUnit\Framework\TestCase;
class ToStringTest extends TestCase
{
public function testToStringEmpty()
{
$numArray = new NumArray([]);
$this->assertSame("[]", $numArray->__toString());
}
public func... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/MultTest.php | tests/NumArray/MultTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
class MultTest extends TestCase
{
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
public function test2x3Mult4()
{
$numArra... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/IdentityTest.php | tests/NumArray/IdentityTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
class IdentityTest extends TestCase
{
public function testIdentityNegativeAxis()
{
$thi... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/DivTest.php | tests/NumArray/DivTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
class DivTest extends TestCase
{
/**
* @SuppressWarnings(PHPMD.StaticAccess)
*/
public function test2x3Div4()
{
$numArray1... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/GetTest.php | tests/NumArray/GetTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\OutOfBoundsException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
class GetTest extends TestCase
{
/**
* @dataProvider get3IntResultProvider
*/
public function testGet3IntResult(string $arg, int $result)
... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/tests/NumArray/MapTest.php | tests/NumArray/MapTest.php | <?php
declare(strict_types=1);
namespace NumPHPTest\NumArray;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\NumArray;
use NumPHPTest\Framework\TestCase;
class MapTest extends TestCase
{
private $callback;
public function setUp()
{
$this->callback = function ($val1, $val2) {
... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/lib/ComplexNum.php | lib/ComplexNum.php | <?php
declare(strict_types=1);
namespace NumPHP;
class ComplexNum
{
private $real;
private $imag;
public function __construct(float $real, float $imag)
{
$this->real = $real;
$this->imag = $imag;
}
public function __toString(): string
{
return sprintf("%d%s%di", ... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/lib/NumArray.php | lib/NumArray.php | <?php
declare(strict_types=1);
namespace NumPHP;
use NumPHP\Exception\InvalidArgumentException;
use NumPHP\Exception\OutOfBoundsException;
use NumPHP\Exception\MissingArgumentException;
/**
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
*/
class NumArray
{
... | php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/lib/Exception/OutOfBoundsException.php | lib/Exception/OutOfBoundsException.php | <?php
declare(strict_types=1);
namespace NumPHP\Exception;
class OutOfBoundsException extends \OutOfBoundsException
{
}
| php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/lib/Exception/MissingArgumentException.php | lib/Exception/MissingArgumentException.php | <?php
declare(strict_types=1);
namespace NumPHP\Exception;
class MissingArgumentException extends \Exception
{
}
| php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
NumPHP/NumPHP | https://github.com/NumPHP/NumPHP/blob/a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773/lib/Exception/InvalidArgumentException.php | lib/Exception/InvalidArgumentException.php | <?php
declare(strict_types=1);
namespace NumPHP\Exception;
class InvalidArgumentException extends \InvalidArgumentException
{
}
| php | MIT | a6e7e6e8ee4f3d6c6a5ef313db383bfa556da773 | 2026-01-05T04:22:23.438309Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Main.php | src/Main.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram;
use RuntimeException;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\Entry;
use Smeghead\PhpClassDiagram\DiagramElement\Relation;
use Smeghead\PhpClassDiagram\Php\PhpReader;
use Symfony\Component\Finder\Finde... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/PhpMethodParameter.php | src/Php/PhpMethodParameter.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php;
final class PhpMethodParameter
{
private string $name;
private PhpTypeExpression $type;
public function __construct(string $name, PhpTypeExpression $type)
{
$this->name = $name;
$this->type = $type;
}
pub... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/PhpReader.php | src/Php/PhpReader.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php;
use PhpParser\Error;
use PhpParser\Node;
use PhpParser\Node\Stmt\ClassLike;
use PhpParser\Node\Stmt\Namespace_;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitor\NameResolver;
use PhpParser\ParserFactory;
use RuntimeException;
use Smeghead\P... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/PhpTypeExpression.php | src/Php/PhpTypeExpression.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php;
use PhpParser\Node;
use PhpParser\Node\Identifier;
use PhpParser\Node\IntersectionType;
use PhpParser\Node\Name;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\NullableType;
use PhpParser\Node\Param;
use PhpParser\Node\Stmt\ClassMetho... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/PhpEnumCase.php | src/Php/PhpEnumCase.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php;
use PhpParser\Node\Stmt\{
EnumCase,
};
use Smeghead\PhpClassDiagram\Php\Doc\PhpDocComment;
final class PhpEnumCase
{
private string $name;
private PhpDocComment $doc;
public function __construct(EnumCase $e)
{
$this-... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/PhpAccessModifier.php | src/Php/PhpAccessModifier.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php;
use PhpParser\Modifiers;
use PhpParser\Node\Param;
use PhpParser\Node\Stmt\{
Class_,
ClassConst,
ClassMethod,
Property,
};
final class PhpAccessModifier
{
private bool $public = false;
private bool $protected = false;
... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/PhpType.php | src/Php/PhpType.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php;
final class PhpType
{
private string $name;
private string $meta;
/** @var string[] */
private array $namespace;
private string $alias;
private bool $nullable;
/**
* @param string[] $namespace Namespace
* @p... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/PhpClass.php | src/Php/PhpClass.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php;
use PhpParser\Node;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Stmt\{
Namespace_,
ClassLike,
ClassMethod,
Enum_,
EnumCase,
Property,
GroupUse,
Use_,
};
use Smeghead\PhpClassDiagram\Php\Doc\PhpDocCom... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/PhpMethod.php | src/Php/PhpMethod.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php;
use PhpParser\Node\{
Param,
};
use PhpParser\Node\Stmt\{
ClassMethod,
};
final class PhpMethod
{
private string $name;
private PhpTypeExpression $type;
/** @var PhpMethodParameter[] パラメータ一覧 */
private array $params;
p... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/PhpProperty.php | src/Php/PhpProperty.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php;
use PhpParser\Node\Param;
use PhpParser\Node\PropertyHook;
use PhpParser\Node\Stmt\{
ClassMethod,
Property,
};
final class PhpProperty
{
private string $name;
private PhpTypeExpression $type;
private PhpAccessModifier $access... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/Finders/FindUsePhpTypes.php | src/Php/Finders/FindUsePhpTypes.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php\Finders;
use PhpParser\Node;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Stmt\ClassLike;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\NodeFinder;
final class FindUsePhpTypes
{
private ClassLike $class;
public functio... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/Finders/FindConstructerProperties.php | src/Php/Finders/FindConstructerProperties.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php\Finders;
use PhpParser\Modifiers;
use PhpParser\Node;
use PhpParser\Node\Param;
use PhpParser\Node\Stmt\ClassLike;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\NodeFinder;
final class FindConstructerProperties
{
/** @var \PhpParser\Node... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Php/Doc/PhpDocComment.php | src/Php/Doc/PhpDocComment.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Php\Doc;
use PhpParser\Node;
use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode;
use PHPStan\PhpDocParser\Lexer\Lexer;
use PHPStan\PhpDocParser\Parser\ConstExprParser;
use PHPStan\PhpDocParser\Parser\... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/Config/Options.php | src/Config/Options.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\Config;
final class Options
{
/** @var array<string, mixed> */
private array $opt;
public const DIAGRAM_CLASS = 'class';
public const DIAGRAM_PACKAGE = 'package';
public const DIAGRAM_JIG = 'jig';
public const DIAGRAM_DIVISION... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/Relation.php | src/DiagramElement/Relation.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement;
use Smeghead\PhpClassDiagram\Config\Options;
final class Relation
{
private Options $options;
private Package $package;
private RelationsFilter $relationsFilter;
/**
* @param Entry[] $entries
*/
public ... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/PackageRelations.php | src/DiagramElement/PackageRelations.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement;
use Smeghead\PhpClassDiagram\DiagramElement\ExternalPackage\PackageHierarchy;
use Smeghead\PhpClassDiagram\Php\PhpType;
final class PackageRelations
{
/** @var array<string, array<int, PhpType>> */
private array $uses;
pri... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/RelationsFilter.php | src/DiagramElement/RelationsFilter.php | <?php
namespace Smeghead\PhpClassDiagram\DiagramElement;
use InvalidArgumentException;
use Smeghead\PhpClassDiagram\Config\Options;
use function preg_match;
class RelationsFilter {
private int $maxDepth;
/**
* @var string[]
*/
private array $relationExpressions;
private bool $removeUnlinke... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/ClassIdentifier.php | src/DiagramElement/ClassIdentifier.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement;
use Smeghead\PhpClassDiagram\Config\Options;
final class ClassIdentifier {
public function __construct(private Options $options, private string $directory, private Entry $entry)
{
}
public function getIdentifier(): st... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/Arrow.php | src/DiagramElement/Arrow.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement;
use Smeghead\PhpClassDiagram\Php\{
PhpType,
PhpClass,
};
abstract class Arrow
{
protected string $figure = '..>';
private PhpClass $from;
private PhpType $to;
public function __construct(PhpClass $from, PhpTyp... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/ArrowDependency.php | src/DiagramElement/ArrowDependency.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement;
use Smeghead\PhpClassDiagram\Php\PhpClass;
final class ArrowDependency extends Arrow
{
protected string $figure = '..>';
public function toString(PhpClass $toClass): string
{
if (strpos($this->getTo()->getName(), ... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/Entry.php | src/DiagramElement/Entry.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\Division\DivisionColor;
use Smeghead\PhpClassDiagram\Php\{
PhpClass,
PhpAccessModifier,
PhpEnumCase,
PhpMethodParameter,
};
final... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/PackageArrow.php | src/DiagramElement/PackageArrow.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement;
final class PackageArrow
{
private string $from;
private string $to;
private bool $bothSideArrow = false;
public function __construct(string $from, string $to)
{
$this->from = $from;
$this->to = $to... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/ArrowInheritance.php | src/DiagramElement/ArrowInheritance.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement;
use Smeghead\PhpClassDiagram\Php\PhpClass;
final class ArrowInheritance extends Arrow
{
protected string $figure = '<|--';
public function toString(PhpClass $toClass): string
{
return sprintf(' %s %s %s', $toClas... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/Package.php | src/DiagramElement/Package.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement;
use Smeghead\PhpClassDiagram\Config\Options;
final class Package
{
private Options $options;
/** @var string[] */
public array $parents;
public string $name;
public string $package = '';
/** @var Package[] p... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/Division/DivisionColor.php | src/DiagramElement/Division/DivisionColor.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement\Division;
final class DivisionColor
{
private static \Generator $gen;
public static function nextColor(): string
{
if (empty(self::$gen)) {
self::$gen = generateDivisionColorGenerator();
}
... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/src/DiagramElement/ExternalPackage/PackageHierarchy.php | src/DiagramElement/ExternalPackage/PackageHierarchy.php | <?php
declare(strict_types=1);
namespace Smeghead\PhpClassDiagram\DiagramElement\ExternalPackage;
final class PackageHierarchy
{
private PackageNode $root;
/**
* @param string[] $externalPackages external package list
*/
public function __construct(array $externalPackages)
{
$this-... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/RelationTest.php | test/RelationTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\{
Entry,
Relation,
};
use Smeghead\PhpClassDiagram\Php\PhpReader;
final class RelationTest extends TestCase
{
private string $fixtureDir;
public fun... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/PhpTypeTest.php | test/PhpTypeTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Php\PhpType;
final class PhpTypeTest extends TestCase
{
public function testEquals_different_name(): void
{
$sut = new PhpType(['hoge'], '', 'Product');
$other = new PhpType(['hoge'], '', 'ProductXXX')... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/PhpReflectionTest.php | test/PhpReflectionTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\Attributes\RequiresPhp;
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\Php\PhpEnumCase;
use Smeghead\PhpClassDiagram\Php\PhpReader;
final class PhpReflectionTest extends TestCase
{
private string $fix... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/PropertyHooksTest.php | test/PropertyHooksTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\{
Relation,
Entry,
};
use Smeghead\PhpClassDiagram\Php\PhpReader;
final class PropertyHooksTest extends TestCase
{
private string $fixtureDir;
publ... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/ClassDiagramClassNameSummaryTest.php | test/ClassDiagramClassNameSummaryTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\Entry;
use Smeghead\PhpClassDiagram\DiagramElement\Relation;
use Smeghead\PhpClassDiagram\Php\PhpReader;
final class ClassDiagramClassNameSummaryTest extends TestCa... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/PackageSvgLinkTest.php | test/PackageSvgLinkTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\{
Relation,
Entry,
};
use Smeghead\PhpClassDiagram\Php\PhpReader;
final class PackageSvgLinkTest extends TestCase
{
private string $fixtureDir;
pub... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/PackageHierarchyTest.php | test/PackageHierarchyTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\DiagramElement\ExternalPackage\PackageHierarchy;
final class PackageHierarchyTest extends TestCase
{
public function testEmptyExternalPackages(): void
{
$sut = new PackageHierarchy([]);
$this->assertS... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/PhpDocCommentTest.php | test/PhpDocCommentTest.php | <?php
declare(strict_types=1);
use PhpParser\Node;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Enum_;
use PhpParser\Node\Stmt\EnumCase;
use PhpParser\Node\Stmt\Property;
use PhpParser\NodeFinder;
use PhpParser\ParserFactory;
use PHPUnit\Framework\TestCase;
use Smeghead... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/RelationsFilterTest.php | test/RelationsFilterTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\RelationsFilter;
final class RelationsFilterTest extends TestCase
{
/**
* @var array|string[]
*/
private array $fixture;
public function setU... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/HidePrivateTest.php | test/HidePrivateTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\{
Relation,
Entry,
};
use Smeghead\PhpClassDiagram\Php\PhpReader;
final class HidePrivateTest extends TestCase
{
private string $fixtureDir;
public... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/PackageTest.php | test/PackageTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\{
Relation,
Entry,
Package,
};
use Smeghead\PhpClassDiagram\Php\PhpReader;
final class PackageTest extends TestCase
{
private string $fixtureDir;
... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/AsymmetricVisibilityTest.php | test/AsymmetricVisibilityTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\DiagramElement\{
Relation,
Entry,
};
use Smeghead\PhpClassDiagram\Php\PhpReader;
final class AsymmetricVisibilityTest extends TestCase
{
private string $fixtureDir;
... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/FindUsePhpTypesTest.php | test/FindUsePhpTypesTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
use Smeghead\PhpClassDiagram\Php\PhpReader;
final class FindUsePhpTypesTest extends TestCase
{
private string $fixtureDir;
public function setUp(): void
{
$this->fixtureDir = sprintf('%s/fi... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/OptionsTest.php | test/OptionsTest.php | <?php
declare(strict_types=1);
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Config\Options;
final class OptionsTest extends TestCase
{
public function setUp(): void
{
}
public function testNothing(): void
{
$options = new Op... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/PhpTypeExpressionTest.php | test/PhpTypeExpressionTest.php | <?php
declare(strict_types=1);
use PhpParser\Node;
use PhpParser\Node\Param;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Property;
use PhpParser\NodeFinder;
use PhpParser\ParserFactory;
use PHPUnit\Framework\TestCase;
use Smeghead\PhpClassDiagram\Php\PhpType;
use Smeghead\PhpClassDiagram\Php\PhpTypeE... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/extends/product/Interface_.php | test/fixtures/extends/product/Interface_.php | <?php
namespace hoge\fuga\product;
interface Interface_ {
private string $name;
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/extends/product/Sub.php | test/fixtures/extends/product/Sub.php | <?php
namespace hoge\fuga\product;
class Sub extends Super {
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/extends/product/Implements_.php | test/fixtures/extends/product/Implements_.php | <?php
namespace hoge\fuga\product;
class Implements_ implements Interface_ {
private string $name;
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/extends/product/Super.php | test/fixtures/extends/product/Super.php | <?php
namespace hoge\fuga\product;
class Super {
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/trait/TestTrait.php | test/fixtures/trait/TestTrait.php | <?php
namespace Foo\Traits;
trait TestTrait
{
private function something(string $name): bool
{
return false;
}
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/sub-namespace/product/Product.php | test/fixtures/sub-namespace/product/Product.php | <?php
namespace hoge\fuga\product;
use hoge\fuga\product\utility\Name;
class Product {
private Name $name;
private Price $price;
public function method1(string $param1) {
}
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/sub-namespace/product/Exception.php | test/fixtures/sub-namespace/product/Exception.php | <?php
namespace hoge\fuga\product;
use external\sales;
class Exception extends \Exception {
private \Exception $inner;
public function getInner(\Exception $e): \Exception {
}
public function external(): \external\Exception {
}
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/sub-namespace/product/Price.php | test/fixtures/sub-namespace/product/Price.php | <?php
namespace hoge\fuga\product;
class Price {
private int $price;
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/sub-namespace/product/utility/Name.php | test/fixtures/sub-namespace/product/utility/Name.php | <?php
namespace hoge\fuga\product\utility;
use hoge\fuga\product\Product;
class Name {
private string $name;
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/php8/product/Name.php | test/fixtures/php8/product/Name.php | <?php
namespace hoge\fuga\product;
class Name {
private string $name;
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/php8/product/Product.php | test/fixtures/php8/product/Product.php | <?php
namespace hoge\fuga\product;
use hoge\fuga\product\ {
Name,
Price,
};
use hoge\fuga\product\tag\Tag;
/**
* @hoge hogehoge
*/
class Product {
private ?string $nullableString;
private int|string $intOrString;
private Name $name;
private Price $price;
private \Exception $error;
pr... | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/php8/product/Exception.php | test/fixtures/php8/product/Exception.php | <?php
namespace hoge\fuga\product;
use external\sales;
class Exception extends \Exception {
private \Exception $inner;
public function getInner(\Exception $e): \Exception {
}
public function external(): \external\Exception {
}
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/php8/product/Price.php | test/fixtures/php8/product/Price.php | <?php
namespace hoge\fuga\product;
class Price {
private int|float $price8;
public function __construct(private int $field1)
{
}
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/php8/product/bar/Boo.php | test/fixtures/php8/product/bar/Boo.php | <?php
namespace hoge\fuga\product\bar;
class Boo {
} | php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/namespace/product/Name.php | test/fixtures/namespace/product/Name.php | <?php
namespace hoge\fuga\product;
class Name {
private string $name;
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/namespace/product/Main.php | test/fixtures/namespace/product/Main.php | <?php
namespace hoge\fuga\product;
use hoge\fuga\product\ {
Product,
};
class Main {
public function __construct()
{
$product = new Product();
$product->method1('test');
}
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
smeghead/php-class-diagram | https://github.com/smeghead/php-class-diagram/blob/abcf5c0a05090c5854a280e740aa3f84ceeb2410/test/fixtures/namespace/product/Product.php | test/fixtures/namespace/product/Product.php | <?php
namespace hoge\fuga\product;
use hoge\fuga\product\ {
Name,
Price,
};
class Product {
private Name $name;
private Price $price;
/** @return Product product */
public function method1(string $param1) {
}
}
| php | Apache-2.0 | abcf5c0a05090c5854a280e740aa3f84ceeb2410 | 2026-01-05T04:22:37.245432Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.