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 |
|---|---|---|---|---|---|---|---|---|
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Tracker/InotifyTracker.php | src/Lurker/Tracker/InotifyTracker.php | <?php
namespace Lurker\Tracker;
use Lurker\Resource\DirectoryResource;
use Lurker\Resource\TrackedResource;
use Lurker\Event\FilesystemEvent;
use Lurker\StateChecker\Inotify\TopDirectoryStateChecker;
use Lurker\StateChecker\Inotify\FileStateChecker;
use Lurker\Exception\RuntimeException;
use Lurker\StateChecker\Inoti... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Tracker/TrackerInterface.php | src/Lurker/Tracker/TrackerInterface.php | <?php
namespace Lurker\Tracker;
use Lurker\Resource\TrackedResource;
use Lurker\Event\FilesystemEvent;
/**
* Resources tracker interface.
*
* @author Konstantin Kudryashov <ever.zet@gmail.com>
*/
interface TrackerInterface
{
/**
* Starts to track provided resource for changes.
*
* @param Track... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Exception/ExceptionInterface.php | src/Lurker/Exception/ExceptionInterface.php | <?php
namespace Lurker\Exception;
/**
* Exception interface for all exceptions thrown by the component.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
interface ExceptionInterface
{
}
| php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Exception/RuntimeException.php | src/Lurker/Exception/RuntimeException.php | <?php
namespace Lurker\Exception;
use \RuntimeException as BaseRuntimeException;
/**
* RuntimeException
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class RuntimeException extends BaseRuntimeException implements ExceptionInterface
{
}
| php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/Exception/InvalidArgumentException.php | src/Lurker/Exception/InvalidArgumentException.php | <?php
namespace Lurker\Exception;
use \InvalidArgumentException as BaseInvalidArgumentException;
/**
* InvalidArgumentException
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class InvalidArgumentException extends BaseInvalidArgumentException implements ExceptionInterface
{
}
| php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/FileStateChecker.php | src/Lurker/StateChecker/FileStateChecker.php | <?php
namespace Lurker\StateChecker;
use Lurker\Resource\FileResource;
use Lurker\Event\FilesystemEvent;
/**
* File state checker.
*
* @author Konstantin Kudryashov <ever.zet@gmail.com>
*/
class FileStateChecker extends ResourceStateChecker
{
/**
* Initializes checker.
*
* @param FileResource ... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/DirectoryStateChecker.php | src/Lurker/StateChecker/DirectoryStateChecker.php | <?php
namespace Lurker\StateChecker;
use Lurker\Event\FilesystemEvent;
use Lurker\Resource\DirectoryResource;
/**
* Recursive directory state checker.
*
* @author Konstantin Kudryashov <ever.zet@gmail.com>
*/
class DirectoryStateChecker extends NewDirectoryStateChecker
{
/**
* {@inheritdoc}
*/
... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/NewDirectoryStateChecker.php | src/Lurker/StateChecker/NewDirectoryStateChecker.php | <?php
namespace Lurker\StateChecker;
use Lurker\Event\FilesystemEvent;
use Lurker\Resource\DirectoryResource;
/**
* Recursive directory state checker.
*
* @author Konstantin Kudryashov <ever.zet@gmail.com>
*/
class NewDirectoryStateChecker extends ResourceStateChecker
{
protected $childs = array();
/**
... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/StateCheckerInterface.php | src/Lurker/StateChecker/StateCheckerInterface.php | <?php
namespace Lurker\StateChecker;
use Lurker\Resource\ResourceInterface;
/**
* Resource state checker interface.
*
* @author Konstantin Kudryashov <ever.zet@gmail.com>
*/
interface StateCheckerInterface
{
/**
* Returns tracked resource.
*
* @return ResourceInterface
*/
public funct... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/ResourceStateChecker.php | src/Lurker/StateChecker/ResourceStateChecker.php | <?php
namespace Lurker\StateChecker;
use Lurker\Event\FilesystemEvent;
use Lurker\Resource\ResourceInterface;
/**
* Abstract resource state checker class.
*
* @author Konstantin Kudryashov <ever.zet@gmail.com>
*/
abstract class ResourceStateChecker implements StateCheckerInterface
{
private $resource;
pr... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/Inotify/FileStateChecker.php | src/Lurker/StateChecker/Inotify/FileStateChecker.php | <?php
namespace Lurker\StateChecker\Inotify;
use Lurker\Resource\FileResource;
use Lurker\Event\FilesystemEvent;
/**
* File state checker.
*
* @author Yaroslav Kiliba <om.dattaya@gmail.com>
*/
class FileStateChecker extends ResourceStateChecker
{
/**
* Initializes checker.
*
* @param CheckerBa... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/Inotify/TopDirectoryStateChecker.php | src/Lurker/StateChecker/Inotify/TopDirectoryStateChecker.php | <?php
namespace Lurker\StateChecker\Inotify;
/**
* Topmost directory state checker. Top directory - folder that was provided to InotifyTracker::track method.
*
* @author Yaroslav Kiliba <om.dattaya@gmail.com>
*/
class TopDirectoryStateChecker extends DirectoryStateChecker
{
/**
* {@inheritdoc}
*/
... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/Inotify/DirectoryStateChecker.php | src/Lurker/StateChecker/Inotify/DirectoryStateChecker.php | <?php
namespace Lurker\StateChecker\Inotify;
use Lurker\Resource\DirectoryResource;
use Lurker\Resource\FileResource;
use Lurker\Event\FilesystemEvent;
/**
* Directory state checker.
*
* @author Yaroslav Kiliba <om.dattaya@gmail.com>
*/
class DirectoryStateChecker extends ResourceStateChecker
{
/**
* @v... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/Inotify/NewDirectoryStateChecker.php | src/Lurker/StateChecker/Inotify/NewDirectoryStateChecker.php | <?php
namespace Lurker\StateChecker\Inotify;
use Lurker\Resource\DirectoryResource;
use Lurker\Event\FilesystemEvent;
/**
* Directory state checker. Sets for itself and children a flag that indicates newness.
*
* @author Yaroslav Kiliba <om.dattaya@gmail.com>
*/
class NewDirectoryStateChecker extends DirectorySt... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/Inotify/ResourceStateChecker.php | src/Lurker/StateChecker/Inotify/ResourceStateChecker.php | <?php
namespace Lurker\StateChecker\Inotify;
use Lurker\Event\FilesystemEvent;
use Lurker\Resource\ResourceInterface;
use Lurker\StateChecker\StateCheckerInterface;
/**
* Abstract resource state checker.
*
* @author Yaroslav Kiliba <om.dattaya@gmail.com>
*/
abstract class ResourceStateChecker implements StateChe... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/src/Lurker/StateChecker/Inotify/CheckerBag.php | src/Lurker/StateChecker/Inotify/CheckerBag.php | <?php
namespace Lurker\StateChecker\Inotify;
/**
* Bag for the inotify resource state checkers.
*
* @author Yaroslav Kiliba <om.dattaya@gmail.com>
*/
class CheckerBag
{
/**
* @var \SplObjectStorage[]
*/
protected $watched = array();
/**
* @var resource Inotify resource.
*/
pri... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/bootstrap.php | tests/bootstrap.php | <?php
$loader = require __DIR__ . '/../vendor/autoload.php';
$loader->add('Lurker\\Tests\\', __DIR__);
$loader->register();
| php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/ResourceWatcherTest.php | tests/Lurker/Tests/ResourceWatcherTest.php | <?php
namespace Lurker\Tests;
use Lurker\ResourceWatcher;
use Lurker\Resource\TrackedResource;
use Lurker\Event\FilesystemEvent;
use Lurker\Resource\FileResource;
use Lurker\Resource\DirectoryResource;
class ResourceWatcherTest extends \PHPUnit_Framework_TestCase
{
private $tracker;
private $dispatcher;
... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/Event/FilesystemEventTest.php | tests/Lurker/Tests/Event/FilesystemEventTest.php | <?php
namespace Lurker\Tests\Event;
use Lurker\Resource\FileResource;
use Lurker\Resource\DirectoryResource;
use Lurker\Event\FilesystemEvent;
use Lurker\Resource\TrackedResource;
class FilesystemEventTest extends \PHPUnit_Framework_TestCase
{
public function testConstructAndGetters()
{
$event = new ... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/Tracker/InotifyTrackerTest.php | tests/Lurker/Tests/Tracker/InotifyTrackerTest.php | <?php
namespace Lurker\Tests\Tracker;
use Lurker\Tracker\InotifyTracker;
use Lurker\Resource\TrackedResource;
use Lurker\Resource\FileResource;
use Lurker\Resource\DirectoryResource;
use Lurker\Event\FilesystemEvent;
class InotifyTrackerTest extends TrackerTest
{
public function setUp()
{
if (!functi... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/Tracker/TrackerTest.php | tests/Lurker/Tests/Tracker/TrackerTest.php | <?php
namespace Lurker\Tests\Tracker;
use Lurker\Event\FilesystemEvent;
use Lurker\Resource\TrackedResource;
use Lurker\Tracker\TrackerInterface;
use Lurker\Resource\DirectoryResource;
use Lurker\Resource\FileResource;
abstract class TrackerTest extends \PHPUnit_Framework_TestCase
{
protected $tmpDir;
publi... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/Tracker/RecursiveIteratorTrackerTest.php | tests/Lurker/Tests/Tracker/RecursiveIteratorTrackerTest.php | <?php
namespace Lurker\Tests\Tracker;
use Lurker\Tracker\RecursiveIteratorTracker;
/**
* @group medium
*/
class RecursiveIteratorTrackerTest extends TrackerTest
{
/**
* @return TrackerInterface
*/
protected function getTracker()
{
return new RecursiveIteratorTracker();
}
prot... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/StateChecker/DirectoryStateCheckerTest.php | tests/Lurker/Tests/StateChecker/DirectoryStateCheckerTest.php | <?php
namespace Lurker\Tests\StateChecker;
use Lurker\Event\FilesystemEvent;
use Lurker\StateChecker\DirectoryStateChecker;
use Lurker\Resource\ResourceInterface;
use Lurker\Resource\DirectoryResource;
use Lurker\Resource\FileResource;
class DirectoryStateCheckerTest extends \PHPUnit_Framework_TestCase
{
public ... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/StateChecker/FileStateCheckerTest.php | tests/Lurker/Tests/StateChecker/FileStateCheckerTest.php | <?php
namespace Lurker\Tests\StateChecker;
use Lurker\Event\FilesystemEvent;
use Lurker\StateChecker\FileStateChecker;
class FileStateCheckerTest extends \PHPUnit_Framework_TestCase
{
public function testGetResource()
{
$resource = $this->createResource();
$checker = $this->createChecker($res... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/StateChecker/Inotify/DirectoryStateCheckerTest.php | tests/Lurker/Tests/StateChecker/Inotify/DirectoryStateCheckerTest.php | <?php
namespace Lurker\Tests\StateChecker\Inotify;
use Lurker\Event\FilesystemEvent;
use Lurker\StateChecker\Inotify\CheckerBag;
use Lurker\Tests\StateChecker\Inotify\Fixtures\DirectoryStateCheckerForTest;
use Lurker\Resource\ResourceInterface;
class DirectoryStateCheckerTest extends \PHPUnit_Framework_TestCase
{
... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/StateChecker/Inotify/FileStateCheckerTest.php | tests/Lurker/Tests/StateChecker/Inotify/FileStateCheckerTest.php | <?php
namespace Lurker\Tests\StateChecker\Inotify;
use Lurker\Event\FilesystemEvent;
use Lurker\Tests\StateChecker\Inotify\Fixtures\FileStateCheckerForTest;
class FileStateCheckerTest extends StateCheckerTest
{
public function testResourceMovedAndReturnedDifferentWatchId()
{
$this->setAddWatchReturns... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/StateChecker/Inotify/TopDirectoryStateCheckerTest.php | tests/Lurker/Tests/StateChecker/Inotify/TopDirectoryStateCheckerTest.php | <?php
namespace Lurker\Tests\StateChecker\Inotify;
use Lurker\Tests\StateChecker\Inotify\Fixtures\TopDirectoryStateCheckerForTest;
class TopDirectoryStateCheckerTest extends StateCheckerTest
{
public function testResourceMovedAndReturnedDifferentWatchId()
{
$this->setAddWatchReturns(1);
$chec... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/StateChecker/Inotify/StateCheckerTest.php | tests/Lurker/Tests/StateChecker/Inotify/StateCheckerTest.php | <?php
namespace Lurker\Tests\StateChecker\Inotify;
use Lurker\Event\FilesystemEvent;
use Lurker\Resource\ResourceInterface;
use Lurker\StateChecker\Inotify\CheckerBag;
abstract class StateCheckerTest extends \PHPUnit_Framework_TestCase
{
protected $bag;
protected $resource;
private $exists = true;
p... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/StateChecker/Inotify/Fixtures/FileStateCheckerForTest.php | tests/Lurker/Tests/StateChecker/Inotify/Fixtures/FileStateCheckerForTest.php | <?php
namespace Lurker\Tests\StateChecker\Inotify\Fixtures;
use Lurker\StateChecker\Inotify\FileStateChecker;
class FileStateCheckerForTest extends FileStateChecker
{
private static $watchId;
public static function setAddWatchReturns($value)
{
self::$watchId = $value;
}
protected functi... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/StateChecker/Inotify/Fixtures/DirectoryStateCheckerForTest.php | tests/Lurker/Tests/StateChecker/Inotify/Fixtures/DirectoryStateCheckerForTest.php | <?php
namespace Lurker\Tests\StateChecker\Inotify\Fixtures;
use Lurker\StateChecker\Inotify\DirectoryStateChecker;
class DirectoryStateCheckerForTest extends DirectoryStateChecker
{
private static $watchId;
public static function setAddWatchReturns($value)
{
self::$watchId = $value;
}
p... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
flint/Lurker | https://github.com/flint/Lurker/blob/712d3ef19bef161daa2ba0e0237c6b875587a089/tests/Lurker/Tests/StateChecker/Inotify/Fixtures/TopDirectoryStateCheckerForTest.php | tests/Lurker/Tests/StateChecker/Inotify/Fixtures/TopDirectoryStateCheckerForTest.php | <?php
namespace Lurker\Tests\StateChecker\Inotify\Fixtures;
use Lurker\StateChecker\Inotify\TopDirectoryStateChecker;
class TopDirectoryStateCheckerForTest extends TopDirectoryStateChecker
{
private static $watchId;
public static function setAddWatchReturns($value)
{
self::$watchId = $value;
... | php | MIT | 712d3ef19bef161daa2ba0e0237c6b875587a089 | 2026-01-05T03:17:31.633788Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/.phpstorm.meta.php | .phpstorm.meta.php | <?php
namespace PHPSTORM_META {
override(
\Psr\Container\ContainerInterface::get(0),
map(['@'])
);
}
| php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/public/index.php | public/index.php | <?php
declare(strict_types=1);
use Laminas\Mvc\Application;
/**
* This makes our life easier when dealing with paths. Everything is relative
* to the application root now.
*/
chdir(dirname(__DIR__));
// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server') {
$p... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/bin/remove-package-artifacts.php | bin/remove-package-artifacts.php | <?php
/**
* @param string $path
* @return void
*/
function recursiveRemovePath($path)
{
if (is_file($path) || is_link($path)) {
unlink($path);
return;
}
if (! is_dir($path)) {
return;
}
foreach (scandir($path) as $object) {
if ($object === '.' || $object === '..... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/bin/clear-config-cache.php | bin/clear-config-cache.php | <?php
declare(strict_types=1);
use Laminas\ModuleManager\Listener\ListenerOptions;
chdir(__DIR__ . '/../');
require 'vendor/autoload.php';
$config = include 'config/application.config.php';
if (! isset($config['module_listener_options'])) {
echo "No module listener options found. Can not determine config cach... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/bin/update-gitignore.php | bin/update-gitignore.php | <?php
declare(strict_types=1);
$gitIgnore = sprintf('%s/.gitignore', realpath(dirname(__DIR__)));
$rules = file_get_contents($gitIgnore);
$rules = preg_replace("#[\r\n]+composer.lock#s", '', $rules);
file_put_contents($gitIgnore, $rules);
unlink(__FILE__);
| php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/config/modules.config.php | config/modules.config.php | <?php
/**
* List of enabled modules for this application.
*
* This should be an array of module namespaces used in the application.
*/
return [
'Laminas\Router',
'Laminas\Validator',
'Application',
];
| php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/config/application.config.php | config/application.config.php | <?php
/**
* If you need an environment-specific system or application configuration,
* there is an example in the documentation
*
* @see https://docs.laminas.dev/tutorials/advanced-config/#environment-specific-system-configuration
* @see https://docs.laminas.dev/tutorials/advanced-config/#environment-specific-app... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/config/container.php | config/container.php | <?php
use Laminas\Mvc\Application;
use Laminas\Stdlib\ArrayUtils;
// Retrieve configuration
$appConfig = require __DIR__ . '/application.config.php';
if (file_exists(__DIR__ . '/development.config.php')) {
/** @var array $devConfig */
$devConfig = require __DIR__ . '/development.config.php';
$appConfig = ... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/config/autoload/global.php | config/autoload/global.php | <?php
/**
* Global Configuration Override
*
* You can use this file for overriding configuration values from modules, etc.
* You would place values in here that are agnostic to the environment and not
* sensitive to security.
*
* NOTE: In practice, this file will typically be INCLUDED in your source
* control,... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/config/autoload/laminas-developer-tools.local-development.php | config/autoload/laminas-developer-tools.local-development.php | <?php
/**
* This is configuration for the Laminas\DeveloperTools development toolbar.
*
* It will be enabled when you enable development mode.
*/
return [
'laminas-developer-tools' => [
/**
* General Profiler settings
*/
'profiler' => [
/**
* Enables o... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/module/Application/src/Module.php | module/Application/src/Module.php | <?php
declare(strict_types=1);
namespace Application;
class Module
{
public function getConfig(): array
{
/** @var array $config */
$config = include __DIR__ . '/../config/module.config.php';
return $config;
}
}
| php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/module/Application/src/Controller/IndexController.php | module/Application/src/Controller/IndexController.php | <?php
declare(strict_types=1);
namespace Application\Controller;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;
class IndexController extends AbstractActionController
{
public function indexAction()
{
return new ViewModel();
}
}
| php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/module/Application/test/ModuleTest.php | module/Application/test/ModuleTest.php | <?php
declare(strict_types=1);
namespace ApplicationTest;
use Application\Module;
use PHPUnit\Framework\TestCase;
/**
* @covers \Application\Module;
*/
class ModuleTest extends TestCase
{
public function testProvidesConfig(): void
{
$module = new Module();
$config = $module->getConfig();
... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/module/Application/test/Controller/IndexControllerTest.php | module/Application/test/Controller/IndexControllerTest.php | <?php
declare(strict_types=1);
namespace ApplicationTest\Controller;
use Application\Controller\IndexController;
use Laminas\Stdlib\ArrayUtils;
use Laminas\Test\PHPUnit\Controller\AbstractHttpControllerTestCase;
class IndexControllerTest extends AbstractHttpControllerTestCase
{
public function setUp(): void
... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
laminas/laminas-mvc-skeleton | https://github.com/laminas/laminas-mvc-skeleton/blob/5e541c97367916699b497ca94ec0a3b5e26dc87f/module/Application/config/module.config.php | module/Application/config/module.config.php | <?php
declare(strict_types=1);
namespace Application;
use Laminas\Router\Http\Literal;
use Laminas\Router\Http\Segment;
use Laminas\ServiceManager\Factory\InvokableFactory;
return [
'router' => [
'routes' => [
'home' => [
'type' => Literal::class,
'options'... | php | BSD-3-Clause | 5e541c97367916699b497ca94ec0a3b5e26dc87f | 2026-01-05T03:17:45.978776Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/src/IPv6.php | src/IPv6.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP;
/**
* Class to manipulate IPv6.
*
* Addres... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/src/IPBlockIterator.php | src/IPBlockIterator.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP;
/**
* Iterator for IPBlock, represent a grou... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/src/IPv4Block.php | src/IPv4Block.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP;
/**
* An IPv4 CIDR block.
*/
class IPv4Bloc... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/src/IPTrait.php | src/IPTrait.php | <?php
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP;
/**
* Static methods shared by IPv4 and IPv6, but that shouldn't be
*... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/src/IPv4.php | src/IPv4.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP;
/**
* Class to manipulate IPv4.
*/
class IP... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/src/IP.php | src/IP.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP;
if (!function_exists('gmp_shiftl')) {
/**... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/src/IPBlockTrait.php | src/IPBlockTrait.php | <?php
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP;
/**
* Static methods shared by IPv4Block and IPv6Block, but that shoul... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/src/IPv6Block.php | src/IPv6Block.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP;
/**
* An IPv6 CIDR block.
*/
class IPv6Bloc... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/src/IPBlock.php | src/IPBlock.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP;
/**
* Base class to manipulate CIDR block (a... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/tests/IPv6Test.php | tests/IPv6Test.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP\Tests;
use PhpIP\IPv6;
use PHPUnit\Framework\T... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/tests/IPv6BlockTest.php | tests/IPv6BlockTest.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP\Tests;
use PhpIP\IPv6Block;
use PHPUnit\Framew... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/tests/IPBlockIteratorTest.php | tests/IPBlockIteratorTest.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP\Tests;
use PhpIP\IPBlockIterator;
use PhpIP\IP... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/tests/IPBlockTest.php | tests/IPBlockTest.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP\Tests;
use PhpIP\IPBlock;
use PhpIP\IPv6Block;... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/tests/IPv4BlockTest.php | tests/IPv4BlockTest.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP\Tests;
use PhpIP\IPv4Block;
use PHPUnit\Framew... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/tests/IPTest.php | tests/IPTest.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP\Tests;
use PhpIP\IP;
use PhpIP\IPv4;
use PHPUn... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
rlanvin/php-ip | https://github.com/rlanvin/php-ip/blob/7811f12256a5a610ddcb31ed9840179f4dd3784d/tests/IPv4Test.php | tests/IPv4Test.php | <?php
declare(strict_types=1);
/**
* Licensed under the MIT license.
*
* For the full copyright and license information, please view the LICENSE file.
*
* @author Rémi Lanvin <remi@cloudconnected.fr>
*
* @see https://github.com/rlanvin/php-ip
*/
namespace PhpIP\Tests;
use PhpIP\IPv4;
use PHPUnit\Framework\T... | php | MIT | 7811f12256a5a610ddcb31ed9840179f4dd3784d | 2026-01-05T03:17:52.672494Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/MulticastResult.php | src/PHP_GCM/MulticastResult.php | <?php
namespace PHP_GCM;
/**
* Result of a GCM multicast message request.
*/
class MulticastResult {
private $success;
private $failure;
private $canonicalIds;
private $multicastId;
private $results;
private $retryMulticastIds;
/**
* @param int $success
* @param int $failure
* @param int $c... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Result.php | src/PHP_GCM/Result.php | <?php
namespace PHP_GCM;
/**
* Result of a GCM message request that returned HTTP status code 200.
*
* <p>
* If the message is successfully created, the {@link #getMessageId()} returns
* the message id and {@link #getErrorCodeName()} returns {@literal null};
* otherwise, {@link #getMessageId()} returns {@litera... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/InvalidRequestException.php | src/PHP_GCM/InvalidRequestException.php | <?php
namespace PHP_GCM;
/**
* Exception thrown when GCM returned an error due to an invalid request.
* <p>
* This is equivalent to GCM posts that return an HTTP error different of 200.
*/
class InvalidRequestException extends \Exception {
private $status;
private $description;
public function __construct... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Notification.php | src/PHP_GCM/Notification.php | <?php
namespace PHP_GCM;
/**
* Used for notification messages. See https://developers.google.com/cloud-messaging/http-server-ref#notification-payload-support
* for more information about the parameters.
*/
class Notification {
private $icon;
private $title;
private $body;
private $sound;
private $badge;... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Constants.php | src/PHP_GCM/Constants.php | <?php
namespace PHP_GCM;
/**
* Constants used in GCM service communication.
*/
final class Constants {
/**
* Too many messages sent by the sender. Retry after a while.
*/
public static $ERROR_QUOTA_EXCEEDED = 'QuotaExceeded';
/**
* Too many messages sent by the sender to a specific device.
* Ret... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Message.php | src/PHP_GCM/Message.php | <?php
namespace PHP_GCM;
class Message {
const COLLAPSE_KEY = 'collapse_key';
const TIME_TO_LIVE = 'time_to_live';
const DRY_RUN = 'dry_run';
const DELAY_WHILE_IDLE = 'delay_while_idle';
const RESTRICTED_PACKAGE_NAME = 'restricted_package_name';
const REGISTRATION_IDS = 'registration_ids';
const DATA =... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/AggregateResult.php | src/PHP_GCM/AggregateResult.php | <?php
namespace PHP_GCM;
/**
* Aggregate results of GCM multicast message requests.
*/
class AggregateResult {
private $success;
private $failure;
private $canonicalIds;
private $results;
private $multicastResults;
private $retryMulticastIds;
/**
* @param MulticastResult[] $multicastResults
*/... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Sender.php | src/PHP_GCM/Sender.php | <?php
namespace PHP_GCM;
class Sender {
const SEND_ENDPOINT = 'https://fcm.googleapis.com/fcm/send';
const BACKOFF_INITIAL_DELAY = 1000;
const MAX_BACKOFF_DELAY = 1024000;
const SUCCESS = 'success';
const FAILURE = 'failure';
const REGISTRATION_ID = 'registration_id';
const CANONICAL_IDS = 'canonical_i... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/tests/PHP_GCM/SenderTest.php | tests/PHP_GCM/SenderTest.php | <?php
namespace PHP_GCM;
class SenderTest extends \PHPUnit_Framework_TestCase {
public function testConstructsCorrectly() {
$sender = new Sender('api-key');
$this->assertNotNull($sender);
}
}
| php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/tests/PHP_GCM/NotificationTest.php | tests/PHP_GCM/NotificationTest.php | <?php
namespace PHP_GCM;
class NotificationTest extends \PHPUnit_Framework_TestCase {
protected $notification;
protected function setUp() {
$this->notification = new Notification();
}
public function testConstructsCorrectly() {
$this->assertEquals('default', $this->notification->getSound());
}
... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/tests/PHP_GCM/ResultTest.php | tests/PHP_GCM/ResultTest.php | <?php
namespace PHP_GCM;
class ResultTest extends \PHPUnit_Framework_TestCase {
public function testConstructsCorrectly() {
$result = new Result();
$this->assertEquals('', $result->getMessageId());
$this->assertEquals('', $result->getCanonicalRegistrationId());
$this->assertEquals('', $result->get... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/tests/PHP_GCM/MulticastResultTest.php | tests/PHP_GCM/MulticastResultTest.php | <?php
namespace PHP_GCM;
class MulticastResultTest extends \PHPUnit_Framework_TestCase {
public function testConstructsCorrectly() {
$result = new MulticastResult(1, 2, 1, 'multicast-id', array());
$this->assertEquals('multicast-id', $result->getMulticastId());
$this->assertEquals(1, $result->getSucce... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/tests/PHP_GCM/AggregateResultTest.php | tests/PHP_GCM/AggregateResultTest.php | <?php
namespace PHP_GCM;
class AggregateResultTest extends \PHPUnit_Framework_TestCase {
public function testConstructsCorrectly() {
$results = array();
$results[] = new MulticastResult(1, 2, 1, 'multicast-id1', array());
$results[] = new MulticastResult(1, 2, 1, 'multicast-id2', array());
$results... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/tests/PHP_GCM/MessageTest.php | tests/PHP_GCM/MessageTest.php | <?php
namespace PHP_GCM;
class MessageTest extends \PHPUnit_Framework_TestCase {
public function testSetsDefaultsInConstructor() {
$message = new Message();
$this->assertEquals(2419200, $message->getTimeToLive());
$this->assertEquals(false, $message->getDelayWhileIdle());
$this->assertFalse($messa... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
lkorth/php-gcm | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/tests/PHP_GCM/InvalidRequestExceptionTest.php | tests/PHP_GCM/InvalidRequestExceptionTest.php | <?php
namespace PHP_GCM;
class InvalidRequestExceptionTest extends \PHPUnit_Framework_TestCase {
public function testConstructsCorrectlyWithStatusCode() {
$exception = new InvalidRequestException(422);
$this->assertEquals(422, $exception->getHttpStatusCode());
$this->assertEquals('', $exception->getDe... | php | Apache-2.0 | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | 2026-01-05T03:18:08.024486Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/ScrollPager.php | ScrollPager.php | <?php
namespace kop\y2sp;
use kop\y2sp\assets\InfiniteAjaxScrollAsset;
use Yii;
use yii\base\InvalidConfigException;
use yii\base\Widget;
use yii\helpers\ArrayHelper;
use yii\helpers\Json;
use yii\i18n\PhpMessageSource;
use yii\web\JsExpression;
use yii\web\View;
use yii\widgets\LinkPager;
/**
* ScrollPager turns y... | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/de/general.php | messages/de/general.php | <?php
return [
'Load more items' => 'Weitere Einträge laden',
'You reached the end' => 'Keine weiteren Einträge vorhanden'
];
| php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/uk/general.php | messages/uk/general.php | <?php
return [
'Load more items' => 'Завантажити більше записів',
'You reached the end' => 'Вы досягли кінця'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/fa-IR/general.php | messages/fa-IR/general.php | <?php
return [
'Load more items' => 'بارگذاری آیتم های بیشتر',
'You reached the end' => 'به پایان رسیدید'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/cs/general.php | messages/cs/general.php | <?php
return [
'Load more items' => 'Načíst další položky',
'You reached the end' => 'Dostali jste se na konec'
];
| php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/en/general.php | messages/en/general.php | <?php
return [
'Load more items' => 'Load more items',
'You reached the end' => 'You reached the end',
'Load previous items' => 'Load previous items'
];
| php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/pl/general.php | messages/pl/general.php | <?php
return [
'Load more items' => 'Załaduj więcej',
'You reached the end' => 'Doszedłeś do końca',
'Load previous items' => 'Załaduj poprzednie'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/nl/general.php | messages/nl/general.php | <?php
return [
'Load more items' => 'Laad meer items',
'You reached the end' => 'Je hebt het einde bereikt'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/fr/general.php | messages/fr/general.php | <?php
return [
'Load more items' => 'Charger plus d\'articles',
'You reached the end' => 'Vous avez atteint la fin'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/it/general.php | messages/it/general.php | <?php
return [
'Load more items' => 'Caricare più articoli',
'You reached the end' => 'Hai raggiunto la fine'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/pt-BR/general.php | messages/pt-BR/general.php | <?php
return [
'Load more items' => 'Carregar mais itens',
'You reached the end' => 'Você chegou ao fim'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/ru/general.php | messages/ru/general.php | <?php
return [
'Load more items' => 'Загрузить больше записей',
'You reached the end' => 'Вы достигли конца'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/zh-CN/general.php | messages/zh-CN/general.php | <?php
return [
'Load more items' => '更多',
'You reached the end' => '没有更多了'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/messages/es/general.php | messages/es/general.php | <?php
return [
'Load more items' => 'Cargar más artículos',
'You reached the end' => 'Ha llegado el final'
]; | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/assets/IASPagingExtensionAsset.php | assets/IASPagingExtensionAsset.php | <?php
namespace kop\y2sp\assets;
use yii\web\AssetBundle;
/**
* Class IASPagingExtensionAsset
* @package kop\y2sp\assets
*/
class IASPagingExtensionAsset extends AssetBundle
{
public $sourcePath = '@vendor/webcreate/jquery-ias/src';
public $js = [
'extension/paging.js'
];
/**
* @v... | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/assets/IASNoneLeftExtensionAsset.php | assets/IASNoneLeftExtensionAsset.php | <?php
namespace kop\y2sp\assets;
use yii\web\AssetBundle;
/**
* Class IASNoneLeftExtensionAsset
* @package kop\y2sp\assets
*/
class IASNoneLeftExtensionAsset extends AssetBundle
{
public $sourcePath = '@vendor/webcreate/jquery-ias/src';
public $js = [
'extension/noneleft.js'
];
/**
... | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/assets/IASHistoryExtensionAsset.php | assets/IASHistoryExtensionAsset.php | <?php
namespace kop\y2sp\assets;
use yii\web\AssetBundle;
/**
* Class IASHistoryExtensionAsset
* @package kop\y2sp\assets
*/
class IASHistoryExtensionAsset extends AssetBundle
{
public $sourcePath = '@vendor/webcreate/jquery-ias/src';
public $js = [
'extension/history.js'
];
/**
*... | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/assets/InfiniteAjaxScrollAsset.php | assets/InfiniteAjaxScrollAsset.php | <?php
namespace kop\y2sp\assets;
use yii\web\AssetBundle;
/**
* This is "InfiniteAjaxScrollAsset" class.
*
* This class is an asset bundle for {@link http://infiniteajaxscroll.com/ JQuery Infinite Ajax Scroll plugin}.
*
* @link http://kop.github.io/yii2-scroll-pager Y2SP project page.
* @license https:/... | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/assets/IASTriggerExtensionAsset.php | assets/IASTriggerExtensionAsset.php | <?php
namespace kop\y2sp\assets;
use yii\web\AssetBundle;
/**
* Class IASTriggerExtensionAsset
* @package kop\y2sp\assets
*/
class IASTriggerExtensionAsset extends AssetBundle
{
public $sourcePath = '@vendor/webcreate/jquery-ias/src';
public $js = [
'extension/trigger.js'
];
/**
*... | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
kop/yii2-scroll-pager | https://github.com/kop/yii2-scroll-pager/blob/27720921e60b5df12b73c31429472fe8781e0425/assets/IASSpinnerExtensionAsset.php | assets/IASSpinnerExtensionAsset.php | <?php
namespace kop\y2sp\assets;
use yii\web\AssetBundle;
/**
* Class IASSpinnerExtensionAsset
* @package kop\y2sp\assets
*/
class IASSpinnerExtensionAsset extends AssetBundle
{
public $sourcePath = '@vendor/webcreate/jquery-ias/src';
public $js = [
'extension/spinner.js'
];
/**
*... | php | MIT | 27720921e60b5df12b73c31429472fe8781e0425 | 2026-01-05T03:18:10.436246Z | false |
composer/metadata-minifier | https://github.com/composer/metadata-minifier/blob/c78e193f9ad2ad10033840f20bc13acbab92a2d5/src/MetadataMinifier.php | src/MetadataMinifier.php | <?php
/*
* This file is part of composer/metadata-minifier.
*
* (c) Composer <https://github.com/composer>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\MetadataMinifier;
class MetadataMinifier
{
/**
... | php | MIT | c78e193f9ad2ad10033840f20bc13acbab92a2d5 | 2026-01-05T03:18:28.506276Z | false |
composer/metadata-minifier | https://github.com/composer/metadata-minifier/blob/c78e193f9ad2ad10033840f20bc13acbab92a2d5/tests/MetadataMinifierTest.php | tests/MetadataMinifierTest.php | <?php
/*
* This file is part of composer/metadata-minifier.
*
* (c) Composer <https://github.com/composer>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Test\MetadataMinifier;
use Composer\MetadataMinifier\M... | php | MIT | c78e193f9ad2ad10033840f20bc13acbab92a2d5 | 2026-01-05T03:18:28.506276Z | false |
hprose/hprose-swoole | https://github.com/hprose/hprose-swoole/blob/bc827c5b410d68f72a069e4c1e3c1a1c5a5f8f65/src/Hprose/Swoole/Client.php | src/Hprose/Swoole/Client.php | <?php
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | php | MIT | bc827c5b410d68f72a069e4c1e3c1a1c5a5f8f65 | 2026-01-05T03:18:41.887154Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.