blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 116 | path stringlengths 2 241 | src_encoding stringclasses 31
values | length_bytes int64 14 3.6M | score float64 2.52 5.13 | int_score int64 3 5 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | text stringlengths 14 3.57M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
656b89c0621d5be43aa62c1b5b806fdd14bce4d0 | PHP | eduarguz/wsdltophp-example-reservation | /src/StructType/ActionCodeUpdate.php | UTF-8 | 4,022 | 2.796875 | 3 | [] | no_license | <?php
namespace Sabre\UpdateReservation\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for ActionCodeUpdate StructType
* @subpackage Structs
*/
class ActionCodeUpdate extends AbstractStructBase
{
/**
* The CurrentActioncode
* @var string
*/
public $Curren... | true |
d604536e106b3bc51f2d091c3f1c2cf65f876bee | PHP | Oleg9791/HOMEPRACTICE | /23.12.2020/var3.php | UTF-8 | 1,430 | 3.421875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.r {
color: red;
}
.g {
color: green;
}
.y {
color: greenye... | true |
5385757890080fae725f1393f97e5baeec0e31ab | PHP | ocd-shepherd/chat.ocd.community | /src/Auth/Command/ChangePasswordHandler.php | UTF-8 | 546 | 2.71875 | 3 | [] | no_license | <?php
namespace Auth\Command;
use Auth\Model\User;
use Auth\Finder\UserFinder;
use EvantSource\AggregateRepository;
final class ChangePasswordHandler
{
private $repository;
public function __construct(AggregateRepository $repository)
{
$this->repository = $repository;
}
public function _... | true |
665db6be34492d6140f415a63e793fa0c88287b9 | PHP | reyreyhan/rest-api-lumen-for-unity | /database/migrations/2018_03_27_011132_create_statusplayers_table.php | UTF-8 | 799 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateStatusplayersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::create... | true |
1cba99d010f558f0db475a0aa0562da12d5b10e9 | PHP | iuli256/discount-microservice-lumen | /app/Product.php | UTF-8 | 684 | 2.96875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: iuli
* Date: 5/17/2018
* Time: 9:49 PM
*/
namespace App;
class Product
{
protected $com;
public function __construct()
{
$com=new Communication();
$this->com=$com;
}
/**
* Get product category by product id
* @param int $id ... | true |
0d9dd99c8e9fca8372b8c093589a005b7aae8c45 | PHP | elaxer/telegram-bot-api | /src/Types/TypeInterface.php | UTF-8 | 331 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace Justify\TelegramBotApi\Types;
/**
* Interface TypeInterface
*
* Implements of this interface can return built params for request
*
* @package Justify\TelegramBotApi\Types
*/
interface TypeInterface
{
/**
* Builds params
*
* @return mixed params
*/
public function getP... | true |
69893021a100c4910a008318f1e75755088d1a66 | PHP | hzkoala/xFrame | /framework/core/Response.class.php | UTF-8 | 1,479 | 2.8125 | 3 | [] | no_license | <?php
final class Response {
const HTML = 'html';
const JSON = 'json';
const XML = 'xml';
private $smarty;
private $type;
private $template;
private $data;
public function __construct ($type = self::HTML) {
$this->smarty = new Smarty();
$this->smarty->template_dir = TEMPLATE;
$this->smarty->compile_dir ... | true |
cec5df1568f68ed2f3c0d0761dc5a3f08f75764d | PHP | Kblack0610/Coms319 | /Lab 5/updatePosts.php | UTF-8 | 2,564 | 2.765625 | 3 | [] | no_license | <?php
session_start();
date_default_timezone_set("America/Chicago");
if($_POST['action'] == "createPost"){
$username = $_SESSION['username'];
$postID = $username . date("h:i:s");
$postTitle = $_POST['title'];
$postTime = date("h:i:s");
$postDesc = $_POST['description'];
$data = array('us... | true |
5a8b6c199c81e803d2fe6e721d81f330fe177e5e | PHP | maxbrprojetos/php | /exemplo1.php | UTF-8 | 93 | 2.796875 | 3 | [] | no_license | <?php
echo 'Exemplo';
$a = $b + 3;
?>
<?php
echo 'Exemplo sem ponto e vírgula'
?> | true |
8ab7e1905c41bdb5543ea3d31b5b29b925e36051 | PHP | OpenMageModuleFostering/deutschepost_internetmarke | /lib/DeutschePost/ProdWs/Soap/countrySpecificPropertyType.php | UTF-8 | 534 | 2.875 | 3 | [] | no_license | <?php
namespace DeutschePost\ProdWs\Soap;
class countrySpecificPropertyType
{
/**
* @var propertyType $property
* @access public
*/
public $property = null;
/**
* @var countryType[] $country
* @access public
*/
public $country = null;
/**
* @param propertyType... | true |
243eafab96efd80ad4d283b999eeff2ad578212c | PHP | nanaKwadwo/webTechIRBG13 | /pages/model/reviewers.php | UTF-8 | 361 | 2.59375 | 3 | [] | no_license | <?php
include_once("adb.php");
class reviewers extends adb {
function reviewers() {
}
/**
*function to get the reviewers in the database
*@return list of reviewers
*/
function getReviewers() {
$strQuery = "SELECT * FROM `users` WHERE `user_status` like '%Reviewer%'";
r... | true |
8bfa5c254c9ccf03f6e201663eb3db4ffbd2fe0c | PHP | luisgamboa/itc240-lf15-retro | /demo_list_pager.php | UTF-8 | 2,910 | 2.875 | 3 | [] | no_license | <?php
/**
* demo_list_pager.php along with demo_view_pager.php provides a sample web application
*
* The difference between demo_list.php and demo_list_pager.php is the reference to the
* Pager class which processes a mysqli SQL statement and spans records across multiple
* pages.
*
* The associated view pag... | true |
c1eac5cf1b488cc113d52e87e849058bf8eff7f0 | PHP | StaN4LoD/forum-backend | /app/Http/Controllers/ApiController.php | UTF-8 | 2,887 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ApiController extends Controller
{
/**
* @var int
*/
protected $statusCode = 200;
/**
* @return int
*/
public function getStatusCode()
{
return $this->statusCode;
}
/**
* @param $st... | true |
487bdd69f76df517c30c4596981749c9c12e6b80 | PHP | malavikasanthosh/samplepgm | /shop/insert.php | UTF-8 | 611 | 2.65625 | 3 | [] | no_license | <?php
$con=new mysqli("localhost","root","","shop1");
if($con->connect_error)
{
die("connection failed".$con->connect_error);
}
else
{
if(isset($_POST['submit']))
{
$s1=$_POST['id'];
$s2=$_POST['name'];
$s3=$_POST['type'];
$s4=$_POST['quantity'];
$s5=$_P... | true |
ad01000e01b92ba5116a1dbc75c37ac29fcd4780 | PHP | yohan-fontaine/velvet-record | /controllers/ArtistController.php | UTF-8 | 3,724 | 3.03125 | 3 | [] | no_license | <?php
require_once "models/Artist.php";
function newArtist()
{
// Sets the page's title
$title = "Velvet Records - New Artist";
require "views/artists/new.php";
}
function createArtist()
{
// Sets the page's title
$title = "Velvet Records - New Artist";
// Creates a new Artist model instance
$artist ... | true |
5d011a65775b7067120517ea2e17eb83629b6aeb | PHP | Atcsy/modernMVC | /bootstrap.php | UTF-8 | 372 | 2.515625 | 3 | [] | no_license | <?php
require 'database/Connection.php';
require 'database/QueryBuilder.php';
$config = require 'config.php';
//make a new connection to the database
//$pdo = Connection::make();
//make a query to the databas with the QueryBuilder class
//$query = new QueryBuilder($pdo);
//you can simply write this down
return new ... | true |
412ca4dd54428d0b0065b8fe0e207dc7275abb47 | PHP | MarcoYolanga/bigpatch | /lib.php | UTF-8 | 6,510 | 2.640625 | 3 | [] | no_license | <?php
$GLOBALS['exclude_servers'] = ['.', '..', 'example.server.json'];
class Answers
{
public $A;
private $config_file;
public $next_answer;
function __construct()
{
$this->config_file = __DIR__ . "/answers.json";
$this->A = [];
if (is_file($this->config_file))
... | true |
10cbeb11b132de6354f3cdd9f865775b485ec475 | PHP | edde-framework/edde | /src/Edde/Job/JobQueue.php | UTF-8 | 5,297 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | <?php
declare(strict_types=1);
namespace Edde\Job;
use DateInterval;
use DateTime;
use Edde\Edde;
use Edde\Message\IMessage;
use Edde\Service\Storage\Storage;
use Edde\Storage\EmptyEntityException;
use Edde\Storage\Entity;
use Edde\Storage\IEntity;
use function date;
class JobQueue extends Edde implements IJobQueue ... | true |
3504526c1451542c58d88c76cd29e907c3b65c98 | PHP | eduardorcsouza/wow | /framework/system/core/Conn.php | UTF-8 | 400 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace system\core;
/**
* Conexão do Doctrine
*
* @author eduardo
*/
class Conn {
/**
* Entitie Manager do doctrine
* @var \Doctrine\ORM\EntityManager
*/
public static $em;
public static function loadModels() {
$arrModels = glob(MODEL_PATH.'Model\*.php');
fore... | true |
94e5c20c0e039e0495eaea7fd3d48b0d80586012 | PHP | panakh/symfony-clean-ddd | /todo/src/Presenter/NewTodoPresenter.php | UTF-8 | 561 | 2.53125 | 3 | [] | no_license | <?php
namespace App\Presenter;
use App\Entity\Todo;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\Response;
use Twig\Environment;
class NewTodoPresenter
{
private Environment $twig;
public function __construct(Environment $twig)
{
$this->twig = $twig;
}
... | true |
4112e82fdaa231be25e93dd92f9577b5576955a6 | PHP | buddhi1/hrs-backend | /app/controllers/TaxController.php | UTF-8 | 1,748 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
/*
Name: TaxController
Purpose: Controllers for Tax
History: Created 13/03/2015 by buddhi ashan
*/
class TaxController extends BaseController {
public function __construct() {
$this->beforeFilter('csrf',array('on' => 'post'));
$this->beforeFilter('user_group');
}
//views the add tax page
public ... | true |
0dd2be2567015cf169370dc68350e21ff0f50656 | PHP | Looka997/SAW_project | /public_html/newsletter.php | UTF-8 | 2,478 | 2.671875 | 3 | [] | no_license | <?php
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require("../phpmailer/src/PHPMailer.php");
require("../phpmailer/src/Exception.php");
require... | true |
c9815095d7326d706aebfb7d936f3f889d1e8bb1 | PHP | Alheor/fr | /Ap/Apps/Test/Libs/Session.php | UTF-8 | 4,502 | 2.703125 | 3 | [] | no_license | <?php
namespace Ap\Apps\Test\Libs;
use Ap\Ap;
/**
* Рабоа с сессией
* @author Мокряк Владислав
*/
class Session
{
/**
* @var string Имя в пространстве имен
*/
private $namespace;
/**
* @var array || string Данные пространства имен
... | true |
5cdb0319fcbbc955e981c6ba9178bf2cef94e559 | PHP | rosuvladut/pet4web | /controllers/myaccount.php | UTF-8 | 3,461 | 2.546875 | 3 | [] | no_license | <?php
class MyAccount extends Controller{
function __construct(){
parent::__construct();
}
public function islogged(){
if (isset($_SESSION['logg_in']) && $_SESSION['logg_in']){
return true;
}
else{
return false;
}
}
public function index($page=''... | true |
a89c3dc4cf9079efe6970c931c8fd9e85c78ffdb | PHP | CinthiaNT/Toyota | /application/views/cobranza/cobranzaReporte.php | UTF-8 | 2,728 | 2.609375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <?php
require('resource/fpdf/fpdf.php');
class PDF extends FPDF
{
function Header()
{
// Logo
$this->Image('resource/images/toyota.jpg',10,8,33);
// Arial bold 15
$this->SetFont('Arial','B',15);
// Movernos a la derecha
$this->Cell(80);
// Título
... | true |
e92817b376bd8b89eabed60fecfe71a2cd0dfcd7 | PHP | helpfulrobot/silverstripe-serve | /code/Task.php | UTF-8 | 861 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace SilverStripe\Serve;
use BuildTask;
use SS_HTTPRequest;
use Symfony\Component\Process\PhpExecutableFinder;
class Task extends BuildTask
{
/**
* @var string
*/
protected $title = "Development Server";
/**
* @var string
*/
protected $description = "Connects the PHP d... | true |
2fae3d67f81161fd70ffb338a4d0e0c8685deee9 | PHP | anna-jenning/506-A1 | /addTask.php | UTF-8 | 4,952 | 2.734375 | 3 | [] | no_license | <html>
<head>
<title>Create a Task</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<?php
if (isset($_POST["submit"])) {
/* Remember to change the permissions on the XML file
to allow write access by everyone
N.B. <xmp> tag now deprecated, but a useful way of displaying th... | true |
f5a67b8f15ba8e18842f42c5444aa2cd3c94d258 | PHP | marcomaciel/phpinrio-2011 | /php/application.class.php | UTF-8 | 1,198 | 3.671875 | 4 | [] | no_license | <?php
/* filename: Application.class.php *
* Application class, includes methods to *
* get set application variables by *
* storing serialized values to tempfiles */
class Application
{
function setVar($varname,$value)
{
//$temp_path = 'C:\TEMP\'; // for Windows server
$temp_path = 'tmp/';... | true |
ed74a3c4c52bdc3d8534dc18e1291a47f3380787 | PHP | afzydev/sellercenteryii | /common/components/Configuration.php | UTF-8 | 923 | 2.609375 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace common\components;
use Yii;
use yii\base\Component;
use common\models\MyActiveRecord;
class Configuration extends Component{
public static $psconfig_values=[];
/**
* Function name : loadPSConfiguration
* Description : get all configuration set in a table .
* @param ... | true |
e076cfd1916a015f317d2bab05c3d0343caa055a | PHP | field-interactive/cito-bundle | /Form/CitoForm.php | UTF-8 | 1,071 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace FieldInteractive\CitoBundle\Form;
use FieldInteractive\CitoBundle\Cito\Flash;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Form;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
abstract class CitoForm e... | true |
2ce7c7a12f4a8dea3934f318f3e7d525d7f1cd0b | PHP | sebazamorano/tallerPHP | /operLogico.php | UTF-8 | 628 | 3.546875 | 4 | [] | no_license | <?php
//OR NOT AND
$a = true;
$b = "1";
$c = false;
$d = 0;
$a = ($a)? 'es verdadero ': 'es falso';
$a = $a??'es falso';
echo $a === $b;
echo $a !== $b;
echo $a == $b && $c == $d;
echo $a == $b || $c == $d;
$a = 1;
$b = 2;
echo $a > $b;
echo $a < $b;
echo $a >= $b;
echo $a <= $b;
echo $b <> $a; // !=
echo $b <=> $a;... | true |
ec2db182e9f8ad0e12d2fd9ec5bf9063f5d2d0f8 | PHP | mcheddar/Confy | /src/admin/conference_participants_detail.php | UTF-8 | 3,684 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
/***********************/
/* Participant Detail */
/**********************/
require_once("../includes/admin_init.php");
require_once("../includes/adminAccount.class.php");
require_once("../includes/userAccount.class.php");
require_once("../includes/subForm.class.php");
require_once("../includes/regForm.class.php... | true |
097a89bc766f5354dba1a77ec52258f8213a3eec | PHP | PerfectWorld233/design_Imooc | /App/Imooc/Database.php | UTF-8 | 1,229 | 2.953125 | 3 | [] | no_license | <?php
namespace IMooc;
/**
* 单例模式连接数据库
*
*/
class Database
{
//静态常量保存当前对象 (私有或者保护)
private static $object;
/**
* 私有化构造函数
* @author Red-Bo
* @date 2016-06-23
* @param [type] $arr [description]
*/
private function __construct($arr = [])
{
}
/**
* 类静... | true |
1fa6e7ecf1ab96da94b5e483d12eddaaa772e7a9 | PHP | AntoninaSych/cms | /src/Containers/Common/Services/CudAvailableUserCompanies.php | UTF-8 | 628 | 2.828125 | 3 | [] | no_license | <?php
namespace Edhub\CMS\Containers\Common\Services;
use Edhub\CUD\CUD;
class CudAvailableUserCompanies implements AvailableUserCompanies
{
private $cud;
public function __construct(CUD $cud)
{
$this->cud = $cud;
}
/**
* @param int $userId
* @return int[]
* @throws \Ed... | true |
5e044db96fe482ba7bf528ce76d5125e72efa8dc | PHP | beezee/multiarmedbandit | /src/MaBandit/Persistence/ArrayPersistor.php | UTF-8 | 898 | 2.8125 | 3 | [] | no_license | <?php
namespace MaBandit\Persistence;
class ArrayPersistor implements Persistor
{
private $_levers = array();
public function saveLever(\MaBandit\Lever $lever)
{
if (!array_key_exists($lever->experiment, $this->_levers)
or !is_array($this->_levers[$lever->experiment]))
$this->_levers[$leve... | true |
ecdbcdc3438d6cf7d07f74c0c87e6c60212b0108 | PHP | alex-montiel/csv | /script.php | UTF-8 | 1,555 | 3.078125 | 3 | [] | no_license | <?php
// Parse incoming information if above form was posted
if($_POST[ref] == "csv2sql")
{
echo "<h2>SQL Query Output:</h2>";
// Get information from form & prepare it for parsing
$table_name = 'contact'
$fileName = 'Contact.php';
$csv_data = fopen($fileName, filesize($fileName));
$colum... | true |
62b0f0443019ecbb8a5d0b4b0ec8fb51aaaf1ba3 | PHP | adngdb/mtgas | /includes/db.php | UTF-8 | 1,617 | 2.578125 | 3 | [] | no_license | <?php
function query($query, $name='Query', $conn=null) {
if ( $conn == null ) {
global $mysql_connection ;
$conn = $mysql_connection ;
}
$result = mysql_query($query, $conn) ;
if ( ! $result )
die($name.' failed : '.mysql_errno().' : '.mysql_error().' ('.$query.')') ;
return $result ;
}
function query_ones... | true |
aad52ddb494dbcb4067423834cbaa23953d770f4 | PHP | JhonSchz/MBOApp | /database/migrations/2021_03_18_093111_create_empresas_table.php | UTF-8 | 1,165 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEmpresasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('empresa', func... | true |
360cc8c365f1fb3d1551da1c1605f9c850785517 | PHP | Darvisechavarria09/supermercadoj1 | /preparacion.php | UTF-8 | 247 | 2.84375 | 3 | [] | no_license | <?php
include('Sopa.php');
//craer un objeto de la clase (LOS OBJETOS SON VARIABLE)
$ajiaco= new Sopa();
//acceder a un atributo
$ajiaco->cantidadAgua="2 LITROS";
echo($ajiaco->cantidadAgua);
//acceder a metodos
$ajiaco->disfrutarSopa();
?> | true |
3885a3238deda4ea380d8b898d5a022079340bfc | PHP | TinyBugBigProblem/MoCTracker | /public/crawler.php | UTF-8 | 1,926 | 2.671875 | 3 | [] | no_license | <?php
$url = ["https://www.congress.gov/members?q={%22congress%22:%22115%22}&pageSize=250",
"https://www.congress.gov/members?q=%7B%22congress%22%3A%22115%22%7D&pageSize=250&page=2",
"https://www.congress.gov/members?q=%7B%22congress%22%3A%22115%22%7D&pageSize=250&page=3"];
$pages = array();
$array = ar... | true |
ff28002dbbca4b4eb981e952d7c9094fbfb7ebed | PHP | working-group/VotingApi | /app/Http/Controllers/AnswerController.php | UTF-8 | 1,147 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Domain\Services\AnswerReader;
use App\Domain\Services\AnswerWriter;
use Symfony\Component\HttpFoundation\Response;
use Illuminate\Http\Request;
class AnswerController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/... | true |
114b152b253c2ad31963fe4f9f618acd3da41731 | PHP | masashi-kurokawa/Made-to-order | /database/migrations/2020_09_02_061200_create_write_tests_table.php | UTF-8 | 1,050 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateWriteTestsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('write_tests'... | true |
f039ee8a6645d2eaa4b074cb62854f2caabbf139 | PHP | voku/paris | /tests/MockPDO.php | UTF-8 | 486 | 3.140625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
*
* Mock database class implementing a subset
* of the PDO API.
*
*/
class MockPDO extends PDO
{
/**
* @var string
*/
public $last_query = '';
/**
* Return a dummy PDO statement
*
* @param string $statement
* @param array $driver_options
*
* @return MockPDOStatement
*... | true |
743338ef8236b9c461c60714a4cce063e1e85e1f | PHP | commonledger/sdk-php | /lib/Api/Ledger/Chart/Journal.php | UTF-8 | 6,355 | 2.640625 | 3 | [] | no_license | <?php
namespace CommonLedger\Sdk\Api\Ledger\Chart;
use CommonLedger\Sdk\Api\AbstractEndpoint;
use CommonLedger\Sdk\HttpClient\HttpClient;
use Commonledger\Sdk\Exception;
class Journal extends AbstractEndpoint
{
private $chart_id;
private $endpoint = 'journal';
private $journal_id;
/**
* Crea... | true |
3723304d707db42fd02d309a13ff9bf244846395 | PHP | hcoudrais/Celaris | /src/Celaris/Game/Entity/SpecialityPlayer.php | UTF-8 | 1,253 | 2.625 | 3 | [] | no_license | <?php
namespace Celaris\Game\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="Celaris\Game\Entity\SpecialityPlayerRepository")
* @ORM\Table(name="SpecialityPlayer")
*/
class SpecialityPlayer
{
/**
* @ORM\ManyToOne(targetEntity="Player", cascade={"persist"})
* @ORM\JoinColu... | true |
7b56ef07fb1ff080e391cf037b903ba37f00c9c9 | PHP | cosseal/Exercices-AngularJS-I | /test.php | UTF-8 | 251 | 2.828125 | 3 | [] | no_license | <?php
// Takes raw data from the request
$json = file_get_contents('php://input');
// Converts it into a PHP object
$data = json_decode($json,true);
$nouveauFilm = $data["nouveauFilm"];
//$data["nouveauFilm"] = "php";
echo json_encode($data);
| true |
f8d5a6b08d0ba18078a1bd9ee10c603ef6c26c9e | PHP | davidmwhynot/_bp | /projects/0_1/lib/dbinit.php | UTF-8 | 775 | 2.53125 | 3 | [] | no_license | <?php
define('ROOT_URL', 'http://localhost/phpsandbox/website8/');
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'yknot');
function hit_db($query) {
// Create connection
$conn = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
// Check connection
if(mysq... | true |
61a3895395b6d8885c6e66c043d53ee2ccb705cc | PHP | icindy/wp-discourse-theme | /discourse/functions.php | UTF-8 | 2,671 | 2.578125 | 3 | [] | no_license | <?php
remove_filter("comment_text", "wpautop", 100);
function custom_excerpt_length( $length )
{
return 90;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
add_theme_support('post-thumbnails');
set_post_thumbnail_size( 732, 240, true );
function show_pagination_links()
{
global $wp_qu... | true |
253a04f1fb331c56334575a811eb061e0c0ec55b | PHP | rintu007/php-CI-microCredit | /application/libraries/autoCreateModulesStyle.php | UTF-8 | 1,329 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php defined('BASEPATH') OR exit('No direct script access allowed');
/* !!!!!!!!!!!!!!!! CURRENTLY NOT USING THIS LIBRARY !!!!!!!!!!!!!! */
/* ---------- DOCUMENTATION -------- */
/* THIS LIBRARY IS USING FOR CREATE FOLDER LIKE:
assets/moduleStyle/eachModule/
assets/moduleStyle/eachModule/css
assets/mod... | true |
51b3cdbd3ec7d96e7b59b0f0e4e4d795289d6524 | PHP | KirillBazhinov/Test-for-BeeJee | /application/controllers/controller_admin.php | UTF-8 | 1,376 | 2.5625 | 3 | [] | no_license | <?php
class Controller_Admin extends Controller
{
public $modelAdmin;
function __construct()
{
$this->model = new Model();
$this->modelAdmin = new Model_Admin();
$this->view = new View();
}
function action_index()
{
session_start();
//Кнопка выход
if(isset($_POST['ExitSession'])){
unset($_SESS... | true |
7b46bc5f2dc44ed2da0aac85c2a5857c8c54fe81 | PHP | gregoryenriquez/information_retrieval | /classes/rankbm25.php | UTF-8 | 3,594 | 2.875 | 3 | [] | no_license | <?php
namespace classes;
class RankBM25
{
public $results;
public $terms;
public $num_of_docs;
public $term_idfs;
public function __construct(&$inverted_index) {
$this->term_idfs = array();
$this->results = new RankHeap();
$this->terms = new TermHeap();
$this->nu... | true |
0e2e95861bf12fa8a5cc080be9ee3b0b31bf5027 | PHP | Monte162/Spell-Checker-with-modern-Lingos | /spellcheck.php | UTF-8 | 1,166 | 2.921875 | 3 | [] | no_license | <?php
$sentence=$_POST["sentence"];
echo "$sentence<br><br><br>";
$n=str_word_count($sentence);
$i=0;
$j=0;
$k=0;
$m=0;
$check=explode(' ',$sentence);
$conn = mysqli_connect('localhost','root','','entries');
if(!$conn)
{
die(mysqli_connect_error());
}
else
{
while($i<$n)
{
$query1="select word, definit... | true |
e459f6ecc5f802b97a3dca485085daef5a11164e | PHP | heropoo/just-code | /pdf2png/test.php | UTF-8 | 1,643 | 3.015625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: ttt
* Date: 2018/4/16
* Time: 13:52
*/
//require_once 'Pdf2png.php';
//try{
// $pdf_file = './test.pdf';
// $img_file = './test.png';
// $obj = new Pdf2png($pdf_file, $img_file);
//}catch (Pdf2pngException $e){
// echo $e->getMessage();
//}
function pdf2png($pdf... | true |
d755ec8ff884398d76eac1c34243a8b7809a2d34 | PHP | whiterosecoffee/wp-site-editorial-flow | /theme/inc/botdataqueries.php | UTF-8 | 1,885 | 2.703125 | 3 | [] | no_license | <?php
class WP_Query_Post_Stats extends WP_Query {
var $stats_category;
function __construct($args=array()) {
add_filter('posts_join', array($this, 'join_stats'));
if($args['stats_category']) {
$this->stats_category = $args['stats_category'];
remove_filter( 'posts_where', array... | true |
0c77c2c3424d4b42e8fb9769e12dd7f806f4dd84 | PHP | MapleJson/blogNew | /app/Models/Tag.php | UTF-8 | 1,231 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace App\Models;
use App\Common\PublicModel;
use App\Ext\Code;
class Tag extends PublicModel
{
protected $table = 'tags';
protected $primaryKey = 'id';
protected $guarded = ['id'];
public static $pivot = [];
public static $orderBy = ['id', 'desc'];
public function blog()
{... | true |
ad932784a72ececb6f50c8715173e825c49be000 | PHP | Milkywayrules/futsal_bandung | /application/controllers/Main.php | UTF-8 | 1,205 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Main extends CI_Controller {
//
// main = Controller main default
//
function __construct(){
parent::__construct();
}
public function index()
{
$this->load->view('v_home');
}
public function pwgen()
{
// mencari nilai COS... | true |
c3915d3f69e29a44ca52ded0a870e4301847c23e | PHP | morvideo/integration-api-client | /src/Request/OrderRequestAbstract.php | UTF-8 | 801 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php
namespace G2A\IntegrationApi\Request;
use G2A\IntegrationApi\Exception\Request\ValidatorException;
/**
* Class OrderRequestAbstract.
*
* @package G2A\IntegrationApi\Request
*/
abstract class OrderRequestAbstract extends RequestAbstract
{
/** @var int */
private $orderId;
/**
* @return stri... | true |
c88096755a01ef54219fb706da28b083cdbde591 | PHP | lemon-quiz/quiz | /app/Events/Apply/QuizActiveWasChanged.php | UTF-8 | 873 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Events\Apply;
use Illuminate\Support\Collection;
use LaravelCode\EventSourcing\Contracts\ApplyEventInterface;
use LaravelCode\EventSourcing\Event\Apply\ApplyEvent;
class QuizActiveWasChanged extends ApplyEvent implements ApplyEventInterface
{
private bool $active;
public function __const... | true |
9b1358effa75226353afb97ac3b61f95410465b3 | PHP | pbk83/csimpletable | /test/SimpleTable/CSimpleTableTest.php | UTF-8 | 553 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace pbk83\SimpleTable;
/**
* HTML Form elements.
*
*/
class CSimpleTableTest extends \PHPUnit_Framework_TestCase
{
/**
* Test
*
* @return void
*
*/
public function testTableReturn()
{
$el = new \pbk83\SimpleTable\CSimpleTable();
... | true |
ddf840b5f1e700fd4836720b17d7d2ba5044b877 | PHP | OliaVM/php-course | /myproject/dates/date16.php | UTF-8 | 1,542 | 3.1875 | 3 | [] | no_license | <!--. Сделайте форму, которая спрашивает у пользователя дату в формате '2025-12-31T12:59:59'.
С помощью функций mktime и explode переведите эту дату в формат timestamp.
Узнайте месяц (словом) за введенную дату. Подсказка: explode следует применить трижды.-->
<?php
if(isset($_POST['dateStroka'])) {
function getDateI... | true |
600cb118fbc1c822d42a51316ce93941071e747c | PHP | luchnikovdenis/test | /backend/1.1/1.php | UTF-8 | 258 | 3.21875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Income</title>
</head>
<body>
<?php
function calc_income($sum, $months, $percent)
{
return $sum * $months * $percent / 12 / 100;
}
echo calc_income(1000000, 8, 3);
?>
</body>
</html> | true |
2c76954624749ab3adcb8dc375db31335a953f7f | PHP | enlacee/sunat_planilla | /trash/resta_fecha.php | UTF-8 | 948 | 2.703125 | 3 | [] | no_license | <?php
require_once '../util/funciones.php';
$num = strtotime('2012-02-15');
echo $num;
echo "<br>";
echo date("Y-m-d",$num);
echo "<br># de dia del mes".date("j",$num);
echo "<br># Número de días del mes dado".date("t",$num);
//echo "<br># de dias del MES".date("t",$num);
echo "<hr>";
$fecha_actual = strtotime... | true |
e05b08a3f43db1ec95d82bd522efc33a5576b540 | PHP | filipekp/service | /admin/core/mapper/SqlMapper.php | UTF-8 | 9,548 | 2.921875 | 3 | [] | no_license | <?php
namespace prosys\core\mapper;
use prosys\core\interfaces\IFilterable,
prosys\core\common\Functions;
abstract class SqlMapper implements \prosys\core\interfaces\IMapper
{
/** @var \prosys\core\interfaces\IDataHandler */
protected $_dataHandler;
protected $_table;
protected $_prim... | true |
d25836e9fa72b335ab64c7e23c7a95d71f940559 | PHP | msgphp/msgphp | /src/Domain/Projection/ProjectionRepository.php | UTF-8 | 459 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace MsgPhp\Domain\Projection;
/**
* @author Roland Franssen <franssen.roland@gmail.com>
*/
interface ProjectionRepository
{
public function find(string $type, string $id): ?array;
public function save(string $type, array $document): void;
/**
* @param iterabl... | true |
cc8b431e7476c0eb4fceccecaa0d8dc5bcd141e7 | PHP | LastingGuy/dbk | /Application/Home/Common/ResponseGenerator.class.php | UTF-8 | 2,078 | 2.875 | 3 | [] | no_license | <?php
/*
Author: Wang Jinglu
Date:2016/11/21
Descrition:
return the response like:
{
"action":<action>,
"success":<isSuccess>,
"code":<errorCode>,
"msg":<msg>,
"body":<body>
}
action : the name of the action,for exam... | true |
73f5c43f1ed01fab5e13fd87a509aa4871571010 | PHP | laraxot/bagisto_modules | /Modules/User/Repositories/RoleRepository.php | UTF-8 | 995 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
namespace Modules\User\Repositories;
use Modules\Core\Eloquent\Repository;
class RoleRepository extends Repository
{
/**
* Specify Model class name
*
* @return mixed
*/
function model()
{
return 'Modules\User\Contracts\Role';
}
/**
* Update method.
*
... | true |
1f242ded92d3e64c512bfaec75e2af6e53a63833 | PHP | cw1490/core-library | /tests/ThirdParty/Quadratus/Model/QPaie/EmployesTest.php | UTF-8 | 84,242 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the core-library package.
*
* (c) 2018 WEBEWEB
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\Core\Tests\ThirdParty\Quadratus\Model\QPaie;
use DateTime;
use Exception;
use W... | true |
c78544e9ffd0231e5730e7a54dc937cdf27b5a69 | PHP | Leehow/leeeframework | /kern/lib/usr.php | UTF-8 | 8,106 | 3.015625 | 3 | [] | no_license | <?php
/*验证和注册用户组件
* $obj=register::ini() 初始化类
* usr::register($usr,$psw) 验证若没有用户名重复则将用户数据录入数据库中
* usr::login($usr,$psw) 验证若用户合法则登录成功
* usr::logout() 注销
* usr::change_psw($usr,$psw) ... | true |
6071356bb8782fc0b2781264667a66ef93b67703 | PHP | marscore/hhvm | /hphp/test/zend/good/tests/lang/005.php | UTF-8 | 140 | 2.796875 | 3 | [
"Zend-2.0",
"PHP-3.01",
"MIT"
] | permissive | <?php <<__EntryPoint>> function main() {
$a=1;
if($a==0) {
echo "bad";
} elseif($a==3) {
echo "bad";
} else {
echo "good";
}
}
| true |
529d284ff2390c86520327b6a7c31fe06dbb129f | PHP | antoniocarlosmjr/code-challenge-moobi-developer | /tests/classes/PedidosTest.php | UTF-8 | 3,960 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
require 'vendor/autoload.php';
use PHPUnit\Framework\TestCase;
class PedidosTest extends TestCase
{
public function getObjetoPedido()
{
return new CodeChallengeMoobi\Pedidos();
}
public function getObjetoProduto()
{
return new CodeChallengeMoobi\Produtos();
}
public function testeRetornarPedidos()... | true |
858ada126c36ff3b4fee643cf5d624bba612c75a | PHP | tvlooy/combell-api | /src/Command/Accounts/GetAccount.php | UTF-8 | 820 | 2.6875 | 3 | [] | no_license | <?php
namespace TomCan\CombellApi\Command\Accounts;
use TomCan\CombellApi\Command\AbstractCommand;
use TomCan\CombellApi\Structure\Accounts\Account;
class GetAccount extends AbstractCommand
{
private $id;
public function __construct(int $id)
{
parent::__construct('get', '/v2/accounts');
... | true |
7e39a2ccccd57015a5788ef24268d5b020ce57c0 | PHP | kdes70/base-pro.lok | /modules/blog/controllers/DefaultController.php | UTF-8 | 1,395 | 2.578125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\modules\blog\controllers;
use app\modules\blog\models\Blog;
use app\modules\blog\models\Category;
use yii\web\Controller;
use yii\data\Pagination;
class DefaultController extends Controller
{
public function actions()
{
return [
... | true |
0cc1b5d453c141113150cdda38ba4607ecb2e09f | PHP | furabio/soap | /controller/EmployeeResource.php | UTF-8 | 383 | 2.765625 | 3 | [] | no_license | <?php
class EmployeeResource
{
public function index()
{
$data = json_decode(file_get_contents('http://dummy.restapiexample.com/api/v1/employees'));
$employees = [];
for ($i = (count($data) - 1); $i > (count($data) - 1) - 10; $i--) {
array_push($employees, $data[$i]);
... | true |
b9e3097be78616dd389ce0f937a4340be30ef174 | PHP | ritc9446/BACS_350_2018_Fall | /solution/26/index.php | UTF-8 | 3,471 | 2.734375 | 3 | [] | no_license | <?php
// Start the page
require_once 'views.php';
// Log the page load
require_once 'log.php';
$log->log_page("solution/26");
// -----------------------------
// ERRORS
// -----------------------------
// There are two types of errors that are handled in PHP.
/... | true |
80512eea3673aad06eede46b4abfe7a02c847662 | PHP | AymLaf/GPE | /projet/api_bo/src/Entity/Vote.php | UTF-8 | 1,322 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Core\Traits\IdentifierTrait;
use Doctrine\ORM\Mapping as ORM;
use Ramsey\Uuid\Uuid;
/**
* @ApiResource()
* @ORM\Entity(repositoryClass="App\Repository\VoteRepository")
*/
class Vote {
use Identifie... | true |
08f646425f3b8d746df68e08fb418634a915afde | PHP | georgesankey/georgeRiotAngular | /include/classes/Contact.php | UTF-8 | 200 | 2.546875 | 3 | [] | no_license | <?php
include_once(__DIR__."/Model.php");
class Contact extends Model {
public $defaultTable = "CONTACT";
public function __construct($db, $id=null) {
parent::__construct($db, $id);
}
}
?> | true |
afc9921240270f3a78b95f685ca62b91c8eced3c | PHP | odecharette/Becowo | /src/Becowo/CoreBundle/DataFixtures/ORM/LoadPoi.php | UTF-8 | 2,508 | 2.578125 | 3 | [] | no_license | <?php
namespace Becowo\CoreBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Becowo\CoreBundle\Entity\Poi;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
class LoadPoi ext... | true |
738773c13f120432bd7be33ab562758fb4a1dfeb | PHP | reshmagt/RespondCMS | /preview.php | UTF-8 | 1,077 | 2.65625 | 3 | [] | no_license | <?php
include 'global.php'; // import php files
// Preview controller
class Preview extends Actions
{
function __construct($authUser){
parent::__construct(); // need to call parent constructor
$pageUniqId = $this->GetQueryString('p');
$template = $this->GetQueryString('t');
$preview = ... | true |
afedae78986a6130c3b897d1663df382bf6d1dc1 | PHP | TonmoyTom/Php-Blog-Project | /helpers/format.php | UTF-8 | 310 | 2.9375 | 3 | [] | no_license | <?php
class Format
{
public function formatDate($date){
return date('F j,Y,g:i a',strtotime($date));
}
public function readmoreData($text, $limit = 200){
$text = $text . "";
$text = substr($text, 0 , $limit);
$text = $text. ".....";
return $text;
}
}
| true |
ee1c56b54c394daac55b78fc658189c61fb73b88 | PHP | wuzhongyi1105/autodiscover.xml-1 | /src/Services/Provider.php | UTF-8 | 1,473 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Autodiscover.xml
*
* Copyright (c) 2019 Radosław Kamil Ejsmont <radoslaw@ejsmont.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AutodiscoverXml\Services;
/**
* Class Provi... | true |
6f5231f503e61fd79ae81d84e9ac7330c318acc5 | PHP | tjpreston/thegreat | /app/models/attributes/attribute_value.php | UTF-8 | 4,574 | 2.640625 | 3 | [] | no_license | <?php
/**
* Attribute Value Model
*
*/
class AttributeValue extends AppModel
{
/**
* Detailed list of belongsTo associations.
*
* @var array
* @access public
*/
public $belongsTo = array('Attribute');
/**
* The column name(s) and direction(s) to order find results by default.
*
... | true |
1d9b99251262e4a9ea241b3a58207d6fe524817b | PHP | legacy-fatcode/http-server | /examples/middleware_example_ping_pong.php | UTF-8 | 564 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types=1);
require_once '../vendor/autoload.php';
use FatCode\HttpServer\HttpServer;
use FatCode\HttpServer\Server\HttpServerSettings;
use Psr\Http\Message\ServerRequestInterface;
use FatCode\HttpServer\Response;
// Simple pong server.
$server = new HttpServer(new HttpServerSettings('0.0.0.0', 808... | true |
54a336fa7e36c90f38d4ddad853f2037deaab5f8 | PHP | nmc9/TransnationalAPI | /ProcessTransactionResultTrait/Ach.php | UTF-8 | 650 | 2.546875 | 3 | [] | no_license | <?php
namespace Transnational\ProcessTransactionResultTrait;
trait Ach{
/**
* Methods to get specific data from the response body
* Ach specific methods
*/
public function get_rb_sec_code(){
$rb = $this->get_rb_data();
if($rb){
return $rb->sec_code;
}
}
public function get_rb_account_type(){
$rb ... | true |
c4eb5f38e2926090f243e9d7e0329571a65b9ae9 | PHP | cwoodruf/cmpt433-nap-time | /napmedia/controllers/upload.php | UTF-8 | 2,285 | 2.53125 | 3 | [] | no_license | <?php
class Upload extends Controller {
private $du = '/usr/bin/du';
private $zipinfo = '/usr/bin/zipinfo';
private $unzip = '/usr/bin/unzip';
private $dirmaxsize = 1073741824; # 1 GB
public function execute() {
$this->doable(array(
'save' => 'save',
'ls' => 'ls',
'default' => 'form',
));
$this->do... | true |
4ad6e8638eae9a976897cdb7021c064832c9c451 | PHP | clarissa1616/Prenotazioni_1 | /app/Http/Controllers/PrenotationController.php | UTF-8 | 1,557 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Models\Room;
use Illuminate\Http\Request;
class PrenotationController extends Controller
{
public $date_start;
public $date_end;
public $n_adults;
public $n_children;
public function index(Request $request){
if(!empty($request->all())){
... | true |
8acb57f70d453ec8f8d9c0ae5a00e126c95080f8 | PHP | cerberushealthcare/analytics | /sec/php/cbat/csv-export/papyrus/CsvExport.php | UTF-8 | 1,745 | 2.609375 | 3 | [] | no_license | <?php
require_once 'php/data/LoginSession.php';
require_once 'Export_Sql.php';
require_once 'Export_Files.php';
//
/**
* CSV Export of Clinical Data
* @author Warren Hornsby
*/
class CsvExport {
//
static $UGID = 1;
//
static function exec() {
LoginSession::loginBatch(static::$UGID, __CLASS__);
$ugid... | true |
b03f0d5cc0cb753146ad11c3cf7b438e7189be3a | PHP | AL137771/harman-cert | /Verify_Checklist.php | UTF-8 | 2,875 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
session_start();
include "DB_CONN.php";
if (isset($_POST['Create_Emp'])) {
$trainer = $_POST['idTrainer'];
$area = $_POST['area'];
$operacion = $_POST['operacion'];
$complejidad = $_POST['complejidad'];
$idEmpleado = $_POST['idEmpleado'];
$nameEmpleado = $_POST['nameEmpleado'];
... | true |
699427baa7619b992d37e9d1dbb24ab37d39b7c7 | PHP | soffieanastya/weblearning | /application/views/latihan2/message5.php | UTF-8 | 3,887 | 2.515625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | <div class="container" style="margin-top: 120px;">
<div class="row">
<div class="col-lg-10 mx-auto text-center">
<?php
if($ke1 == true and $ke2 == true and $ke3 == true){
?>
<br>
<h3>WAH SELAMAT! <br> JAWABAN KAMU SUDAH BENAR</h3><br>
<img src="<?php echo base_url('asse... | true |
c5f9895701a6b02101758ce91c56308656ef0211 | PHP | eyymee/EventManagement | /management/fetch_resource3.php | UTF-8 | 1,705 | 2.625 | 3 | [] | no_license | <?php
//fetch.php
session_start();
include 'dbconnect.php';
$output = '';
if(isset($_POST["query"]))
{
$organizer = $_SESSION['email'];
$search = mysqli_real_escape_string($conn, $_POST["query"]);
$query = "SELECT * FROM resource
WHERE (name LIKE '%".$search."%'
OR type LIKE '%".$search."%')
AND e_id='$id'
"... | true |
11e449749be3ba6752ab3a01907ae358274facf4 | PHP | s9e/TextFormatter | /src/Configurator/RecursiveParser/MatcherInterface.php | UTF-8 | 962 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types=1);
/**
* @package s9e\TextFormatter
* @copyright Copyright (c) 2010-2023 The s9e authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\TextFormatter\Configurator\RecursiveParser;
interface MatcherInterface
{
/**
* Return the matchers c... | true |
f93316b8d5507f85d97a9132e4e679567566245b | PHP | wo8335224/hdyzs | /common/models/DrugCode.php | UTF-8 | 1,233 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "drug_code".
*
* @property integer $id
* @property string $code
* @property integer $created_at
*
* @property DrugCodeClinic $drugCodeClinic
*/
class DrugCode extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
... | true |
11e10abe1cce12b5063a544ce9c2bf4a3b483250 | PHP | janrydrych/GithubRepoLister | /tests/GRL/Util/FlashMessagesTest.php | UTF-8 | 1,598 | 2.671875 | 3 | [] | no_license | <?php
/**
* This file is part of the GithubRepoLister project
*/
namespace Tests\GRL\Util;
require_once __DIR__ . '/../../../vendor/autoload.php';
use Delight\Cookie\Session;
use GRL\Util\FlashMessages;
use PHPUnit\Framework\TestCase;
/**
* Description
*
* @author Jan Rydrych <jan.rydrych@gmail.com>
*/
class F... | true |
97c58c7699fb383370eba268656f3ee1d9fc72a0 | PHP | meklis/pon-helper | /src/Models/SystemModule.php | UTF-8 | 2,102 | 2.734375 | 3 | [] | no_license | <?php
namespace PonHelper\Models;
/**
* Class User
* @package PonHelper\Models
*/
class SystemModule extends AbstractModel
{
/**
* @morm
* @var string
*/
protected $name;
/**
* @morm
* @var string
*/
protected $key;
/**
* @morm
* @var string
... | true |
d61ccae0ce12d7eb020c8a3bb9318a80730d5ba7 | PHP | lagdo/jaxon-adminer | /src/Db/Proxy/TableProxy.php | UTF-8 | 23,698 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace Lagdo\Adminer\Db\Proxy;
use Exception;
/**
* Proxy to calls to the Adminer functions
*/
class TableProxy
{
/**
* The current table status
*
* @var mixed
*/
protected $tableStatus = null;
/**
* Get the current table status
*
* @param string $table
... | true |
63d65df7c4873f5d2e5b011cc753259969c8611b | PHP | kceriati/PHP_SYMFONY | /TP2/src/Entity/Game.php | UTF-8 | 1,465 | 2.734375 | 3 | [] | no_license | <?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Class Game
* @ORM\Entity()
* @ORM\Table(name="game")
*/
class Game
{
/**
* @ORM\Id()
* @ORM\Column(type="integer", unique=true, nullable=false)
* @ORM\GeneratedValue()
*/
private $id;
/**
* @ORM\Column(type="... | true |
83d8b938f1c6cc1a36baa10e0536a6b015734b98 | PHP | btybug/frontend-test | /vendor/btybug/frontsite/src/Models/ClassifierItemPage.php | UTF-8 | 3,615 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: Comp2
* Date: 28-Feb-17
* Time: 14:48
*/
namespace Btybug\FrontSite\Models;
use Illuminate\Database\Eloquent\Model;
class ClassifierItemPage extends Model
{
public $incrementing = false;
protected $table = 'classify_items_pages';
protected $primaryKey = 'id... | true |
8f5ac97cc6eeb79416aeb6ca6463bcd6f95d442f | PHP | kurtkandora/DescubretuSede | /Web/descubretusede/dao/perfil_dao.php | UTF-8 | 1,860 | 2.71875 | 3 | [] | no_license | <?php
require_once '../utils/mysqldb.php';
require_once '../model/perfil.php';
require_once '../dao/ipersistencia.php';
class PerfilDAO implements IPersistencia{
private $mysql_con;
function __construct(){
$this->mysql_con = new MySqlConnection();
}
function create($obj){
... | true |
7e98111f20e4918bc9e1a4669d55779f13c305da | PHP | hacktophp/hacktophp | /generated-php/src/__Private/Asio/AsyncPoll.php | UTF-8 | 5,146 | 2.578125 | 3 | [] | no_license | <?php
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
namespace Facebook\HHAST\__Private\Asio;
/**
* Asynchronous equivalent of mechanisms such as epoll(... | true |
9dd1ddcd5c4287b1c2050b09f6a88b37c214a352 | PHP | BOOOMIndustries/booom.website | /editor/dataSave.php | UTF-8 | 2,477 | 2.546875 | 3 | [] | no_license | <?php
$data = $_POST['boardData'];
$userData = $data[0]["userdata"];
$boardData = $data[0]["boarddata"];
echo "data set is a ". $userData[0]["username"];
$databasenames = ["design","images","fonts","user_has_many_designs","design_has_many_images","design_has_many_fonts"];
function mySQLOpen(){
$user = "booomAdmin"... | true |
401ef6241cedb658aba63ed7493e227eb7d2b30e | PHP | alnutile/blog | /app/Search/QueryFilter.php | UTF-8 | 500 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Search;
/**
* Search query 'q' specific filter.
*/
class QueryFilter extends AbstractStaticFilter
{
/**
* @var string
*/
protected $id = 'q';
/**
* @var string
*/
protected $type = 'text';
/**
* @var array
*/
protected $options = [];
... | true |