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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
221af3f4ca9e0941320a1d00128e683da20b7dc6 | PHP | fendaq/video-editor | /edit/get-emoji.php | UTF-8 | 1,057 | 2.546875 | 3 | [] | no_license | <?php
# Identifies APNGs
# Written by Coda, functionified by Foone/Popcorn Mariachi#!9i78bPeIxI
# This code is in the public domain
# identify_apng returns:
# true if the file is an APNG
# false if it is any other sort of file (it is not checked for PNG validity)
# takes on argument, a filename.
function identify_apng(... | true |
1d5b1a52e6d8669b24899b688c12e10d8c5c3e02 | PHP | nmp2605/pandict | /app/Http/Clients/DicionarioAberto/DicionarioAbertoClientException.php | UTF-8 | 424 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Clients\DicionarioAberto;
use Exception;
use Throwable;
class DicionarioAbertoClientException extends Exception
{
public const CODE_SEARCH_FAILURE = 1;
public static function searchFailure(string $word, ?Throwable $previous = null): self
{
return new self(
sp... | true |
5651d563b1dd18d2abcc65311f19d906ad0b9b79 | PHP | rahulyhg/cms-39 | /src/Gzero/Cms/ViewModels/ContentViewModel.php | UTF-8 | 10,033 | 2.625 | 3 | [
"MIT"
] | permissive | <?php namespace Gzero\Cms\ViewModels;
use Carbon\Carbon;
use Gzero\Core\ViewModels\FileViewModel;
use Gzero\Core\ViewModels\UserViewModel;
class ContentViewModel {
/** @var array */
protected $data;
/** @var array */
protected $author;
/** @var array */
protected $route;
/** @var array... | true |
1a6e83b7a0cc4ead35db21fa1c4fef2021a74194 | PHP | jenssels/ProjectAPP | /application/models/Taak_model.php | UTF-8 | 6,082 | 3.046875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
/**
* @class Taak_model
* @brief Model-klasse voor taken
*
* Model-klasse die alle methodes bevat om de database-tabel taak te gebruiken
*/
class Taak_model extends CI_Model {
// +----------------------------------------------------------
// | Personeelsfeest - Taak_model.php
// +--------------... | true |
79c908f5a98da33e15d107b8163589b82374de5f | PHP | OxfordInfoLabs/kinikit-mvc | /src/Session/Session.php | UTF-8 | 1,657 | 2.984375 | 3 | [] | no_license | <?php
namespace Kinikit\MVC\Session;
/**
* @defaultImplementation Kinikit\MVC\Session\PHPSession
*
* Interface Session
*/
interface Session {
/**
* Set a session value for a string key.
*
* @param string $key
* @param mixed $value
*/
public function setValue($key, $value);
... | true |
edf30461e9447d0d4d8f74a7eef6a84b639b6803 | PHP | all-dressed/laravel-sdk | /src/Exceptions/ProductNotFoundException.php | UTF-8 | 498 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace AllDressed\Exceptions;
use Exception;
use Throwable;
class ProductNotFoundException extends Exception
{
/**
* Create a new exception.
*
* @param string $id
* @param \Throwable $throwable
*/
public function __construct(string $id, Throwable $throwable)
{
... | true |
d9e1e199ab8ca7d5a9908a0221bbef7f215bcc80 | PHP | cristianoferr/projetos | /web/NovoEntityManager/include/modulos/virtualizer/testSiteProjeto.php | UTF-8 | 426 | 2.515625 | 3 | [] | no_license | <?php
class TestsSiteProjeto extends TestBase {
function testTitulo() {
$controller = getControllerForTable("site_projeto");
$this->assertNotNull($controller, "site_projeto null");
$tituloEsp = "Projeto Teste";
$titulo = $controller->getDescricao(PROJETO_TESTE);
$this->asse... | true |
a1d82b60d7e728230372376dade370a36388f7ee | PHP | NKozhuharov/NetCore | /core/__base.php | UTF-8 | 46,688 | 2.9375 | 3 | [] | no_license | <?php
class Base{
const ORDER_TYPE_ASC = 'ASC';
const ORDER_TYPE_DESC = 'DESC';
protected $tableName = false; //the name of the table of the parent class
protected $parentField = false; //if the parent class has a table referencing it, this field is used for getByParentId()... | true |
c8eb37041089fe300204a4a16409d6af1b2b4b58 | PHP | askme23/learningInUniversity | /z08-3b.php | UTF-8 | 1,857 | 3.09375 | 3 | [] | no_license | <html>
<head>
<meta charset="utf-8">
</head>
<body>
<?php
$otv = array("6", "9", "4", "1", "3", "2", "5", "8", "7");
$answer = $_GET['choice'];
$name = $_GET['nameOfParticipant'];
$countOfRightAnswers = 0;
if(count($answer) == coun... | true |
c6346405b0a3c361a38e8515d914084cf6a127a4 | PHP | SrdjanMilivojevic/PHP_router_for_static_pages | /lib/Application.php | UTF-8 | 1,271 | 3.328125 | 3 | [] | no_license | <?php
final class Application
{
/**
* Default(Landing) page name.
*/
const LANDING_PAGE = 'home';
/**
* @var $url [Requested URI segment]
*/
private $url;
/**
* @var $actions [Array of roots as key-url => value-closure]
*/
private $actions = [];
/**
* C... | true |
a99736fc7bb71fcfe6b6406a0ebdf861568f6001 | PHP | Nyanko-sensei/user_rest_Service | /src/Interfaces/ResponseInterface.php | UTF-8 | 333 | 2.6875 | 3 | [] | no_license | <?php
namespace UserListRest\Interfaces;
use UserListRest\Models\User;
interface ResponseInterface
{
/**
* @param string $msg
*
* @return mixed
*/
public function fail(string $msg);
/**
* @param array $payload
*
* @return mixed
*/
public function success(array... | true |
f8fbce766200fb0691e6aaf390e5533c0322c5aa | PHP | xiaojian6/bidu | /app/Http/Middleware/CheckPayPassword.php | UTF-8 | 1,532 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Middleware;
use App\DAO\SafeDAO;
use Closure;
use App\Models\Users;
class CheckPayPassword
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Cl... | true |
90bc9a745414fe02022a5133975a25e73450bece | PHP | staabm/phpstan-src | /tests/PHPStan/Process/Runnable/RunnableQueueTest.php | UTF-8 | 5,766 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types = 1);
namespace PHPStan\Process\Runnable;
use Exception;
use PHPUnit\Framework\TestCase;
use function sprintf;
class RunnableQueueTest extends TestCase
{
public function testQueuedProcessIsRun(): void
{
$logger = new RunnableQueueLoggerStub();
$queue = new RunnableQueue($logger, 8);... | true |
77cd31339e00eb90a71222f944bced809cc1ee7a | PHP | emre-creation/parkaera | /parkaera_app/models/session.php | UTF-8 | 280 | 2.5625 | 3 | [] | no_license | <?php
class Session extends CI_Model {
public function __construct()
{
parent::__construct();
}
public function create_session(){
$query = $this->db->get('session');
$results = $query->result();
$json = json_encode($results);
echo($json);
}
}
?> | true |
b3b4866caac3f097343268cf531bcff12efd1702 | PHP | beregond/dbproject | /src/Db/DbBundle/Entity/User.php | UTF-8 | 1,332 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace Db\DbBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* @ORM\Entity
* @ORM\Table("Users")
* @UniqueEntity("email")
*/
class Us... | true |
9355497d41cf73c123a3ef851a1cf7c728540d60 | PHP | EdsonMax/pph7-dao | /Sql.php | UTF-8 | 1,264 | 3.484375 | 3 | [] | no_license | <?php
//class extend do php Data object
class sql extends PDO {
private $conn;
//metodo costrutor para realaizar a conexão com o BD de forma automática.
public function __construct(){
$this->conn = new PDO("mysql:dbname=dbatendimento;host=localhost","gomes","gomes001");
}
private function setParams($sta... | true |
9e8d55f68533fd7b66f5207cec0e678e0b4b1c81 | PHP | aravindaw/multi-view | /linux/wp-content/themes/asteria-lite/redux/inc/validation/color_rgba/validation_color_rgba.php | UTF-8 | 2,908 | 3.234375 | 3 | [
"GPL-2.0-only",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-free-unknown"
] | permissive | <?php
class Redux_Validation_color_rgba extends ReduxFramework {
/**
* Field Constructor.
*
* Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function
*
* @since ReduxFramework 3.0.4
*/
function __construct($field, $value, $current) {... | true |
9026ffdd77a6cb4fac296a11fe95e862e0cefb1d | PHP | Kh0aiTayChien/Module_2_CodeGym | /Array_and_funcuntion/isprime/prime.php | UTF-8 | 887 | 3.0625 | 3 | [] | no_license | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form metho... | true |
f39db2bc640206bddfb4fa9be68090d937d54f5c | PHP | louisicard/adimeo-data-suite-filters | /ProcessorFilter/GoogleGeocodingFilter.php | UTF-8 | 1,813 | 2.671875 | 3 | [] | no_license | <?php
namespace AdimeoDataSuite\ProcessorFilter;
use AdimeoDataSuite\Model\Datasource;
use AdimeoDataSuite\Model\ProcessorFilter;
use GuzzleHttp\Client;
class GoogleGeocodingFilter extends ProcessorFilter
{
function getDisplayName()
{
return "Google Geocoding Filter";
}
function getFields()
{
retu... | true |
fed68ce152d100a576945a39eff7aaaec99810c7 | PHP | superlinhares/siem_project_final | /database/product.php | UTF-8 | 2,521 | 3.15625 | 3 | [] | no_license | <?php
/**
* This page is responsible for all
* queries related to
*/
function addProduct($productName, $productCategoryId, $productDescription, $productPrice, $productStock) {
global $conn;
$query = 'INSERT INTO product (id, name, description, price, cat_id, stock)
VALUES (... | true |
70b842968da94d7491f832a8cc242e42c0fddf89 | PHP | facebook/hhvm | /hphp/test/zend/good/ext/date/tests/DateTime_data-dates.inc | UTF-8 | 2,163 | 2.6875 | 3 | [
"PHP-3.01",
"Zend-2.0",
"MIT"
] | permissive | <?hh
/*
* Note: test names match method names in a set of PHPUnit tests
* in a userland package. Please be so kind as to leave them.
*/
function test(): void {
date_default_timezone_set('America/New_York');
/*
* Particular days
*/
echo "test__7: ";
examine_diff('2009-01-14', '2009-01-07', 'P+0Y0M7DT0H0M0S', 7)... | true |
1e96fe8d2b6c51afaa5b53fffd4a1198c9e11ef6 | PHP | zonasse/BinderApi | /writeLocalBooks.php | UTF-8 | 3,644 | 2.5625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Jaccob
* Date: 16/8/30
* Time: 下午12:40
* //文件下载
*/
header('Content-Type:text/html;charset=utf-8');
set_time_limit(0);
$mysqlLink = mysqli_connect("localhost","newRoot","ppz7long");
mysqli_set_charset($mysqlLink,'utf8');
if(!$mysqlLink)
{
die('数据库连接失败:'.mysqli_erro... | true |
3594a116677ed53ecc7fbd69f71e5bd97a55dd07 | PHP | xXxVladimirxXx/PhpStart | /controllers/CartController.php | UTF-8 | 4,943 | 2.625 | 3 | [] | no_license | <?php
class CartController {
public function actionIndex() {
$categories = array();
$categories = Category::getCatedoryesList();
$productsCart = false;
$productsCart = Cart::getProducts();
if ($productsCart) {
//Полная информация о товарах находящихся в кор... | true |
ffa1a471c6cfbe7b351648f796c31938e973a3c5 | PHP | Bloodyhands/louvre | /src/Service/StripeHandler.php | UTF-8 | 2,022 | 3.03125 | 3 | [] | no_license | <?php
namespace App\Service;
use Psr\Log\LoggerInterface;
use App\Entity\Booking;
class StripeHandler
{
private $loggerInterface;
public function __construct(LoggerInterface $logger)
{
$this->loggerInterface = $logger;
}
/**
* Récupération des erreurs lors du paiement stripe
*
* @param Booking $bookin... | true |
37c776daff2f489c5753a1c3420621323551d966 | PHP | nosrat-nosha/Library-Management-System-Final_Project- | /classes/userListClass.php | UTF-8 | 3,314 | 3.015625 | 3 | [] | no_license | <?php
class UserListClasses{
private $db;
private $fm;
function __construct()
{
# connecting db and formats
$this->db = new Database();
$this->fm = new Format();
}
public function userList($type){
$type = $this->fm->validator($type);
$type= mysqli_real_escape_string($... | true |
42352a3fd82c0fa085f730f843e2f495e551c3a6 | PHP | overtonpolicy/reliable-queue | /src/ChunkedReliableQueue.php | UTF-8 | 2,061 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace Altmetric;
use Redis;
use Psr\Log\LoggerInterface;
class ChunkedReliableQueue implements \Iterator
{
public $name;
public $queue;
public $size;
public $workingQueue;
private $reliableQueue;
private $redis;
private $logger;
private $value;
public function __construc... | true |
04afd648fbef6c28c91aea8883a0786957b34eac | PHP | dadeg/php-crowdflower | /tests/unit/AccountTest.php | UTF-8 | 1,759 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
require_once('CrowdFlowerTestCase.php');
use CrowdFlower\Account;
class AccountTest extends CrowdFlowerTestCase
{
/**
* @vcr account_get_jobs
*/
public function testGetJobs()
{
$account = new Account($this->getRequest());
// TODO: shouldn't depend on createJob method, chan... | true |
2b432e41e324d964338ecfb65025f0d64addde34 | PHP | oselwang/cmu | /app/Services/Bengkel/TipeJasaService.php | UTF-8 | 482 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Services\Bengkel;
use App\Models\Bengkel\TipeJasa;
class TipeJasaService
{
/**
* @var TipeJasa
*/
private $tipeJasa;
/**
* TipeJasaService constructor.
* @param TipeJasa $tipeJasa
*/
public function __construct(TipeJasa $tipeJasa)
{
$this->tip... | true |
aa11c5526c0077e98e256da04ed4e4b0f35f81b5 | PHP | Deepak-Ceg/Weblab | /From the lab/3516/New folder/7week/qn1spot.php | UTF-8 | 2,477 | 2.984375 | 3 | [] | no_license | <?php
$name="invalid";
$type="invalid";
$dropdown1="invalid";
$account_number="invalid";
$checkk="dummy";
function luhn($cdno){
$len = strlen($cdno);
$c = 0;
$eve = true;
$val = 0;
for($i=0;$i<$len;$i++)
{
if($cdno[$i] != '-')
{
if($eve)
{
$val+=($cdno[$i]*2)%10;
if(($cdno[$i]*2) > 1... | true |
76655f29f9cdb9c9105d231a5e9e6a6e45e64518 | PHP | FTW-Entertainment-LLC/AnimeFTW.tv-Site | /includes/crons/mail.cron.php | UTF-8 | 5,027 | 2.515625 | 3 | [] | no_license | <?php
/****************************************************************\
## FileName: email.cron.php
## Author: Brad Riemann
## Usage: Checks for emails to be sent out from the Database
## and will send them, intervules are set by the cron job
## Copyright 2012 FTW Entertainment LLC, All Rights Res... | true |
8d6a69ba7b19ec09add6ec33995fa66067b4111e | PHP | HallelujahR/cczx | /app/Message.php | UTF-8 | 444 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Message extends Model
{
//
protected $fillable = [
'from_user_id','to_user_id','body'
];
//发送者与私信的关系 1-many
public function fromuser(){
return $this->belongsTo('App\User','from_user_id');
}
//接收者与私信的关系
p... | true |
425349cc1acf66c6036c52c41203c0288b8f0666 | PHP | MichaelCapera/Medical-App | /models/consulta.model.php | UTF-8 | 607 | 2.78125 | 3 | [] | no_license | <?php
require_once "conexion.php";
class ConsultaModel{
/*=============================================
= Register =
=============================================*/
static public function mdlConsulta($tabla, $datos){
$stmt = Conexion::conectar()->prepare("UPDATE $tabla SET banco = :banco WHE... | true |
4b8f59db4fed404db4a5a836ccba4815f0d07579 | PHP | kirill-kundik/supermetrics-test-task | /app/Application/Services/SupermetricsApiService.php | UTF-8 | 3,162 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
class SupermetricsApiService
{
private string $apiBaseUrl;
// private string $clientId; // if client id only for this application not for all users'
private UserService $userService;
public function __construct(UserService $userService)
{
$this->userService = $userService;
$t... | true |
7b23956cdeb236b2cd625e162b409d066997ef88 | PHP | JanaKrahe/PHP_Datenbanken | /classes/FelderInhalt.php | UTF-8 | 8,044 | 3.21875 | 3 | [] | no_license | <?php
/**
* Klasse zum Prüfen von Eingaben in den Seiten der Benutzerverwaltung
*/
class Pruefen
{
public $error = false;
public $hashpasswort;
/**
* Methode zum Prüfen der Benutzername-Eingabe
*/
public function pruefungBenutzername()
{
$name = $nameErr = "";
if ($_SERVER["REQUEST_METHOD"] =... | true |
5b0b9198394fb1eeb077663fc0ccb116c630914e | PHP | matejmalcic/PHPAcademyHomework5 | /Classes/Folder2/ClassName1.php | UTF-8 | 465 | 2.765625 | 3 | [] | no_license | <?php
namespace Classes\Folder2;
use Classes\AbstractClass;
use Classes\Extra\Prefix;
class ClassName1 extends AbstractClass
{
private $prefix;
private function setPrefix(): void
{
$this->prefix = new Prefix();
$this->prefix->setDate();
}
public function viewAct... | true |
da2a16de5d2e67e192e07d6f03ce5dfc3d4a9576 | PHP | hsientsungwu/IVWedding | /templates/getInstaPhotos2.php | UTF-8 | 1,071 | 2.71875 | 3 | [] | no_license | <?php
// Supply a user id and an access token
$userid = "27175354";
$accessToken = "27175354.ab103e5.6b4d954979d041d39747688af11d37f6";
// Gets our data
function fetchData($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, C... | true |
e7d3117bba0427e059688dfee998cb85ab8ee5e9 | PHP | AnyMarket/magento2 | /app/code/Anymarket/Anymarket/Api/ProductManagementInterface.php | UTF-8 | 256 | 2.59375 | 3 | [] | no_license | <?php
namespace Anymarket\Anymarket\Api;
interface ProductManagementInterface
{
/**
* GET configurable by simple api
*
* @param int $idProduct
* @return string
*/
public function getConfigurableBySimple($idProduct);
}
| true |
b49258b4a1165f36c9d7f6bf5ae3612653aee7d1 | PHP | vasiliyantufev/brain-games | /src/Games/Even.php | UTF-8 | 524 | 3.59375 | 4 | [] | no_license | <?php
namespace BrainGames\Games\Even;
use function BrainGames\Game\run;
const MIN_NUMBER = 1;
const MAX_NUMBER = 15;
const DESCRIPTION = 'Answer "yes" if number even otherwise answer "no".';
function startGame()
{
$getQuestionAndAnswer = function () {
$question = rand(MIN_NUMBER, MAX_NUMBER);
$a... | true |
60f721db3f081ca2bec7322c7d054dd1a4e4c701 | PHP | sergey07/algorithms | /sort/sort.php | UTF-8 | 611 | 3.28125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Sergey.I
* Date: 25.01.2017
* Time: 10:39
*/
/**
* Сортировка вставкой.
*
* @param $arr
* @return mixed
*/
function insertionSort($arr) {
$length = count($arr);
for ($j = 1; $j < $length; $j++) {
$key = $arr[$j];
// Вставка $arr[$j] в отсорти... | true |
18720903df6957afc1ca5db93f182690bab0c38e | PHP | iqzone/APYA | /admin/applications_addon/ips/gallery/modules_public/albums/rss.php | UTF-8 | 4,391 | 2.578125 | 3 | [] | no_license | <?php
/**
* <pre>
* Invision Power Services
* IP.Board v4.2.1
* Category Listing
* Last Updated: $LastChangedDate: 2011-05-20 06:00:55 -0400 (Fri, 20 May 2011) $
* </pre>
*
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/co... | true |
b7b7acd8f0801c1f3f6ce1eee71c3eb2ea23a3d7 | PHP | soniclasser/evaluacion_tecnica | /database/seeds/ProductoSeed.php | UTF-8 | 585 | 2.625 | 3 | [] | no_license | momkjjkj<?php
use Illuminate\Database\Seeder;
use App\Producto;
class ProductoSeed extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = [
'refrescos',
'papas',
'dulces',
'pan',
... | true |
14ca9d684feb6f30d70d537dadb298b9c8bd0f9a | PHP | aelian-repo/make-pdf | /src/QrCodeImage.php | UTF-8 | 1,230 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace Pdf\MakePdf;
use chillerlan\QRCode\QRCode;
use chillerlan\QRCode\QROptions;
use Pdf\MakePdf\Cell;
class QrCodeImage extends Cell {
public function create() {
$x = $this->GetX();
$y = $this->GetY();
$w = $this->getLineWidth();
$h = $this->getLineHeight();
$... | true |
0aab1b427052313a1452c606f9b04edd48cbc450 | PHP | haycal/pertemuan13 | /tampil.php | UTF-8 | 994 | 2.921875 | 3 | [] | no_license | <html>
<body>
<div id="content">
<?php
$query1=mysqli_connect("localhost","root","");
mysqli_select_db($query1, "mahasiswa");
$start=0;
$limit=5;
if(isset($_GET['id']))
{
$id=$_GET['id'];
$start=($id-1)*$limit;
}
$query=mysqli_query($query1,"select * from tabel_matakuliah LIMIT $start, $limit");
... | true |
99bdb7d0d9b4c53a0bf6a602b915c25a96ff466e | PHP | leinelissen/context | /app/Message.php | UTF-8 | 950 | 2.640625 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Message extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'message',
'channel_id',
];
/**
* Get the user that owns the message.
*
... | true |
7da9cdbfd6050b6ef59bba858df172eec945a601 | PHP | BGCX261/zibo-svn-to-git | /trunk/zibo_modules/zibo.html/src/zibo/library/html/view/HtmlView.php | UTF-8 | 3,408 | 3.125 | 3 | [] | no_license | <?php
namespace zibo\library\html\view;
use zibo\core\view\View;
use zibo\library\html\meta\Meta;
/**
* Abstract view for html output
*/
abstract class HtmlView implements View {
/**
* Array with Meta objects
* @var array
*/
protected $meta = array();
/**
* Array with inline java... | true |
64df0c7a6d7cbd81f44987e356dc3e4f2bc08286 | PHP | ouyangbuchifan/PHP | /oy/7z/test1.php | UTF-8 | 4,164 | 2.84375 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Examples</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="../css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
h1{text-align: center;}
.re... | true |
481884dc09fbc9120bc9cc1d8b1ef209f0197eee | PHP | chriswgerber/product-showcase | /includes/Metadata.php | UTF-8 | 2,997 | 3.171875 | 3 | [] | no_license | <?php
/**
* Summary
*
* Description.
*
* @link URL
* @since x.x.x
*
* @package {WordPress}
* @subpackage {Component}
*/
namespace ChrisWGerber\ProductShowcase;
class Metadata {
/**
* Key used to idenitify the data.
*
* @access public
* @since 1.0.0
*
* @var string
*/
public $... | true |
4803c2d2ee55ee604845dc0f3f7b5a0fb0cd5520 | PHP | doox911-opensource/laravel-odata | /src/Contracts/ODataCollectionContract.php | UTF-8 | 2,172 | 3.046875 | 3 | [] | no_license | <?php
namespace Doox911Opensource\LaravelOData\Contracts;
interface ODataCollectionContract
{
/**
* Добавить элемент
*
* @param mixed $item Элемент коллекции
* @return ODataCollectionContract
*/
public function add(mixed $item): ODataCollectionContract;
/**
* Очистить... | true |
57bd2fcd91a576a182c37e523aaf0d1e02bb6f48 | PHP | samirjisan/admin-userpanel | /app/Http/Controllers/UserRegisterController.php | UTF-8 | 1,107 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\user;
use Illuminate\Http\Request;
class UserRegisterController extends Controller
{
public function index()
{
return view('user.register');
}
public function register()
{
$this->validate(request(),[
'username' => 'requi... | true |
f1ee0634c209f997348312da6bde78af63a5ecc1 | PHP | edweld/gousto | /src/App/Service/RecipeService.php | UTF-8 | 2,286 | 3.03125 | 3 | [] | no_license | <?php
/**
* Recipe Service:
*
* This is the service container for handling recipe related data
*
* @author: Ed Weld <edweld@gmail.com>
* @package edweld/gousto <https://github.com/edweld/gousto>
* PHP version 7
*/
namespace App\Service;
class RecipeService extends BaseService {
/**
* Return one rec... | true |
6504da6bd332a8eaaf858094aff85458cd080f19 | PHP | JJS4ntos/plugin-rss | /src/Controllers/SyncController.php | UTF-8 | 2,149 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Controllers;
use App\Controllers\Controller;
use App\Controllers\FeedController;
use App\Controllers\PostController;
use \Feed;
class SyncController extends Controller {
private $cron_mode = false;
private $current_feed = ''; //current feed on cron loop.
private function cronAdd($item) {
... | true |
434a11f6cca3e4484fb9d3297e6b72945d35c9b4 | PHP | guillesgc/pos1 | /ajax/difuntos.ajax.php | UTF-8 | 1,491 | 2.515625 | 3 | [] | no_license | <?php
require_once "../controladores/difuntos.controlador.php";
require_once "../modelos/difuntos.modelo.php";
require_once "../controladores/tiposepultura.controlador.php";
require_once "../modelos/tiposepultura.modelo.php";
require_once "../controladores/ccuerpo.controlador.php";
require_once "../modelos/ccuerpo.m... | true |
4b08107c2aa5a31ca1f2208c954255f47f0629b3 | PHP | stevenyeahhh/save_developer | /models/EmpresaModel.php | UTF-8 | 3,117 | 2.578125 | 3 | [] | no_license | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of EmpresaModel
*
* @author jcaperap
*/
class EmpresaModel extends Model {
private $n... | true |
50a1acac10eb19c029bd419e1187d6950c4957ef | PHP | ThierryHund/projet_conf | /projet_conf/server/modele/dao/type_presentation.class.php | UTF-8 | 3,338 | 3.078125 | 3 | [] | no_license | <?php
require_once "connection.class.php";
class Type_presentation {
private $id_type;
private $nom_type;
public function __construct($id_type, $nom_type) {
$this->id_type = $id_type;
$this->nom_type = $nom_type;
}
// //////////////////////////////
// Créer un type de présentation
// //////////////... | true |
4f6c76c4f2f5b40015f63bd392ae4a6b320c000e | PHP | chelsninja/most | /template-parts/events.php | UTF-8 | 2,029 | 2.546875 | 3 | [] | no_license | <?php
/**
* Template Part: Events
*
* @package Wordpress
* @subpackage Most
*/
$omni_shows = get_most_shows('Omni','today');
if ( $omni_shows->have_posts() ) : ?>
<article class="events-today">
<h4>Omnitheatre Today</h4><?php
while ( $omni_shows->have_posts() ) : $omni_shows->the_post();
$show = get_post_m... | true |
864deeaf3826f96c432ecb8d04af65ef8312a398 | PHP | EdicsonMolina/SILBE | /php/menu/menu_admin/usuario/registrar_usuario.php | UTF-8 | 1,276 | 2.546875 | 3 | [] | no_license | <?php
require_once('../../../conexion/conexion.php');
if(empty($_POST)){ ?>
<script type='text/javascript'>
alert('## INGRESE DE FORMA CORRECTA ##');
window.location='administrador.php?p=usuario/crear_usuario';
</script>
<?php
}
$form_pass = $_POST['password'];
$hash = password_hash($form_pass, P... | true |
1749b18683254020f7dcc232f24935c25d485f5b | PHP | srshubham77/Automobile-Auction-System | /index.php | UTF-8 | 3,367 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | <script type="text/javascript">
function get_states(self) { // Call to ajax function
var model=document.getElementById("comp").value;
//alert(model);
var dataString="comp="+model;
//alert(dataString);
//alert("hello");
var http=new XMLHttpRequest();
var url="getstates.php"... | true |
1597d1b2d04c710c98f1a8e45084369007502dc7 | PHP | Saraaah25/mypro | /operator_new.php | UTF-8 | 319 | 3.609375 | 4 | [] | no_license | <?php
$var1 = 200;
$var2 = 100;
echo $var1 + $var2;
echo $var1 - $var2;
echo $var1 * $var2;
echo $var1 / $var2;
echo $var1 % $var2;
if ($var1 + $var2 == 300){ // remember that === is identical not equal
echo "true";
}
$var3 = 300;
$var3 +=100;
echo $var3;
if ( $var1 != $var2) //<> is not equa also
echo "true";
| true |
9ba4915ff53c183d339c74120a47e4382ca11cdb | PHP | jeremykendall/12-tdds-of-christmas | /library/Tdd/NumberNames.php | UTF-8 | 3,472 | 3.5625 | 4 | [
"MIT"
] | permissive | <?php
/**
* 12 TDDs of Christmas
*
* @link http://github.com/jeremykendall/12-tdds-of-christmas for the canonical source repository
* @copyright Copyright (c) 2012 Jeremy Kendall (http://about.me/jeremykendall)
* @license http://github.com/jeremykendall/12-tdds-of-christmas/blob/master/LICENSE MIT License
... | true |
6870c391efaa21a0fb8e326c73bbbace245f6f90 | PHP | nosun/lingerie-console | /libs/model/area.php | UTF-8 | 1,113 | 2.78125 | 3 | [] | no_license | <?php
class Area_Model extends Common_Model
{
/**
* @return Area_Model
*/
public static function getInstance()
{
return parent::getInstance(__CLASS__);
}
function getAreaCode($areaName){
global $db;
$sql = 'SELECT code FROM area WHERE LOWER(`name`) = ';
$sql .= '"'.strtolower(trim($... | true |
dabd5215f4a37f155fec3f4e0f3cde0864934918 | PHP | SAREhub/php_component_worker | /src/SAREhub/Component/Worker/Command/CommandReplyInput.php | UTF-8 | 212 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace SAREhub\Component\Worker\Command;
interface CommandReplyInput {
/**
* @param bool $wait
* @return CommandReply
*/
public function getNext($wait = false);
public function close();
} | true |
abf77b9588f02929670a1d0301c301a8201de623 | PHP | alexeyshockov/painter | /src/Painter/Painter.php | UTF-8 | 4,732 | 2.828125 | 3 | [] | no_license | <?php
namespace Painter;
use Imagine\Image\ImagineInterface;
use Imagine\Image\ImageInterface;
use Imagine\Image\Box;
use Imagine\Image\Point;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Buzz\Message\Request ... | true |
686d717c3dd651eb74cd64865856915bd2901581 | PHP | pokepay/partner-php-sdk | /lib/Request/CreateCpmTransaction.php | UTF-8 | 946 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
// DO NOT EDIT: File is generated by code generator.
namespace Pokepay\Request;
class CreateCpmTransaction extends Base
{
protected $method = 'POST';
public $responseClass = \Pokepay\Response\TransactionDetail::class;
private $cpmToken;
private $shopId;
private $amount;
public function ... | true |
af0dc796a17ec57893b407500b07507b070ebd72 | PHP | xhuixb/smartclassroom | /php/esborraMailings.php | UTF-8 | 1,232 | 2.609375 | 3 | [] | no_license | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
require '../classes/Databases.php';
//fem la connexió
//establim la connexió
$conn = new mysqli(Databases2::$host, D... | true |
067b75058959f8394c3468d655ce2c1ba53d5efe | PHP | renza9/Repository-Renza | /application/models/m_query.php | UTF-8 | 2,272 | 2.671875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class M_query extends CI_Model {
var $table = "users";
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function login($username, $password)
{
$this->db->select('*');
$this->db->from('users');
... | true |
001ff5533d22b559440d4616dd65c3462791c1f6 | PHP | tplessis/location-plugin | /updates/seed_france_states.php | UTF-8 | 1,892 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php namespace RainLab\Location\Updates;
use October\Rain\Database\Updates\Seeder;
use RainLab\Location\Models\Country;
class SeedFranceStates extends Seeder
{
public function run()
{
$fr = Country::whereCode('FR')->first();
$fr->states()->createMany([
['code' => 'FR-A', 'name' =>... | true |
15e2b73483e3bd817502770b85c219fc6860fb6c | PHP | exainsane/scp | /application/helpers/common_helper.php | UTF-8 | 3,129 | 2.65625 | 3 | [] | no_license | <?php
function site_title(){
return "Marva Security Checkpoint";
}
/**
* These are the regular expression rules that we use to validate the product ID and product name
* alpha-numeric, dashes, underscores, or periods
*
* @var current CI_Controller instance
*/
function query_finalize($instance){
... | true |
5d08d38dc626f07e7ce15c068b4c829079e8db1f | PHP | coco2053/tutoGrafikart | /livreor.php | UTF-8 | 1,358 | 2.671875 | 3 | [] | no_license | <?php
require_once('Entity\Message.php');
require_once('Entity\GuestBook.php');
require_once('header.php');
$guestBook = new Guestbook('files/livre');
if(isset($_POST['username']) && isset($_POST['message'])){
$message = new Message($_POST['username'], $_POST['message']);
if($message->isValid()) {
$gue... | true |
3a5a9e962032df41a9f11fc616656323f791a96f | PHP | axetrodome/alumniportal | /jobs/partners_login.php | UTF-8 | 2,853 | 2.53125 | 3 | [] | no_license | <?php
require_once '../core/init.php';
$partners = new Partner();
$partners_login = true;
$errors = [];
$loginErrs = [];
if($partners->isLoggedin()):
Redirect::to('../views/index.php');
endif;
if(Input::exists()):
if(Token::check(Input::get('token'))):
$validate = new Validation();
$validation = $validate->chec... | true |
54a395ef0c758469a19c25f34f852ecfda3c35bd | PHP | pymba86/miac-api | /src/Miac/Client/Message/GetRefBookPartial.php | UTF-8 | 763 | 2.8125 | 3 | [] | no_license | <?php
namespace Miac\Client\Message;
use Miac\Client\RequestOptions\GetRefBookPartialOptions;
/**
* Получить информацию со справочника
* @package Miac\Client\Message
*/
class GetRefBookPartial extends BaseWsMessage
{
/** @var string справочника */
public $code;
/** @var string версия */
public $... | true |
06f2508193898b0bee183f6e5bdca80e38b1087a | PHP | vikilaboy/fan-courier | /src/Plugin/Csv/CsvItem.php | UTF-8 | 1,452 | 3 | 3 | [] | no_license | <?php
namespace FanCourier\Plugin\Csv;
class CsvItem
{
use CsvMapping;
/**
* Array containing the csv item.
*
* @var array
*/
private $item;
/**
* Create a blank csv item.
*/
public function __construct()
{
$this->item = array_fill(0, count($this->getMat... | true |
8737479e4b5072ad796019daef862b77b2707b4c | PHP | alinoor-rahman/Bookshelf | /User Authentication _ Data Append/WebLabTask2/bkLoginTxt.php | UTF-8 | 631 | 2.734375 | 3 | [] | no_license |
<?php
$myfile = fopen("record.txt", "r") or die("Unable to open file!");
if(strlen($_POST["username"])==0){
echo "No Input On Username field!";
}
echo "<br>";
if(strlen($_POST["pass"])==0){
echo "No Input On Password field!";
}
echo "<br>";
$username = $_POST["username"];
$password = $_P... | true |
7e446fe924eccf59f3e5ca393694e007940f979f | PHP | xstupi00/Hospital-IS | /doctor-actions-records.php | UTF-8 | 23,468 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
$patient_id = $_GET['patient_id'];
$stmt = $dbconn->prepare("SELECT * FROM Person NATURAL JOIN Patient WHERE Person.Person_ID = Patient.Patient_ID AND Patient.Patient_ID = $patient_id");
$patientdead = false;
$patients = array();
if ($stmt->execute())
{
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) ... | true |
6408c1d30b6cd87f9cb7b2b4f378baed6df92880 | PHP | yesbabylon/b2 | /docker/backup/fs/export.php | UTF-8 | 1,267 | 2.609375 | 3 | [] | no_license | <?php
/**
*
* Export backup / upload
*/
if(!isset($argv) || !isset($argv[1])) {
die("missing mandatory argument\n");
}
define('DOMAIN_NAME', $argv[1]);
require_once('/home/'.DOMAIN_NAME.'/status/backup/config.inc.php');
(defined('DOMAIN_NAME')
&& defined('FS_DIR')
) or die("missing mandatory constant: check con... | true |
0612eed8061586dd22384a70f1f07d8e463fa9f3 | PHP | fedeakd/TPlaboratorioIV2016 | /ServidorTP/Persona/index.php | UTF-8 | 4,038 | 2.6875 | 3 | [] | no_license | <?php use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
require '../vendor/autoload.php';
require '../AccesoDatos.php';
require 'Cliente.php';
require 'Empleado.php';
include_once "Usuario.php";
$app = new \Slim\App;
$app->post('/altaEmpleado/{usuario}', func... | true |
df0400a757a2c73fe198ae573c950987ec0d45af | PHP | Bunkermaster/KandT | /index.php | UTF-8 | 893 | 2.75 | 3 | [] | no_license | <?php
require_once "connect.php";
// si l'utilisateur ne demande rien,
// j'affiche la page par defaut (teletubbies.php)
if(!isset($_GET['page'])){
$targetPage = "teletubbies";
} else {
// sinon j'essaie d'afficher la page demandee
$targetPage = $_GET['page'];
}
// je vais recuperer la page dans la base qui... | true |
1a1bb843aaaf571e3151789c674f25e315768dee | PHP | davez1000/dbo_dev | /src/Helper/DboHelper.php | UTF-8 | 2,343 | 2.65625 | 3 | [] | no_license | <?php
/*
* @file
* Helper function.
*/
namespace Drupal\dbo_dev\Helper;
use GuzzleHttp\Client;
use Symfony\Component\HttpFoundation\RequestStack;
/**
* Class DboHelper
*
* @package Drupal\dbo_dev\Helper
*/
class DboHelper {
/**
* GuzzleHttp\Client definition.
*
* @var GuzzleHttp\Client
*/
pr... | true |
0ccd2424e04160432b7b149181ba6903a4ad6d5a | PHP | greezybacon/Phlite-Db | /src/Db/Util/Uuid.php | UTF-8 | 4,036 | 3.015625 | 3 | [] | no_license | <?php
namespace Phlite\Db\Util;
/**
* Extremely lightweight Uuid implementation which loosely follows the
* Rfc4122 posting to create UUIDs using short and simple code. Emphasis is
* added to *loosely*, as simplicity as opposed to strict compliance is the
* goal. Also adds the ability to represent the Uuid as a st... | true |
2881db512300b1b3752034f267b14cadb8f0617e | PHP | IdealGeeks/secretarybird-webapp | /app/Console/Commands/AuthTokenGenerate.php | UTF-8 | 2,100 | 2.828125 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
class AuthTokenGenerate extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'auth:token';
/**
* The console command desc... | true |
5a09f82bb9398f9a88ad6e46fe6153e9e77d6758 | PHP | yossijacob/saturica | /saturica/src/front/backoffice/mysql.php | UTF-8 | 12,818 | 2.921875 | 3 | [] | no_license | <?php
//---------------------------------------------------------------------
function GetRecord($table,$id)
{
$query = "SELECT * FROM $table WHERE id=$id";
$result = mysql_query($query)
or die(mysql_error());
$row = mysql_fetch_row($result);
return $row;
}
//***************************************... | true |
a94816ed8b6b4ca28ce8ca25ccf894d20146f77a | PHP | hjc/Car-City | /Vehicle.php | UTF-8 | 16,735 | 3.40625 | 3 | [] | no_license | <?php
/**
* Created by JetBrains PhpStorm.
* User: Hayden
* Date: 2/13/13
* Time: 10:23 PM
* To change this template use File | Settings | File Templates.
*/
/**
* A class that represents the very basic concept of a Vehicle.
*
* NOTE: I normally do not use this much string interpolation, due to se... | true |
b8d10fd91ff645e1ba2a51746465dbd6b5995b05 | PHP | otrohost/ohplay-core | /app/Http/Controllers/ContentController.php | UTF-8 | 1,734 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Models\Content;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\ModelNotFoundException;
class ContentController extends ApiController
{
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
*... | true |
7dc8f2c758f5fbf5d369190f7e47e2d087e212cd | PHP | lmihai/fasttrackit_php2 | /Teodora/curs7/session.php | UTF-8 | 294 | 2.859375 | 3 | [] | no_license | <?php
//browser - server
session_start(); // serverul genereaza cheia
//$_SESSION['name'] = 'John'; //vrem sa salvam o variabila cu numele John in baza de date
//echo $_SESSION['name']; //accesam variabila
//ca sa stergem prima data folosim session_start() apoi:
unset($_SESSION['name']);
?> | true |
bcf47a52ee0cb2645d311293e57a121a1544c669 | PHP | wuyuanpei/Website_Projects | /File Sharing Site/login.php | UTF-8 | 564 | 2.625 | 3 | [] | no_license | <?php
//if the user enter nothing in the login, directly return
if($_GET['username']==''){
header("Location: NotFound.html");
exit;
}
//match the username with the entries in users.txt
$h = fopen("/srv/Module2-Group/users.txt", "r");
$linenum = 1;
while( !feof($h) ){
$user = trim(fgets($h));
if( $user == $_GET['user... | true |
016b7564059f6d59e4ec0ccf2915325b25867e23 | PHP | aarondalao/codemasterProjects | /backendProject/events/details.php | UTF-8 | 1,650 | 2.6875 | 3 | [] | no_license | //select * where
<?php
require("../includes/initialisation.php");
require("../includes/functions.php");
if(isset($_GET['eventID'])) {
$eventID = $_GET['eventID'];
}
echo $eventID;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="wid... | true |
99c7f2d98f8f296d1c0f72816178272b0ede8c6a | PHP | dimad3/thesis | /public/changepassword.php | UTF-8 | 2,504 | 2.65625 | 3 | [] | no_license | <?php
require_once __DIR__ . '/../includes/init.php';
$user = new User;
if ($user->isLoggedIn()) {
// Input::isSubmited() - check whether the form was submited (see forum)
// Returns TRUE if it was and FALSE if it was NOT
$form_submited = Input::isSubmited();
if ($form_submited == true) { // true or ... | true |
076b239245235038bb76b5088a09047ced5b1323 | PHP | Wmalain/GOM-postaxel | /admin.php | UTF-8 | 2,181 | 2.65625 | 3 | [] | no_license | <?php
require 'assets/inc/header.php';
if (isset($_POST['submit-login'])) {
$user_email = htmlspecialchars($_POST['user_email']);
$user_pass = htmlspecialchars($_POST['user_password']);
$sql = $db->query("SELECT * FROM user WHERE email = '{$user_email}'");
if ($row = $sql->fetch()) {
$db_id = $... | true |
43d0ab58717ba9136d49fc34783987e42a82aacf | PHP | mibexx/oxid-composermodules | /mbx/composermodules/reader/modulereader.php | UTF-8 | 1,832 | 2.890625 | 3 | [
"MIT"
] | permissive | <?php
namespace mbx\composermodules\reader;
class modulereader implements ReaderInterface
{
/**
* @var \oxModuleList
*/
private $moduleList;
/**
* @var string
*/
private $basePath;
/**
* modulereader constructor.
* @param \oxModuleList $moduleList
*/
publi... | true |
46dac2a18d47ebde56b7971597be19805f258e0e | PHP | webfactory/slimdump | /test/Webfactory/Slimdump/Config/ColumnTest.php | UTF-8 | 3,886 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace Webfactory\Slimdump\Config;
use PHPUnit\Framework\TestCase;
use SimpleXMLElement;
use Webfactory\Slimdump\Exception\InvalidDumpTypeException;
class ColumnTest extends TestCase
{
public function testProcessRowValueWithNormalConfiguration()
{
$xml = '<?xml version="1.0" ?>
... | true |
bcc16e079cf29ca7671d3fbf4752cf820006bba6 | PHP | pavelvolkov/xbk | /xbk/system_modules/core/xbkTemplateFileReader.php | WINDOWS-1251 | 4,694 | 2.765625 | 3 | [] | no_license | <?php
/**
* patTemplate_Reader_File patTemplate
*
* @version 1.0 2008-15-01
* @package xBk
* @author Pavel Bakanov
* @license LGPL
* @link http://bakanov.info
*/
class xbkTemplateFileReader extends patTemplate_Reader
{
/**
* reader name
* @access private
... | true |
498082c5e5ea7d8fa651eb55869c311abf58883f | PHP | VKaysarov/photoservice-yii2 | /modules/api/models/User.php | UTF-8 | 1,623 | 2.609375 | 3 | [] | no_license | <?php
namespace app\modules\api\models;
use Yii;
/**
* This is the model class for table "user".
*
* @property int $id
* @property string $first_name
* @property string $last_name
* @property string $phone
* @property string $passhash
* @property string $token
*
* @property Photo[] $photos
* @property Sha... | true |
e0a51b1162d7cbb4991f4038be1b1f420337efd8 | PHP | max2759/vente_voiture_ProjetWeb_PHP | /VIEW/employees.php | UTF-8 | 6,786 | 2.640625 | 3 | [] | no_license | <?php
// Formulaire d'ajout d'utilisateur
$form = new Form("POST", "../CONTROL/addUser.php", "formAddUser", "formAddUser");
$form->setText("Nom d'utilisateur", "nompre", "pseudo", "pseudo");
$form->setText("Nom", "nom", "nom", "nom");
$form->setText("Prenom", "prénom", "prenom", "prenom");
$form->setPassword("Mot de p... | true |
6e45f5e2dce1de1d7fffee2e2fc6f74574108f5f | PHP | aronquiray/base | /src/Criterion/Eloquent/ThisScopeCriteria.php | UTF-8 | 929 | 2.71875 | 3 | [] | no_license | <?php
namespace HalcyonLaravel\Base\Criterion\Eloquent;
use Prettus\Repository\Contracts\CriteriaInterface;
use Prettus\Repository\Contracts\RepositoryInterface;
class ThisScopeCriteria implements CriteriaInterface
{
/**
* @var string
*/
private $scopeName;
/**
* @var array
*/
pr... | true |
9c8a21419be4f0d31d29f86223f2cdd52db04f36 | PHP | mac2394q/aes-gp-source-platform | /app/model/grupoEmpresarial.php | UTF-8 | 1,441 | 2.765625 | 3 | [] | no_license | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of grupoEmpresarial
*
* @author Only Dev & OP
*/
class grupoEmpresarial {
private $idgrupo_empresaria... | true |
41a3668e5777157a66b4dc819fbdce09613a9197 | PHP | matang-dave/notification_bell_php_yii | /protected/commands/UpdateNotificationCommand.php | UTF-8 | 1,048 | 2.671875 | 3 | [] | no_license | <?php
class UpdateNotificationCommand extends CConsoleCommand
{
public function run($args)
{
$dummayNotifications = array(
"posted a photo on your wall",
"commented on your last video",
"liked your photo",
"commented on your video",
"commented on your status",
"is now friend wit... | true |
4e88555869882f5c5555ce652ba237afb6479c77 | PHP | thinkcmf/thinkcmf | /vendor/xia/migration/phinx/src/Phinx/Console/Command/SeedRun.php | UTF-8 | 4,116 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Phinx\Console\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInter... | true |
aa42d7e8df1c972a3dfbe75a3c4420405ba0f6af | PHP | thefrosty/wp-utilities | /src/Api/WpQueryTrait.php | UTF-8 | 5,643 | 2.65625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace TheFrosty\WpUtilities\Api;
use TheFrosty\WpUtilities\Plugin\Plugin;
use WP_Query;
use function _deprecated_argument;
use function apply_filters;
use function array_filter;
use function call_user_func;
use function esc_html__;
use function is_int;
use function json_encode;
use... | true |
35a29eb1d9bb24d8186216c14dd10bbde4a2eb29 | PHP | vincenzovolpe/laravel-base-crud | /app/Http/Controllers/ProductController.php | UTF-8 | 5,477 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Product;
use Illuminate\Http\Request;
class ProductController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
// Recupero tutti i vestiti con etichett... | true |
e6008a04819fe74a1988077d21a4aba0d3e8d272 | PHP | poymanov/yii2-shop | /shop/entities/Shop/Product/Photo.php | UTF-8 | 643 | 2.71875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace shop\entities\Shop\Product;
use yii\db\ActiveRecord;
use yii\web\UploadedFile;
/**
* @property integer $id
* @property string $file
* @property integer $sort
*/
class Photo extends ActiveRecord
{
public static function create(UploadedFile $file): self
{
$photo = new static();
... | true |
a07c9710c47c787218410aa1a99fe9ff2e945359 | PHP | xombiehamster/GreatElfventure | /footer.php | UTF-8 | 3,923 | 3.140625 | 3 | [] | no_license | <?php
#Generates navigation arrows to the desingated targets.
function getarrows($back,$next){
$str = 'Current year: '.$_SESSION["YEAR"];
$str .='<table id="nav"><tr>';
if(!is_null($back)){
$str .= '<td><a href="'.$back.'">BACK</a></td>';
}
$str .= '<td><a href="../index.php">Go home.</a></t... | true |