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 |
|---|---|---|---|---|---|---|---|---|
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Exception/UnexpectedResponseFormatException.php | lib/Exception/UnexpectedResponseFormatException.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Exception;
use Mautic\Response;
/**
* Exception representing an unexpected HTTP response.
*/
class UnexpectedRes... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Exception/IncorrectParametersReturnedException.php | lib/Exception/IncorrectParametersReturnedException.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Exception;
/**
* Exception representing an incorrect parameter set for an OAuth token request.
*/
class Incorrect... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Exception/RequiredParameterMissingException.php | lib/Exception/RequiredParameterMissingException.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Exception;
/**
* Exception representing a required parameter is missing for Basic Authentication.
*/
class Requir... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Exception/AuthorizationRequiredException.php | lib/Exception/AuthorizationRequiredException.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Exception;
class AuthorizationRequiredException extends \Exception
{
/**
* @var string
*/
private... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Exception/ContextNotFoundException.php | lib/Exception/ContextNotFoundException.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Exception;
/**
* Exception representing a requested API context which was not found.
*/
class ContextNotFoundExce... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/QueryBuilder/QueryBuilder.php | lib/QueryBuilder/QueryBuilder.php | <?php
/*
* @copyright 2016 Mautic Contributors. All rights reserved
* @author Mautic, Inc.
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Mautic\QueryBuilder;
class QueryBuilder
{
/**
* @var array
*/
protected $sele... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/QueryBuilder/WhereBuilder.php | lib/QueryBuilder/WhereBuilder.php | <?php
/*
* @copyright 2016 Mautic Contributors. All rights reserved
* @author Mautic, Inc.
*
* @link https://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Mautic\QueryBuilder;
/**
* Class WhereBuilder.
*/
class WhereBuilder
{
/**
* @var ar... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Contacts.php | lib/Api/Contacts.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Contacts Context.
*/
class Contacts extends Api
{
/**
* Contact unsubscribed themselves.
... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Api.php | lib/Api/Api.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
use Mautic\Auth\ApiAuth;
use Mautic\Auth\AuthInterface;
use Mautic\QueryBuilder\QueryBuilder;
use Psr\Log\Logg... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Focus.php | lib/Api/Focus.php | <?php
/*
* @package Mautic
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
* @link http://mautic.org
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/*
* Emails Context
*/
class Focus extends Api
{
protected $endpoint = 'focus';
pr... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Campaigns.php | lib/Api/Campaigns.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Campaigns Context.
*/
class Campaigns extends Api
{
protected $endpoint = 'campaigns';
protec... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Webhooks.php | lib/Api/Webhooks.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Webhooks Context.
*/
class Webhooks extends Api
{
protected $endpoint = 'hooks';
protected $l... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Users.php | lib/Api/Users.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Users Context.
*/
class Users extends Api
{
protected $endpoint = 'users';
protected $listNam... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Categories.php | lib/Api/Categories.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Categories Context.
*/
class Categories extends Api
{
protected $endpoint = 'categories';
pro... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Devices.php | lib/Api/Devices.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Devices Context.
*/
class Devices extends Api
{
protected $endpoint = 'devices';
protected $l... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Tweets.php | lib/Api/Tweets.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Tweets Context.
*/
class Tweets extends Api
{
protected $endpoint = 'tweets';
protected $list... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Tags.php | lib/Api/Tags.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Tags Context.
*/
class Tags extends Api
{
protected $endpoint = 'tags';
protected $listName =... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Points.php | lib/Api/Points.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Points Context.
*/
class Points extends Api
{
protected $endpoint = 'points';
protected $list... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Companies.php | lib/Api/Companies.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Companies Context.
*/
class Companies extends Api
{
protected $endpoint = 'companies';
protec... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/PointTriggers.php | lib/Api/PointTriggers.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* PointTriggers Context.
*/
class PointTriggers extends Api
{
protected $endpoint = 'points/triggers... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/CampaignEvents.php | lib/Api/CampaignEvents.php | <?php
/**
* @copyright 2016 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* CampaignEvents Context.
*/
class CampaignEvents extends Api
{
protected $endpoint = 'campaigns/eve... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Reports.php | lib/Api/Reports.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Reports Context.
*/
class Reports extends Api
{
protected $endpoint = 'reports';
protected $l... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Pages.php | lib/Api/Pages.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Pages Context.
*/
class Pages extends Api
{
protected $endpoint = 'pages';
protected $listNam... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Forms.php | lib/Api/Forms.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Forms Context.
*/
class Forms extends Api
{
protected $endpoint = 'forms';
protected $listNam... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Stats.php | lib/Api/Stats.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Stats Context.
*/
class Stats extends Api
{
protected $endpoint = 'stats';
protected $listNam... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Themes.php | lib/Api/Themes.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Themes Context.
*/
class Themes extends Api
{
protected $endpoint = 'themes';
protected $list... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/ContactFields.php | lib/Api/ContactFields.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* ContactFields Context.
*/
class ContactFields extends Api
{
protected $endpoint = 'fields/contact'... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Assets.php | lib/Api/Assets.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Assets Context.
*/
class Assets extends Api
{
protected $endpoint = 'assets';
protected $list... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Data.php | lib/Api/Data.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Data Context.
*/
class Data extends Api
{
protected $endpoint = 'data';
protected $listName =... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Stages.php | lib/Api/Stages.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Stages Context.
*/
class Stages extends Api
{
protected $endpoint = 'stages';
protected $list... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Smses.php | lib/Api/Smses.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Smses Context.
*/
class Smses extends Api
{
protected $endpoint = 'smses';
protected $listNam... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Segments.php | lib/Api/Segments.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Segments Context.
*/
class Segments extends Api
{
protected $endpoint = 'segments';
protected... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/PointGroups.php | lib/Api/PointGroups.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Points Context.
*/
class PointGroups extends Api
{
protected $endpoint = 'points/groups';
pro... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Emails.php | lib/Api/Emails.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Emails Context.
*/
class Emails extends Api
{
protected $endpoint = 'emails';
protected $list... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Messages.php | lib/Api/Messages.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Marketing Messages Context.
*/
class Messages extends Api
{
protected $endpoint = 'messages';
... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Notifications.php | lib/Api/Notifications.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Notifications Context.
*/
class Notifications extends Api
{
protected $endpoint = 'notifications';... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Roles.php | lib/Api/Roles.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Roles Context.
*/
class Roles extends Api
{
protected $endpoint = 'roles';
protected $listNam... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Notes.php | lib/Api/Notes.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Notes Context.
*/
class Notes extends Api
{
protected $endpoint = 'notes';
protected $listNam... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/CompanyFields.php | lib/Api/CompanyFields.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* CompanyFields Context.
*/
class CompanyFields extends Api
{
protected $endpoint = 'fields/company'... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/Files.php | lib/Api/Files.php | <?php
/**
* @copyright 2014 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Files Context.
*/
class Files extends Api
{
protected $endpoint = 'files/images';
protected $... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/lib/Api/DynamicContents.php | lib/Api/DynamicContents.php | <?php
/**
* @copyright 2016 Mautic, NP. All rights reserved.
* @author Mautic
*
* @see http://mautic.org
*
* @license MIT http://opensource.org/licenses/MIT
*/
namespace Mautic\Api;
/**
* Dynamiccontents Context.
*/
class DynamicContents extends Api
{
protected $endpoint = 'dynamiccont... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
mautic/api-library | https://github.com/mautic/api-library/blob/9093806f8ce18c747e647f65dcf8c7120c65ffde/apitester/index.php | apitester/index.php | <?php
session_name('oauthtester');
session_start();
require dirname(__DIR__).'/vendor/autoload.php';
use Mautic\Auth\OAuthClient;
$auth = (isset($_POST['auth'])) ? $_POST['auth'] : @$_SESSION['auth'];
if (empty($auth)) {
$auth = 'OAuth1a';
}
$apiurl = (isset($_POST['apiurl'])) ? $_POST['apiurl'] : @$... | php | MIT | 9093806f8ce18c747e647f65dcf8c7120c65ffde | 2026-01-05T02:29:41.458985Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/scoper.php | scoper.php | <?php
declare(strict_types=1);
require __DIR__ . '/vendor/autoload.php';
$nowDateTime = new DateTime('now');
$timestamp = $nowDateTime->format('Ym');
// @see https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md
use Nette\Utils\Strings;
// see https://github.com/humbug/php-scoper
return [
'p... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/composer-dependency-analyser.php | composer-dependency-analyser.php | <?php
declare(strict_types=1);
use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;
$config = new Configuration();
return $config
->ignoreErrorsOnPackage('phpunit/phpunit', [ErrorType::DEV_DEPENDENCY_IN_PROD])
// optional dependency for sym... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/rector.php | rector.php | <?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([__DIR__ . '/src', __DIR__ . '/tests'])
->withPhpSets()
->withPreparedSets(
codeQuality: true,
deadCode: true,
typeDeclarations: true,
privatization: true,
e... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/ecs.php | ecs.php | <?php
declare(strict_types=1);
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withSkip([
// invalid syntax test fixture
__DIR__ . '/tests/PhpParser/Finder/ClassConstantFetchFinder/Fixture/Error/ParseError.php',
])
->withPreparedSets(psr12: true, common: ... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ParentClassResolver.php | src/ParentClassResolver.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife;
use PhpParser\NodeTraverser;
use Rector\SwissKnife\PhpParser\CachedPhpParser;
use Rector\SwissKnife\PhpParser\NodeTraverserFactory;
use Rector\SwissKnife\PhpParser\NodeVisitor\ParentClassNameCollectingNodeVisitor;
use Symfony\Component\Finder\SplFileInfo;
... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/EntityClassResolver.php | src/EntityClassResolver.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife;
use Nette\Utils\Strings;
use PhpParser\NodeTraverser;
use Rector\SwissKnife\Finder\FilesFinder;
use Rector\SwissKnife\Finder\PhpFilesFinder;
use Rector\SwissKnife\PhpParser\CachedPhpParser;
use Rector\SwissKnife\PhpParser\NodeTraverserFactory;
use Rector\Sw... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/MockedClassResolver.php | src/MockedClassResolver.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife;
use PhpParser\NodeTraverser;
use Rector\SwissKnife\Finder\PhpFilesFinder;
use Rector\SwissKnife\PhpParser\CachedPhpParser;
use Rector\SwissKnife\PhpParser\NodeTraverserFactory;
use Rector\SwissKnife\PhpParser\NodeVisitor\MockedClassNameCollectingNodeVisitor... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/FileSystem/JsonAnalyzer.php | src/FileSystem/JsonAnalyzer.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\FileSystem;
final class JsonAnalyzer
{
public function isPrettyPrinted(string $json): bool
{
$lines = explode(PHP_EOL, $json);
return count($lines) >= 3;
}
}
| php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/FileSystem/PathHelper.php | src/FileSystem/PathHelper.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\FileSystem;
final class PathHelper
{
public static function relativeToCwd(string $filePath): string
{
$filePath = self::normalize($filePath);
// get relative path from getcwd()
return str_replace(self::normalize((string) getc... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Contract/ClassConstantFetchInterface.php | src/Contract/ClassConstantFetchInterface.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Contract;
use Rector\SwissKnife\ValueObject\ClassConstant;
interface ClassConstantFetchInterface
{
public function getClassName(): string;
public function getConstantName(): string;
public function isClassConstantMatch(ClassConstant $classCons... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Testing/UnitTestFilePathsFinder.php | src/Testing/UnitTestFilePathsFinder.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Testing;
use Rector\SwissKnife\Testing\Finder\TestCaseClassFinder;
/**
* @see \Rector\SwissKnife\Tests\Testing\UnitTestFilePathsFinder\UnitTestFilePathsFinderTest
*/
final readonly class UnitTestFilePathsFinder
{
public function __construct(
p... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Testing/PHPUnitMocker.php | src/Testing/PHPUnitMocker.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Testing;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
/**
* Helped class to create PHPUnit mock class
*/
final class PHPUnitMocker extends TestCase
{
/**
* @param class-string $classObject
*/
public functi... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Testing/MockWire.php | src/Testing/MockWire.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Testing;
use InvalidArgumentException;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use ReflectionMethod;
use ReflectionNamedType;
use ReflectionParameter;
/**
* @api used in public
*
* Service to help... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Testing/UnitTestFilter.php | src/Testing/UnitTestFilter.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Testing;
final class UnitTestFilter
{
/**
* @var string[]|class-string<KernelTestCase>[]
*/
private const NON_UNIT_TEST_CASE_CLASSES = [
'Symfony\Bundle\FrameworkBundle\Test\KernelTestCase',
'Symfony\Component\Form\Test\Type... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Testing/Finder/TestCaseClassFinder.php | src/Testing/Finder/TestCaseClassFinder.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Testing\Finder;
use Nette\Loaders\RobotLoader;
final class TestCaseClassFinder
{
/**
* @param string[] $directories
* @return array<string, string>
*/
public function findInDirectories(array $directories): array
{
$robotLo... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Testing/Printer/PHPUnitXmlPrinter.php | src/Testing/Printer/PHPUnitXmlPrinter.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Testing\Printer;
use Rector\SwissKnife\FileSystem\PathHelper;
final class PHPUnitXmlPrinter
{
/**
* Prints lists of <file> elements in https://phpunit.readthedocs.io/en/9.5/configuration.html#the-testsuite-element
*
* @param string[] $fil... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Testing/Command/DetectUnitTestsCommand.php | src/Testing/Command/DetectUnitTestsCommand.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Testing\Command;
use Nette\Utils\FileSystem;
use Rector\SwissKnife\Testing\Printer\PHPUnitXmlPrinter;
use Rector\SwissKnife\Testing\UnitTestFilePathsFinder;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/RobotLoader/PhpClassLoader.php | src/RobotLoader/PhpClassLoader.php | <?php
namespace Rector\SwissKnife\RobotLoader;
use Nette\Loaders\RobotLoader;
final class PhpClassLoader
{
/**
* @param string[] $directories
* @param string[] $excludedPaths
* @return array<string, string>
*/
public function load(array $directories, array $excludedPaths): array
{
... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Git/ConflictResolver.php | src/Git/ConflictResolver.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Git;
use Nette\Utils\FileSystem;
use Nette\Utils\Strings;
/**
* @see \Rector\SwissKnife\Tests\Git\ConflictResolver\ConflictResolverTest
*/
final class ConflictResolver
{
/**
* @see https://regex101.com/r/L2CThC/1
* @var string
*/
pr... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Analyzer/NeedsFinalizeAnalyzer.php | src/Analyzer/NeedsFinalizeAnalyzer.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Analyzer;
use PhpParser\NodeTraverser;
use Rector\SwissKnife\PhpParser\CachedPhpParser;
use Rector\SwissKnife\PhpParser\NodeTraverserFactory;
use Rector\SwissKnife\PhpParser\NodeVisitor\NeedForFinalizeNodeVisitor;
use Webmozart\Assert\Assert;
final readonly... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Finder/MultipleClassInOneFileFinder.php | src/Finder/MultipleClassInOneFileFinder.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Finder;
use Rector\SwissKnife\RobotLoader\PhpClassLoader;
final readonly class MultipleClassInOneFileFinder
{
public function __construct(
private PhpClassLoader $phpClassLoader
) {
}
/**
* @param string[] $directories
* @... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Finder/FilesFinder.php | src/Finder/FilesFinder.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Finder;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use Webmozart\Assert\Assert;
final class FilesFinder
{
/**
* @param string[] $sources
* @return SplFileInfo[]
*/
public static function find(array ... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Finder/PhpFilesFinder.php | src/Finder/PhpFilesFinder.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Finder;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use Webmozart\Assert\Assert;
final class PhpFilesFinder
{
/**
* @param string[] $paths
* @param string[] $excludedPaths
*
* @return SplFileInfo[]
... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Finder/TraitFilesFinder.php | src/Finder/TraitFilesFinder.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Finder;
use Nette\Utils\Strings;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use Webmozart\Assert\Assert;
final class TraitFilesFinder
{
/**
* @param string[] $directories
* @return SplFileInfo[]
*/
... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Twig/TwigTemplateConstantExtractor.php | src/Twig/TwigTemplateConstantExtractor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Twig;
use Nette\Utils\FileSystem;
use Nette\Utils\Strings;
use Rector\SwissKnife\Contract\ClassConstantFetchInterface;
use Rector\SwissKnife\Finder\FilesFinder;
use Rector\SwissKnife\ValueObject\ClassConstantFetch\ExternalClassAccessConstantFetch;
/**
* @s... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Traits/TraitSpotter.php | src/Traits/TraitSpotter.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Traits;
use Nette\Utils\Strings;
use Rector\SwissKnife\Finder\TraitFilesFinder;
use Rector\SwissKnife\ValueObject\Traits\TraitMetadata;
use Rector\SwissKnife\ValueObject\Traits\TraitSpottingResult;
/**
* @see \Rector\SwissKnife\Tests\Traits\TraitSpotterTes... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Enum/SymfonyExtensionClass.php | src/Enum/SymfonyExtensionClass.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Enum;
final class SymfonyExtensionClass
{
/**
* @var string
*/
public const SENTRY = 'Sentry\SentryBundle\DependencyInjection\SentryExtension';
/**
* @var string
*/
public const DOCTRINE_MIGRATIONS = 'Doctrine\Bundle\Migr... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Enum/StaticAccessor.php | src/Enum/StaticAccessor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Enum;
final class StaticAccessor
{
/**
* @var string
*/
public const STATIC = 'static';
/**
* @var string
*/
public const SELF = 'self';
}
| php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Enum/SymfonyClass.php | src/Enum/SymfonyClass.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Enum;
final class SymfonyClass
{
/**
* @var string
*/
public const CONTAINER_CONFIGURATOR_CLASS = 'Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator';
}
| php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/DependencyInjection/ContainerFactory.php | src/DependencyInjection/ContainerFactory.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\DependencyInjection;
use Illuminate\Container\Container;
use PhpParser\Parser;
use PhpParser\ParserFactory;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Sym... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/YAML/YamlConfigConstantExtractor.php | src/YAML/YamlConfigConstantExtractor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\YAML;
use Nette\Utils\FileSystem;
use Nette\Utils\Strings;
use Rector\SwissKnife\Contract\ClassConstantFetchInterface;
use Rector\SwissKnife\Finder\FilesFinder;
use Rector\SwissKnife\ValueObject\ClassConstantFetch\ExternalClassAccessConstantFetch;
/**
* @s... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeTraverserFactory.php | src/PhpParser/NodeTraverserFactory.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitor;
/**
* To avoid dynamic count of node visitors in single node traverser
*/
final class NodeTraverserFactory
{
public static function create(NodeVisitor $nodeVisitor): NodeTraverser
... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/CachedPhpParser.php | src/PhpParser/CachedPhpParser.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser;
use Nette\Utils\FileSystem;
use PhpParser\Node\Stmt;
use PhpParser\NodeVisitor\NameResolver;
use PhpParser\Parser;
use RuntimeException;
use Throwable;
/**
* Parse file just once
*/
final class CachedPhpParser
{
/**
* @var array<string... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/Finder/ClassConstFinder.php | src/PhpParser/Finder/ClassConstFinder.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\Finder;
use Rector\SwissKnife\PhpParser\CachedPhpParser;
use Rector\SwissKnife\PhpParser\NodeTraverserFactory;
use Rector\SwissKnife\PhpParser\NodeVisitor\FindNonPrivateClassConstNodeVisitor;
use Rector\SwissKnife\ValueObject\ClassConstant;
/**
*... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/Finder/ClassConstantFetchFinder.php | src/PhpParser/Finder/ClassConstantFetchFinder.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\Finder;
use Rector\SwissKnife\Contract\ClassConstantFetchInterface;
use Rector\SwissKnife\Exception\NotImplementedYetException;
use Rector\SwissKnife\Exception\ShouldNotHappenException;
use Rector\SwissKnife\PhpParser\CachedPhpParser;
use Rector\Sw... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeVisitor/ParentClassNameCollectingNodeVisitor.php | src/PhpParser/NodeVisitor/ParentClassNameCollectingNodeVisitor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\NodeVisitor;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Class_;
use PhpParser\NodeVisitorAbstract;
final class ParentClassNameCollectingNodeVisitor extends NodeVisitorAbstract
{
/**
* @var string[]
*/
pr... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeVisitor/MockedClassNameCollectingNodeVisitor.php | src/PhpParser/NodeVisitor/MockedClassNameCollectingNodeVisitor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\NodeVisitor;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\StaticCall;
use PhpParser\Node\Identifier;
use PhpParser\Node\Name;
use PhpParser\NodeVisi... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeVisitor/FindClassConstFetchNodeVisitor.php | src/PhpParser/NodeVisitor/FindClassConstFetchNodeVisitor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\NodeVisitor;
use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\Enum_;
use PhpParser\Node\Stmt\Interface_;
use PhpParser\Node\Stmt\T... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeVisitor/NeedForFinalizeNodeVisitor.php | src/PhpParser/NodeVisitor/NeedForFinalizeNodeVisitor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\NodeVisitor;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Class_;
use PhpParser\NodeVisitorAbstract;
final class NeedForFinalizeNodeVisitor extends NodeVisitorAbstract
{
private bool $isNeeded = false;
/**
* @... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeVisitor/FindNonPrivateClassConstNodeVisitor.php | src/PhpParser/NodeVisitor/FindNonPrivateClassConstNodeVisitor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\NodeVisitor;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Class_;
use PhpParser\NodeVisitorAbstract;
use Rector\SwissKnife\ValueObject\ClassConstant;
use ReflectionClass;
use Webmozart\Assert\Assert;
final class FindNonPriv... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeVisitor/ExtractSymfonyExtensionCallNodeVisitor.php | src/PhpParser/NodeVisitor/ExtractSymfonyExtensionCallNodeVisitor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\NodeVisitor;
use PhpParser\Node;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Identifier;
use PhpParser\Node\Stmt\Expression;
use PhpParser\NodeVisitorAbstract;
final class ExtractSymfonyExtensionCallNodeVisitor extends NodeVisitorAbstra... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeVisitor/AddImportConfigMethodCallNodeVisitor.php | src/PhpParser/NodeVisitor/AddImportConfigMethodCallNodeVisitor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\NodeVisitor;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr\BinaryOp\Concat;
use PhpParser\Node\Expr\Closure;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Scalar\MagicConst\Dir;
use P... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeVisitor/EntityClassNameCollectingNodeVisitor.php | src/PhpParser/NodeVisitor/EntityClassNameCollectingNodeVisitor.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\NodeVisitor;
use PhpParser\Comment\Doc;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Class_;
use PhpParser\NodeVisitorAbstract;
use Webmozart\Assert\Assert;
final class EntityClassNameCollectingNodeVisitor extends NodeVisit... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/PhpParser/NodeFactory/SplitConfigClosureFactory.php | src/PhpParser/NodeFactory/SplitConfigClosureFactory.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\PhpParser\NodeFactory;
use PhpParser\Node\Expr\Closure;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Identifier;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Param;
use PhpParser\Node\Scalar\Int_;
use... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ValueObject/VisibilityChangeStats.php | src/ValueObject/VisibilityChangeStats.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\ValueObject;
final class VisibilityChangeStats
{
private int $privateCount = 0;
public function countPrivate(): void
{
++$this->privateCount;
}
public function getPrivateCount(): int
{
return $this->privateCount;
... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ValueObject/ClassConstant.php | src/ValueObject/ClassConstant.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\ValueObject;
use Webmozart\Assert\Assert;
final readonly class ClassConstant
{
/**
* @param class-string $className
*/
public function __construct(
private string $className,
private string $constantName,
) {
As... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ValueObject/Traits/TraitSpottingResult.php | src/ValueObject/Traits/TraitSpottingResult.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\ValueObject\Traits;
final readonly class TraitSpottingResult
{
/**
* @param TraitMetadata[] $traitsMetadatas
*/
public function __construct(
private array $traitsMetadatas,
) {
}
public function getTraitCount(): int
... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ValueObject/Traits/TraitMetadata.php | src/ValueObject/Traits/TraitMetadata.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\ValueObject\Traits;
use Nette\Utils\FileSystem;
final class TraitMetadata
{
private readonly int $lineCount;
/**
* @var string[]
*/
private array $usedIn = [];
public function __construct(
private readonly string $filePat... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ValueObject/ClassConstantFetch/ParentClassConstantFetch.php | src/ValueObject/ClassConstantFetch/ParentClassConstantFetch.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\ValueObject\ClassConstantFetch;
final class ParentClassConstantFetch extends AbstractClassConstantFetch
{
}
| php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ValueObject/ClassConstantFetch/CurrentClassConstantFetch.php | src/ValueObject/ClassConstantFetch/CurrentClassConstantFetch.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\ValueObject\ClassConstantFetch;
final class CurrentClassConstantFetch extends AbstractClassConstantFetch
{
}
| php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ValueObject/ClassConstantFetch/ExternalClassAccessConstantFetch.php | src/ValueObject/ClassConstantFetch/ExternalClassAccessConstantFetch.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\ValueObject\ClassConstantFetch;
final class ExternalClassAccessConstantFetch extends AbstractClassConstantFetch
{
}
| php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ValueObject/ClassConstantFetch/AbstractClassConstantFetch.php | src/ValueObject/ClassConstantFetch/AbstractClassConstantFetch.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\ValueObject\ClassConstantFetch;
use Rector\SwissKnife\Contract\ClassConstantFetchInterface;
use Rector\SwissKnife\ValueObject\ClassConstant;
abstract class AbstractClassConstantFetch implements ClassConstantFetchInterface
{
public function __construct(
... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/ValueObject/ClassConstantFetch/StaticClassConstantFetch.php | src/ValueObject/ClassConstantFetch/StaticClassConstantFetch.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\ValueObject\ClassConstantFetch;
final class StaticClassConstantFetch extends AbstractClassConstantFetch
{
}
| php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Exception/NotImplementedYetException.php | src/Exception/NotImplementedYetException.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Exception;
use Exception;
final class NotImplementedYetException extends Exception
{
}
| php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Exception/ShouldNotHappenException.php | src/Exception/ShouldNotHappenException.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Exception;
use Exception;
final class ShouldNotHappenException extends Exception
{
}
| php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Comments/CommentedCodeAnalyzer.php | src/Comments/CommentedCodeAnalyzer.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Comments;
use Nette\Utils\FileSystem;
use Nette\Utils\Strings;
/**
* @see \Rector\SwissKnife\Tests\Comments\CommentedCodeAnalyzerTest
*/
final class CommentedCodeAnalyzer
{
/**
* @var string
* @see https://regex101.com/r/5OlGjG/1
* @see... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Command/SpotLazyTraitsCommand.php | src/Command/SpotLazyTraitsCommand.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Command;
use Rector\SwissKnife\Traits\TraitSpotter;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Sym... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
rectorphp/swiss-knife | https://github.com/rectorphp/swiss-knife/blob/d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb/src/Command/SplitSymfonyConfigToPerPackageCommand.php | src/Command/SplitSymfonyConfigToPerPackageCommand.php | <?php
declare(strict_types=1);
namespace Rector\SwissKnife\Command;
use Nette\Utils\FileSystem;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Scalar\String_;
use PhpParser\Node\Stmt;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitor\NameResolver;
use PhpParser\ParserFactory;
use PhpParser\PrettyPrinter... | php | MIT | d96dc4b28f36f7bb86d4dde93b34d80b3a46ffbb | 2026-01-05T02:28:58.319812Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.