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
chekun/DiliCMS
https://github.com/chekun/DiliCMS/blob/de8fbedc099d92975dc465fd96d163a0aec299f0/install/config/migration.php
install/config/migration.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Enable/Disable Migrations |-------------------------------------------------------------------------- | | Migrations are disabled by default but should be enabled | whe...
php
MIT
de8fbedc099d92975dc465fd96d163a0aec299f0
2026-01-05T02:44:30.211206Z
false
chekun/DiliCMS
https://github.com/chekun/DiliCMS/blob/de8fbedc099d92975dc465fd96d163a0aec299f0/install/config/autoload.php
install/config/autoload.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep t...
php
MIT
de8fbedc099d92975dc465fd96d163a0aec299f0
2026-01-05T02:44:30.211206Z
false
chekun/DiliCMS
https://github.com/chekun/DiliCMS/blob/de8fbedc099d92975dc465fd96d163a0aec299f0/install/config/foreign_chars.php
install/config/foreign_chars.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | Foreign Characters | ------------------------------------------------------------------- | This file contains an array of foreign characters for transliteration | conver...
php
MIT
de8fbedc099d92975dc465fd96d163a0aec299f0
2026-01-05T02:44:30.211206Z
false
chekun/DiliCMS
https://github.com/chekun/DiliCMS/blob/de8fbedc099d92975dc465fd96d163a0aec299f0/install/config/config.php
install/config/config.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, ...
php
MIT
de8fbedc099d92975dc465fd96d163a0aec299f0
2026-01-05T02:44:30.211206Z
false
chekun/DiliCMS
https://github.com/chekun/DiliCMS/blob/de8fbedc099d92975dc465fd96d163a0aec299f0/install/config/routes.php
install/config/routes.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions. ...
php
MIT
de8fbedc099d92975dc465fd96d163a0aec299f0
2026-01-05T02:44:30.211206Z
false
chekun/DiliCMS
https://github.com/chekun/DiliCMS/blob/de8fbedc099d92975dc465fd96d163a0aec299f0/install/config/user_agents.php
install/config/user_agents.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | USER AGENT TYPES | ------------------------------------------------------------------- | This file contains four arrays of user agent data. It is used by the | User Age...
php
MIT
de8fbedc099d92975dc465fd96d163a0aec299f0
2026-01-05T02:44:30.211206Z
false
chekun/DiliCMS
https://github.com/chekun/DiliCMS/blob/de8fbedc099d92975dc465fd96d163a0aec299f0/install/config/constants.php
install/config/constants.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | File and Directory Modes |-------------------------------------------------------------------------- | | These prefs are used when checking and setting modes when...
php
MIT
de8fbedc099d92975dc465fd96d163a0aec299f0
2026-01-05T02:44:30.211206Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php $finder = Symfony\Component\Finder\Finder::create() ->in([ __DIR__ . '/src', __DIR__ . '/tests', ]) ->name('*.php') ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(true); return (new PhpCsFixer\Config()) ->setRules([ '@PSR12' => true, 'arra...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/SqlCommenter.php
src/SqlCommenter.php
<?php namespace Spatie\SqlCommenter; use Illuminate\Database\Connection; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Str; use Spatie\SqlCommenter\Commenters\Commenter; class SqlCommenter { /** @var array<Comment> */ protected array $extraComments = []; public fu...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Comment.php
src/Comment.php
<?php namespace Spatie\SqlCommenter; use Illuminate\Support\Collection; use Stringable; class Comment implements Stringable { public static function make(string $key, ?string $value): self { return new self($key, $value); } /** * @param Collection<Comment> $comments * * @retur...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/SqlCommenterServiceProvider.php
src/SqlCommenterServiceProvider.php
<?php namespace Spatie\SqlCommenter; use Illuminate\Database\Connection; use Illuminate\Support\Facades\DB; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; use Spatie\SqlCommenter\Commenters\Commenter; use Spatie\SqlCommenter\Exceptions\InvalidSqlCommenter; class SqlCom...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Exceptions/InvalidSqlCommenter.php
src/Exceptions/InvalidSqlCommenter.php
<?php namespace Spatie\SqlCommenter\Exceptions; use Exception; use Spatie\SqlCommenter\SqlCommenter; class InvalidSqlCommenter extends Exception { public static function make(string $invalidClass): self { $baseClass = SqlCommenter::class; return new self("Class `{$invalidClass}` is not a val...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Commenters/DbDriverCommenter.php
src/Commenters/DbDriverCommenter.php
<?php namespace Spatie\SqlCommenter\Commenters; use Illuminate\Database\Connection; use Spatie\SqlCommenter\Comment; class DbDriverCommenter implements Commenter { /** @return Comment|Comment[]|null */ public function comments(string $query, Connection $connection): Comment|array|null { return Co...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Commenters/Commenter.php
src/Commenters/Commenter.php
<?php namespace Spatie\SqlCommenter\Commenters; use Illuminate\Database\Connection; use Spatie\SqlCommenter\Comment; interface Commenter { /** @return Comment|Comment[]|null */ public function comments(string $query, Connection $connection): Comment|array|null; }
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Commenters/CurrentUserCommenter.php
src/Commenters/CurrentUserCommenter.php
<?php namespace Spatie\SqlCommenter\Commenters; use Illuminate\Database\Connection; use Spatie\SqlCommenter\Comment; use Spatie\SqlCommenter\SqlCommenter; class CurrentUserCommenter implements Commenter { public function comments(string $query, Connection $connection): Comment|array|null { SqlComment...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Commenters/FrameworkVersionCommenter.php
src/Commenters/FrameworkVersionCommenter.php
<?php namespace Spatie\SqlCommenter\Commenters; use Illuminate\Database\Connection; use Spatie\SqlCommenter\Comment; class FrameworkVersionCommenter implements Commenter { /** @return Comment|Comment[]|null */ public function comments(string $query, Connection $connection): Comment|array|null { r...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Commenters/JobCommenter.php
src/Commenters/JobCommenter.php
<?php namespace Spatie\SqlCommenter\Commenters; use Illuminate\Bus\Dispatcher; use Illuminate\Database\Connection; use Spatie\SqlCommenter\Comment; use Throwable; class JobCommenter implements Commenter { public function __construct(protected bool $includeNamespace = false) { } /** @return Comment|C...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Commenters/RouteCommenter.php
src/Commenters/RouteCommenter.php
<?php namespace Spatie\SqlCommenter\Commenters; use Illuminate\Database\Connection; use Spatie\SqlCommenter\Comment; class RouteCommenter implements Commenter { /** @return Comment|Comment[]|null */ public function comments(string $query, Connection $connection): Comment|array|null { return [ ...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Commenters/ControllerCommenter.php
src/Commenters/ControllerCommenter.php
<?php namespace Spatie\SqlCommenter\Commenters; use Closure; use Illuminate\Database\Connection; use Laravel\SerializableClosure\Support\ReflectionClosure; use Spatie\SqlCommenter\Comment; class ControllerCommenter implements Commenter { public function __construct(protected bool $includeNamespace = false) {...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/src/Commenters/FileCommenter.php
src/Commenters/FileCommenter.php
<?php namespace Spatie\SqlCommenter\Commenters; use Illuminate\Database\Connection; use Spatie\Backtrace\Backtrace; use Spatie\Backtrace\Frame; use Spatie\SqlCommenter\Comment; class FileCommenter implements Commenter { public function __construct( public int $backtraceLimit = 40, public array ...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/Pest.php
tests/Pest.php
<?php use Spatie\SqlCommenter\Comment; use Spatie\SqlCommenter\Tests\TestSupport\TestCase; uses(TestCase::class)->in(__DIR__); expect()->extend('toContainComment', function (string $key, string|int|null $value) { expect($this->value)->toContain((string)Comment::make($key, $value)); return $this; });
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/CommentTest.php
tests/CommentTest.php
<?php use Spatie\SqlCommenter\Comment; it('formats comments with keys', function () { $comments = collect([ Comment::make('key1', 'value1'), Comment::make('key2', 'value2'), ]); expect(Comment::formatCollection($comments))->toBe("/*key1='value1',key2='value2'*/"); }); it('formats comment...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/SqlCommenterTest.php
tests/SqlCommenterTest.php
<?php use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Spatie\SqlCommenter\Commenters\FrameworkVersionCommenter; use Spatie\SqlCommenter\Exceptions\InvalidSqlCommenter; use Spatie\SqlCommenter\SqlCommenter; use Spatie\SqlCommenter\Tests\TestSupp...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/TestSupport/TestCase.php
tests/TestSupport/TestCase.php
<?php namespace Spatie\SqlCommenter\Tests\TestSupport; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Orchestra\Testbench\TestCase as Orchestra; use Spatie\SqlCommenter\SqlCommenterServiceProvider; class TestCase extends Orches...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/TestSupport/TestClasses/CustomCommenter.php
tests/TestSupport/TestClasses/CustomCommenter.php
<?php namespace Spatie\SqlCommenter\Tests\TestSupport\TestClasses; use Illuminate\Database\Connection; use Illuminate\Support\Collection; use Spatie\SqlCommenter\Comment; use Spatie\SqlCommenter\SqlCommenter; class CustomCommenter extends SqlCommenter { protected function addExtraComments(Collection $comments, s...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/TestSupport/TestClasses/User.php
tests/TestSupport/TestClasses/User.php
<?php namespace Spatie\SqlCommenter\Tests\TestSupport\TestClasses; use Illuminate\Foundation\Auth\User as BaseUser; class User extends BaseUser { public $guarded = []; }
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/TestSupport/TestClasses/UsersJob.php
tests/TestSupport/TestClasses/UsersJob.php
<?php namespace Spatie\SqlCommenter\Tests\TestSupport\TestClasses; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\DB; class UsersJob im...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/TestSupport/TestClasses/InvalidCustomCommenter.php
tests/TestSupport/TestClasses/InvalidCustomCommenter.php
<?php namespace Spatie\SqlCommenter\Tests\TestSupport\TestClasses; class InvalidCustomCommenter { }
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/TestSupport/TestClasses/UsersController.php
tests/TestSupport/TestClasses/UsersController.php
<?php namespace Spatie\SqlCommenter\Tests\TestSupport\TestClasses; use Illuminate\Support\Facades\DB; class UsersController { public function __invoke() { return DB::table('users')->get(); } public function index() { return DB::table('users')->get(); } }
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/Commenters/DbDriverCommenterTest.php
tests/Commenters/DbDriverCommenterTest.php
<?php use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Spatie\SqlCommenter\Commenters\DbDriverCommenter; it('logs the database driver', function () { $this->addCommenterToConfig(DbDriverCommenter::class); Event::listen(QueryExecuted::c...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/Commenters/ControllerCommenterTest.php
tests/Commenters/ControllerCommenterTest.php
<?php use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Route; use Spatie\SqlCommenter\Commenters\ControllerCommenter; use Spatie\SqlCommenter\Tests\TestSupport\TestClasses\UsersController; it('logs the controller and ...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/Commenters/FileCommenterTest.php
tests/Commenters/FileCommenterTest.php
<?php namespace Spatie\SqlCommenter\Tests\Commenters; use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\Event; use Spatie\SqlCommenter\Commenters\FileCommenter; use Spatie\SqlCommenter\Tests\TestSupport\TestClasses\User; use Spatie\SqlCommenter\Tests\TestSupport\TestClasses\UsersJob; it('l...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/Commenters/RouteCommenterTest.php
tests/Commenters/RouteCommenterTest.php
<?php use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Route; it('logs the route name and url', function () { config()->set('sql-commenter.route', true); Event::listen(QueryExecuted::class, function (QueryExe...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/Commenters/FrameworkVersionCommenterTest.php
tests/Commenters/FrameworkVersionCommenterTest.php
<?php namespace Spatie\SqlCommenter\Tests\Commenters; use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Spatie\SqlCommenter\Commenters\FrameworkVersionCommenter; use Spatie\SqlCommenter\Tests\TestSupport\TestClasses\User; it('logs the framework...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/Commenters/JobCommenterTest.php
tests/Commenters/JobCommenterTest.php
<?php namespace Spatie\SqlCommenter\Tests\Commenters; use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\Event; use Spatie\SqlCommenter\Commenters\JobCommenter; use Spatie\SqlCommenter\Tests\TestSupport\TestClasses\UsersJob; it('logs the job it originated in', function () { Event::liste...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/tests/Commenters/CurrentUserCommenterTest.php
tests/Commenters/CurrentUserCommenterTest.php
<?php use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\Event; use Spatie\SqlCommenter\Tests\TestSupport\TestClasses\User; it('logs the current user', function () { $user = User::create([ 'name' => 'John', 'password' => 'dummy', 'email' => 'johndoe@example.com', ...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
spatie/laravel-sql-commenter
https://github.com/spatie/laravel-sql-commenter/blob/f938731c1bd30814f4665baba2735b100903549c/config/sql-commenter.php
config/sql-commenter.php
<?php return [ /* * When set to true, comments will be added to all your queries */ 'enabled' => true, /* * These classes add comments to an executed query. */ 'commenters' => [ Spatie\SqlCommenter\Commenters\ControllerCommenter::class => ['includeNamespace' => false], ...
php
MIT
f938731c1bd30814f4665baba2735b100903549c
2026-01-05T02:44:43.918552Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/RoboFile.php
RoboFile.php
<?php class RoboFile extends \Robo\Tasks { public function test() { $this->taskPHPUnit() ->configFile('phpunit.xml.dist') ->run(); } public function docsGenerate() { $this->taskExec('vendor/bin/apigen') ->arg('generate') ->option('sou...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Payload.php
src/Payload.php
<?php namespace Slack; /** * Stores incoming or outgoing message data for a Slack API call. */ class Payload implements \ArrayAccess, \JsonSerializable { /** * @var array The response data. */ protected $data; /** * Creates a response object from a JSON message. * * @param strin...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/DirectMessageChannel.php
src/DirectMessageChannel.php
<?php namespace Slack; /** * Contains information about a direct message channel. */ class DirectMessageChannel extends ClientObject implements ChannelInterface { /** * {@inheritDoc} */ public function getId() { return $this->data['id']; } /** * Gets the time the channel w...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/ConnectionException.php
src/ConnectionException.php
<?php namespace Slack; class ConnectionException extends \RuntimeException implements Exception { }
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Team.php
src/Team.php
<?php namespace Slack; /** * Contains information about a Slack team. */ class Team extends ClientObject { /** * Gets the team's ID. * * @return string The team's ID. */ public function getId() { return $this->data['id']; } /** * Gets the name of the team. *...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/ApiClient.php
src/ApiClient.php
<?php namespace Slack; use GuzzleHttp; use Psr\Http\Message\ResponseInterface; use React\EventLoop\LoopInterface; use React\Promise\Deferred; use Slack\Message\Message; use Slack\Message\MessageBuilder; /** * A client for connecting to the Slack Web API and calling remote API methods. */ class ApiClient { /** ...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/User.php
src/User.php
<?php namespace Slack; /** * Contains information about a team member. */ class User extends ClientObject { /** * Gets the user's ID. * * @return string The user's ID. */ public function getId() { return $this->data['id']; } /** * Gets the user's username. *...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/UserNotFoundException.php
src/UserNotFoundException.php
<?php namespace Slack; class UserNotFoundException extends \RuntimeException implements Exception { }
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/ChannelInterface.php
src/ChannelInterface.php
<?php namespace Slack; /** * Interface for room objects that messages can be posted to, such as channels * and groups. */ interface ChannelInterface { /** * Gets the room ID. * * @return string The room ID. */ public function getId(); /* * Closes the channel. * * @ret...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Channel.php
src/Channel.php
<?php namespace Slack; use React\Promise; /** * Represents a single Slack channel. */ class Channel extends ClientObject implements ChannelInterface { /** * {@inheritDoc} */ public function getId() { return $this->data['id']; } /** * Gets the channel name. * * @...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Exception.php
src/Exception.php
<?php namespace Slack; interface Exception { }
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/DataObject.php
src/DataObject.php
<?php namespace Slack; /** * A serializable model object that stores its data in a hash. */ abstract class DataObject implements \JsonSerializable { /** * @var array The object's data cache. */ public $data = []; /** * Creates a data object from an array of data. * * @param arra...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/ApiException.php
src/ApiException.php
<?php namespace Slack; class ApiException extends \RuntimeException implements Exception { }
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Bot.php
src/Bot.php
<?php namespace Slack; /** * Contains information about a bot. */ class Bot extends ClientObject { /** * Gets the bot's ID. * * @return string The bot's ID. */ public function getId() { return $this->data['id']; } /** * Gets the name of the bot. * * @r...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/RealTimeClient.php
src/RealTimeClient.php
<?php namespace Slack; use Devristo\Phpws\Client\WebSocket; use Devristo\Phpws\Messaging\WebSocketMessageInterface; use Evenement\EventEmitterTrait; use React\Promise; use Slack\Message\Message; /** * A client for the Slack real-time messaging API. */ class RealTimeClient extends ApiClient { use EventEmitterTra...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Group.php
src/Group.php
<?php namespace Slack; /** * Contains information about a private group channel. */ class Group extends Channel { /** * Renames the group. * * @param string $name The name to set to. * * @return \React\Promise\PromiseInterface */ public function rename($name) { retur...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/ClientObject.php
src/ClientObject.php
<?php namespace Slack; /** * An object fetched from the Slack API. */ abstract class ClientObject extends DataObject { /** * @var ApiClient The API client the object belongs to. */ protected $client; /** * Creates a client object from a data array. * * @param ApiClient $client T...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Message/MessageBuilder.php
src/Message/MessageBuilder.php
<?php namespace Slack\Message; use Slack\ApiClient; use Slack\ChannelInterface; use Slack\User; /** * A builder object for creating new message objects. */ class MessageBuilder { /** * @var ApiClient An API client. */ private $client; /** * @var array An array of data to pass to the buil...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Message/Attachment.php
src/Message/Attachment.php
<?php namespace Slack\Message; use Slack\DataObject; /** * A message attachment containing rich text data. * * @see https://api.slack.com/docs/attachments */ class Attachment extends DataObject { /** * Creates a new message attachment. * * @param string $title The attachment title. * @p...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Message/AttachmentBuilder.php
src/Message/AttachmentBuilder.php
<?php namespace Slack\Message; /** * A builder object for creating new message attachment objects. */ class AttachmentBuilder { // An array of data to pass to the built attachment. private $data = []; // Keep track of which text values should be parsed as Markdown. private $markdownInText = false; ...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Message/Message.php
src/Message/Message.php
<?php namespace Slack\Message; use Slack\ClientObject; /** * Represents a chat message and its data. */ class Message extends ClientObject { /** * Gets the message text. * * @return string */ public function getText() { return $this->data['text']; } /** * Checks...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/src/Message/AttachmentField.php
src/Message/AttachmentField.php
<?php namespace Slack\Message; use Slack\DataObject; /** * A field inside a message attachment. * * @see https://api.slack.com/docs/attachments */ class AttachmentField extends DataObject { /** * Creates a new attachment field. * * @param string $title A text heading for the field. * @para...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/TeamTest.php
tests/TeamTest.php
<?php namespace Slack\Tests; use Slack\Team; class TeamTest extends TestCase { public function testGetId() { $id = $this->faker->uuid; $team = new Team($this->client, [ 'id' => $id, ]); $this->assertEquals($id, $team->getId()); } public function testGetNam...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/TestCase.php
tests/TestCase.php
<?php namespace Slack\Tests; use GuzzleHttp\Client; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; use GuzzleHttp\Middleware; use GuzzleHttp\Psr7\Response; use React\EventLoop\Factory; use React\Promise\ExtendedPromiseInterface; use Slack\ApiClient; /** * Base helper class for test cases for mockin...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/ChannelTest.php
tests/ChannelTest.php
<?php namespace Slack\Tests; use Slack\Channel; use Slack\User; class ChannelTest extends TestCase { public function testGetId() { $id = $this->faker->uuid; $channel = new Channel($this->client, [ 'id' => $id, ]); $this->assertEquals($id, $channel->getId()); } ...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/UserTest.php
tests/UserTest.php
<?php namespace Slack\Tests; use Slack\User; class UserTest extends TestCase { public function testUsername() { $username = $this->faker->userName; $user = new User($this->client, [ 'name' => $username, ]); $this->assertEquals($username, $user->getUsername()); ...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/ApiClientTest.php
tests/ApiClientTest.php
<?php namespace Slack\Tests; use Slack\ApiClient; use Slack\Payload; use Slack\Team; use Slack\User; class ApiClientTest extends TestCase { public function testGetTeam() { $this->mockResponse(200, [], [ 'ok' => true, 'team' => [ 'id' => $this->faker->randomAscii...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/Message/MessageBuilderTest.php
tests/Message/MessageBuilderTest.php
<?php namespace Slack\Tests\Message; use Slack\Channel; use Slack\Message\Attachment; use Slack\Message\Message; use Slack\Message\MessageBuilder; use Slack\Tests\TestCase; use Slack\User; class MessageBuilderTest extends TestCase { protected $builder; public function setUp() { parent::setUp(); ...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/Message/AttachmentFieldTest.php
tests/Message/AttachmentFieldTest.php
<?php namespace Slack\Tests\Message; use Slack\Message\AttachmentField; use Slack\Tests\TestCase; class AttachmentFieldTest extends TestCase { public function testConstructor() { $title = $this->faker->title; $value = $this->faker->sentence; $short = $this->faker->boolean; $fi...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/Message/AttachmentTest.php
tests/Message/AttachmentTest.php
<?php namespace Slack\Tests\Message; use Slack\Message\Attachment; use Slack\Tests\TestCase; class AttachmentTest extends TestCase { public function testGetFallbackText() { $attachment = Attachment::fromData([ 'fallback' => $this->faker->sentence, ]); $this->assertEquals($...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/Message/MessageTest.php
tests/Message/MessageTest.php
<?php namespace Slack\Tests\Message; use Slack\ChannelInterface; use Slack\Message\Attachment; use Slack\Message\Message; use Slack\Tests\TestCase; use Slack\User; class MessageTest extends TestCase { public function testGetText() { $text = $this->faker->sentence; $message = new Message($this...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
sagebind/slack-client
https://github.com/sagebind/slack-client/blob/53e0c2897a5dabf9432e780c9e173872879bc607/tests/Message/AttachmentBuilderTest.php
tests/Message/AttachmentBuilderTest.php
<?php namespace Slack\Tests\Message; use Slack\Message\Attachment; use Slack\Message\AttachmentBuilder; use Slack\Message\AttachmentField; use Slack\Tests\TestCase; class AttachmentBuilderTest extends TestCase { protected $builder; public function setUp() { parent::setUp(); $this->builde...
php
MIT
53e0c2897a5dabf9432e780c9e173872879bc607
2026-01-05T02:44:52.494215Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/.php_cs.dist.php
.php_cs.dist.php
<?php $finder = Symfony\Component\Finder\Finder::create() ->in([ __DIR__ . '/src', __DIR__ . '/tests', ]) ->name('*.php') ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(true); return (new PhpCsFixer\Config()) ->setRules([ '@PSR12' => true, 'arra...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/src/AbbreviationParser.php
src/AbbreviationParser.php
<?php namespace Spatie\HtmlElement; use Spatie\HtmlElement\Helpers\Arr; class AbbreviationParser { /** @var string */ protected $element = 'div'; /** @var array */ protected $classes = []; /** @var array */ protected $attributes = []; public static function parse(string $tag): array ...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/src/Attributes.php
src/Attributes.php
<?php namespace Spatie\HtmlElement; class Attributes { /** @var array */ protected $attributes = []; /** @var array */ protected $classes = []; public function __construct(array $attributes = []) { $this->setAttributes($attributes); } /** * @param array $attributes ...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/src/TagRenderer.php
src/TagRenderer.php
<?php namespace Spatie\HtmlElement; class TagRenderer { /** @var string */ protected $element; /** @var \Spatie\HtmlElement\Attributes */ protected $attributes; /** @var string */ protected $contents; public static function render(string $element, Attributes $attributes, string $content...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/src/HtmlElement.php
src/HtmlElement.php
<?php namespace Spatie\HtmlElement; class HtmlElement { /** @var string */ protected $element; /** @var \Spatie\HtmlElement\Attributes */ protected $attributes; /** @var string */ protected $contents; /** * @link https://github.com/spatie/html-element#examples * * el('p')...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/src/Helpers/Arr.php
src/Helpers/Arr.php
<?php namespace Spatie\HtmlElement\Helpers; class Arr { public static function flatten(array $array): array { $flattened = []; foreach ($array as $element) { $flattened = array_merge( $flattened, is_array($element) ? static::flatten($element) : [$el...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/tests/AttributesTest.php
tests/AttributesTest.php
<?php namespace Spatie\HtmlElement\Test; use DMS\PHPUnitExtensions\ArraySubset\Assert; use PHPUnit\Framework\TestCase; use Spatie\HtmlElement\Attributes; class AttributesTest extends TestCase { /** @test */ public function it_starts_empty() { $attributes = new Attributes(); $this->assert...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/tests/HtmlElementTest.php
tests/HtmlElementTest.php
<?php namespace Spatie\HtmlElement\Test; use PHPUnit\Framework\TestCase; use Spatie\HtmlElement\HtmlElement; class HtmlElementTest extends TestCase { /** @test */ public function it_parses_a_tag() { $this->assertEquals( '<div></div>', HtmlElement::render('div') ); ...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/tests/AbbreviationParserTest.php
tests/AbbreviationParserTest.php
<?php namespace Spatie\HtmlElement\Test; use PHPUnit\Framework\TestCase; use Spatie\HtmlElement\AbbreviationParser; class AbbreviationParserTest extends TestCase { /** @test */ public function it_can_parse_a_plain_element() { $this->assertEquals( ['element' => 'div', 'classes' => [], ...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
spatie/html-element
https://github.com/spatie/html-element/blob/263f9af65e7b6408670686671e94b337acd8d619/tests/Helpers/ArrTest.php
tests/Helpers/ArrTest.php
<?php namespace Spatie\HtmlElement\Test\Helpers\Arr; use PHPUnit\Framework\TestCase; use Spatie\HtmlElement\Helpers\Arr; class ArrTest extends TestCase { /** @test */ public function it_flattens_an_array() { $this->assertEquals( ['a', 'b', 'c', 'd'], Arr::flatten(['a', ['b...
php
MIT
263f9af65e7b6408670686671e94b337acd8d619
2026-01-05T02:45:04.312406Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/composer-dependency-analyser.php
composer-dependency-analyser.php
<?php declare(strict_types=1); use ShipMonk\ComposerDependencyAnalyser\Config\Configuration; use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType; return (new Configuration())->ignoreErrorsOnPaths([__DIR__ . '/tests'], [ErrorType::UNKNOWN_CLASS]);
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/rector.php
rector.php
<?php declare(strict_types=1); use Rector\Config\RectorConfig; use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; return RectorConfig::configure() ->withPaths([__DIR__ . '/src', __DIR__ . '/tests']) ->withSkip(['*/Fixture/*', '*/Source/*']) ->withImportNames() ->withPhpSets() -...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/ecs.php
ecs.php
<?php declare(strict_types=1); use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestAnnotationFixer; use Symplify\EasyCodingStandard\Config\ECSConfig; return ECSConfig::configure() ->withPaths([__DIR__ . '/src', __DIR__ . '/tests']) ->withRootFiles() ->withSkip([ '*/Fixture/*', '*/Source/*', P...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/ApiDocStmtAnalyzer.php
src/ApiDocStmtAnalyzer.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic; use PhpParser\Comment\Doc; use PhpParser\Node\Stmt; use PHPStan\PhpDoc\ResolvedPhpDocBlock; use PHPStan\Reflection\ClassReflection; final class ApiDocStmtAnalyzer { public function isApiDoc(Stmt $stmt, ClassReflection $classReflection): bool ...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Configuration.php
src/Configuration.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic; use Webmozart\Assert\Assert; /** * @inspired by https://github.com/phpstan/phpstan-symfony/blob/1.2.x/src/Symfony/Configuration.php */ final readonly class Configuration { /** * @param array<string, mixed> $parameters */ public ...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/PublicClassMethodMatcher.php
src/PublicClassMethodMatcher.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic; use PhpParser\Comment\Doc; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Reflection\ClassReflection; final readonly class PublicClassMethodMatcher { /** * @var string[] */ private const SKIPPED_TYPES = [ 'Symfony\Compon...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/MethodTypeDetector.php
src/MethodTypeDetector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Analyser\Scope; use PHPStan\Reflection\ClassReflection; use PHPStan\Reflection\Php\PhpMethodReflection; use PHPStan\Reflection\ResolvedMethodReflection; final class MethodTypeDetector { public fu...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/ClassTypeDetector.php
src/ClassTypeDetector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic; use PHPStan\Reflection\ClassReflection; final class ClassTypeDetector { public function isTestClass(ClassReflection $classReflection): bool { return $classReflection->isSubclassOf('PHPUnit\Framework\TestCase') || $classR...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/ClassMethodCallReferenceResolver.php
src/ClassMethodCallReferenceResolver.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic; use PhpParser\Node\Expr; use PhpParser\Node\Expr\MethodCall; use PHPStan\Analyser\Scope; use PHPStan\Type\ThisType; use PHPStan\Type\TypeCombinator; use TomasVotruba\UnusedPublic\ValueObject\MethodCallReference; final class ClassMethodCallReference...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/NodeCollectorExtractor.php
src/NodeCollectorExtractor.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic; use PHPStan\Node\CollectedDataNode; use TomasVotruba\UnusedPublic\CollectorMapper\MethodCallCollectorMapper; use TomasVotruba\UnusedPublic\Collectors\Callable_\AttributeCallableCollector; use TomasVotruba\UnusedPublic\Collectors\Callable_\CallableTy...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/FormTypeClassCollector.php
src/Collectors/FormTypeClassCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors; use PhpParser\Node; use PhpParser\Node\ArrayItem; use PhpParser\Node\Scalar\String_; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Type\Constant\ConstantStringType; use TomasVotruba\UnusedPublic\Configuration; ...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/PublicClassMethodCollector.php
src/Collectors/PublicClassMethodCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors; use PhpParser\Node; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Reflection\ClassReflection; use TomasVotruba\UnusedPublic\ApiDocStmtAnalyzer; use TomasVotruba\UnusedPublic...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/PublicStaticPropertyFetchCollector.php
src/Collectors/PublicStaticPropertyFetchCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors; use PhpParser\Node; use PhpParser\Node\Expr\StaticPropertyFetch; use PhpParser\Node\Identifier; use PhpParser\Node\Name; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Reflection\ClassReflection; use TomasVotrub...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/PublicPropertyCollector.php
src/Collectors/PublicPropertyCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors; use Livewire\Component; use PhpParser\Node; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Param; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/PublicPropertyFetchCollector.php
src/Collectors/PublicPropertyFetchCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors; use PhpParser\Node; use PhpParser\Node\Expr\PropertyFetch; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Identifier; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Reflection\ClassReflection; use PHPStan\...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/PublicClassLikeConstCollector.php
src/Collectors/PublicClassLikeConstCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors; use PhpParser\Node; use PhpParser\Node\Stmt\ClassConst; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Reflection\ClassReflection; use TomasVotruba\UnusedPublic\ApiDocStmtAnalyzer; use TomasVotruba\UnusedPublic\...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/ClassConstFetchCollector.php
src/Collectors/ClassConstFetchCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors; use PhpParser\Node; use PhpParser\Node\Expr\ClassConstFetch; use PhpParser\Node\Identifier; use PhpParser\Node\Name; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Reflection\ClassReflection; use TomasVotruba\Un...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/Callable_/CallableTypeCollector.php
src/Collectors/Callable_/CallableTypeCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors\Callable_; use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Expr\Array_; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Reflection\ClassReflection; use PHPStan\Type\Constant\ConstantArrayType; use ...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/Callable_/AttributeCallableCollector.php
src/Collectors/Callable_/AttributeCallableCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors\Callable_; use PhpParser\Node; use PhpParser\Node\Attribute; use PhpParser\Node\AttributeGroup; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Scalar\String_; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Ty...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/MethodCall/MethodCallableCollector.php
src/Collectors/MethodCall/MethodCallableCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors\MethodCall; use PhpParser\Node; use PhpParser\Node\Expr; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Node\MethodCallableNode; use PHPStan\Reflection\ClassReflection; use TomasVotruba\UnusedPublic\CallReferece\...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false
TomasVotruba/unused-public
https://github.com/TomasVotruba/unused-public/blob/13f70d7baba3ade246d64fab55524f48bc724d28/src/Collectors/MethodCall/MethodCallCollector.php
src/Collectors/MethodCall/MethodCallCollector.php
<?php declare(strict_types=1); namespace TomasVotruba\UnusedPublic\Collectors\MethodCall; use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Expr\MethodCall; use PHPStan\Analyser\Scope; use PHPStan\Collectors\Collector; use PHPStan\Reflection\ClassReflection; use TomasVotruba\UnusedPublic\CallReferece\C...
php
MIT
13f70d7baba3ade246d64fab55524f48bc724d28
2026-01-05T02:45:11.099854Z
false