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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e23749a6ec2558f2694d851ab8a82ea55d81ee8c | PHP | ulisescruzescamilla/finicity-sdk | /src/Models/ReportSummary.php | UTF-8 | 4,071 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
namespace FinicityAPILib\Models;
use JsonSerializable;
/**
* @todo Write general description for this model
*/
class ReportSummary implements JsonSerializable
{
/**
* The Finicity report ID
* @required
* @var string $id public property
*/
public $id;
/**
* Finicity ID fo... | true |
7071313c1a3cbecf79354e25904f0eb97bcf4356 | PHP | alexismolineau/OpenClassrooms | /PHP/POO/TP_2/index.php | UTF-8 | 4,423 | 3.1875 | 3 | [] | no_license | <?php
//------------------------------
// Charchement des Classes
//------------------------------
function loadClass($class){
require $class . '.php';
}
spl_autoload_register('loadClass');
//------------------------------
// Session Gestion
//------------------------------
session_start();
if (isset($_GET['log... | true |
e47b73fe4b910d3beaab00a746cb3a94340bd147 | PHP | jhonharoldpizarro2021/agricolaApp | /querys/q_informe_costos.php | UTF-8 | 3,328 | 2.515625 | 3 | [] | no_license | <?php
session_start();
ob_start();
$retorno = array();
if( $_POST ){
include "../functions.php";
$con = start_connect();
if( $con ){
switch ( $_POST["opcion"]){
case 1:
//Consultar todos
$query = " SELECT * FROM qryInformeCostos WHERE id_finca=".$_POST["finca"]." ";
$re... | true |
ae81f87dfe291586fe18e2cb1ef8530080064749 | PHP | RenLiZhou/laravel_admin | /app/Http/Controllers/Controller.php | UTF-8 | 982 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Support\Facades\Validator;
class Controller extends... | true |
f8b576e114554e94365232a843ca549b298cc800 | PHP | netgen-layouts/layouts-contentful | /lib/Routing/EntrySluggerInterface.php | UTF-8 | 305 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Netgen\Layouts\Contentful\Routing;
use Netgen\Layouts\Contentful\Entity\ContentfulEntry;
interface EntrySluggerInterface
{
/**
* Returns the slug for the provided entry.
*/
public function getSlug(ContentfulEntry $contentfulEntry): string;
}
| true |
b0d7c95069f8126848257dbca6f08b9480baf463 | PHP | hemanthcmbadoor/laravellogin | /app/Http/Controllers/RegisterController.php | UTF-8 | 2,253 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Models\Member;
use Illuminate\Http\Request;
class RegisterController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('layouts.register');
... | true |
42e089ec4638894bed82e40ad2bbde973a0fadab | PHP | Edwin-En/Accedo | /3. API con PHP/PokemonAPI/login.php | UTF-8 | 1,504 | 2.921875 | 3 | [] | no_license | <?php
// Inicio de sesion, requiere una cuenta ya registrada en la base de datos
// Se ingresa con email y contraseña
session_start();
if (isset($_SESSION['user_id'])) {
header('Location: /PokemonAPI/listapokemones.html');
}
require 'database.php';
if (!empty($_POST['email']) && !empty($_POST['password... | true |
4d2dfaa51b0edabb9fecb4217f28af34635c2a55 | PHP | eskguptha/php | /read_csv.php | UTF-8 | 824 | 2.921875 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>Read data from csv using php</h1>
<table class="table table-striped table-hover journal_table">
<thead>
<th>SKU</th>
<th>Name</th>
<th>Category</th>
<th>Price</th>
<th>Qty</th>
</thead>
<tbody>
<?php
$file = "p... | true |
19ddef5195ac36e49aef493cb42e45529ac43e66 | PHP | zikezhang/LaravelAdmin | /src/Verecom/Admin/User/Form/PasswordForm.php | UTF-8 | 2,222 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php namespace Verecom\Admin\User\Form;
use Event;
use Verecom\Admin\User\Repo\AdminUserInterface;
use Verecom\Admin\Services\Validation\ValidableInterface;
use Verecom\Admin\User\Repo\UserNotFoundException;
use Verecom\Admin\User\UserMailerInterface;
class PasswordForm implements PasswordFormInterface {
/**
... | true |
28f42776206c068a3fb1a5e3479eca82fefbbf6c | PHP | aheadWorks/module-langshop | /Api/Data/TranslatableResource/PaginationInterface.php | UTF-8 | 1,107 | 2.71875 | 3 | [] | no_license | <?php
namespace Aheadworks\Langshop\Api\Data\TranslatableResource;
interface PaginationInterface
{
/**
* Set page
*
* @param int $page
* @return $this
*/
public function setPage(int $page);
/**
* Get page
*
* @return int|null
*/
public function getPage(): ?... | true |
353404a5c1f02f03e98f03719301826d3078e4db | PHP | nyachomofred/SAICA_GROUP_WELFARE_MANAGEMENT_SYSTEM | /app/Paymenthistory.php | UTF-8 | 1,142 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Paymenthistory extends Model
{
//
protected $fillable=[
'student_id',
'amount_paid',
'payment_mode',
'reference_no',
'date_paid',
'receipt_no'
];
public function setStudentIdAtt... | true |
e363598aa8ad134e038d964173d661c38573641d | PHP | moahmedmish/code_repository | /app/Http/Controllers/RepositoryController.php | UTF-8 | 1,377 | 2.65625 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Http\Requests\FilterDataRequest;
use App\Services\RepositoryIntegrationServices;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
class RepositoryController extends Controller
{
/*
* @var OBJECT repositoryIntegrationServices
* */
private $repo... | true |
955f0a07895735b60f4327c756169bc827da9f9d | PHP | koftikes/symfony-adminlte-bundle | /src/Model/NotificationInterface.php | UTF-8 | 736 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
namespace SbS\AdminLTEBundle\Model;
/**
* Interface NotificationInterface.
*/
interface NotificationInterface
{
/**
* Types of notice.
*/
const TYPE_SUCCESS = 'success';
const TYPE_INFO = 'info';
const TYPE_WARNING = 'warning';
const TYPE_DANGER = 'danger';
/**
... | true |
d1e83656b94591d78e33d940af98b649c65c3f1a | PHP | junaidzx90/subs-activations | /inc/activated_users_table.php | UTF-8 | 10,472 | 2.671875 | 3 | [] | no_license | <?php
class Activated_Users extends WP_List_Table {
/**
* Prepare the items for the table to process
*
* @return Void
*/
public function prepare_items(){
$columns = $this->get_columns();
$hidden = $this->get_hidden_columns();
$sortable = $this->get_sortable_columns()... | true |
a010d320967cb31a4cd28b20f2eb45c8b8a536e5 | PHP | xiebruce/PicUploader | /vendor/cloudinary/cloudinary_php/tests/TagTest.php | UTF-8 | 45,334 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php namespace Cloudinary\Test;
use Cloudinary;
use Cloudinary\Cache\Adapter\KeyValueCacheAdapter;
use Cloudinary\Cache\ResponsiveBreakpointsCache;
use Cloudinary\Curl;
use Cloudinary\Test\Cache\Storage\DummyCacheStorage;
use DOMDocument;
use PHPUnit\Framework\TestCase;
/**
* Class TagTest
*/
class TagTest extends... | true |
98b05ed17c6b2767ad5c61a6fa19ce374ab51cf7 | PHP | geertvangent/ects | /Application/Discovery/Module/TrainingInfo/Implementation/Bamaflex/SubTrajectory.php | UTF-8 | 2,032 | 2.796875 | 3 | [] | no_license | <?php
namespace Ehb\Application\Discovery\Module\TrainingInfo\Implementation\Bamaflex;
use Ehb\Application\Discovery\DiscoveryItem;
class SubTrajectory extends DiscoveryItem
{
const PROPERTY_SOURCE = 'source';
const PROPERTY_TRAJECTORY_ID = 'trajectory_id';
const PROPERTY_NAME = 'name';
private $cour... | true |
dca0c6f61110f1915cc1f6da78b2e7d755eb7eed | PHP | codingmetta/webshop-plenty-planty.github.io | /scripts/registration-submit.php | UTF-8 | 1,466 | 3.203125 | 3 | [] | no_license | <?php
/**@file registration-submit.php
* @brief Script connects to database and registers a
* new user with submitted data.
*
* @author Talia Deckardt
*/
require'login.php';
$conn = new mysqli($servername, $username, $password, $dbname);
$salt1 = "qm&h*";
$salt2 = "pg!@";
... | true |
2551d4cd6a250f478909d7a972051a86d892c64f | PHP | bZez/SF5-GRC | /src/Entity/Partner.php | UTF-8 | 1,907 | 2.75 | 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\PartnerRepository")
*/
class Partner
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column... | true |
0bfe953c03db6e83aa9c8b79ff1b592349296d95 | PHP | mildphp/framework | /src/Mild/Support/Events/LocaleUpdated.php | UTF-8 | 320 | 2.640625 | 3 | [] | no_license | <?php
namespace Mild\Support\Events;
use Mild\Event\Event;
class LocaleUpdated extends Event
{
/**
* @var string
*/
public $locale;
/**
* LocaleUpdated constructor.
*
* @param $locale
*/
public function __construct($locale)
{
$this->locale = $locale;
}
} | true |
60cff38b1dc0ce25f5af042eab05ce7e87843af1 | PHP | impact-pt/impact-ios | /PhP/createApmt.php | UTF-8 | 882 | 2.703125 | 3 | [] | no_license | <?php
//Creates appointment in database
$con=mysqli_connect("db.sice.indiana.edu","i494f18_team13","my+sql=i494f18_team13","i494f18_team13");
if (!$con)
{ die("Failed to connect to MySQL: ".mysqli_connect_error. "\n"); }
else {
echo "Connected to the database";
}
$userid = $_GET['userid'... | true |
c4994521d8f9788f619f7a2e43097b1d4e9ef1e4 | PHP | kolholga/oop | /app/lib/User.php | UTF-8 | 2,109 | 3.671875 | 4 | [] | no_license | <?php
namespace Ddd\fff;
//private - свойства и методы доступные только в этом/текущем классе
class User
{
private $name; //свойство/ по умолчанию null
private $age; //свойство/ по умолчанию null
//private const LOGIN = 'admin'; // константа принадлежит классу
/*
public function __construct($n, $a) //... | true |
ed7403019c0b50ada63c9d649535c3fd06ce9a74 | PHP | pimpmypixel/confirmit-authoring | /src/StructType/QuestionFormBase.php | UTF-8 | 9,704 | 2.65625 | 3 | [] | no_license | <?php
namespace Confirmit\Authoring\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for QuestionFormBase StructType
* @subpackage Structs
*/
abstract class QuestionFormBase extends FormBase
{
/**
* The StartPosition
* Meta informations extracted from the WSDL
... | true |
a8c1eecbc7f0ebc4290620f66ae3b1e7e88ecff3 | PHP | MorisPae/PHPTraining | /20170508/test1.php | UTF-8 | 139 | 3.328125 | 3 | [] | no_license | <?php
$var_str = "Hello world";
$var_int = 8;
$var_float = 10.5;
echo $var_str . "<br>" . $var_int ."<br>". $var_float;
?>
| true |
b0b69ee2b1dcb7587636235c70dd5abfa6536d29 | PHP | orangeShadow/pastebin-api | /src/Repositories/PastebinRepository.php | UTF-8 | 2,570 | 2.859375 | 3 | [] | no_license | <?php
declare(strict_types = 1);
namespace OrangeShadow\PastebinApi\Repositories;
use OrangeShadow\PastebinApi\Exceptions;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Exception\ClientException;
class PastebinRepository
{
private $pastebin_host = "https://pastebin.com/";
private $api... | true |
9fc9c4355f07c88fe5e04a7839b35a84a69bfdf9 | PHP | HaruItari/target_21 | /common/components/WebUser.php | UTF-8 | 4,234 | 2.796875 | 3 | [] | no_license | <?php
/**
* Базовый класс, представляющий пользователя.
*/
class WebUser extends CWebUser
{
/**
* @see CWebUser::getRole()
*/
public function getRole()
{
if ($user = $this->getModel()) {
return Yii::app()->db->createCommand("
SELECT
... | true |
043b5fbce711fc4a876aba984ccdac3894bcf3ae | PHP | jfoxworth/makstudio | /database/migrations/2019_09_03_082133_create_builds_table.php | UTF-8 | 982 | 2.921875 | 3 | [] | no_license | <?php
/*
The designs table holds the overall data for each type of design. The instance represents
a given instantiation of a model or design. A build is an iteration of a given instance.
There can be multiple builds for each
*/
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
... | true |
c0db680a174e29ef21182cb0578569f8a3cee0d0 | PHP | JuanRobles2164/CustomLaravelVersion | /app/Console/Commands/Helpers/MakeViewHelper.php | UTF-8 | 663 | 2.78125 | 3 | [] | no_license | <?php
namespace App\Console\Commands\Helpers;
class MakeViewHelper{
/**
* @param string Cadena que representa la plantilla maestra a utilizar. Ej: Master_Layout
* @param array Array que representa las secciones de las que comprenderá la vista. Ej: content,custom_scripts
* @return string Cadena que r... | true |
a7f83a270a0a9909bc5da4f133bb044f4c090aa1 | PHP | divyaramanan/Server-Side-Processing---PHP | /authorize.php | UTF-8 | 885 | 2.8125 | 3 | [] | no_license |
<?php
$values = array();
foreach($_POST as $item) {
$item = trim($item);
$values [] = $item;
}
$user = $values[0];
$pass = $values[1];
$rep = $values[2];
$valid = false;
if(strlen($user)==0)
{
echo "*User Name is Required";
exit;
}
if(strlen($pass)==0)
{
echo "*Password is Required";
exit;
}
$raw_... | true |
52be89f86457ce0223d902d6f455a526a1406a5e | PHP | StereoFlo/Example-Laravel | /engine/app/Models/RoleUser.php | UTF-8 | 1,840 | 2.84375 | 3 | [] | no_license | <?php
namespace RecycleArt\Models;
/**
* Class RoleUser
* @package RecycleArt\Models
*/
class RoleUser extends Model
{
/**
* @var string
*/
protected $table = 'role_user';
/**
* @var array
*/
protected $fillable = [
'role_id', 'user_id',
];
/**
* @param in... | true |
76737d51eeedea01987cccb61efca92af5478956 | PHP | gaoxiangbo9527/php-manual | /Examples/Language Reference/Constants/Syntax/Example #1 Defining Constants.php | UTF-8 | 141 | 2.578125 | 3 | [] | no_license | <?php
define("CONSTANT", "Hello world.");
echo CONSTANT; // outputs "Hello world."
echo Constant; // outputs "Constant" and issues a notice.
| true |
26593dacc938a077d2d31d457ec392d924d72ad6 | PHP | pickupgame/pickupgame | /profilepage.php | UTF-8 | 1,937 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | <?php
session_start();
include_once('db/sql_functions.php');
if(isset($_GET['UserID']) && checkifUserExists($_GET['UserID']))
{
$userID=$_GET['UserID'];
$result=getUserInfo($userID);
$name=$result["Name"];
$age=$result["Age"];
$username=$result["UserName"];
$imageLocation=$result["ImageLocation"];
?>
<table cla... | true |
d98eb5ea9d92dbc065cb468b1b09f1893d52d0aa | PHP | mctech4/mvc-php | /lib/app/util/hash.php | UTF-8 | 593 | 2.78125 | 3 | [] | no_license | <?php
namespace app\util;
class hash
{
private static $password_algo = "whirlpool";
private static $password_salt = "passwordsalty";
private static $data_algo = "md5";
private static $data_salt = "datasalty";
public static function load($algo, $data, $salt) {
$ctx = hash_init($algo, HASH_HMAC, $salt);
hash_... | true |
c870b9fec403d5748348a56e9a65e0d0142cfbd6 | PHP | pengshizhong/code_repository | /php/testConstruct.php | UTF-8 | 117 | 2.875 | 3 | [] | no_license | <?php
class father{
function __construct(){
echo "father";
}
}
class son extends father{
}
$a=new son(); | true |
bcbc412bb57d4e6ac9819b9d7afd249e83a2c661 | PHP | echoHolaSarabia/CRM-PHP | /admin/modulos/mod_noticiasORIGINAL/ajax/recargar_planillas.php | ISO-8859-3 | 2,638 | 2.640625 | 3 | [] | no_license | <?php
include_once("../../../../configuracion.php");
include_once("../../../includes/conexion.inc.php");
if ($_POST['id_seccion'] != "nada") {
if ($_POST['id_seccion'] < 0)
$_POST['id_seccion'] = -$_POST['id_seccion'];
if (isset($_POST['id_seccion']) && ($_POST['id_seccion'] != "")) {
$c = "SELECT id_pad... | true |
c38a73e00956fa69f795112d70218a1a411e8558 | PHP | andrasq/quicklib | /test/lib/Quick/Rest/AppRunnerTest.php | UTF-8 | 9,073 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | <?
/**
* Copyright (C) 2013 Andras Radics
* Licensed under the Apache License, Version 2.0
*/
class Quick_Rest_AppRunnerTest_EchoController
implements Quick_Rest_Controller
{
public function echoAction( Quick_Rest_Request $request, Quick_Rest_Response $response ) {
foreach ($request->getParams() as... | true |
44e7c93fa4d1df486888989c30b2c93c15b8108b | PHP | netzmacht/tapatalk-client-api | /src/Netzmacht/Tapatalk/Api/Users/User.php | UTF-8 | 1,274 | 2.96875 | 3 | [] | no_license | <?php
/**
* @package tapatalk-client-api
* @author David Molineus <david.molineus@netzmacht.de>
* @copyright 2014 netzmacht creative David Molineus
* @license LGPL 3.0
* @filesource
*
*/
namespace Netzmacht\Tapatalk\Api\Users;
use Netzmacht\Tapatalk\Transport\MethodCallResponse;
class User
{
/**... | true |
b2db89ce7666651da494b824d1fa72f9e16588c9 | PHP | lx1986tao16/tandyBlog | /app/Http/Controllers/Admin/TagsController.php | UTF-8 | 1,636 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Admin;
use App\Models\Tag;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class TagsController extends Controller
{
public function index()
{
$tags = Tag::all();
return view('admin.tags.list', compact('tags'));
}
public functio... | true |
f6526cf0af8ac918ebb9e87c8f373b3c64a8d634 | PHP | wwrona/php | /powitalna.php | UTF-8 | 559 | 3.28125 | 3 | [] | no_license | <?php
$obrazki = array('1.png', '2.png', '3.png', '4.png', '5.png', '6.png');
shuffle($obrazki);
?>
<html>
<head>
<title> Strona powitalna</title>
</head>
<body>
<h1>Części samochodwe</h1>
<div align="center">
<table width = 100%>
<tr>
<?php
/* Poniższe wkłada obrazki w tabelę
for ($i = 0; $i <3; $i++) {
echo "<td... | true |
6f166812d885eb0b9a553d49bf06eef21f39b141 | PHP | marscore/hhvm | /hphp/test/zend/good/ext/standard/tests/strings/htmlspecialchars_decode_variation6.php | UTF-8 | 1,043 | 3.5625 | 4 | [
"Zend-2.0",
"PHP-3.01",
"MIT"
] | permissive | <?php
/* Prototype : string htmlspecialchars_decode(string $string [, int $quote_style])
* Description: Convert special HTML entities back to characters
* Source code: ext/standard/html.c
*/
/*
* testing whether htmlspecialchars_decode() is binary safe or not
*/
<<__EntryPoint>> function main() {
echo "*** Testing... | true |
0854c5788103ec628c79b802f09496d9beed8735 | PHP | JvMolli/2DawServidor | /examenPhp/controllers/persona.php | UTF-8 | 961 | 3.296875 | 3 | [] | no_license | <?php
class Persona {
public $nombre;
public $apellidos;
public $sexo;
public $edad;
public $telefono;
public $imagen;
public $contraseña;
function __construct($nombre, $apellidos, $sexo, $edad, $telefono, $contraseña, $imagen) {
$this->nombre = $nombre;
$this->apellido... | true |
db9724d43ce97b4f11e4d54e28ad08c40438f580 | PHP | rozinCodes/school-management | /API/application/controllers/api/Login.php | UTF-8 | 1,927 | 2.671875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
require APPPATH.'libraries/REST_Controller.php';
class Login extends REST_Controller
{
public function __construct()
{
parent::__construct();
//load database
$this->load->database();
$this->load->model(array("api/student_model"));
$this->load->model(array("api/com... | true |
64e2e363e1ec47d2ea38f353e75633e09098d4b8 | PHP | andreadlm/unito | /tweb/Vuvuzela/services/functions/authors.php | UTF-8 | 1,073 | 2.8125 | 3 | [] | no_license | <?php
# Selects a randomly ordered list of the :num authors that have written the most
# articles and have set the profile picture
const AUTHOR_QUERY = 'SELECT *
FROM (
SELECT coalesce(user.complete_name, user.username) as name, user.img
FROM us... | true |
7a9398b48162c198ba025f87637b1dc6ec76e7c0 | PHP | big-javascript-fan/HyonMoo-WooCom | /hyunmoo/framework/theme/shortcodes/one_half.php | UTF-8 | 686 | 2.734375 | 3 | [] | no_license | <?php
// Column one_half shortcode
//////////////////////////////////////////////////////////////////
function hyunmoo_shortcode_one_half($atts, $content = '') {
$default_atts = shortcode_atts(
array(
'last' => 'no',
), $atts);
# Overwrite Default Attributes
$atts = shortcode_atts( $defaul... | true |
a9c8407a8d2770795c860bcf971c304185a0313a | PHP | nachovazquez1990/mongril_club | /public_html/admin/model/consumo_class.php | UTF-8 | 4,804 | 2.59375 | 3 | [] | no_license | <?php
/***********************************************************
CLASE
- read_by_id($id)
- read_by_name($consumo)
- read_all_consumos($consumo, $precio, $consumo)
- create_consumo($consumo, $precio, $consumo(numero))
- delete_consumo($id)
- update_consumo($consumo, $precio, $consumo(numero))
********************... | true |
144c2685e7c760594d90bcc317930f9cd4c96572 | PHP | gcarneiro/sheer | /sheer/core/action/queryGenerator/Add.php | UTF-8 | 2,892 | 3.1875 | 3 | [] | no_license | <?php
namespace Sh\QueryGenerator;
/**
* @author guilherme
*
* Classe geradora de querys para inserção a partir de ActionHandlers
*
*/
class Add {
/*
* Query padrão
*/
const QUERY_PATTERN = 'INSERT INTO {table} {fieldlist} VALUES {values}';
/**
* @var \Sh\ActionHandler
*/
protected $actionHandle... | true |
7245389bf5ad8ab0a8174c6b297e4f8e673e62e0 | PHP | Ashiyro/Mon-Framework | /Components/Router/Router.php | UTF-8 | 1,445 | 2.96875 | 3 | [
"MIT"
] | permissive | <?php
namespace Components\Router;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Expressive\Router\FastRouteRouter;
use Zend\Expressive\Router\Route as ZendRoute;
/**
* Register and match routes
*/
class Router
{
/**
* @var FastRouteRouter
*/
private $router;
public function __constr... | true |
51418500e4421e4f5773232a7df85b39db603e6f | PHP | commercetools/commercetools-sdk-php-v2 | /lib/commercetools-api/src/Models/ShippingMethod/ShippingMethodAddZoneActionBuilder.php | UTF-8 | 1,760 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\ShippingMethod;
use Commercetools\Api\Models\Zone\ZoneResourceIdentifier;
use Commercetools\Api\Models\Zone\ZoneResourceIdentifierBuilder;
use Commercetools\Base\Builder;
use Commerceto... | true |
3965246462eb3b518e19185905c4c9a77144d973 | PHP | mcordingley/HashBin | /src/Hasher.php | UTF-8 | 222 | 3.109375 | 3 | [
"MIT"
] | permissive | <?php
namespace mcordingley\HashBin;
interface Hasher
{
/**
* @param string $input
* @return int A signed integer between PHP_INT_MIN and PHP_INT_MAX
*/
public function hash(string $input): int;
}
| true |
6adc43c4acb4f8c1a1f71a56821040b086718d64 | PHP | iamluc/GloomyPagerBundle | /RESTConnector/SlickGrid.php | UTF-8 | 1,538 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace Gloomy\PagerBundle\RESTConnector;
class SlickGrid extends RESTBase
{
public function __construct($request, $pager, array $config = array())
{
parent::__construct($request, $pager, $config);
}
public function handle()
{
// items per page
$perPage = $this->_r... | true |
e241420ba1f687eb110432bd2be84b2297dabe76 | PHP | hanxiao84322/coach_system | /models/Activity.php | UTF-8 | 5,233 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "activity".
*
* @property integer $id
* @property string $name
* @property integer $category
* @property integer $level_id
* @property integer $recruit_count
* @property string $sign_up_begin_time
* @property string $sign_up_end_ti... | true |
0fd6ed1f77dbe0c992f76b3fb542f199cfdef076 | PHP | JayDeeJaye/anaconda-jdj-f | /apis/apiHeader.php | UTF-8 | 947 | 2.796875 | 3 | [] | no_license | <?php
// Common exception handler, returns an error response with the message in it
set_exception_handler(function ($e) {
$code = $e->getCode() ?: 400;
header("Content-Type: application/json", NULL, $code);
echo json_encode(["error" => $e->getMessage()],JSON_PRETTY_PRINT);
exit;
});
// Get the request verb
$verb... | true |
673f1c6173757c3db81787284e7288497f6f10c2 | PHP | andrii-androshchuk/api-framework | /framework/configuration/configuration.class.php | UTF-8 | 7,908 | 2.84375 | 3 | [] | no_license | <?php
/**
* Configuration
*
* The class that alllows to work with configuration.
* All of them are loads from .cgf file from app path.
*
* Public methods:
* @method initialize(string : name of configuration's file);
* @method get(string : key);
* @method instance();
* @method loadFromArray(array... | true |
cc2cb4e911a729be112a191245f99d677d7e1800 | PHP | savalonso/SEVRI | /controladora/ctrUsuarios.php | UTF-8 | 3,286 | 2.734375 | 3 | [] | no_license | <?php
header("Content-Type: text/html; charset=iso-8859-1");
class ctrUsuarios {
function ctrUsuarios(){}
function insertarUsuarios(){
include_once ("../dominio/dUsuario.php");
include_once ("../data/dtUsuario.php");
$usuario = new dUsuario;
$usuario->setCedula($_POST['cedula']);
$usuario->setNo... | true |
970098632fbc6a98a0737868a77674a717fe5547 | PHP | fdask/nottingham | /src/Player.class.php | UTF-8 | 4,372 | 3.40625 | 3 | [] | no_license | <?php
namespace fdask\Sheriff;
/*
* represents a player in the game
**/
class Player {
/** constants to identify which player deck one might want to access **/
const DECK_HAND = 'deckhand';
const DECK_PUBLICSTAND = 'deckpublicstand';
const DECK_HIDDENSTAND = 'deckhiddenstand';
/** @var string the name of the pla... | true |
adb07974c5d21f7d1be6e10590ed5981423fc8bb | PHP | Noabs/PHPubuntu01 | /PhpToetsP7/index.php | UTF-8 | 2,010 | 2.796875 | 3 | [] | no_license | <?php
//hier linken we het bestand met de database conectie
require_once('databasecon.php');
session_start();
//check of de gebruiker is ingelogd
if (!isset($_SESSION['loggedInUser'])) {
header('Location: login.php');
die;
}
$land = isset($_GET['land']) && !empty($_GET['land']) ? 'land=' . $_GET... | true |
a4d5b6e12357c42a6300ec916103a6535a28b8ed | PHP | terion-name/PHPoAuthLib | /src/OAuth/OAuth2/Service/Odnoklassniki.php | UTF-8 | 5,251 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
namespace OAuth\OAuth2\Service;
use OAuth\OAuth2\Token\StdOAuth2Token;
use OAuth\Common\Http\Exception\TokenResponseException;
use OAuth\Common\Http\Uri\Uri;
use OAuth\Common\Consumer\Credentials;
use OAuth\Common\Http\Client\ClientInterface;
use OAuth\Common\Storage\TokenStorageInterface;
use OAuth\Common\Http\... | true |
1e6e97afa960bf779dbd3f783aece3be065fdbcb | PHP | lapaygroup/RussianPost | /src/Entity/AddressReturn.php | UTF-8 | 8,967 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace LapayGroup\RussianPost\Entity;
use LapayGroup\RussianPost\Enum\AddressType;
/**
* Адрес для услуги Легкий возврат
*
* Class AddressReturn
* @package LapayGroup\RussianPost\Entity
*/
Class AddressReturn
{
/** @var string */
private $address_type = AddressType::DEFAULT; // Тип адреса
/... | true |
b9ccf5e59a493afcf4d657eb451ffafc1c173edb | PHP | FnMartha/cs_project | /src/App/Controllers/Mpesa.php | UTF-8 | 1,497 | 2.625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: njerucyrus
* Date: 11/15/17
* Time: 10:53 AM
*/
namespace App\Controllers;
class Mpesa
{
private $_apiUsername;
private $_apiKey;
private $_productName;
private $_currencyCode = 'KES';
private $_mode;
public function __construct($mode = "live")
... | true |
426a694f40fe6a4153758443e9443b6ee289aa0a | PHP | markthelaw/bullshit_messenger_phalcon | /index.php | UTF-8 | 8,463 | 2.640625 | 3 | [] | no_license | <?php
use Phalcon\Mvc\Micro,
Phalcon\Db\Adapter\Pdo\Mysql as MysqlAdapter,
Phalcon\Logger\Adapter\File as FileAdapter;
error_reporting(E_ALL);
#include GCM
include 'gcm/GCM.php';
include 'vendor/apache/log4php/src/main/php/Logger.php';
$logger = Logger::getLogger("main");
// Use Loader() to autoload our model
$loader ... | true |
4aa13d8864919ed506c0b64c191ea7ed8f1a58be | PHP | webbinders/eng | /newEmptyPHP.php | UTF-8 | 836 | 3.109375 | 3 | [
"MIT"
] | permissive | <?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.
*/
/*
* Преобразует строку вида '2016-12-16 22:45:53' в метку времени
*/
$d1 = '2016-12-17 02:00:00';
$d2 = '2016-12... | true |
e3b16eb8589b1549761e097aae159ba52b910197 | PHP | NHZEX/nxAdmin-6x | /app/Service/DeployTool/EnvFormat.php | UTF-8 | 1,643 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: NHZEXG
* Date: 2019/1/28
* Time: 10:42
*/
namespace app\Service\DeployTool;
/**
* Class Ini
* @package Basis
*/
class EnvFormat
{
const HEADER_DATE = 'date';
/**
* 写入Env
* @param array $contents
* @param string $header
* @return string
... | true |
7f3f0883135a39702d26610cdbfa1710646055c0 | PHP | MistaZidane/pay | /src/index.php | UTF-8 | 2,638 | 2.640625 | 3 | [] | no_license | <?php
namespace SevenPay\PayUnit;
class PayUnit
{
public $apiKey;
public $apiPassword;
public $apiUser;
public $returnUrl;
public $amount;
public $transactionId;
public $notifyUrl;
public $mode;
/**
* @param string $apikey Your apikey
* @param string $apiPassword Your apiPa... | true |
4a5ab863710b4ae9c3d6dd07d041cf989038212c | PHP | Sywooch/ams | /models/ModelsPicture.php | UTF-8 | 887 | 2.625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "{{%models_pictures}}".
*
* @property integer $id
* @property string $_key
* @property integer $modelid
* @property integer $mediaid
* @property string $date_added
*/
class ModelsPicture extends \yii\db\ActiveRecord
{
/**
*... | true |
458e168a2225eb9d5a0c6e12b1ac6e8ed36b1fe5 | PHP | tux12042/Ptut | /html/traitement/creationCompte.php | UTF-8 | 3,201 | 2.578125 | 3 | [] | no_license |
<?php
session_start();
include('../outils/connexionBDD.php'); //code connection bdd
if(isset($_POST['nom']) && isset($_POST['mail']) && isset($_POST['mdp']) && isset($_POST['prenom']) && isset($_POST['num']) && isset($_POST['mdp_verif'])) { //verifie si form est rempli
echo'tout est entré correctement';
//... | true |
b6a8704ca088105467a5c207189d48cc8e80455f | PHP | ritenn/laravel-rplidar-a1 | /src/Main/Process.php | UTF-8 | 4,049 | 2.640625 | 3 | [] | no_license | <?php
namespace Ritenn\RplidarA1\Main;
use Illuminate\Support\Facades\Cache;
use Ritenn\RplidarA1\COM\Port;
use Ritenn\RplidarA1\Facades\Memory;
use Ritenn\RplidarA1\Facades\LidarCommands;
use Ritenn\RplidarA1\Interfaces\CommunicationInterface;
use Ritenn\RplidarA1\Interfaces\PortInterface;
use Ritenn\RplidarA1\Rpli... | true |
694d04d8c6bd56999d71799ea6c3c440e5f6bdf3 | PHP | Kennon1st/arokdb | /src/Entity/Faction.php | UTF-8 | 3,543 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Exception;
use Serializable;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="faction", uniqueConstraints={@ORM\UniqueConstraint(name="faction_code_idx", columns={"code"})})
* @ORM\En... | true |
bc7cb66c3eeb13f1112ceb40035cb8538db2f5c4 | PHP | YuloVS/SorteoMujer | /app/Http/Requests/StoreInscripcionRequest.php | UTF-8 | 2,036 | 2.71875 | 3 | [] | no_license | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreInscripcionRequest extends FormRequest
{
public function authorize()
: bool
{
return true;
}
public function rules()
: array
{
return [
'dni' => 'digits_between:7,8|requi... | true |
7d1214293ed681288823de4d65dc0de0a96a3c5a | PHP | CIFP-Virgen-de-Gracia/dwec2021_ejemplos | /ejemplosUD7/EjemploAjaxJSON/personas.php | UTF-8 | 1,054 | 2.59375 | 3 | [] | no_license | <?php
//echo $_POST['id'];
$dbserver = "localhost";
$dbuser = "inma";
$password = "Chubaca2020";
$dbname = "ejemplo";
$database = new mysqli($dbserver, $dbuser, $password, $dbname);
$jsondata = array();
$consulta = "SELECT * FROM personas WHERE DNI = '" . $_POST['id'] . "'";
if ($result = $database->query($consult... | true |
a2a89587ed9f8e128749511d5f1d01ed203bb574 | PHP | marciomrs4/sgv | /tests/system/model/TbPagamentoPedido.php | UTF-8 | 1,905 | 2.703125 | 3 | [] | no_license | <?php
namespace system\model;
use system\core\DataBase;
class TbPagamentoPedido extends DataBase
{
private $tablename = 'tb_pagamento_pedido';
/**
*
* @param unknown $dados
* @throws \Exception
*
* @example VALUES(:ppe_codigo, ped_codigo
tpa_codigo, ppe_valor)")
*
*/
public function sa... | true |
022240e3c5d204ea8b433eba1ebdd1a48e42f6d6 | PHP | mariuszkrzaczkowski/YetiForceCRM | /modules/SSalesProcesses/dashboards/ActualSalesOfTeam.php | UTF-8 | 2,524 | 2.578125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | <?php
/**
* Widget that displays the actual value of the team's sales.
*
* @copyright YetiForce S.A.
* @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
* @author Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
*/
/**
* Class to Team's actual sales widget.
*/
class SSalesProcesse... | true |
38324fc7eb6502245306cf9c2964619b00fe20a2 | PHP | jepsonwu/mycode | /dm/DM/Oauth/Qq.php | UTF-8 | 7,629 | 2.765625 | 3 | [] | no_license | <?php
/**
* QQ登陆
* User: Kitty
* Date: 14-9-10
*/
class DM_Oauth_Qq{
private $appid; //应用的唯一标识
private $appkey; //appid的密钥
private $callback_url; //回调地址
const GET_AUTH_CODE_URL = 'https://graph.qq.com/oauth2.0/authorize?'; //PC端获取code
const GET_ACCESS... | true |
f3983051d66366cf158f8c79317775b932a75fe1 | PHP | greezybacon/phlite | /src/Forms/Fields/TextboxField.php | UTF-8 | 2,581 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Phlite\Forms\Fields;
use Phlite\Forms\Field;
class TextboxField extends Field {
static $widget = 'TextboxWidget';
function getConfigurationOptions() {
return array(
'size' => new TextboxField(array(
'id'=>1, 'label'=>'Size', 'required'=>false, 'default'=... | true |
ee1890465b9d876772afbdcb4358d4c5217f15e2 | PHP | LeonNasc/PACO | /views/labref.php | UTF-8 | 1,433 | 2.640625 | 3 | [] | no_license | <?php
/**
* Arquivo de visualização de resultados laboratoriais
*/
?>
<?php if($P_MODE == true):?>
<div class ="container">
<br><br>
<div class= "row" style="overflow-x:auto">
<div class="panel panel-default">
<div class="panel-heading">
<h4> <?php echo $P_ID... | true |
7331affab9c1ebc59bd18cf8ac02d39184394883 | PHP | abdulrahimanpathan/ca | /app/Repositories/PointsRepository.php | UTF-8 | 447 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Repositories;
use App\Models\Result;
class PointsRepository
{
/*
* list all the fixtures
*/
public function getPoints()
{
$points = Result::select(\DB::raw('teams.*, SUM(results.points) as points'))
->leftJoin('teams', 'results.winner_id', '=', 'teams.id')
->groupBy(... | true |
0bc959d8e1740a10f2ee2d8cc0c32ddb025ab43c | PHP | nyyelin/jfood | /dashboard.php | UTF-8 | 9,097 | 2.53125 | 3 | [] | no_license | <?php
session_start();
if(isset($_SESSION['login_user']) && $_SESSION['login_user']["role"]=="admin"){
include 'db_connect.php';
require 'backend_header.php';
?>
<div class="row">
<!-- Earnings (daily) Card Example -->
<div class="col-xl-3 col-md-6 mb-4">
<div class=... | true |
28ee51fc60ad8a1aac270609454a015c925ba08d | PHP | p3web/E_Archive_uni | /model/data_access/access_field_of_study.php | UTF-8 | 4,524 | 2.703125 | 3 | [] | no_license | <?php
require_once '../model/database/data.php';
class access_field_of_study {
//=========== get field_of_study
public static function get_field_of_study() {
$data = data::selects("`field_of_study`", "");
if (count($data[0]) != 0) {
... | true |
e549383691c01cc79fd0f72442816f5dc67eaa79 | PHP | LitterPapmasa/yii2-shadow | /backend/models/Users.php | UTF-8 | 1,539 | 2.640625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "tbl_users".
*
* @property integer $user_id
* @property string $fname
* @property string $lname
* @property string $company
* @property string $user_status
* @property string $date_create
*
* @property TblHistory[] $tblHistori... | true |
07ded18caae8be8677274bf5824258d060d5b15c | PHP | webplumbr/uql-backend | /app/Lib/Helpers.php | UTF-8 | 1,296 | 3.40625 | 3 | [] | no_license | <?php
//Helper functions
/**
* Find the smallest value of the leaf in a binary tree
*
* @param stdClass $tree
* @return integer
*/
function get_smallest_leaf($tree)
{
$leaves = has_children($tree);
return is_array($leaves)? min(get_values($leaves)) : $leaves;
}
/**
* Accepts a multi-dimensional array an... | true |
5d3fd3dfcf8844a0335310b0cab287bf5f7535dc | PHP | ihksans/TA-Persuratan | /app/Exports/SuratKeluarExporter.php | UTF-8 | 463 | 2.578125 | 3 | [] | no_license | <?php
namespace App\Exports;
use Maatwebsite\Excel\Concerns\Exportable;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
use App\Exports\SuratKeluarPerTypeSheet;
class SuratKeluarExporter implements WithMultipleSheets
{
use Exportable;
public function sheets(): array
{
$sheets = [];
fo... | true |
21b00476d2a940bed366d1d983c492d4b2933c8f | PHP | machinchoseformation/dico-quebecois-sf | /src/AppBundle/Entity/TermVote.php | UTF-8 | 2,325 | 2.625 | 3 | [] | no_license | <?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use AppBundle\Entity\Term;
/**
* TermVote, stored mainly to avoid duplicates votes on same term
*
* @ORM\Table()
* @ORM\HasLifeCycleCallbacks
* @ORM\Entity(repositoryClass="AppBundle\Entity\TermVoteRepository")
*/
class TermVote
{
/**
... | true |
8783463d0acaae1b35345ee8b6883c1aa905ffd5 | PHP | aaronpk/p3k-micropub | /src/p3k/Micropub/Error.php | UTF-8 | 1,066 | 2.984375 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | <?php
namespace p3k\Micropub;
class Error {
private $_error;
private $_property;
private $_description;
public function __construct($error, $property, $description) {
$this->_error = $error;
$this->_property = $property;
$this->_description = $description;
}
public function toArray() {
r... | true |
2f952bb4dd92da4097a20f567aa3df74c3040ee2 | PHP | henrikperrochon/TripNaut | /Library/Models/WorldModel.class.php | UTF-8 | 701 | 2.75 | 3 | [] | no_license | <?php
namespace Library\Models;
use \Library\Entities\Country;
use \Library\Entities\Zone;
use \Library\Entities\Point;
abstract class WorldModel extends \Library\Model {
abstract public function getCountries($start = -1, $limit = -1);
abstract public function getCountry($country_id);
abstract public function ge... | true |
a64ec12c636c13ad67832381260a8c28e3b723e3 | PHP | phuongdm1987/dltl | /app/Fsd/CategoryPlaces/DbCatPlaceRepository.php | UTF-8 | 484 | 2.625 | 3 | [] | no_license | <?php namespace Fsd\CategoryPlaces;
use Fsd\Core\EloquentRepository;
class DbCatPlaceRepository extends EloquentRepository implements CatPlaceRepository {
public function __construct(CatPlace $model) {
$this->model = $model;
}
public function getAllCatPlace() {
return $this->model->get();
}
public functio... | true |
1fc34d2a67467fbe05d8e9fff6ec83195b526136 | PHP | nritr/iap | /admin/php/utils/ErrorManager.php | UTF-8 | 1,207 | 3.109375 | 3 | [] | no_license | <?php
class ErrorManager {
/**
*
* @var Exception
*/
private $ex;
private $data;
public function __construct(Exception $ex=null) {
$this->ex=$ex;
}
public function getCode() {
if ($this->ex!=null)
return $this->ex->getCode();
return 0;
... | true |
0c19e4ddd66f349d24a2217f2208dee27ff0e938 | PHP | onlineMeriam/ping_pong_game | /Joueur.php | UTF-8 | 315 | 3.484375 | 3 | [] | no_license | <?php
class Joueur
{
public function __construct(string $userName)
{
$this->userName = $userName;
// $this->id = $userId;
}
public function getName()
{
return $this->userName;
}
public function getId()
{
return $this->userId;
}
}
?> | true |
9b34a1378aaa37f97acc7b8e1315c503361bd3db | PHP | Code4PuertoRico/myturn | /counter.php | UTF-8 | 1,717 | 2.5625 | 3 | [] | no_license | <?php
$host= getenv('OPENSHIFT_MYSQL_DB_HOST'); // Host name
$usernamedb= getenv('OPENSHIFT_MYSQL_DB_USERNAME'); // Mysql username
$password_db= getenv('OPENSHIFT_MYSQL_DB_PASSWORD'); // Mysql password
$db_name= getenv('OPENSHIFT_APP_NAME'); // Database name
$tbl_name="Agencies"; // Tabl... | true |
ff397ec7d888996d388dca5e29cb5003f42d8f05 | PHP | Intervention/gif | /src/Encoder/ImageDescriptorEncoder.php | UTF-8 | 2,338 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace Intervention\Gif\Encoder;
use Intervention\Gif\ImageDescriptor;
class ImageDescriptorEncoder extends AbstractEncoder
{
/**
* Create new instance
*
* @param ImageDescriptor $source
*/
public function __construct(ImageDescriptor $source)
{
$this->source = $source... | true |
6520f42ad559a1c9a9b13edc5ea8a0667e2854a4 | PHP | vench/vl | /www/protected/models/Currency.php | UTF-8 | 3,070 | 2.796875 | 3 | [] | no_license | <?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Модель AR валюты.
*
* @author v.raskin
*/
class Currency extends CActiveRecord {
/**
* Актуальность курса валют (сутки).
*/
const TIME_ACTUAL = 86400;
/**
*
* @para... | true |
28a22a055800914a7854ee3827b9bafc473cdc6a | PHP | jetimob/juno-sdk-php-laravel | /src/Entity/Notification/Payer.php | UTF-8 | 625 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
namespace Jetimob\Juno\Entity\Notification;
use Jetimob\Http\Traits\Serializable;
use Jetimob\Juno\Entity\Address;
class Payer
{
use Serializable;
protected ?string $id;
protected ?string $name;
protected ?Address $address;
/**
* @return string|null
*/
public function getId(... | true |
e5dc81b86bf5c6d349038fec729bd7ca1e29f980 | PHP | parastoo-62/sample | /app/Framework/shortcodes/sw_thumb_nav_carousel.php | UTF-8 | 37,532 | 2.53125 | 3 | [] | no_license | <?php
/**
* Slider
* Shortcode for look carousel
*/
if ( !class_exists( 'sw_sc_thumb_nav_carousel' ) )
{
class sw_sc_thumb_nav_carousel extends swedenShortcodeTemplate
{
/**
* Create the config array for the shortcode button
*/
function shortcode_insert_button()... | true |
da7e9e885c4aa8bfab5b1ee8fc8ac750a26d15c3 | PHP | spencerparkin/UltimateApp | /GuestBookBackend.php | UTF-8 | 4,276 | 2.921875 | 3 | [] | no_license | <?php
/*
create table entries ( id int not null auto_increment,
name char(50) not null,
sign_date date not null,
sign_time time not null,
message char(255) not null,
primary key (id) ) engine=InnoDB;
*/
class Database
{
public $error = null;
private $pdoObject = null;
function Connect()
... | true |
f6db278fc80b87ada0d0d37c7731534748079bce | PHP | Codein-Labs/ibexa-seo-toolkit | /bundle/Model/PreAnalysisDTO.php | UTF-8 | 3,896 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types=1);
namespace Codein\IbexaSeoToolkit\Model;
use Doctrine\Common\Collections\ArrayCollection;
/**
* Class AnalysisDTO.
*/
class PreAnalysisDTO implements ArrayableInterface
{
/** @var int */
private $contentId;
/** @var int */
private $locationId;
/** @var int */
... | true |
bcb63957336cfb1a38aaede1e972012764b61e52 | PHP | diotro/birdspy | /src/Service/BfdSessionService.php | UTF-8 | 2,900 | 2.703125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace App\Service;
use App\Data\BfdSessionData;
use App\Data\RouteServerData;
use DateTime;
use Psr\Cache\CacheItemPoolInterface;
class BfdSessionService
{
const KEY_BFD_SESSIONS = '%s-bfd-sessions';
/**
* @var BirdReaderInterface
*/
private $birdReader;
/**
* @var BfdSes... | true |
1f2e8f6e258ba28ba94d165ac457e8964e63956a | PHP | GerardoMonrealJimenez/barcast | /DAL/TipoUsuarioDAL.php | UTF-8 | 4,942 | 2.765625 | 3 | [] | no_license | <?php
include_once($_SERVER['DOCUMENT_ROOT'].'/barcast/Objects/include.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/barcast/DAL/BD/BaseDatos.php');
/**
* Clase para hacer las consultas hacia la base de datos de la tabla tipousuario
*/
class TipoUsuarioDAL
{
function __construct()... | true |
682b021fb7914ff07987cda2ee9f8b351c00f35d | PHP | MarcoPedersen/aim | /app/Http/Controllers/Player/TeamPlayerController.php | UTF-8 | 2,767 | 2.5625 | 3 | [] | no_license | <?php
namespace App\Http\Controllers\Player;
use App\Models\Team;
use App\Models\User;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class TeamPlayerController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illumi... | true |
bbb46d04996db6391ee1342385fa3f1e7dfd779c | PHP | tjcsl/iodine | /modules/tjstar/tjstar.mod.php5 | UTF-8 | 1,373 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Shows useful links for the TJStar Research Symposium
*/
class TJStar extends Module {
private $template_args = [];
function init_pane() {
return "TJStar Information Page";
}
function display_pane($disp) {
$this->template_args['message']="O hai thar";
$disp->disp("tjstar_pane.tpl",$this->templ... | true |
ca69eb719c17c11864c86f975153f0e6795201a8 | PHP | riritueur/php | /TD5/index.php | UTF-8 | 3,443 | 2.828125 | 3 | [] | no_license | <!DOCTYPE html>
<?php
function creatTable(){
$array = scandir(".");
$files = array();
foreach($array as $elem){
$files[$elem] = filesize($elem);
}
print_r($files);
echo '<br/>';
}
function changeMod($path, $perm){
chmod($path, $perm);
echo sprintf... | true |
81f9691d7503769ec9661f8b1f4aa0e16af33fe6 | PHP | xianrenb/MyQuickNet | /src/php_class/com/googlecode/myquicknet/autorecord/MQNAutoRecordQueryResult.php | UTF-8 | 1,568 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
/**
* MQNAutoRecordQueryResult
* @package MyQuickNet
* @version 5.0
* @copyright (c) 2014 MyQuickNet Development Group
* @license http://opensource.org/licenses/MIT
*/
namespace com\googlecode\myquicknet\autorecord;
use com\googlecode\myquicknet\scalar\Int;
use com\googlecode\myquicknet\scalar\String;
/... | true |
4d53952c3300adf9b7ebeaa9154ed92a519cf735 | PHP | elevatedwebapps/bedrock | /web/app/plugins/the-elementor/includes/controls/order.php | UTF-8 | 1,839 | 2.734375 | 3 | [
"MIT",
"GPL-3.0-only"
] | permissive | <?php
namespace Elementor;
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* An 'Order By' select box control.
*
* @param array $default {
* @type string $order_by The selected order
* Default empty
* @type string $reverse_order Whether to reverse t... | true |
d75f6fc039e7b81b0cffc1ab014091bfb6539111 | PHP | ffquintella/CCM | /tests/units/objManagerTest.php | UTF-8 | 3,249 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by JetBrains PhpStorm.
* User: felipe.quintella
* Date: 27/06/13
* Time: 11:31
* To change this template use File | Settings | File Templates.
*/
namespace ccm\Tests;
use ccm\app;
use ccm\appsManager;
use ccm\linkedList;
require_once __DIR__."/../../app/vars.php";
require_once ROOT."/class... | true |