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
3a699b6b041115048856521b3ff18ae643941644
PHP
vakata/database
/tests/DB.php
UTF-8
9,377
2.71875
3
[ "MIT" ]
permissive
<?php namespace vakata\database\test; use vakata\database\DB as DBI; abstract class DB extends \PHPUnit\Framework\TestCase { protected static $db = null; abstract protected function getConnectionString(); protected function getDB() { if (!static::$db) { $connection = $this->getCo...
true
8b513ec41fcc29d55d46ab97704cbfdb70c72b91
PHP
heidelpay/woocommerce-heidelpay
/vendor/heidelpay/php-payment-api/tests/Helper/Constraints/ArraysMatchConstraint.php
UTF-8
3,249
2.953125
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Heidelpay\Tests\PhpPaymentApi\Helper\Constraints; use PHPUnit\Util\InvalidArgumentHelper; class ArraysMatchConstraint extends \PHPUnit_Framework_Constraint { /** * @var array */ protected $value; /** * @var boolean */ protected $strict; /** * @var bool ...
true
60db30cd6baefc9e69f58b191c477a8910126ca1
PHP
EdmilsonFerreiraF/Rede-IMA
/uploads/newpub.php
UTF-8
761
2.53125
3
[]
no_license
<?php $file_error = false; $title = $_GET['title']; $content = $_GET['content']; // Get input data and add to body.php //$ok = file_put_contents('body.php', $resultado, FILE_APPEND); ob_start(); echo "<h2 class='sections-4__title'>".$title."</h2><br/>"; echo "<p class='sections__text'>".$content."</p><br/></div>"; if (...
true
f3f22ee340244b1b775a06436ea744dfc102e1cb
PHP
Dukecz/Nubium
/webroot/nubium/app/authenticators/DatabaseAuthenticator.php
UTF-8
879
2.984375
3
[]
no_license
<?php declare(strict_types=1); namespace App\authenticators; use Nette\Database\Context; use Nette\Security\AuthenticationException; use Nette\Security\IAuthenticator; use Nette\Security\Identity; use function password_verify; class DatabaseAuthenticator implements IAuthenticator { /** @var Context */ private $dat...
true
2353a1d060ce2d7a13f7ca4dd667dd59629ebf4c
PHP
htmlacademy-yii/1415187-task-force-1
/frontend/models/SignupForm.php
UTF-8
2,795
2.625
3
[]
permissive
<?php namespace frontend\models; use Yii; use app\models\User; use yii\base\Model; /** * Signup form */ class SignupForm extends Model { public $name; public $email; public $city; public $password; public function attributeLabels(): array { return [ 'email' => 'Электро...
true
4bf51d074ac06196e2d5920a08c2240012b8cec9
PHP
10yung/ADB-project2
/app/Repository/AdminRepo.php
UTF-8
274
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Repository; use Illuminate\Support\Facades\DB; class AdminRepo { public static function getAdminByUserID($userID){ $admin = DB::table('Admin') ->where('userID', '=',$userID) ->first(); return $admin; } }
true
8d7f32a3aaffda1b122f7b774f722a2d688901cf
PHP
firebao/weidomall
/application/index/model/Area.php
UTF-8
4,493
2.546875
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | WeiDo // +---------------------------------------------------------------------- // | Copyright (c) 2015 All rights reserved. // +---------------------------------------------------------------------- // | @Author: 围兜工作室 <318348750@q...
true
ee4037cec2b10f9fcf5dd233577e3afedaca8666
PHP
lyrixx/twitter-sdk
/Twitter/Tests/OAuthTest.php
UTF-8
4,109
2.640625
3
[ "MIT" ]
permissive
<?php namespace Lyrixx\Twitter\Tests; use Lyrixx\Twitter\OAuth; /** * OAuthTest. * * All results and fixture values come from * https://dev.twitter.com/docs/auth/creating-signature * * @author Grégoire Pineau <lyrixx@lyrixx.info> */ class OAuthTest extends \PHPUnit_Framework_TestCase { private $method; ...
true
58452c2dc55497bca4d7c12cab7129aff36c5e43
PHP
82crisbar/MaFormationWF3
/PHPoo version Prof/06-surcharge-abstraction-finalisation-interface-trait/abstraction.php
UTF-8
1,068
3.25
3
[]
no_license
<?php //06-surcharge-abstraction-finalisation-interface-trait/abstraction.php abstract class Joueur { public function seConnecter(){ return $this -> etreMajeur(); } abstract public function etreMajeur(); // On fonction abstraite n'a pas corps ! } //-------------- class JoueurFr extends Joueur { public function...
true
378338b345e12079445bc77c4046243917e893b4
PHP
Hkevin25/s07-php-sql-quiz
/src/Utils/Database.php
UTF-8
7,796
3.390625
3
[]
no_license
<?php namespace App\Utils; use PDO; use App\Interfaces\ActiveRecordModel; /** * Handles all communication with the database */ class Database { /** * Single and only instance of Database * @var Database * @static */ private static Database $instance; /** * Instance of PHP data...
true
2b7e5feae6ecc62f4d763a0ce7e1d42f0f82fbaf
PHP
TLDevW/Group-project
/Meteo/CtrlMeteo.php
UTF-8
710
2.5625
3
[]
no_license
<?php class CtrlMeteo { private $view; private $model; public function __construct() { $this->view = new ViewMeteo(); $this->model = new ModelMeteo(); } public function getMeteo($ville) { $data = $this->model->getDataMeteo($ville); $this->view->afficherM...
true
180dff78b301cb0fcaaf843c21f1b7d0505c96cf
PHP
AhmedMedDev/MVC-Blog
/app/models/User.php
UTF-8
1,062
3.046875
3
[]
no_license
<?php //namespace MVC\Models; /* * Model User Class * Register User * Login User * Find User By ID */ class User extends Model{ public function register($username,$email,$password,$img) { $sql = "INSERT INTO user (username, email, password, img) VALUES (?, ?, ?, ?);"; $stmt = ...
true
e869509359fa33c9e92adf18e22f15d3b85004e9
PHP
marmot-cn/marmot-framework
/src/Command/Cache/SaveCacheCommand.php
UTF-8
1,191
2.75
3
[]
no_license
<?php namespace Marmot\Framework\Command\Cache; use Marmot\Basecode\Command\Cache\SaveCacheCommand as BaseSaveCacheCommand; use Marmot\Framework\Classes\Transaction; use Marmot\Framework\Observer\CacheObserver; /** * 添加cache缓存命令 * @author chloroplast1983 */ class SaveCacheCommand extends BaseSaveCacheCommand { ...
true
a619e47402a35edda08848debbd02cdde45be2e3
PHP
MadhuSingh/Statistics_Database
/Statistics-master/delete_year_selected.php
UTF-8
574
2.5625
3
[]
no_license
<?php include('connect_to_shady_grove.php'); // Connects to your Database $mydate = $_GET['year']; $mydate = trim($mydate,"\\'"); $time = strtotime($mydate); $year = date('Y',$time); $mydate1 = $year."-01-01"; $mydate2 = $year."-12-31"; $query1 = "DELETE FROM daily_data WHERE d_date BETWEEN \...
true
a5644102aa0d50ce925674e1d7e39a5ec067df87
PHP
astropatelshubh/Students-Grade
/students.php
UTF-8
3,114
2.5625
3
[]
no_license
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Student's Grade</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <style> body { font-family: times; } * { box-sizing: border-box; } button { background-color: #4CAF50; color: white;...
true
e494a206cca62db4f94294e126aa051c2f002ed4
PHP
dev-websites/uni-documentation
/config/http.php
UTF-8
1,230
3.125
3
[]
no_license
<?php /** * ------------------------------------------------------------------------- * Estrutura URL * ------------------------------------------------------------------------- * * Monta a estrutura da URL utilizando como parâmetros o protocolo, o host, * a porta(caso exista) e nome...
true
26f1f30320da7447270d6eee313acd5018a7d0c8
PHP
KiRealo/TestHub
/classWork.php
UTF-8
854
3.703125
4
[]
no_license
<?php declare(strict_types=1); class Person { protected string $name; protected string $surname; protected string $middlename; public function __construct(string $name, string $surname, string $middlename) { $this->name = $name; $this->surname=$surname; $this->middlename=$middlen...
true
1fa26b16c60ce71d8a911cf9a3259286246fa087
PHP
hjpbarcelos/gd-wrapper
/src/Action/ResizeMode/Exact.php
UTF-8
1,839
3.234375
3
[ "MIT" ]
permissive
<?php /** * Defines the Exact resizing mode. * @author Henrique Barcelos */ namespace Hjpbarcelos\GdWrapper\Action\ResizeMode; use Hjpbarcelos\GdWrapper\Geometry\Point; /** * Represents an exact resizing. That is, no matter which are the original * dimensions of an image file, the new dimensions should be exaclt...
true
9e33348a78763652597ba82ad57d2377598b456d
PHP
tsubono/makuou
/app/Http/Controllers/Auth/RegisterController.php
UTF-8
3,013
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\Models\User; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; class RegisterController extends Controller { /* |--------------------------------...
true
6f5273fefda79642a82a8fc183e346e486e4a0fc
PHP
sasin91/fluen-bnet
/app/Http/Controllers/Api/MailController.php
UTF-8
1,403
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use Illuminate\Contracts\Mail\Mailer; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Mail\Message; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Mail; class MailController extends Controller { /** * @var Maile...
true
80664449b5049271ffaea680c659afe505ed2f5d
PHP
nielsdegroot789/schoolbib
/backend/src/lib/Controller/UserController.php
UTF-8
13,929
2.84375
3
[]
no_license
<?php namespace skoolBiep\Controller; use Exception; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use skoolBiep\Entity\User; use skoolBiep\Util\CreateJWT; use skoolBiep\DB; $data = array(); class UserController { private $user; protected $contai...
true
4c993b7a187fd381db379c112f131fa101d04350
PHP
cviccaro/jpa-admin
/app/Sluggable.php
UTF-8
572
2.65625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Http\Request; trait Sluggable { function __construct() { if (isset($this->appends)) { $this->appends[] = 'uri'; } else { $this->appends = ['uri']; } } public function getUriAttribute() { $title = false; if...
true
f3afcb1e174e24e1b9c3f4dd31fd5343c1d7e6ab
PHP
rishad1234/inspect
/inspect/app/models/Job.php
UTF-8
222
2.71875
3
[]
no_license
<?php class Job{ public static function getAllJobs(){ $database = new Database; $database->query('select * from job_posts order by created_at desc'); return $database->resultSet(); } }
true
705d158b7d5a84f07dfb08ab3fa441f30dc8b5bd
PHP
Fiacco/chamada-PHP_Fundamentos
/PHP_Fundamentos/operadores.php
ISO-8859-1
336
3.640625
4
[]
no_license
<?php $x=9; $y=3; $z; $a="programao"; $b="PHP"; // REALIZANDO TESTE $z= $x + $y; echo "soma=$z \n"; $z= $x - $y; echo "subtrao = $z \n"; $z= $x * $y; echo "multiplicao = $z \n"; $z= $x / $y; echo "diviso = $z \n "; $z = $x % $y; echo " mdulo = $z \n"; $z = ($x + $y + 12)/3; echo "mdia = $z \n"; echo $a . $b ?>
true
646db33732bf0e625e99bf251e9b387c7966956c
PHP
Cyecize/Jesterous
/src/AppBundle/Service/ArticleAsMessageManager.php
UTF-8
3,636
2.78125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: ceci * Date: 9/25/2018 * Time: 1:29 PM */ namespace AppBundle\Service; use AppBundle\BindingModel\ArticleAsMessageBindingModel; use AppBundle\Constants\Config; use AppBundle\Contracts\IArticleAsMessageManager; use AppBundle\Contracts\IArticleDbManager; use AppBundle\Enti...
true
2b8cd1668782d4209c54ac3c3e31227a5cb2d67d
PHP
DimitriLeandro/Pumas
/Core/php/classes/ciclo.Class.php
UTF-8
2,536
3.15625
3
[]
no_license
<?php /* * Essa classe é a progenitora das classes Paciente, Triagem e Diagnostico * Os atributos protegidos são aqueles que foram repetidos nas respectivas tabelas no banco de dados * usuarioRegistro -> nas três tabelas do banco esse atributo serve para informar quem foi o funcionário que realizou um determinado r...
true
0e0c497f8f8ddef2efd4449502cc19abe864f971
PHP
Paola0210/PeliculasMovieflix
/application/libraries/MailApi.php
UTF-8
1,895
2.53125
3
[]
no_license
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); require_once dirname(__FILE__) . '/vendor_mail/autoload.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; class MailApi { public function __construct() { } public function send...
true
299f980ea47f2fbc746b6d0a14fcede003fab891
PHP
Azalius/betisier
/classes/Ville.class.php
UTF-8
655
3.28125
3
[]
no_license
<?php class Ville{ private $num; private $nom; public function __construct($valeurs = array()) { if(!empty($valeurs)){ $this->affecte($valeurs); } } public function affecte($donnees){ foreach($donnees as $attribut => $valeur){ switch($attribut){ case 'vil_num' : $this->setNum($vale...
true
434c5a58be34a372d7a624c4baf2cf0140c9de65
PHP
endemio/cv-test-jokes
/app/tests/AbstractMiscServiceTest.php
UTF-8
3,499
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Tests; use App\Exceptions\ErrorDuringResponseToGetCategories; use App\Service\AbstractMiscService; use PHPUnit\Framework\TestCase; class AbstractMiscServiceTest extends TestCase { protected $newAbstractMiscService; protected function setUp(): void { $this->newAbstractMiscServ...
true
08828248a96b2b6b09cc64cf02c45a045daebb7c
PHP
tkotosz/functions-playground
/inc/function_autoload.php
UTF-8
699
2.609375
3
[]
no_license
<?php /** * @param string $module * * @return callable[] */ function requirefm(string $module): array { static $cache; if (!isset($cache[$module])) { $path = 'inc/' . $module . '/index.php'; $cache[$module] = (static function() use ($path) { return require($path); ...
true
379e991fed9f660e8eb63149a4f7f468f2aba3ea
PHP
WordPress/wordpress.org
/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications-http-server.php
UTF-8
1,002
2.84375
3
[]
no_license
<?php /** * Sits on the Trac server and responds to calls from Trac_Notifications_HTTP_Client. */ class Trac_Notifications_HTTP_Server { function __construct( Trac_Notifications_DB $db, $secret ) { $this->db = $db; $this->secret = $secret; } function serve_request() { $this->serve( $_GET['call'], $_GET...
true
9baf386d532953c0a5ea5bffbc0c091132401577
PHP
sparrrky/arrays_loops_tasks
/22/22_while.php
UTF-8
302
3.015625
3
[]
no_license
<?php /* Нарисуйте пирамиду, как показано на рисунке, используя цикл for или while. xx xxxx xxxxxx xxxxxxxx xxxxxxxxxx [17 баллов] */ //Цикл while: $str = ''; $i = 0; while ($i <= 4) { $i++; $str .= 'xx'; echo $str.'<br>'; } ?>
true
8b90a5c3af9174f3d45d3b1bbef65922070c5224
PHP
thinhtd1995/shop_db
/backend/models/News.php
UTF-8
2,855
2.546875
3
[]
no_license
<?php namespace backend\models; use Yii; use yii\data\Pagination; use backend\services\BaseService; date_default_timezone_set("Asia/Vientiane"); /** * This is the model class for table "news". * * @property int $id * @property string $title * @property string $slug * @property string $description * @property s...
true
54b7ef4a77197443f8bc74cc192fd068ed066304
PHP
artaxmax/worker-manager
/src/WorkerManager/Service/ActionFileManager.php
UTF-8
4,373
2.890625
3
[]
no_license
<?php namespace WorkerManager\Service; use Symfony\Component\Process\Process; /** * WorkerManager\Service\ActionFileManager */ class ActionFileManager { const TYPE_PID = 'pid'; const TYPE_ACTION = 'action'; /** * @var string */ static public $pidFile; /** * @var string */ ...
true
5e4161ef6060ef7e37b56ab0d47fa32b70f6fe38
PHP
mayakaconard/college_clearance_portal_codeigniter
/application/models/Sections_model.php
UTF-8
12,224
2.734375
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Sections_model extends CI_Model { //Clearance system Dashboard data management // Function to register A student into the system public function registerStudent($newStudent) { $qry = $this->db->insert('user...
true
5546d54d38979cce2a85dfe0275ff144aeb67676
PHP
bigster322/Tasks
/Задачки с UniLecs/Число Смита/index.php
UTF-8
2,140
3.21875
3
[]
no_license
<?php // Задача: просматривая свою телефонную книжку в 1982 году, математик Альберт Вилански обратил внимание на то, // что телефонный номер его зятя Гарольда Смита (493-7775) обладал интересным свойством: // сумма его цифр равнялась сумме цифр всех его простых сомножителей (единица не в счёт). // // Число 4 937...
true
c94df3ea4e7629a9652343ecf46cd538d58069cd
PHP
naumanshahid007/Acadmy_Management_system
/app/class/update_class.php
UTF-8
3,748
2.609375
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
<?php include("../includes/header.php"); // get specific class id $id=$_GET["class_id"]; // fetch class against specific class id $query = "SELECT * FROM classes WHERE class_id = $id "; $res = mysqli_query($con,$query); $row=mysqli_fetch_assoc($res); // get specific branch id $branch_id = $row...
true
6793e9211421428e85422318000165c57be0b54a
PHP
jasonmarkbeaton/SMSGyan
/update/locality_upd.php
UTF-8
1,105
2.703125
3
[ "MIT" ]
permissive
<?php include 'configdb2.php'; $query = "select locality,id from snapdeal_locality"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { $srch_word = $row["locality"]; $locality_id = $row["id"]; $srch_word = trim(preg_replace("~\b(nagar|road|Street|Layout|Bazar|Town|Lane|Colony|Pal...
true
e232a847b07d38a28462b02cef14da62dd6a0546
PHP
repomaster/maju-mundurApp
/app/Http/Requests/ApiRegisterFormRequest.php
UTF-8
900
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ApiRegisterFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
true
ea3e1545a2e0cab04dcc48687818da92e70e8f82
PHP
mw185/CMDBox
/pwaendern.php
UTF-8
4,579
2.84375
3
[]
no_license
<html lang="en" xmlns="http://www.w3.org/1999/html"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width" initial-scale=1.0 /> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <link href="profil.css" rel="stylesheet"> <...
true
a018b3c2e518f45df9dc33b5ae98042e47aabab3
PHP
camarama/BabaCoolCar
/src/Entity/Adresse.php
UTF-8
2,033
2.578125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\AdresseRepository") */ class Adresse { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column...
true
ad1aab789cb40649028a1d5751c9a9cd668b5d6c
PHP
bjuppa/fluent-html
/src/HtmlBuilder.php
UTF-8
10,758
3.1875
3
[ "MIT" ]
permissive
<?php namespace FewAgency\FluentHtml; use Illuminate\Contracts\Support\Htmlable; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Collection; /** * Builds HTML string representations of elements from parameters. */ class HtmlBuilder { /** * Available attribute quote characters " and ' ...
true
04b514728f48651b039c189a53d4ababe8b85aaf
PHP
intellehub/permissible-ng
/src/Permission.php
UTF-8
1,309
2.78125
3
[ "MIT" ]
permissive
<?php namespace Shahnewaz\PermissibleNg; use Shahnewaz\PermissibleNg\Role; use Illuminate\Database\Eloquent\Model; class Permission extends Model { public $timestamps = false; protected $fillable = ['type', 'name']; /** * @param $permission * @return array */ public static function ...
true
435cb4409b849e44d6fe3e8c81cae99f87135dfa
PHP
Mino5531/scrum-project
/assets/php/site.php
UTF-8
1,865
2.625
3
[]
no_license
<?php session_start(); $controller = $_GET["controller"]; include_once("inc.php"); switch ($controller) { case "balance": BalanceController(); break; case "user": UserController(); break; case "authorization": AuthorizationController(); break; } // controller function BalanceController(){ global $...
true
f1be0c60c9b2e813614661417bcdbcf27dd1e649
PHP
jbatson/Code
/Location.php
UTF-8
1,382
3.109375
3
[]
no_license
<?php /* * Class Location * @version 1.0 * @date 07/15/10 * @compatibility: PHP 4, PHP 5 */ class Location { public $mapCoordinates; function Location($map_key, $location_address) { $ch = curl_init("http://maps.google.com/maps/geo?key=".$map_key."&output=xml&q=".urlencode($location_address)); curl_...
true
e9bc87bffec935011097ebb03044cc584d3f7569
PHP
ScarZa/supply
/class/read_conn.php
UTF-8
302
2.859375
3
[]
no_license
<?php class Read_DB{ public $read; public function Read_Text(){ $myfile = fopen("$this->read", "r") or die("Unable to open file!"); // Output one line until end-of-file while(!feof($myfile)) { $conn_db[]= fgets($myfile); } fclose($myfile); return $conn_db; } } ?>
true
87749159ab22b406711bfae9b02d96c2f9a99d7e
PHP
rcleozier/screenshot-maker
/images.php
UTF-8
2,447
2.703125
3
[]
no_license
<?php include 'imageresize.php'; use \Eventviva\ImageResize; Class Cropper { private $devices = [ 'iPhone_35_portrait' => [640, 920, 'iphone'], 'iPhone_35_landscape' => [960, 640, 'iphone'], 'iPhone_47_portrait' => [640, 1136, 'iphone'], 'iPhone_47_landscape' => [1136...
true
622b820848812c075e8117ee0b3a1e2e50558153
PHP
mywikipro/queue-manager
/src/MyWikiPRO/Component/QueueManager/Consumer/Response/MessageInterface.php
UTF-8
659
3
3
[]
no_license
<?php namespace MyWikiPRO\Component\QueueManager\Consumer\Response; /** * Менеджер очередей / Интерфейс отладочного сообщения консьюмера * * Interface MessageInterface * @package MyWikiPRO\Component\QueueManager\Consumer\Response */ interface MessageInterface { const TYPE_INFO = 'info'; const TYPE_WA...
true
670c0729f8c4a792a455ebb4396cf6eb1e72154e
PHP
AugCat50/keyburner50
/DomainObjectAssembler/Collections/old examples/example____VenueCollection.php
UTF-8
1,060
2.828125
3
[]
no_license
<?php /** * Коллекция для объектов типа Venue */ namespace DomainObjectAssembler\Collections; use DomainObjectAssembler\DomainModel\VenueModel; class VenueCollection extends Collection { /** * Возвращает имя класса модели * Используется для проверки, дочерняя коллекция соответстует конкретному типу мо...
true
1b2ac5d5832c5fd140bcc3d7fb15928582eb5317
PHP
yingyezhufeng/phan
/src/Phan/Language/Element/GlobalConstant.php
UTF-8
2,056
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Phan\Language\Element; use Phan\CodeBase; use Phan\Language\Context; use Phan\Language\FQSEN; use Phan\Language\FQSEN\FullyQualifiedGlobalConstantName; use Phan\Language\Type; use Phan\Language\UnionType; class GlobalConstant extends AddressableElement implements ConstantInter...
true
b77a3f9bf030ee06e5aed77e2232792bbf97fb48
PHP
aymen7/blog
/php/functions.php
UTF-8
639
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: user * Date: 21/09/2017 * Time: 12:02 */ function connectDb($host,$db,$username,$password){ try{ $conn = new PDO("mysql:host=$host;dbname=$db", $username, $password); // set the PDO error mode to exception $conn->setAttribute(PDO::ATTR_ERRMODE, P...
true
6dc712efe9df105012e3fe7bb9b669647fecc378
PHP
hazydazyart/OSU
/CS494/Assignment5/src/loopback.php
UTF-8
619
2.875
3
[]
no_license
<?php echo "<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <title>Loopback</title> </head> <body>"; header('Content-Type: text/plain'); $myArr = array(); $type = array( 'Type' => '' ); $parameters = array(); $myArr['Type'] = $_SERVER['REQUEST_METHOD']; if($myArr['Type'] == 'GET') { foreach($_GET as $key =...
true
256c394ffb628b2fa76897ce61daf35eb048d159
PHP
loilo/contao-illuminate-database-bundle
/src/Database/QueryBuilderFactory.php
UTF-8
1,879
2.671875
3
[ "MIT" ]
permissive
<?php namespace Loilo\ContaoIlluminateDatabaseBundle\Database; use Illuminate\Database\Capsule\Manager as Capsule; class QueryBuilderFactory { /** * @var Capsule */ protected $capsule; /** * @var array */ protected $defaultConfig; /** * @var array */ protect...
true
19bffa5843df1f5c0530db3276223bcabcae605d
PHP
ice-devel/formation-mi2-js-php-2021
/2-php/10-qualite/1-tests/1-probleme.php
UTF-8
290
3.1875
3
[]
no_license
<?php require 'src/Slugger.php'; /* * Faire ça c'est déjà un début mais c'est pas pratique : * utilisons un outil de tests comme PHPUnit */ $slugger = new Slugger(); $str = "Test de slug"; $slug = $slugger->slug($str); if ($slug !== "test-de-slug") { throw new Exception(); }
true
bab518ddfbb91b17bcca9f0c6ce260ede97de292
PHP
shakilahammad/mayaapaapis
/app/Classes/MakeResponse.php
UTF-8
890
2.53125
3
[]
no_license
<?php namespace App\Classes; class MakeResponse { public static function successResponse($data, $status = 'success', $errorCode = 0, $errorMessage = '') { return response()->json([ 'status' => $status, 'data' => $data, 'error_code' => $errorCode, 'error_...
true
647e1a77938db2cc0989ed490ec52e6daaf4ea87
PHP
Eric-Daniel/web2018
/config.php
UTF-8
858
2.671875
3
[]
no_license
<?php define('db_host', 'localhost'); define('db_user', 'root'); define('db_password', ''); define('db_name', 'amlsdb'); class db_connect{ public $host = db_host; public $user = db_user; public $password = db_password; public $dbname = db_name; public $conn; public $error; public function __con...
true
3987bac7418a28a909261a0080e88c70aa6d74af
PHP
dmitriyltw/CheckOrder-magento2
/Model/OrderProvider.php
UTF-8
1,334
2.609375
3
[]
no_license
<?php namespace Litvinov\CheckOrder\Model; use Magento\Framework\Api\SearchCriteriaBuilder; use Magento\Sales\Api\OrderRepositoryInterface; use Magento\Framework\Exception\NotFoundException; class OrderProvider { /** @var OrderRepositoryInterface */ protected $orderRepository; /** @var SearchCriteriaBui...
true
e41bbab47e9e5de446476a776ce7ca376635e9ff
PHP
FrankCastle04/presidenciaV2
/app/Http/Controllers/EmpleadoController.php
UTF-8
4,234
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\empleado; use Illuminate\Http\Request; //use App\Http\Requests\CreateEmpleadoRequest; use App\Http\Requests\SaveEmpleadoRequest; class EmpleadoController extends Controller { public function __construct() { $this->middleware('auth')->except('index', 'sho...
true
e31a51d92e55761fcce4173d9a56c9a7e7de04c9
PHP
CarlosPorta77/z--DH-old-repo
/app/Http/Controllers/Admin/CategoryController.php
UTF-8
4,532
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use App\Category; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use File; use Intervention\Image\Facades\Image; class CategoryController extends Controller { public function index() { $categories = Category::orderBy('id')->paginate(5); retur...
true
78c1ed4001206de64ec129b687595193eda934b2
PHP
HenrivantSant/henri
/Framework/Model/Entity/Entity.php
UTF-8
16,497
2.59375
3
[]
no_license
<?php /** * Created by Buro26. * Author: Henri * Date: 13-12-2019 17:09 */ namespace Henri\Framework\Model\Entity; use Doctrine\Common\Annotations\AnnotationReader; use Exception; use Henri\Framework\Database\DatabaseDriver; use Henri\Framework\Model\Entity\Helper\Query; use Henri\Framework\Model\Entity\Helper\Tr...
true
cf41412948564f5e3daf18dd0269bbc115cc1c50
PHP
Mrnt/mrnt-asscn
/controller/admin/mrnt-asscn-install.php
UTF-8
3,150
2.75
3
[]
no_license
<?php /** * Class for installing and uninstalling this plugin * On install sets up tables, on uninstall cleans up all the data it created including options. * * @author Maurent Software ${date.year} */ class MrntAsscnInstall { var $db_version = MRNT_ASSCN_DB_VERSNUM; var $messages = ''; function __constru...
true
ec2d7cf03008f673130dec80fac416da75f86daf
PHP
joelrf/php
/projects/ejercicio2.php
UTF-8
286
3.484375
3
[]
no_license
<?php echo "<table border=\"1\">"; $numero1 =8; for($i = 1; $i <= 10; $i++){ $resultado = $numero1 * $i; echo"<tr>"; echo "<td>$numero1</td>"; echo "<td> x </td>"; echo "<td> $i </td>"; echo "<td> = </td>"; echo "<td>$resultado </td>"; echo "</tr>"; } ?>
true
c0d2d54cd957a3dc8db00bd36e24f73c572c5f4c
PHP
KernelFolla/KFIBackupBundle
/Command/MySqlImportCommand.php
UTF-8
4,847
2.5625
3
[]
no_license
<?php namespace KFI\BackupBundle\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Process\Process; /** * Command that dumps * *...
true
232bc9740dfd48482ad8538a777c59102fce949a
PHP
marscore/hhvm
/hphp/test/slow/ext_array/array_multisort.php
UTF-8
842
3.234375
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php function a() { $ar1 = array(10, 100, 100, 0); $ar2 = array(1, 3, 2, 4); array_multisort(&$ar1, &$ar2); var_dump($ar1); var_dump($ar2); } function b() { $ar0 = array("10", 11, 100, 100, "a"); $ar1 = array(1, 2, "2", 3, 1); $asc = SORT_ASC; $string = SORT_STRING; $numeric = SORT_NUMERIC; $de...
true
537d7344b242e398f68b3638a47fd52f1826af79
PHP
Lezzyy/Exo_POO
/test.php
UTF-8
1,894
3.78125
4
[]
no_license
<?php //la class définit ce qu'il y a à l'intérieur d'un objet // class Product { // public $title = 'Retour vers le futur'; //propriété // //constructeur // function __construct($title){ // $this->title=$title; // // } // function getTitle(){ //méthode // return $title; // } // } // // $p = new Product('R...
true
5b49113bcd02f161863c24b009031caf84b6ebed
PHP
hector-valdivia/movi_task
/app/Http/Controllers/GenreController.php
UTF-8
2,040
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Genre; use App\Http\Requests\GenreRequest; use Illuminate\Http\Request; use Illuminate\Http\Response; class GenreController extends Controller { /** * Display a listing of the resource. * * @return Response */ public function index() { ...
true
49ed02f5e4da5f472b05200e4105b1454014db2e
PHP
ManarAhmed/GreenTravel
/application/forms/Addpost.php
UTF-8
916
2.546875
3
[]
no_license
<?php class Application_Form_Addpost extends Zend_Form { public function init() { $this->setMethod('POST'); $this->setAttrib('class','form-horizontal'); $title= new Zend_Form_Element_Text("title"); $title->setLabel("Title : "); $title->setAttrib('class','form-control')...
true
6a90f61ebfffc55efa25f435a2e1b6085086883c
PHP
stekel/laravel-bench
/src/Assessment.php
UTF-8
2,130
2.96875
3
[ "MIT" ]
permissive
<?php namespace stekel\LaravelBench; abstract class Assessment implements AssessmentContract { public const GLOBAL_ROUTE = 'performance'; /** * Path to execute the test against * - If null, create route via slug for execution */ public ?string $path = null; /** * Number of r...
true
53a121da96796b7f3aed876319d76f5f3c02e3c6
PHP
chenjundong/php-bitbucket-api
/lib/Bitbucket/Client.php
UTF-8
2,817
2.71875
3
[]
no_license
<?php namespace Bitbucket; use Buzz\Client\Curl; use Buzz\Client\ClientInterface; use Bitbucket\HttpClient\HttpClientInterface; use Bitbucket\HttpClient\HttpClient; /** * @property HttpClient $httpClient Description */ class Client { private $options = array( 'base_url' => 'https://api.bitbucket.org/1.0/', ...
true
30bfd3a1dbd69f4e81268fcadbbd45ae1417d7af
PHP
ngocsang1599/mypham
/controllers/frontend/productController.php
UTF-8
2,017
2.59375
3
[]
no_license
<?php //include file productModel de su dung class productModel include "models/frontend/productModel.php"; class productController extends Controller{ //su dung class productModel use productModel; public function category(){ $id = isset($_GET["id"]) && is_numeric($_GET["id"]) ? $_GET["id"]:0; //...
true
ee625b44a63b8ced571f741e9ddc72a2980434ca
PHP
klausetgeton/esales-gtk
/app/model/Log.class.php
UTF-8
469
2.671875
3
[]
no_license
<?php /** * Log Active Record * @author <your-name-here> */ class Log extends TRecord { const TABLENAME = 'public.log'; const PRIMARYKEY= 'id'; const IDPOLICY = 'serial'; // {max, serial} /** * Constructor method */ public function __construct($id = NULL, $callObjectLoad = T...
true
576268536e8d618b398f3ae92df8654bda32c1d7
PHP
giosifelis/php-docs-api
/apiFunctions.php
UTF-8
2,064
2.828125
3
[ "MIT" ]
permissive
<?php require_once 'utils.php'; function login($userName, $password){ if ($userName === USERNAME && sha1($password) === PASSWORD_HASHED) { $_SESSION['isLoggedIn'] = true; $jsonRes = json_encode(responseMessage(false, LOGIN_SUCCESS)); echo $jsonRes; exit; } else { $jsonRes = json_...
true
ba230453789b50ce1b38bf8dfe1149890375206e
PHP
smsloverss/sms99
/your-project/app/Services/Messagehub.php
UTF-8
1,818
2.921875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use GuzzleHttp\Client; /** * Class Messagehub * @package App\Services */ class Messagehub { /** * @var Client */ protected $client; /** * @var null */ protected $auth = NULL; /** * Messagehub constructor. */ public function __...
true
4465e2de09b61d31a676a5045069c76347eaa606
PHP
Adamiko/magicrainbowadventure
/application/tests/MagicRainbowAdventure/Tests/Mocks/AuthDriverMock.php
UTF-8
605
2.703125
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php /** * Auth Driver Mock Class * * Always authenticates and returns a new User instance. * * @author Joseph Wynn <joseph@wildlyinaccurate.com> */ namespace MagicRainbowAdventure\Tests\Mocks; class AuthDriverMock extends \Laravel\Auth\Drivers\Driver { /** * Log In * * @param array $arguments * @re...
true
50940124c9ae90038ecedacf6b5fb4de037a556b
PHP
phindmarsh/zm-tracker
/public/update.php
UTF-8
2,526
2.625
3
[]
no_license
<?php define ('NOW_PLAYING_URL', 'http://zmonline.com/PlNowPlayingData/'); define ('DEBUG', true); require_once 'simplehtmldom_1_5/simple_html_dom.php'; require_once 'db.inc.php'; file_put_contents('lastupdate', time()); // get the latest five songs and store them $feed = file_get_html(NOW_PLAYING_URL); $items = $...
true
b071d2c3ba2e5fa07125cf6da258018aa2740366
PHP
nazmulpcc/php-socks
/src/PeerCollection.php
UTF-8
935
3.09375
3
[]
no_license
<?php declare(strict_types=1); namespace Nazmul\Socks; class PeerCollection { /** * Collection of peers * * @var Peer[] */ protected array $peers = []; public function __construct(protected Server &$server) { // } /** * Add a new Peer created from the given ...
true
d19ce6846c37d206af46e86657312998cebfeedf
PHP
sanmiguella/coding_and_ctf
/Web_dev/PHP/Web/Practice/functions.php
UTF-8
2,057
3.640625
4
[]
no_license
<?php include "db.php"; function list_items() { // $connection is a global scope variable from "db.php" global $connection; // Query to be passed to mysqli_query() $query = "SELECT * FROM product"; $result = query_check($query); // Creating of table headers. echo "<table border=1 width...
true
bc0b8c429cc84beb728520b3c1e2232a5fb6da44
PHP
famer/screen-scraper-php
/models/Lang.class.php
UTF-8
4,040
2.546875
3
[]
no_license
<?php class Lang { // Translates description from english to georgian public function engToGeDescription ( $eng = NULL ) { if ( !$eng ) return false; $dict = array(); $dict['Chance of rain'] = 'მოსალოდნელია წვიმა'; $dict['Chance of rain or sleet'] = 'მოსალოდნელია წვიმა ან სველი თოვლი'; $dict...
true
cb9d2f15ae5d43579aa1f519787e5b82dfc4fd3a
PHP
2B-Smart/transfaring_co
/app/Http/Controllers/CitiesController.php
UTF-8
4,541
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\cities; use Illuminate\Http\Request; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; class CitiesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminat...
true
400465a65e3181a5e7d1d4a8c6a062da769af921
PHP
diazoxide/complex-cross-architecture
/src/common/Container.php
UTF-8
3,933
3.03125
3
[]
no_license
<?php namespace NovemBit\CCA\common; abstract class Container { /** * @var array * */ private array $instances = []; /** * @var self|null */ private $parent = null; /** * Child component * @var array */ public array $components = []; /** * Get call...
true
ca2dad385eeea55e13a140211106f2fcf8c33f36
PHP
IP-CAM/Opencart-to-Symfony-Bridge-Extension
/src/Model/Api/ApiSession.php
UTF-8
1,274
3.046875
3
[]
no_license
<?php declare(strict_types=1); namespace Sypa\Model\Api; class ApiSession { private int $api_session_id; private int $api_id; private string $session_id; private string $ip; private \DateTimeImmutable $date_added; private \DateTimeImmutable $date_modified; public function __construct( ...
true
430434ad8f06490b297c9adecd48cca129488fb7
PHP
tanmotop/dmall
/database/migrations/2017_10_24_210324_create_couriers_table.php
UTF-8
776
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCouriersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('couriers', fun...
true
c2ac324fd8af1d646d4bd4322c88251acd6dc8d2
PHP
knowgod/Logika
/Logika.php
UTF-8
6,892
3.015625
3
[]
no_license
#!/usr/bin/php <?php define("LOGIKA_DEBUG_MODE", 0); /** * Logika game itself * * @author arkadij */ class Logika { const DigitsRange = 10; /** * Literal strings: */ const S_NoDoublesAllowed = "\n No doubles allowed!!!"; const S_YourGuess = "\n\nYour guess > "; const S_YouWin = "\n\...
true
efa691048f37ad9b0d91cb7b44c230f1124e3379
PHP
TiboProject/ave_noel
/assets/src/config/Database.php
UTF-8
916
3.09375
3
[]
no_license
<?php namespace App\config; require_once 'vendor/autoload.php'; class Database { const DB_HOST = 'mysql:host=localhost;dbname=avenoel;charset=utf8'; const DB_USER = 'root'; const DB_PASSWORD = ''; private $connection; public function getConnection() { ...
true
98a09e172a5e85c7439a2ec35542057b8aba4ecc
PHP
salantryrohan/info290T_iolab
/delicious_trails/tests/delicious_proxy.php
UTF-8
5,034
2.5625
3
[]
no_license
<?php /** * $Id$ */ /** * This PHP script serves as a proxy for Delicious API requests. It processes * the request made by the client, posts the request to Delicious, and * formats the response as JSON data for the client. It provides support for * a JSONP callback so that users can access the Delicious API entirely...
true
43d524af9a6d01b38e4c541c0e7b9278959e3589
PHP
ethancodes/drupal8
/magazine-issue-pages/src/Routing/MagazineIssuePagesRoutes.php
UTF-8
2,664
2.59375
3
[]
no_license
<?php namespace Drupal\magazine_issue_pages\Routing; use Symfony\Component\Routing\Route; class MagazineIssuePagesRoutes { public function routes() { $routes = []; // set up some shortcuts because i'm lazy $route_module = 'magazine_issue_pages'; $controller_path = '\Drupal\magazine_iss...
true
4be7291ba92fd85e37c2e44319bdf80f92d52786
PHP
bencollord/php_form_validation
/library/properties.trait.php
UTF-8
843
3.328125
3
[]
no_license
<?php /** * Allows classes that use it to use properties as * in C# and Java. * * When an inaccessable object property * is accessed, it searches the class for a getter or * setter method that matches the property name */ trait Properties { public function __get($name) { if(substr($nam...
true
efb9b2ed9c2b5f31f3208fa7231501f6799c104c
PHP
bhuvneshkaushik/scat
/lib/Scat/CatalogService.php
UTF-8
2,628
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Scat; class CatalogService { public function __construct() { } public function createBrand() { return \Model::factory('Brand')->create(); } public function getBrands($only_active= true) { return \Model::factory('Brand')->where_gte('brand.active', ...
true
b4dae89842699762dbdfbfc1b827296a0d213e88
PHP
dilab/omnipay-xendit
/src/Message/AbstractRequest.php
UTF-8
581
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: xuding * Date: 6/8/18 * Time: 12:03 PM */ namespace Omnipay\Xendit\Message; abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest { private $endPoint = 'https://api.xendit.co/v2/invoices'; public function getEndPoint() { retu...
true
e08b2b4305d481c98a27e7af8e8505cdcda2b6b8
PHP
Lpu8er/voidfield
/src/Command/UserTakeoverCommand.php
UTF-8
2,938
2.796875
3
[]
no_license
<?php namespace App\Command; use App\Entity\User; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console...
true
0ca22c44e922dbba5a58a62fe6f70462e12f4964
PHP
getmonitor/ZeeJong
/core/unit-tests/theme/content.php
UTF-8
2,540
2.84375
3
[]
no_license
<?php /* Template file for page content Author: Mathias Beke Url: http://denbeke.be Date: March 2014 */ ?> <h2>Running Unit Tests</h2> <div id="total-tests" <?php if($scenario->numberOfFailures != 0) echo 'class="failed"'; ?>> <p><?php echo $scenario->numberOfTest . ' tests in ' . sizeof($scenario->tests) . ...
true
b1cfad4f44910a7c7ce39f99a8c63c7c9cace5a4
PHP
Zotova2008/php
/project_15.6/knowledge.inc.php
UTF-8
398
3.53125
4
[]
no_license
<?php $a = 'Мои знания на'; $b = 100; $c = '%'; ?> <?php $price = 18; if ($price >= 15 && $price <= 20) { $priceEcho = "Число $price находится между 15 и 20"; } else { $priceEcho = "Число $price не находится между 15 и 20"; } $myArray = [1, 2, 'число']; $check; if (is_array($myArray)) { $check = ' - это масс...
true
92ee0080019e90499b0b32c8c1e14caa667497fc
PHP
Toddish/Verify-L4
/src/Commands/AddRole.php
UTF-8
1,315
2.734375
3
[ "MIT" ]
permissive
<?php namespace Toddish\Verify\Commands; use Illuminate\Console\Command, Symfony\Component\Console\Input\InputOption, Symfony\Component\Console\Input\InputArgument; class AddRole extends Command { protected $name = 'verify:add-role'; protected $description = 'Add a new user role'; public function fire() { ...
true
42be4fdef13b3406a69e4852b1780cc07bbc6d29
PHP
boxedsoftware/vicspace
/admin/user_search.php
UTF-8
1,739
2.5625
3
[]
no_license
<?php $title = "People Finder"; include($_SERVER['DOCUMENT_ROOT'].'/header.php'); $username = $_SESSION['username']; $accesslevel = mysql_query("SELECT user_level FROM users WHERE user_name='$username'"); $accesslevel = mysql_fetch_row($accesslevel); $accesslevel = $accesslevel[0]; if($accesslevel != 100) { echo "You ...
true
08c405a14496e973c9301290c8418548a09b06ee
PHP
alauderdale/Jewelry-Theme
/functions/le-stats.php
UTF-8
3,410
2.578125
3
[]
no_license
<?php // Hook for adding admin menus add_action('admin_menu', 'launch_stats_page'); // Action function for above hook to add a new top-level menu function launch_stats_page() { add_menu_page(__('Launch Stats','le_stats-page'), __('Launch Stats','le_stats-page'), 'manage_options', 'launch_stats_page', 'le_tople...
true
e62c5f6421c5ae0540fced412f238ac9da570ac7
PHP
jeandev84/janklod
/src/janklod/Component/Form/Type/Support/Type.php
UTF-8
2,296
2.875
3
[]
no_license
<?php namespace Jan\Component\Form\Type\Support; use Jan\Component\Form\Type\Traits\FormTrait; /** * Class AbstracType * @package Jan\Component\Form\Type\Support */ abstract class Type { use FormTrait; /** * @var string */ protected $child; /** * @var array */ pr...
true
8c23a9f457949e7230371a2b86fc9b990ddff356
PHP
KubaKajderowicz/veiligprog2
/index.php
UTF-8
550
2.875
3
[]
no_license
<?php if (isset($_POST['zoekopdracht'])){ $zoekopdracht = $_POST['zoekopdracht']; echo htmlspecialchars("De zoekopdracht is: $zoekopdracht"); echo "Geen resultaat gevonden!"; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initi...
true
19d773eebc626b8930f4ef2f1048d7e4a895b333
PHP
Hetal2425/auto-loads-web-yii2
/common/components/Payment/PaymentI.php
UTF-8
582
2.90625
3
[]
no_license
<?php namespace common\components\Payment; /** * Interface PaymentI * * @package common\components\Payment */ interface PaymentI { /** * Sets user service ID and service price with response * * @param null|integer $id User service ID * @param null|double $price Service price */ pu...
true
810c6161dd7695deadcc6765f291ae6dd85c933c
PHP
nursafitri/pw2020_193040181
/kuliah/pertemuan13/functions.php
UTF-8
6,059
2.671875
3
[]
no_license
<?php function koneksi() { return mysqli_connect('localhost', 'root', '', 'pw_193040181'); } function query($query) { $conn = koneksi(); $result = mysqli_query($conn, $query); if (mysqli_num_rows($result) == 1) { return mysqli_fetch_assoc($result); } ...
true
5ade640d0179732280273a88ea094b9795144a81
PHP
jasnzhuang/myThinkphp5
/application/blog/model/Blog.php
UTF-8
496
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace app\blog\model; use think\Model; class Blog extends Model { //获取博客所属的用户 public function user() { return $this->belongsTo('User'); } //获取博客的内容 public function content() { return $this->hasOne('Content'); } //获取所有博客所属的分类 public function cate() { return $this->belongsTo('Cate'); } //获...
true