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
670dba5dc372b529efe54672ef570a950c23051e
PHP
wzszx/cmplayer5
/phpdl/yyt.php
GB18030
3,467
2.515625
3
[]
no_license
<?php //ע޸Ƿֵɼ̨Ĵhttp://bbs.cenfun.com/thread-15368-1-1.html //޸ijֱֻתַ¼Ŀ¼бˣš error_reporting(0); $id = $_GET[id]; if ($id) { makeFlv($id); } else { makeXml(); } function makeXml() { $port = $_SERVER['SERVER_PORT']; //ȡö˿ںš if ($port==80) $name = 'http://'.$_SERVER['SERVER_NAME'...
true
2b016d2c6fbc4e7eb5ed3f5a7498364860bcbbab
PHP
igoralmeidasouza/Atividade_BD
/criacao_tabela.php
UTF-8
872
2.578125
3
[]
no_license
<?php $localhost = 'localhost'; $user_name = 'root'; $senha = ""; $db = "db_livraria"; $conexao = mysqli_connect($localhost,$user_name, $senha, $db); $sql = "CREATE TABLE db_clientes( ID INT, nome VARCHAR(100), endereco VARCHAR(100), bairro VARCHAR(100), cidade VARCHAR(50), estado VARCHAR(2)...
true
cd8f3a3c5ee462f6e31a430e8844690893f665b2
PHP
evandojunior/urbem3.0
/src/Urbem/CoreBundle/Model/Economico/UtilizacaoModel.php
UTF-8
876
2.5625
3
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php namespace Urbem\CoreBundle\Model\Economico; use Doctrine\ORM\EntityManager; use Urbem\CoreBundle\Entity\Economico\Utilizacao; use Urbem\CoreBundle\AbstractModel; /** * Class UtilizacaoModel * @package Urbem\CoreBundle\Model\Economico */ class UtilizacaoModel extends AbstractModel { protected $entityMana...
true
fa9ef337bcc5f9797cd72e0b318923650ea73b44
PHP
jon-guiriba/laravel_5.3
/app/Dao/BookingDao.php
UTF-8
943
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Dao; use App\Models\Booking; use App\Models\Image; class BookingDao { public function getAll(){ return Booking::all(); } public function getAllForJson(){ return (new Booking)->select( 'id as cid', 'event as evt', 'date as dat', 'time as tme', 'preparation_venue as pve...
true
610c93e6d2199735c4e5d99438881def47c71620
PHP
oasusr26/lesson5
/cart.php
UTF-8
1,758
3.15625
3
[]
no_license
<?php // 最初にカートが空かどうかを判定。 // カートが空なのは、まだ1個も商品を追加していない場合と、カートからすべての商品を削除した場合。 if (!empty($_SESSION['product'])) { // カート変数のカート内にある商品の配列に何も商品が入っていないときは、配列は空の状態で、このときempty関数はtrueを返す。 ?> <table class="table"> <thead> <tr> <th class="text-center">商品ID</th><th class="text-center">商品名</th><...
true
c714feccf48ded5fe2d69c4c17d880d725d6d8d2
PHP
switchforce1/nsidocs
/src/AppBundle/Entity/Document/Section.php
UTF-8
3,441
2.515625
3
[]
no_license
<?php namespace AppBundle\Entity\Document; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; /** * Section * * @ORM\Table(name="document_section") * @ORM\Entity(repositoryClass="AppBundle\Repository\Document\SectionRepository") */ class Section { /** * @var int * ...
true
49c9e0e3376045b964480a6499b5713f63b46af7
PHP
jurchiks/dbhandler
/src/Handler.php
UTF-8
8,654
3.203125
3
[ "MIT" ]
permissive
<?php namespace js\tools\dbhandler; use Exception; use js\tools\dbhandler\exceptions\DbException; use js\tools\dbhandler\exceptions\QueryException; use js\tools\dbhandler\parameters\ConnectionParameters; use PDO; use PDOException; use PDOStatement; /** * @author Juris Sudmalis */ class Handler { private $name; /*...
true
c8a691a19d1b713cab3f68f0cd8407c20449a621
PHP
redcrix/zend-php
/module/API/src/V1/Entity/I18n.php
UTF-8
2,619
2.859375
3
[]
permissive
<?php namespace API\V1\Entity; use Doctrine\ORM\Mapping as ORM; /** * I18n * @author Marcus Borges <yahuchanam@gmail.com> * @copyright (c) 2019, InetPet * @version 1.0.0 * @ORM\Table(name="i18n") * @ORM\Entity */ class I18n { /** * ID * @var integer * @ORM\Id * @OR...
true
785771e26d5444c77631eb6dd33012953a838a6b
PHP
ken-bem/illumine-framework
/illumine/Factories/AdminFactory.php
UTF-8
3,034
2.71875
3
[ "MIT" ]
permissive
<?php namespace IllumineFramework\Factories; class AdminFactory { public static function addPanel( $pageTitle, $menuTitle, $capability, $slug, $callback ){ add_action('admin_menu', function() use( $pageTitle, $menuTitle, $capab...
true
3a7ddbed1750c5a5e197c8a5ba135e814ed307d1
PHP
amanda-natallie/pizzaria
/app-adm/seguranca.php
UTF-8
3,139
3.015625
3
[]
no_license
<?php $_SG['conectaServidor'] = true; // Abre uma conexão com o servidor MySQL? $_SG['abreSessao'] = true; // Inicia a sessão com um session_start()? $_SG['caseSensitive'] = false; // Usar case-sensitive? Onde 'thiago' é diferente de 'THIAGO' $_SG['validaSempre'] = true; // Deseja validar o usuári...
true
999f0915c81311115993ba822fe0d9cff92c4681
PHP
dnikitopoulou/car_rental
/code/emp_insert_works.php
UTF-8
2,765
2.75
3
[]
no_license
<html> <head> <style> .error {color: #FF0000;} </style> </head> <body> <p><span class="error">* required field.</span></p> <?php $stIDErr = $startErr = $posErr = ""; $ok = 1; $stID = $start = $pos = ""; session_start(); $irs = $_SESSION['irs']; if ($_SERVER["REQUEST_METHOD"] == "POST") ...
true
d789d7b16da8aed6208a8d7eb128d9741fc09f4c
PHP
xionglonghua/common
/src/helpers/OuterHelper.php
UTF-8
7,661
2.578125
3
[]
no_license
<?php namespace xionglonghua\common\helpers; use Yii; use yii\helpers\ArrayHelper; use xionglonghua\common\device\Mobile; class OuterHelper extends \xionglonghua\curl\CurlHttp { //私钥 public $pkey = ''; //公钥 public $pubkey = ''; public $hkey = ''; public $aeskey = ''; public $webhkey = ''...
true
de5b7276f54ff07a5e2b8afe17cf4e83fdff8315
PHP
wyruweso/ksars
/app/Services/VisitorService.php
UTF-8
3,720
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Http\Requests\VisitorReceiveRequest; use App\Http\Requests\VisitorReceiveTimeRequest; use App\Site; use App\SiteLink; use App\Visit; use App\Visitor; use App\Services\Contracts\VisitorService as VisitorServiceContract; use Carbon\Carbon; use Illuminate\Http\Request; class Visitor...
true
6c7ca4e2e5e78de74ddffc48c3b760d331234861
PHP
digicademy/sturm-php-app
/src/Classes/Domain/Model/HomePage.php
UTF-8
1,793
2.640625
3
[ "MIT" ]
permissive
<?php namespace Sturm\App\Domain\Model; class HomePage extends Page { /** * @xpath //tei:div[@n = 'letters']/tei:p * @var string $letterTeaserBox */ protected $letterTeaserBox; /** * @xpath //tei:div[@n = 'persons']/tei:p * @var string $personTeaserBox */ protected $per...
true
049816b58f22a2b7bfced7b490b029f732bfe304
PHP
samithaHewawasam/britishway
/php/class/master_batches.php
UTF-8
3,284
2.515625
3
[]
no_license
<?php class master_batches extends database { private $batches_index = array(); public function index() { $this->batches_index['courses'] = parent::selectQuery(array( "query" => "SELECT mc.id,mc.course_code, mc.course_name FROM `master_courses` mc INNER JOIN `course_allocation` ca ...
true
fc27068616761ab1cfbfe5bcbddf8bab6f9e086c
PHP
ambermiao/manage
/inc/lib/memberclass.php
UTF-8
3,858
2.734375
3
[]
no_license
<?php class memberClassrItem{ public $acc = ""; public $password = ""; public $fname = ""; public $lname = ""; public $email = ""; public $gender = ""; public $phone = ""; public $mobile = ""; public $address = ""; public $create_time = ""; public $update_time = ""; } class memberClass{ static $table = ...
true
526e255f1b4e42a4763787152c3e26cd363c929f
PHP
artesanus/MoocsyBundle
/Event/TemporalityEvent.php
UTF-8
363
2.59375
3
[]
no_license
<?php namespace ArtesanIO\MoocsyBundle\Event; use Symfony\Component\EventDispatcher\Event; class TemporalityEvent extends Event { private $tempo; public function __construct($tempo) { $this->tempo = $tempo; } /** * @return ItemType */ public function getTemporality() ...
true
e16757033c4e9f783e6d73b931f479f96ef3dc17
PHP
primestyle-co/laravel-ut-practice
/app/Developer.php
UTF-8
424
3.140625
3
[ "MIT" ]
permissive
<?php namespace App; use App\Computer; class Developer { protected $computer; public function __construct( Computer $c) { $this->computer = $c; } public function work() { echo "\n\r inside work function"; return $this->computer->run(); } public function finish...
true
103bf3032e732847ed16452d25510367c0a4d59c
PHP
bhallstein/TinyModel
/TinyModel.php
UTF-8
20,361
3.078125
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<? /* * TinyModel - a sort of model type thing * * TinyModel is a superclass that lets you easily define the Model layer of a web app, and * handles the translation of database tables into user-friendly nested objects, and vice versa. * * Each subclass you define represents a table in your DB schema. The ...
true
a5e7a7f31604d955140cb91e8702297a224860d9
PHP
cy-daisuke-senmyou/SecurityCheckTargetOnFuel
/fuel/app/classes/controller/passwdchange.php
UTF-8
1,547
2.625
3
[ "MIT" ]
permissive
<?php use \Model\User; class Controller_Passwdchange extends Controller { public function action_index() { if(Auth::check()) { // ログイン後 return View::forge('passwdchange/login_success'); } else { // ログイン前 return View::forge('passwdchange/login'); } } public function action_login() { $username = ...
true
985fdf1e1d7adb0e55942bafbbb1b1b4497c891f
PHP
francescozanoni/zf1-extensions
/library/Fz/Validate/Db/JsonRecordsExist.php
UTF-8
596
2.515625
3
[]
no_license
<?php /** * @category Fz * @package Fz_Validate * @version 2015-09-09 */ /** * @see Zend_Json * @see Fz_Validate_Db_RecordsExist */ require_once 'Zend/Json.php'; require_once 'Fz/Validate/Db/RecordsExist.php'; /** * Confirms a set of records in JSON array format exists in a table. * ...
true
aecd2c960f29cdd378b1d357a1aca1e353e56ffb
PHP
rajaeelmadani/TP10
/index.php
UTF-8
949
2.671875
3
[]
no_license
<?php //autochargement des classes, function __autoload($class_name){ $paths= array("Library/","Models/","Controllers/"); foreach($paths as $path){ if(file_exists($path . $class_name . ".php")){ require_once($path . $class_name . ".php"); } } } try{ session_start(); //Routeur... $Module = isset($_GE...
true
50edad093b5a70ba5d7f6c9de963a4fdafeb0085
PHP
LuckyMan120/clewed
/themes/maennaco/template.php
UTF-8
5,114
2.546875
3
[]
no_license
<?php // $Id: template.php,v 1.16.2.3 2010/05/11 09:41:22 goba Exp $ /** * Sets the body-tag class attribute. * Adds 'sidebar-left', 'sidebar-right' or 'sidebars' classes as needed. */ function phptemplate_body_class($left, $right) { if ($left != '' && $right != '') { $class = 'sidebars'; } else { ...
true
3d3f3b1543e3f766c4ec56e44b07fcbc62339acf
PHP
kamsonpc/DziennikObecnosci
/includes/php/view_calendar.php
UTF-8
2,673
2.671875
3
[]
no_license
<form action="" method="POST"> <?php require_once 'db_connect.php'; $db = new database; $db->dbConnect(); $sql = "SELECT id_roku From dzien GROUP BY id_roku"; $years = Array(); $i =0; $rezultat = $db->connection->query($sql); if($rezultat->num_rows==2) { while($row = $rezultat->fetch_assoc()) { echo...
true
81b26aba91cdf2345716215dda169bb2842009d3
PHP
davidus-sk/CyberPower
/class/CPATS.php
UTF-8
6,765
2.78125
3
[ "MIT" ]
permissive
<?php // include required classes include(dirname(__FILE__) . '/RMCARD.php'); /** * CyberPower ATS remote monitoring class * * (c) 2016 David Ponevac (david at davidus dot sk) www.davidus.sk * * This piece of code should extract the followind data: * * - Temperature [summary_env_status.html] *...
true
7a26ac339396c9a778b52880c28c1473eb2971ca
PHP
isaacawonugba/hostel
/Student.php
UTF-8
1,390
2.6875
3
[]
no_license
<?php class Student{ private $database; private $conn; function __construct(){ $this->database = include("config.php"); $this->conn = mysqli_connect($this->database['host'],$this->database['user'], $this->database['password'],$this->database['database'] ); } function connect(){ ret...
true
945be7c938d0554e0959e18ba36685aa3956cbc7
PHP
tamed-software/plugins
/woo-social-login/includes/social/libraries/linkedin.php
UTF-8
5,449
2.5625
3
[]
no_license
<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; /** * Linkedin Class * * Handles all Linkedin functions * * @package WooCommerce - Social Login * @since 1.0.0 */ if( !class_exists( 'WOO_Slg_Social_LinkedIn' ) ) { class WOO_Slg_Social_LinkedIn { public $linkedinconfig, $linkedin; ...
true
99840e40e1ae38b7018d48d4cf4cea4e22d12523
PHP
Ramunas-Bkr/php-home_works
/ciklai/index7.php
UTF-8
909
3.1875
3
[]
no_license
<?php // Kazys ir Petras žaidžiai šaškėm. Petras surenka taškų kiekį nuo 10 iki 20, // Kazys surenka taškų kiekį nuo 5 iki 25. Vienoje eilutėje išvesti žaidėjų // vardus su taškų kiekiu ir “Partiją laimėjo: laimėtojo vardas ”. Taškų kiekį // generuokite funkcija rand() . Žaidimą laimi tas, kas greičiau surenka // 222 ...
true
85a965fd231c6fb58e46d7332cf9a679751e9b89
PHP
samuelbednarcik/guzzle-elastic-apm-collector
/src/GuzzleCollector.php
UTF-8
2,608
2.796875
3
[]
no_license
<?php namespace SamuelBednarcik\ElasticAPMAgent\Collectors\Guzzle; use GuzzleHttp\Promise\Promise; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use SamuelBednarcik\ElasticAPMAgent\CollectorInterface; use SamuelBednarcik\ElasticAPMAgent\Events\Span; class GuzzleCollector implements C...
true
608e2e351619238a96ca6fbc3215e88824b183ff
PHP
sodoojin/larabase
/src/Service/BaseService.php
UTF-8
3,228
2.65625
3
[]
no_license
<?php namespace Visualplus\Larabase\Service; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\UploadedFile; use Illuminate\Validation\UnauthorizedException; use Prettus\Validator\Exceptions\ValidatorException; use Prettus\Validator\LaravelValidator; use Gate; use Storage; use Visualplus\Larabase\Entities\F...
true
c4f2e7f05deebd306b70e14d6af8cf8242241462
PHP
zklipic/php-web-programming
/form.php
UTF-8
1,128
2.71875
3
[]
no_license
<?php if ($_POST['Name'] != '' && $_POST['Surname'] != '' && $_POST['Email'] != '' && $_POST['Subject'] != '' && $_POST['Message'] != '') { $headers = 'From: ' . $_POST['Email'] . "\r\n" . 'Reply-To: email@email.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if (mail('email@email.com', $_POST['S...
true
81b4c09f9aa072042dcbd041de8806d85ecd1ca4
PHP
just-alt/ExactTarget-PHP-SOAP-API
/AbstractETSubscriberList.class.php
UTF-8
6,837
2.625
3
[ "MIT" ]
permissive
<?php abstract class AbstractETSubscriberList { protected $soapClient; protected $subscriberClassName; public function __construct() { $this->soapClient = ETCore::getClient(); $className = get_class($this); $this->subscriberClassName = substr($className, 0 , -4); } /** * * @param mixed ...
true
f2665e2f833cc2f0c3e3ca5176da7f68ca86cb1b
PHP
qlmgg/wxg
/app/Traits/PassportCache.php
UTF-8
2,175
2.640625
3
[]
no_license
<?php namespace App\Traits; use App\Exceptions\NoticeException; use Illuminate\Support\Facades\Cache; use Laravel\Passport\PersonalAccessTokenResult; use Laravel\Passport\Token; trait PassportCache { protected $cache_prefix = 'passport_cache_'; protected function getCachePrefix() { return $this-...
true
3565d8e3fd5b996236a06f1de0937420f2f80deb
PHP
jeff-jibaja/serviciosWeb
/beans/desServicioBean.php
UTF-8
851
2.828125
3
[]
no_license
<?php class DesServicio_Bean { private $codDesServ; private $descripcion; private $codDetalle; function __construct($codDesServ,$descripcion,$codDetalle){ $this->codDesServ = $codDesServ; $this->descripcion = $descripcion; $this->codDetalle = $codDetalle; } public...
true
7ed812ef57f7bbac51cd79eb190c2d399283d96e
PHP
whoami15/query-filter
/src/Concerns/ConditionallySearchingWildcard.php
UTF-8
848
2.671875
3
[ "MIT" ]
permissive
<?php namespace Laravie\QueryFilter\Concerns; trait ConditionallySearchingWildcard { /** * Enable wildcard searching. * * @var bool|null */ public $wildcardSearching = null; /** * Set wildcard searching status. * * @return $this */ public function wildcardSearc...
true
03d6f9a7221ea45d810e087d3c2c144b572dd3e3
PHP
capons/graphs
/src/E2w/GfsReportBundle/Command/BusinessesWithLocalBusinessTypeCommand.php
UTF-8
3,480
2.78125
3
[ "MIT" ]
permissive
<?php namespace E2w\GfsReportBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class BusinessesWithLocalBusinessTypeCommand extends ContainerAwareCommand { /** * DB conn...
true
7c8c3fd9f7840b797274b1bcbe748897eccd1bba
PHP
endorphin-studio/browser-detector-data
/src/Exception/StorageException.php
UTF-8
1,491
2.9375
3
[ "MIT" ]
permissive
<?php /** * @author Serhii Nekhaienko <sergey.nekhaenko@gmail.com> * @license GPL * @copyright Serhii Nekhaienko &copy 2018 * @version 4.0.0 * @project endorphin-studio/browser-detector */ namespace EndorphinStudio\Detector\Exception; /** * Exception for Storage * Class StorageException * @package EndorphinS...
true
55a213882ca47f4dbe41507e8c00b08f1dfa1005
PHP
ExceedServices/xceed
/roles.php
UTF-8
1,100
2.75
3
[]
no_license
<?php require_once("connect.php"); function hasRole($role) { return (!(strpos($_SESSION['roles'], "|$role|") === false)); } function addRole($userID, $role) { $q = "SELECT `id`,`roles` FROM `Users` WHERE `id` = $userID"; $result = mysql_query($q); $user= mysql_fetch_assoc($result); $roles = s...
true
6ed28c8cd669b88ae4df9da5eb80d40445b72c86
PHP
AugustoGalia/crypto-analyzer
/app/Crypto/BinanceOCO.php
UTF-8
3,459
2.890625
3
[ "MIT" ]
permissive
<?php namespace App\Crypto; use Carbon\Carbon; use Binance\API; use Illuminate\Support\Facades\Log; class BinanceOCO extends API { public function sellOco(string $symbol, $quantity, $price, array $flags = []) { return $this->orderOco("SELL", $symbol, $quantity, $price, $flags); } public function sellO...
true
506ffb3cfbecfeafe7f863f50bf56adfe9b0f5c9
PHP
aymenbohli/gestion-de-cv
/app/Models/Admin/formation.php
UTF-8
814
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Admin; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class formation * @package App\Models\Admin * @version May 14, 2017, 10:25 pm UTC */ class formation extends Model { use SoftDeletes; public $table = 'formations'; protected $dates = ['...
true
23e64ef4e2c5bb2248f53251de2746ed407927cc
PHP
ShumaSergey/OOP_lesson4
/task1.1.php
UTF-8
697
4.40625
4
[]
no_license
<?php class Power{ public function power2($number){ return $number * $number; } public function power3($number){ return $number * $number * $number; } public function power4($number){ return $number * $number * $number * $number; } public function power5($number){ ...
true
2356e1334c0d7529d45e5ae4733798e7d0dceb00
PHP
Keup/Portfolio
/mail.php
UTF-8
2,878
2.703125
3
[]
no_license
<?php // PHP mailer initialisation use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; $mail = new PHPMailer(true); // Char string sanitizing $firstname = filter_input(INPUT_POST, 'firstname', FILTER_SANITIZE_STRING); $lastname = filter_input(INPUT_POST, 'lastname', F...
true
287ce38501d0fd7a32be8268de93e09b5fabad5b
PHP
PeterZhang2015/meetup_php_webhost
/getallsentinvitationinfo.php
UTF-8
3,820
2.59375
3
[]
no_license
<?php /*** Connect to the server database. ***/ $conn = mysqli_connect("localhost", "meetupap", "Hotmail28?", "meetupap_meetupdb"); if (!$conn) { die('Could not connect: ' . mysql_error()); } $strInviterEmail = $_POST["sInviterEmail"]; $arr = null; $arr["sInviterEmail"] = $strInviterEmail; $arr["Suc...
true
f63b78c4a460257fb7e23487f556d6025a3da407
PHP
danielHPeters/lib
/src/model/game/item/Item.php
UTF-8
1,047
3.015625
3
[ "MIT" ]
permissive
<?php namespace lib\model\game\item; use DateTimeImmutable; use lib\entity\Entity; use lib\model\game\item\action\ItemAction; /** * Class Item. * * @package lib\model\game\item * @author Daniel Peters * @version 1.0 */ class Item extends Entity { private $name; private $description; private $price; pri...
true
874ee35597fce9466e2ef6bf3f4dfa6d219a9f8b
PHP
H3SAN/sekani
/functions/migrate/branch_migrate.php
UTF-8
4,657
2.53125
3
[]
no_license
<?php include('../../functions/connect.php'); session_start(); $institutionId = $_SESSION['int_id']; /** Include PHPExcel_IOFactory */ include('../../mfi/vendor/autoload.php'); use PhpOffice\PhpSpreadsheet\IOFactory; $digit = 4; try { $randms = str_pad(random_int(0, (10 ** $digit) - 1), 7, '0', STR_PAD_LEFT); } ...
true
4dd6dc2434dc495f5a04571130a549573476a029
PHP
EricDav/BetCommuntiy
/Models/User.Model.php
UTF-8
11,673
3.09375
3
[]
no_license
<?php class UserModel { const DEFAULT_COUNTRY = 'Nigeria'; const DEFAULT_STATE = null; const DEFAULT_ROLE = 1; const DEFAULT_IMAGE_PATH_MALE = 'default_male.png'; const DEFAULT_IMAGE_PATH_FEMALE = 'default_female.png'; public static function getUser($pdoConnection,...
true
426159eb71058dd4db8bae72c56df829cd2b5cdd
PHP
heydavid713/neo4jphp
/lib/Everyman/Neo4j/Index/RelationshipIndex.php
UTF-8
454
2.640625
3
[ "MIT" ]
permissive
<?php namespace Everyman\Neo4j\Index; use Everyman\Neo4j\Client, Everyman\Neo4j\Index; /** * Represents a relationship index in the database */ class RelationshipIndex extends Index { /** * Initialize the index * * @param Client $client * @param string $name * @param array $config */ public function...
true
0cd96fcf3cb1da89444bf552050bd65e373c9b6c
PHP
gaiasilvestri/eventplanner
/LoginCheck.php
UTF-8
3,118
2.640625
3
[]
no_license
<DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <title>Login</title> <link href="css/bootstrap.css" media="all" rel="stylesheet" type="text/css"> <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> <script src="src/js/bootstrap.js" typ...
true
75aa127955ae2d954e60bc1bc9dacea85299dcdf
PHP
api-scout/api-scout
/src/OpenApi/Model/PaginationOptions.php
UTF-8
1,089
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * This file is part of the ApiScout project. * * Copyright (c) 2023 ApiScout * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiScout\OpenApi\Model; final class PaginationOptions { ...
true
0d5ebaf2ddececac5d12d251a142b0ff58df20f1
PHP
marcoscodnet/rasty
/phprasty_catalogo/src/main/php/Rasty/Catalogo/components/form/catalogo/CatalogoForm.php
UTF-8
2,627
2.65625
3
[]
no_license
<?php namespace Rasty\Catalogo\components\form\catalogo; use Rasty\Forms\form\Form; use Rasty\components\RastyComponent; use Rasty\utils\XTemplate; use Rasty\utils\RastyUtils; use Rasty\utils\LinkBuilder; /** * Formulario para catalogo * @author bernardo * @since 14/08/2014 */ class CatalogoForm extends Form{ ...
true
5db3dc16943f5801098302e8c2d5466ec98bc8f2
PHP
sky8652/chatbot
/src/Chatbot/App/Commands/Navigation/AbsNavigatorCmd.php
UTF-8
824
2.609375
3
[ "MIT" ]
permissive
<?php namespace Commune\Chatbot\App\Commands\Navigation; use Commune\Chatbot\Blueprint\Message\Transformed\CommandMsg; use Commune\Chatbot\OOHost\Command\SessionCommand; use Commune\Chatbot\OOHost\Command\SessionCommandPipe; use Commune\Chatbot\OOHost\Dialogue\Dialog; use Commune\Chatbot\OOHost\Directing\Navigator;...
true
5be8cf4fb4df1c8c28a01d6d42e20f43edfce8a0
PHP
Thanh23198/oop
/class_rect.php
UTF-8
582
3.953125
4
[]
no_license
<?php class Rectangle{ var $width; var $height; public function __construct( $width,$height) { $this->width=$width; $this->height=$height; } public function getArea(){ return $this->width*$this->height; } public function getPerimeter(){ return ($this->widt...
true
e216886d60579454608cbf3e6d4c21d98073870e
PHP
alamin-php/portfolio
/app/Http/Controllers/API/TestimonialController.php
UTF-8
3,178
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use App\Testimonial; use Image; use Illuminate\Http\Request; class TestimonialController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function in...
true
45a43a4b48dc050f148e25e2a44859b2c86960f4
PHP
joycemartinss/Projetobs
/UBS/criandoBanco.php
UTF-8
719
3.015625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php $servername = "localhost"; $username = "root"; $password = "12345"; // Criando a conexão $conn = mysqli_connect($servername, $username, $password); // Checando se a conexão está fucnionando if (!$conn...
true
2537a57c5b91d5addff4a4a5efe93717bb6b9ccd
PHP
ozmu/omusiber.org
/app/Member.php
UTF-8
1,246
2.578125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Member extends Model { protected $fillable = [ 'name', 'phone', 'email', 'telegram', 'role' ]; public function active(){ return $this->hasOne('App\ActiveMember'); } public function inEducationCommittee(){ r...
true
d7015401aad07ab34758c47d24cc6812e111e6df
PHP
bugflux-com/server
/database/seeds/BaseSeeder.php
UTF-8
2,455
2.921875
3
[]
no_license
<?php use Illuminate\Database\Seeder; abstract class BaseSeeder extends Seeder { /** * Specifies how many times "repeat" method is called. * * @var int */ protected $count = 0; /** * @var \Illuminate\Database\Eloquent\Model */ protected $model = null; /** * Ta...
true
bb788a2aed7c6dc847196926818430a8988bec6c
PHP
suzuki86/CompoundInterest
/tests/CompoundInterestTest.php
UTF-8
448
2.859375
3
[]
no_license
<?php require_once 'src/CompoundInterest.php'; use CompoundInterest\CompoundInterest; class CompoundInterestTest extends PHPUnit_Framework_TestCase { public function testCalculate() { $actual = CompoundInterest::calculate(10000, 1, 5, 0); $expected = 10500; $this->assertSame($expected, $actual); $...
true
a2acce56ff64922bfd71b5e6b1a05013ff424343
PHP
rakibjoarder/billing-hotspot
/application/models/Package_model.php
UTF-8
6,228
2.546875
3
[]
no_license
<?php class Package_model extends CI_Model { function __construct() { parent::__construct(); } function get_currency(){ $currency = ''; $this->db->select('*'); $this->db->from('settings'); $this->db->where('key', 'currency'); $result = $this->db->get()->result_array(); if($this->db...
true
79765d5a48803d9b01ba58d89ad16c15dd642b88
PHP
monmon/MotsunabeZombieProject
/src/VOYAGE/Tweet.php
UTF-8
1,704
3.15625
3
[]
no_license
<?php namespace VOYAGE; class Tweet { const DELIMITER = "\t"; protected $_screenName; protected $_body; protected $_hashTag; protected $_reply; protected $_mention; public function __construct($str) { if (strpos($str, self::DELIMITER) === false) { throw new \Inval...
true
0669bd913c85ad9e8b4701c0667f04249f28b83f
PHP
wp-plugins/chamber-dashboard-events-calendar
/templates/content-widget-event.php
UTF-8
2,685
2.625
3
[ "MIT" ]
permissive
<?php /** * The template for displaying event widget content * * Override this template by copying it to yourtheme/content-widget-event.php * * @author Digital Factory * @package Events Maker/Templates * @since 1.2.0 */ if (!defined('ABSPATH')) exit; // Exit if accessed directly global $post; ...
true
e469c7bd9b321ab6f96b78f92e75107866288157
PHP
phpbench/phpbench
/lib/Development/ConfigSchemaDumper.php
UTF-8
3,201
2.578125
3
[ "MIT" ]
permissive
<?php namespace PhpBench\Development; use PhpBench\DependencyInjection\ExtensionInterface; use Symfony\Component\OptionsResolver\Debug\OptionsResolverIntrospector; use Symfony\Component\OptionsResolver\Exception\NoConfigurationException; use Symfony\Component\OptionsResolver\OptionsResolver; use function json_encode...
true
a362c87fd56344e9fdc44d6fa76da059073b2b5b
PHP
juniorth6/mm-ws
/app/partials/classes/handlers/Router.php
UTF-8
4,434
3.015625
3
[ "MIT" ]
permissive
<?php namespace MMWS\Handler; /** * Manage the server routes * This is the main router handling every route created * in the router files * * @param Array<Endpoint> $routes the indexed routes array with its properties * * For examples see the router files in app/routers * * ---------- * * Example Usage...
true
ca2512df27294bd417d37cef8b8267266bc16b78
PHP
mikitu/Symfony2Rest
/src/ApiBundle/DataFixtures/ORM/LoadUserData.php
UTF-8
1,557
2.5625
3
[]
no_license
<?php namespace ApiBundle\DataFixtures\ORM; use ApiBundle\Utils\FakerTrait; use ApiBundle\Entity\User; use ApiBundle\Utils\InitializeContainerTrait; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Symfony\C...
true
4e1a2852542fe0daa9afd73cebdc2d49bc3ef51c
PHP
elinoretenorio/php-headless-crud-for-omeka-classic-db
/tests/src/OmekaOptions/OmekaOptionsRepositoryTest.php
UTF-8
6,096
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace OmekaClassic\Tests\OmekaOptions; use PHPUnit\Framework\TestCase; use OmekaClassic\Database\DatabaseException; use OmekaClassic\OmekaOptions\{ OmekaOptionsDto, IOmekaOptionsRepository, OmekaOptionsRepository }; class OmekaOptionsRepositoryTest extends TestCase { private $...
true
b6c05b88009392a976bd3931f0133d6ee516e12c
PHP
apriadi4425/crud
/lib/crud.php
UTF-8
1,833
3.0625
3
[]
no_license
<?php class Crud { var $host, $username, $password, $database; private $db; public function __construct($host = 'localhost', $username = 'admin', $password = 'selamanya48', $database = 'workshop'){ $this->db = new mysqli($host, $username, $password, $database); } //show data ...
true
7217a5c9366151814acac84264c667b728f4597a
PHP
er1shivam/Ubicomp
/auth/patches/signupBody.php
UTF-8
2,985
2.703125
3
[]
no_license
<?php require_once("resource/Database.php"); //db connection ?> <?php require_once("resource/utilities.php"); ?> <?php if(isset($_SESSION['username'])){ echo $welcome = "<script type=\"text/javascript\"> swal({ title: \"You are already Signed in!\", text: \"...
true
164eeb149f2ebc007526c02c4bfb874d3a7fabfe
PHP
shootphp/shoot
/src/Twig/Node/OptionalNode.php
UTF-8
1,578
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Shoot\Shoot\Twig\Node; use Shoot\Shoot\SuppressedException; use Twig\Compiler; use Twig\Error\RuntimeError; use Twig\Node\Node; /** * Represents the optional tag used to suppress runtime exceptions in templates. * * @internal */ final class OptionalNode extends Node { ...
true
2d77c7695074001a59589396a65627df397fa3df
PHP
paddyfitz/list8D
/list8D/application/models/UserMap.php
UTF-8
2,122
2.703125
3
[]
no_license
<?php class List8D_Model_UserMap { protected $_mapper; protected $_user_id; protected $_tag_id; function getTags($user) { if ($user instanceof List8D_Model_User) { $user = $user->getId(); } $ids = $this->getMapper()->getTagIdsByUserId($user); $tags = array(); foreach ((array) $ids as $id) { $tmp ...
true
d0e35c41ec0e3d9ba4c2f4cfa41217c7cd7cdcfa
PHP
jonpugh/talos
/src/Config.php
UTF-8
6,275
2.703125
3
[]
no_license
<?php namespace Talos; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Yaml\Dumper; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Except...
true
7919ce57b02b6560ac35e802e20b384f5ec12417
PHP
derrandz/schoolman
/app/DataLayer/Tenants/Objects/File.php
UTF-8
1,767
2.921875
3
[]
no_license
<?php namespace App\DataLayer\Tenants\Objects; use Illuminate\Database\Eloquent\Model; use Excel; class File extends Model { protected $table = 'files'; protected $fillable = ['name', 'extension', 'size', 'path', 'description']; public function students() { return $this->hasMany('Stud...
true
1e6e05521ff5d4e1bf07b7c90cc2e936f5afce77
PHP
magicdice/LazyRecord
/src/LazyRecord/Schema/Comparator/ConsolePrinter.php
UTF-8
1,321
2.953125
3
[ "BSD-2-Clause" ]
permissive
<?php namespace LazyRecord\Schema\Comparator; use Closure; use CLIFramework\Formatter; class ConsolePrinter { public $diff = array(); public $beforeName = 'old'; public $afterName = 'new'; public function __construct($diff) { $this->diff = $diff; } public function output() ...
true
5fc490ec160d33fbfd7fac669b0c9c3209cfe74f
PHP
matheuscr30/UFU
/PPI/trabalho6/exercicio4/cadastro_paciente.php
UTF-8
3,819
2.921875
3
[ "MIT" ]
permissive
<?php require "conexao_mysql.php"; $conn = mysqlConnect(); function filtraDados($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } function validaCampos() { if (!isset($_POST["nome"]) && !empty(trim($_POST["nome"]))) throw new Exception("O campo nome ...
true
03b7a56a82f563572d4ccd5176b13277248a63ba
PHP
toanht15/moni
/apps/classes/services/BrandcoSocialAccountService.php
UTF-8
3,326
2.546875
3
[]
no_license
<?php AAFW::import('jp.aainc.lib.base.aafwServiceBase'); class BrandcoSocialAccountService extends aafwServiceBase { /** @var BrandcoSocialAccounts $brandco_social_accounts */ protected $brandco_social_accounts; public function __construct() { $this->brandco_social_accounts = $this->getModel("Bra...
true
b9068ff2ee0b29deb276de58b83161dcd1ac6a29
PHP
PauloScheuer/omicron
/calcsPages/arranjo.php
UTF-8
8,829
2.765625
3
[]
no_license
<?php session_start(); ?> <html> <head> <meta charset="UTF-8"> <title>Arranjo</title> <script type="text/javascript" src="../js/jquery.js"></script> <script type="text/javascript" src="../js/jquery.form.js"></script> <link rel="stylesheet" type="text/css" href="../styles/calc...
true
4619498a4da471d0a47b7d3dd004e1bf07727da9
PHP
alexchaban/symfony_project2
/MainBundle/Twig/AgeExtension.php
UTF-8
624
2.578125
3
[]
no_license
<?php namespace MainBundle\Twig; class AgeExtension extends \Twig_Extension { public function getFilters() { return array( new \Twig_SimpleFilter('age', array($this, 'getAge')), ); } public function getAge($birthday) { if (is_null($birthday)) { return ''; } if (!$birthday instanceof \DateTime...
true
a62d2e34f4d00cbcfc4ede3bddb2c1d833d2f66d
PHP
wenbinye/hyperf-rpc
/app/Foundation/ExceptionNormalizer.php
UTF-8
5,623
2.609375
3
[]
no_license
<?php namespace App\Foundation; use Hyperf\Di\ReflectionManager; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\PropertyAccess\PropertyAccessor; use Symfony\Component\Serializer\Exception\BadMethodCallException; use Symfony\Component\Serializer\Exception\CircularReferenceException; use S...
true
4b7264d238eaa986c3e76972af10c3cc88034169
PHP
sanyokerem/Heartland
/src/Payum2/Heartland/Soap/Base/CardToCharge.php
UTF-8
1,974
2.671875
3
[ "MIT" ]
permissive
<?php namespace Payum2\Heartland\Soap\Base; /** * This class is generated from the following WSDL: * https://heartlandpaymentservices.net/BillingDataManagement/v3/BillingDataManagementService.svc?xsd=xsd2 */ class CardToCharge { /** * Amount * * The property has the following characteristics/res...
true
7a6eeaafb6e2a27e256fb578443cf097983f844a
PHP
shadowgun625/Comp-440-team-5
/PHP/Search.php
UTF-8
2,999
2.65625
3
[]
no_license
<?php // Initialize the session session_start(); require_once "config.php"; $search=$not_found=$blogpage=""; $search_err=""; $_SESSION['id']=""; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css"> ...
true
71a1b9fc8590461c5bcee8a0442c5193677e8572
PHP
heftydolphin/MediScreen-JAGI
/Mobile_Application_Backend/searchGPs.php
UTF-8
854
2.609375
3
[]
no_license
<?php // Retrieve data from form, validate it and then insert into relevant tables if($_SERVER["REQUEST_METHOD"] == "POST"){ // Criteria to search for $email = trim($_POST['email']); // Connect to MySQL database require_once 'dbConnect.php'; // Query MySQL search query $searchQuery = "SELECT * ...
true
98484bb4a5b5ee9403b475416cefe0888e3046c2
PHP
iArcadia/time
/src/Time.php
UTF-8
4,131
3.25
3
[ "MIT" ]
permissive
<?php namespace iarcadia\time; use iarcadia\time\traits\TimeComparison; use iarcadia\time\traits\TimeFormatter; use iarcadia\time\traits\TimeGetters; use iarcadia\time\traits\TimeOperation; use iarcadia\time\traits\TimeSetters; /** * Class Time * @package iArcadia */ class Time { use TimeGetters, TimeSetters,...
true
1accb94afc96e8bd8e9dd29c2a9d18ac0e24c68b
PHP
afbarrerav/Argos
/logica/admin_productos.php
UTF-8
4,898
2.640625
3
[]
no_license
<?php /* * @author: FABIAN ANDRES MOJICA ALFONSO * ingmojica@hotmail.com * @version:1.0.0 * @fecha: Octubre de 2012 * * */ //session_start(); include_once ("../logica/variables_session.php"); $RowCount = 0; try { /*SE CREA LA INSTANCIA DEL OBJETO, SE REALIZA LA CONEXION A LA BD*/ $db_link = new PDO($dsn, $us...
true
e23b59882268ed716ea448c1392c06aaab1f6de1
PHP
rafaelvelosoe/Projeto_Porto
/webService/save.php
UTF-8
1,490
2.609375
3
[]
no_license
<?php # # obtendo nosso arquivo de configuracões require_once 'webservice_init.php'; # verificando se o método de envio é mesmo POST. if( $_SERVER['REQUEST_METHOD'] !== "POST" ) __output_header__( false, "Método de requisição não aceito.", null ); # usando o vita para criar uma instancia da tabela usuarios # l...
true
1548d9e87c8339cb9180a580e1c124ae306d392c
PHP
weyrick/roadsend-php-tests
/re-tests/bugsuite/bug-id-0001861.phpt
UTF-8
2,673
2.6875
3
[]
no_license
--TEST-- /home/weyrick/pcc/bugs/tests/bug-id-0001861.php (converted from Roadsend suite) --FILE-- PHP follows Perl's convention when dealing with arithmetic operations on character variables and not C's. For example, in Perl 'Z'+1 turns into 'AA', while in C 'Z'+1 turns into '[' ( ord('Z') == 90, ord('[') == 91 ). Note...
true
db39eb83240bc507cb21689674439997135a7407
PHP
octalmage/wib
/php-7.3.0/ext/gd/tests/colorclosest.phpt
UTF-8
2,479
2.625
3
[ "Apache-2.0", "BSD-4-Clause-UC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "TCL", "ISC", "Zlib", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "blessing", "MIT" ]
permissive
--TEST-- imageclosest --SKIPIF-- <?php if (!function_exists('imagecolorclosest')) die("skip gd extension not available\n"); ?> --FILE-- <?php $im = imagecreatetruecolor(5,5); $c = imagecolorclosest($im, 255,0,255); printf("%X\n", $c); imagedestroy($im); $im = imagecreate(5,5); $c = imagecolorclosest($im, 255,...
true
b4a239a17424191b0a2c392de473b38cda46a649
PHP
Davisa94/CS313
/web/3rdWeek/set-cookie.php
UTF-8
704
2.90625
3
[]
no_license
<?php $name = 'color'; $value = 'blue'; #start session: session_start(); #USE SESSION: if (isset($_SESSION["timesVisited"])) { $_SESSION["timesVisited"] += 1; } else $_SESSION["timesVisited"] = 0; heroku logs htmlspecialchars ?> <html> Important code for homewor...
true
bb3556f71f3cf29a37b06dd3ed7f5713f565db73
PHP
Rib3llu/transport
/gestion/hist_controle.php
UTF-8
3,250
2.828125
3
[]
no_license
<?php // inclusion include "../header.php"; ?> <br><h1 align="center">Listing des Contrôles Techniques</h1><br> <?php //On se connecte a la base connectBase(); // requête SQL qui compte le nombre total d'enregistrement dans la table et qui //récupère tous les enregistrements $select = 'SELECT * FR...
true
0bb302af15bbd889b8d43a8759949262e9057db3
PHP
mmgjr/CA_LAB_PHP
/models/Inventory.php
UTF-8
2,595
2.765625
3
[]
no_license
<?php class Inventory extends model{ public function getList($offset,$id_company){ $array = array(); $sql = "SELECT * FROM inventory WHERE id_company =:id_company LIMIT $offset, 10"; $sql = $this->pdo->prepare($sql); $sql->bindValue(":id_company",$id_company); $sql->execute(); if ($sql->rowCount() >...
true
14adc7fad45fb760ffe46324ecb21b2f0c54cd0a
PHP
conectamedico/crm-conector
/src/StructType/BuscarImagemResponse.php
UTF-8
2,092
2.59375
3
[]
no_license
<?php namespace ConectaMedico\Crm\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for buscarImagemResponse StructType * Meta information extracted from the WSDL * - type: tns:buscarImagemResponse * @subpackage Structs */ class BuscarImagemResponse extends AbstractStructBase { ...
true
c5f024bf664a028fdf50596d0ecec63ad8c50a49
PHP
rfc1483/dobervich
/tests/TestSuite.php
UTF-8
1,932
2.609375
3
[ "MIT" ]
permissive
<?php use Symfony\Component\Finder\Finder; class TestSuite extends PHPUnit_Framework_TestSuite { public static function suite() { $suite = new TestSuite(); $finder = new Finder(); echo "Searching for installed bundles...\n"; $bundles = array(); foreach( $finder->direct...
true
4a698ee336280e64f9f2b9d19a8b7e42af95f57c
PHP
basicis/core
/test/Http/Message/ServerRequestTest.php
UTF-8
4,673
2.734375
3
[ "MIT" ]
permissive
<?php namespace Test\Message\Http; use PHPUnit\Framework\TestCase; use Basicis\Http\Message\ServerRequest; use Basicis\Http\Message\UploadedFile; /** * classTest\Http\Message\ServerRequestTest */ class ServerRequestTest extends TestCase { private $server; public function __construct() { paren...
true
b83725502216ef0339a9ef5bbe0d0758bf8d8e6c
PHP
masahiroshimmori/pra_php
/17-4str.php
UTF-8
1,351
3.59375
4
[]
no_license
<pre> <?php //trimはホワイトスペース(タブ。スペース。改行)を除去する print "trim\n"; $s = " \t test\n"; var_dump($s); $s2 = trim($s); var_dump($s2); //区切り print "\n\n"; print "strtoupper, strtolower, ucfirst, ucwords\n"; $s = 'All in the golden afternoon Full leisurely we glide;'; var_dump($s); //全て大文字へ変換 $s2 = strtoupper($s); var_dump...
true
9cc4e3a75f42c8bb3453c9f2aaebfa8029de6273
PHP
cukabeka/article_processing
/functions/article_processing_setting.inc.php
UTF-8
1,789
2.515625
3
[]
no_license
<?php /** * article_processing Addon * @author j.mandl[at]met-net[dot]net Jochen S. Mandl * @package redaxo4.3 * @version 1.1.1 */ function ap_post($pos_value, $pos_key, $norm) { global $norm_img; $new_ini2 = ""; switch ($pos_value) { case "system": $new_ini2 .= "[System]" . chr(10); ...
true
a04c2dcfef09eace83254b741d32d306a274c12c
PHP
TDMU/asu-mkr-tdmu
/protected/migrations/m190206_081059_create_zrst.php
UTF-8
1,228
2.625
3
[]
no_license
<?php class m190206_081059_create_zrst extends CDbMigration { public function safeUp() { $sql = <<<SQL CREATE TABLE ZRST (ZRST1 inte PRIMARY KEY, ZRST2 inte, /* код st1 */ ZRST3 inte, /* us1 */ ZRST4 smal, /* 0-закрепление за US1 1-закрепление за 1-й таблице...
true
785717ba862f9f119f68d7901efbb9942846dcfa
PHP
despatchcloudturkey/logging-api-laravel
/src/LoggingAPIClient.php
UTF-8
5,854
2.9375
3
[ "MIT" ]
permissive
<?php namespace DespatchCloud\LoggingAPI; use CURLFile; use DespatchCloud\LoggingAPI\Exceptions\ClientException; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; class LoggingAPIClient { /** * @var string */ protected $publicUrl; /** ...
true
2743c1f90fc067ac3c08e71628d36a88d90766f6
PHP
JoshPJackson/php-openapi3
/src/Paths/PathItem.php
UTF-8
3,696
3.0625
3
[]
no_license
<?php namespace JoshPJackson\OpenApi\Paths; use JoshPJackson\OpenApi\Interfaces\Arrayable; use JoshPJackson\OpenApi\Paths\PathItem\Operation; use JoshPJackson\OpenApi\Traits\IsArrayable; /** * Class PathItem * @package JoshPJackson\OpenApi\Paths */ class PathItem implements Arrayable { use IsArrayable { ...
true
432da8acb02eadb0d7a28a6727134b1aa903858d
PHP
vahid75/wordpress-project
/page-tt.php
UTF-8
1,504
2.734375
3
[ "MIT" ]
permissive
<?php // a custom page themplate file. use it for a single page customizing or a page named tt.("tt" is just a arbitrary name. you can name it by your choice.) //Template name:tt.php get_header(); wp_nav_menu() ; //start point for wordpress famous loop. if ( have_posts() ) { // Load posts loop. while ( h...
true
d81cf25d6c87101a30c942c518802cb187474e4a
PHP
PHPixie/Console
/src/PHPixie/Console/Command.php
UTF-8
168
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace PHPixie\Console; interface Command { public function run($optionData, $argumentData); public function config(); public function name(); }
true
e9b17f6678a3e8e093a5b90f34e3045b644a8fca
PHP
jpagov/smp
/app/migrations/151_add_sort_column.php
UTF-8
593
2.65625
3
[]
no_license
<?php class Migration_add_sort_column extends Migration { public function up() { foreach (['branchs', 'sectors', 'units'] as $type) { $table = Base::table($type); if (!$this->has_table_column($table, 'sort')) { $sql = 'ALTER TABLE `' . $table . '` ADD `sort` TINYINT(3) NULL DEFAULT NU...
true
77cd76b0476e94231cef1351033fa95cd1054500
PHP
Urvin/k50
/app/actions/SpreadAction.php
UTF-8
465
2.921875
3
[]
no_license
<?php namespace app\actions; use app\library\formatter\CoinsFormater; use app\library\spreader\FileSpreader; class SpreadAction { /** * @param int $placesCount * @param int $objectsCount * @param string $filename */ public function run(int $placesCount, int $objectsCount, string $filena...
true
a762abd125844b9a6e634e7b51711d7db74c0e46
PHP
evshv/smile-user-questions
/Controller/Adminhtml/Question/SendEmail.php
UTF-8
2,729
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Smile\UserQuestions\Controller\Adminhtml\Question; use Magento\Backend\App\Action\Context; use Magento\Framework\View\Result\PageFactory; use Magento\Framework\Exception\NoSuchEntityException; use Psr\Log\LoggerInterface as Logger; use Smile\UserQuestions\Api\QuestionRepositor...
true