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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
12b7881e81d6a029c615be4f76fa867cbd47f088 | PHP | ayeV/ProgramacionIII2019 | /parcial2Modelo/Middleware/TokenMiddleware.php | UTF-8 | 1,517 | 2.734375 | 3 | [] | no_license | <?php
class TokenMiddleware{
public static function ValidarToken($request,$response,$next){
$token = $request->getHeader("token");
$validacionToken = Token::DecodificarToken($token[0]);
if($validacionToken["Estado"] == "OK"){
$request = $request->withAttri... | true |
d8aa227e67bcb361ede33d4f95110da015337609 | PHP | ah01/jq-probe | /src/info.php | UTF-8 | 1,572 | 2.875 | 3 | [] | no_license | <?php
header("Content-type: text/html; charset=utf-8");
?><html><head>
<title>jQuery Zkouščka - info</title>
</head><body>
<h1>Info</h1>
<?php
$files = array();
$handle = opendir('safe');
$counter = 0;
$space = 0;
while (false !== ($file = readdir($handle)))
{
if(is_file('safe/' . $... | true |
824583afcd5efc2f66c21327ef4c0f5d54f6eea5 | PHP | iamapen/dddStudy01 | /Shop/Infrastructure/Repositories/Domain/ItemDao.php | UTF-8 | 1,240 | 2.921875 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace Acme\Shop\Infrastructure\Repositories\Domain;
use Acme\Shop\Domain\Models\Item\ItemPrice;
use Acme\Shop\Domain\Models\Item\ItemRepository;
use Acme\Shop\Domain\Models\Item\ItemId;
use Acme\Shop\Domain\Models\Item\Item;
use Acme\Shop\Domain\Models\Item\Stock;
/**
* TODO Eloqu... | true |
b7f49d1e3f86688db84d3a4fa5470c7ecfc219ab | PHP | Kern046/asylamba-game | /system/Modules/Athena/Repository/CommercialShippingRepository.php | UTF-8 | 7,492 | 2.625 | 3 | [] | no_license | <?php
namespace Asylamba\Modules\Athena\Repository;
use Asylamba\Classes\Entity\AbstractRepository;
use Asylamba\Modules\Athena\Model\CommercialShipping;
class CommercialShippingRepository extends AbstractRepository
{
public function select($clause = '', $params = [])
{
$statement = $this->connection->prepare('... | true |
c0e42e82d91c38289d0fd427d2d93165f99e27cd | PHP | rasclatt/exigo-mlm | /src/Dto/Payment/GetTypes/Response.php | UTF-8 | 1,866 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace Exigo\Dto\Payment\GetTypes;
class Response extends \SmartDto\Dto
{
public ?CreditCardAccountResponse $primaryCreditCard = null;
public ?CreditCardAccountResponse $secondaryCreditCard = null;
public ?BankAccountResponse $bankAccount = null;
public ?WalletAccountResponse $primaryWalletAcc... | true |
052ca53a21aaffe42ea7af8269466503522ebfcf | PHP | halhal-halhal/lara_it_boot_camp | /app/Http/Logics/LessenLogic.php | UTF-8 | 4,525 | 2.8125 | 3 | [] | no_license | <?php
namespace App\Http\Logics;
use App\Http\Models\LessenModel;
use Exception;
use Redirect;
class LessenLogic
{
private $lessenModel;
/**
* コンストラクタ
*
*/
public function __construct()
{
$this->lessenModel = new LessenModel;
}
/**
* レッスン情報を登録
*
*/
... | true |
e06891b2ec3e42fdb8f61497f5e7fd058316c71c | PHP | wxhphp/brophp | /admin/controls/login.class.php | UTF-8 | 1,244 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* PHPdoc...
* @File login.class.php
* @Encode UTF-8
* @Author admin@stush.cn
* @Date 2013-11-11
*/
class Login extends Action {
/**
* 显示登录页面
* login.class.php没有继承common.class.php
* 需要单独创建function index
*/
public function index() {
debug(0); //取消调试信息
$this->display();
}
//验证用户登录信息
public fun... | true |
9b6d7d41f148e71a43ee1feecd78b2aa86c6ddf8 | PHP | webdesigner7-eng/sample | /php_learning/day_1.php | UTF-8 | 1,175 | 2.953125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form action="new.php" method="get">
First name <input type="text" name="fname"><br>
last name <input type="text" name="lname"><br>
city<input type="text" name="city"><br>
contact<input type="text" name="contact"><br>
<input type="submi... | true |
554e3e3c996939b9aa033e10e2d38212cd0d90fa | PHP | Mizanurrahman2010/raspberry-fi-fingerprint-time-attendance-system-for-small-size-office | /127_Time_Attendance_System/database/migrations/2017_10_14_053946_create_staffs_table.php | UTF-8 | 1,110 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateStaffsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('staffs', functio... | true |
e63d278387fea8835a58b99fbf09a9393150f353 | PHP | dse/where-is-the-tarc-bus | /compactify.php | UTF-8 | 4,371 | 2.859375 | 3 | [] | no_license | <?php
function compactify_slurp(&$string, $regex, &$matches) {
if (preg_match($regex, $string, $matches, PREG_OFFSET_CAPTURE)) {
$string = substr($string, strlen($matches[0][0]));
return true;
}
return false;
}
function compactify($json) {
$result = '';
$blah = $json;
$cursor = 0... | true |
a5c3f0ddaa0a7f3a0d38115929c512329e2a2630 | PHP | Aim-IT/centris | /components/FTP_Client.php | UTF-8 | 5,216 | 2.78125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: developer
* Date: 22.12.2015
* Time: 12:23
*/
namespace app\components;
use yii\base\Component;
use Yii;
use ZipArchive;
use Exception;
class FTP_Client extends Component {
public $zip_folder;
public $unpack_folder;
public function __construct() {
$... | true |
a9776a357df457ba47d581bac1b8f6deff894b11 | PHP | phacility/phabricator | /src/applications/phortune/provider/PhortuneTestPaymentProvider.php | UTF-8 | 3,354 | 2.53125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
final class PhortuneTestPaymentProvider extends PhortunePaymentProvider {
public function isAcceptingLivePayments() {
return false;
}
public function getName() {
return pht('Test Payments');
}
public function getConfigureName() {
return pht('Test Payments');
}
public function getCon... | true |
305acfcb97b89634164fe6895ffacad78bb6c616 | PHP | cerad/ddd-blog-sym | /src/Person/Doctrine/PersonRepository.php | UTF-8 | 976 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types=1);
namespace App\Person\Doctrine;
use App\Person\Model\Person;
use App\Person\Model\PersonAddress;
use App\Person\Model\PersonId;
use App\Person\Model\PersonName;
use App\Person\Model\PersonRepositoryInterface;
use Doctrine\ORM\EntityRepository;
use Symfony\Component\Uid\Uuid;
class Perso... | true |
c6c6acac1272e5f269734148f4ddbd31f5bef84e | PHP | sanderbrauwers/Minify | /minify/views/purchase/search.php | UTF-8 | 2,316 | 2.5625 | 3 | [] | no_license | <table class="table table-striped print">
<?php
echo '<tr><th>Voornaam</th><td>' . $this->contact[0]['fname'] . '</td></tr>';
echo '<tr><th>Achternaam</th><td>' . $this->contact[0]['lname'] . '</td></tr>';
echo '<tr><th>Straat</th><td>' . $this->contact[0]['street'] . '</td></tr>';
echo '<tr><th>Nr</th><td>' . $... | true |
cb17a793a24e9d65b71ead4c56aa39a537018fe6 | PHP | jesusotteson/CollegeRepository | /CS 2420 (Discrete Structures and Algorithms)/ecommerce/newUser.php | UTF-8 | 2,250 | 2.78125 | 3 | [] | no_license | <?php
require_once '../db.php';
$newuser = $_POST['newUsername'];
$newpass = $_POST['newPass'];
$newuser = stripslashes($newuser);
$newpass = stripslashes($newpass);
$newuser = mysqli_real_escape_string($link, $newuser);
$newpass = mysqli_real_escape_string($link, $newpass);
$hash = hash("ripemd128", $newpass);... | true |
0a4424e9afd5ebcf162200d79b3a938bd0271a34 | PHP | FutsalShuffle/lelerestapi | /src/Classes/MainRestApi.php | UTF-8 | 2,847 | 2.859375 | 3 | [] | no_license | <?php
namespace App\Classes;
use \Firebase\JWT\JWT;
use App\Exceptions\ExceptionInvalidData;
/**
* MainRestApi
*/
class MainRestApi {
const key = 'andrele82';
/**
* createJwt
* Создает JWT токен
*
* @param string $email
* @return string
*/
public static function createJ... | true |
6a7c74a9df5371cd6533f94b70fc46d1e46f11f9 | PHP | javierjaraya/SalaCunaHogarDeCristo | /Controlador/Mantenedores/MensajeDAO.php | UTF-8 | 7,403 | 2.796875 | 3 | [] | no_license | <?php
include_once 'Nucleo/ConexionMySQL.php';
include_once '../../Modelo/MensajeDTO.php';
class MensajeDAO {
private $conexion;
public function MensajeDAO() {
$this->conexion = new ConexionMySQL();
}
public function delete($idMensaje) {
$this->conexion->conectar();
$query =... | true |
3ada91104c4287a7601275289e96d25f4bffffa7 | PHP | eehmaann/Ripples | /database/seeds/CasesTableSeeder.php | UTF-8 | 926 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Seeder;
use App\Case;
class CasesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$cases=[
['My knee hurts','I want a stronger knee', '1'],
["I am out of work and can/'t get a job", ... | true |
c883902288baac99817aee7308ce3aa4ad6a5b1f | PHP | matyukhin-maxim/web | /core/Pager.php | UTF-8 | 2,927 | 3.265625 | 3 | [] | no_license | <?php
class Pager {
public $m_count; // количество страниц
public $m_size; // количество на странице
public $m_current; // текущая страцица
private $maxButtonCount;
private $url;
const CSS_FIRST_PAGE = '';
const CSS_LAST_PAGE = '';
const CSS_PREVIOUS_PAGE = '';
const CSS_NEXT_... | true |
3ecdfeacffe22ab60b1ab0ef95d4206c533bfd69 | PHP | ademkarakus/mvc | /system/libs/DataBase.php | UTF-8 | 2,300 | 3.234375 | 3 | [] | no_license | <?php
/**
* Description of DataBase
*
* @author Adem
*/
class DataBase extends PDO{
//put your code here
public function __construct($dsn, $user, $password) {
parent::__construct($dsn, $user, $password);
$this->query("SET NAMES UTF8");
$this->query("SET CHARACTER... | true |
4c22997485fe2fd86fce69f764c23b69d62bfeba | PHP | stevenalexander/zf-example-module1 | /src/ExampleCommon/Entity/Person.php | UTF-8 | 206 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
namespace ExampleCommon\Entity;
class Person
{
public $firstName;
public $lastName;
public function __toString()
{
return "Person: $this->firstName $this->lastName";
}
} | true |
bb36966561e60318744398638e1c9c94992e9f09 | PHP | marllonvital/projetoAlugae | /Alugae/app/User.php | UTF-8 | 1,940 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use App\Product;
use Laravel\Passport\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
use HasApiTokens;
protected $filla... | true |
8025a34cecf5b1f81833a732b9993d61a18d5b79 | PHP | alexeyinkin/twilio-client | /back/public/src/TwilioClient/Controller/WebhookController.php | UTF-8 | 1,792 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace TwilioClient\Controller;
use PDO;
use Psr\Http\Message\ServerRequestInterface;
use TwilioClient\Http\JsonResponse;
use TwilioClient\Http\RawResponse;
use TwilioClient\Service\CallService;
use TwilioClient\Storage\CallStorageService;
use TwilioClient\Storage\ProviderStorageServ... | true |
d3bb4585ec86a0b02e3bb91237e7691e692a5d88 | PHP | yuniindahsaari/gitar-akustikku | /app/Http/Controllers/Auth/LoginController.php | UTF-8 | 1,842 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Support\Facades\Auth;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Contro... | true |
7520763a0d5a57eb713c8eaead3339a2af0cee6c | PHP | munkialbright/G-Media | /account_settings.php | UTF-8 | 8,883 | 2.734375 | 3 | [] | no_license | <?php include("inc/header.inc.php"); ?>
<div class="div_wrapper">
<?php
if ($user) {
}
else{
die("<center><strong>You must be logged in to view this page!</strong> <a href='index.php'>Log In?</a></center>");
}
//First Name, Last Name and About You
$get_info = mysqli_query($conn,"S... | true |
f21276b2d8f3b488f6e77cf1358e18aedb36094c | PHP | jaconza/pipedrive-api-php | /src/Benhawker/Pipedrive/Library/Stages.php | UTF-8 | 1,592 | 3.03125 | 3 | [
"MIT"
] | permissive | <?php namespace Benhawker\Pipedrive\Library;
/**
* Pipedrive Stage Methods
*
* Stage is a logical component of a Pipeline, and essentially a bucket that can hold a number
* of Deals. In the context of the Pipeline a stage belongs to, it has an order number which
* defines the order of stages in that Pipeline.
... | true |
67c2cce9a245d37838acd074b83f760c1ff417cb | PHP | GregoryRusakov/yii1.1-user-auth-module | /models/Validations.php | UTF-8 | 3,369 | 2.765625 | 3 | [] | no_license | <?php
/* This is an OpenSource Yii 1.1 authentification module
* If you want to add or modify some code please open repository
* on GitHub. Any help will be appreciated.
* Author: Gregory Rusakov
* e-mail: greg@ontime.email
* You can find module updates on GitHub:
* http://gregoryrusakov.github.io/yi... | true |
b5b3f05c466ffd4f0e94a932d16ab77602cf1d6f | PHP | ArkaitzUlibarri/rtm | /database/seeds/SeederHelpers.php | UTF-8 | 3,473 | 2.765625 | 3 | [
"MIT"
] | permissive | <?php
use Faker\Factory as Faker;
use Illuminate\Support\Facades\DB;
trait SeederHelpers
{
/**
* Obtengo un array de los ids de provincias.
*
* @return array
*/
private function provinces()
{
$array = DB::table('provinces')
->select('id')
->get();
return array_pluck($array, 'id');
}
/**
* ... | true |
10570991f5477c760cfc4b96f2bfcc5ee0dccc71 | PHP | CallumDenby/eso-raidplanner | /src/EventSubscriber/DiscordBotSubscriber.php | UTF-8 | 8,187 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the ESO Raidplanner project.
* @copyright ESO Raidplanner.
*
* For the full license, see the license file distributed with this code.
*/
namespace App\EventSubscriber;
use App\Controller\Checks\TalksWithDiscordBotController;
use App\Entity\GuildMembership;
use App\Entity\User;
us... | true |
04e732d4a63e83e9bb4ac8982a36181147fbcd04 | PHP | nazmul199512/laravel-point-of-sale | /app/Http/Livewire/Order.php | UTF-8 | 2,657 | 2.625 | 3 | [] | no_license | <?php
namespace App\Http\Livewire;
use App\Cart;
use App\Product;
use Livewire\Component;
class Order extends Component
{
public $orders, $products = [], $product_code, $message='', $productInCart;
public function mount()
{
$this->products = Product::all();
$this->productInCart = Cart::a... | true |
b77ecd9ba724a4e939bc9897c6197d18f2ba0e67 | PHP | cedatif/itunes-podcast-feed-php | /src/Traits/RssEscape.php | UTF-8 | 389 | 2.515625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: ninoskopac
* Date: 02/05/2018
* Time: 00:02
*/
declare(strict_types=1);
namespace iTunesPodcastFeed\Traits;
trait RssEscape {
protected function escape(string $str): string {
// https://stackoverflow.com/a/11787940/1325575
$str = str_replace(array('&', ... | true |
e106026318654a75bd4939a5407144e639857b0c | PHP | thom855j/php-mvc-cmf | /app/Exceptions/Handler.php | UTF-8 | 335 | 3 | 3 | [
"MIT"
] | permissive | <?php
/*
* Exceptions handler
*/
namespace App\Exceptions;
use Exception;
class Handler extends Exception
{
public function exception($message = '')
{
//error message
$errorMsg = 'Error on line ' . $this->getLine() . ' in ' . $this->getFile()
. ': <b>' . $this->getMessage() . "</b> {$message}";
return $... | true |
424ad57c280e796cf15bdd3cca69533fc60e2d98 | PHP | leeuwin/city8dweb | /application/common/model/UserToken.php | UTF-8 | 1,271 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: drago
* Date: 2020/3/27
* Time: 19:34
*/
namespace app\common\model;
use think\facade\Log;
use think\Model;
class UserToken extends Model
{
protected $name = 'user_token';
public function getUserTokenByUid($uid)
{
try {
$info = $this->w... | true |
3dcd4cac5524f902e62f3db9a6c6f386b471f177 | PHP | snapt/nova-cli | /app/Api/NovaApi.php | UTF-8 | 768 | 2.734375 | 3 | [] | no_license | <?php
namespace App\Api;
use Exception;
use Illuminate\Support\Facades\Http;
class NovaApi
{
private $api_key;
public const API_URL = 'https://nova.snapt.net/api/';
public function __construct(string $api_key)
{
$this->api_key = $api_key;
if (empty($api_key)) {
throw new ... | true |
7f9ce72b2cb378f85e80986cc2fda8ac9c118ff5 | PHP | DaniHerrera/latevaweb | /blog/classes/post.php | UTF-8 | 2,198 | 3.421875 | 3 | [] | no_license | <?php
class Post {
private $id;
private $title;
private $content;
private $date;
private $conn;
public function __construct($servername,$username,$password,$dbname){
$this->servername = $servername;
$this->username = $username;
$this->password = $password;
$this->dbname ... | true |
e357e4ed9fb169dc9be0b22f84ff713a5bbf4fec | PHP | creditsuissesk/kmouseshoess | /cmhome.php | UTF-8 | 39,208 | 2.859375 | 3 | [] | no_license | <?php require_once('Connections/conn.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = ... | true |
3ef2136ad6d10b1fa38396628c0d693e8946848b | PHP | ulyanych/process-csv | /app/services/Csv/CsvParser.php | UTF-8 | 1,507 | 3.109375 | 3 | [] | no_license | <?php
namespace App\Services\Csv;
use App\Models\Repositories\HotelRepository;
class CsvParser
{
/* @var HotelRepository */
protected $hotel_repository;
public function __construct()
{
$this->hotel_repository = new HotelRepository;
}
public function run(array $csv_files)
{
... | true |
1e3bb45c8ef2212b1732950fb48cc38ea5a6639b | PHP | hjb1694/ktownV2 | /classes/CouponsDeals.php | UTF-8 | 1,781 | 2.859375 | 3 | [] | no_license | <?php
class CouponsDeals
{
protected $pdo;
function __construct($pdo)
{
$this->pdo = $pdo;
}
public function getAllDeals()
{
$qry = '
SELECT bl.business_name AS businessName, cd.title AS dealTitle, cd.start_date AS startDate, cd.end_date as ex... | true |
675f70d78d34535137582c6f3a0f562bca8b4ff7 | PHP | jaz303/phpx | /lib/functions.php | UTF-8 | 222 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace phpx;
function value_or_object($thing) {
return is_object($thing) ? $thing : new Value($thing);
}
function literal_or_object($thing) {
return is_object($thing) ? $thing : new Literal($thing);
}
?> | true |
8c1aa156d2f922c52da66b89813a4352cd18bcee | PHP | dasbit/4px-test-task | /app/Http/Controllers/UsersController.php | UTF-8 | 2,897 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Validation\Rule;
class UsersController extends Controller
{
/**
* Users list page
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function index()
{
$... | true |
66335f919d0d0e90911266316596224180f0ddc8 | PHP | abhishek10045/conference | /pay.php | UTF-8 | 2,262 | 2.640625 | 3 | [] | no_license | <?php
session_start();
require_once 'shared.php';
$name = $email = $address = $stripeToken = '';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$name = $_SESSION['name'];
$email = $_SESSION['email'];
$address = $_SESSION['address'];
$stripeToken = $_POST['stripeToken'];
... | true |
d5291ca763cf8bc33da0697b3b731293627f0801 | PHP | binidini/binidini | /src/Binidini/ApiBundle/Command/NewsletterCommand.php | UTF-8 | 3,405 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Binidini project.
*
* (c) Denis Manilo
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Binidini\ApiBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
us... | true |
a390f18480887f755144606c664a09110207a1fe | PHP | gitxiao5/html5 | /design/xiao5showbooks/manage/user/action.php | UTF-8 | 2,070 | 2.78125 | 3 | [] | no_license | <meta charset = "utf-8"></meta>
<?php
//执行用户信息的增、删、改的操作
//一、导入配置文件和函数库文件
require("dbconfig.php");
require("functions.php");
//二、连接MySQL,选择数据库
$link = mysql_connect(HOST,USER,PASS) or die("数据库失败!");
mysql_select_db(DBNAME,$link);
//三、获取action参数的值,并做对应的操作
switch($_GET["action"]){
case "add": //添加
//1. 获取添加信... | true |
2e6428b0642a98476dfe5b0edfe3e7c2a6dd1f3d | PHP | 3DFace/container | /src/dface/container/DefinitionSource.php | UTF-8 | 345 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace dface\container;
interface DefinitionSource
{
public function hasDefinition(string $name) : bool;
/**
* @param string $name
* @return callable
* @throws NotFoundException
*/
public function getDefinition(string $name) : callable;
/**
* @return iterable|string[]
*/
public function g... | true |
47719dc8739681372e2ae72e6c2723c807b35f0c | PHP | maitri2705/Library-Management-System | /Code/BookDetail.php | UTF-8 | 1,834 | 2.625 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<title>Book Detail</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="script.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="t... | true |
b004dc023f185cc6f14c6cbc182cb48e844e8867 | PHP | khaleelanjum/services | /app/Http/Requests/UpdateCategoryRequest.php | UTF-8 | 986 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
/*
* File name: UpdateCategoryRequest.php
* Last modified: 2021.01.21 at 22:12:17
* Author: SmarterVision - https://codecanyon.net/user/smartervision
* Copyright (c) 2021
*/
namespace App\Http\Requests;
use App\Models\Category;
use Illuminate\Foundation\Http\FormRequest;
class UpdateCategoryRequest extend... | true |
0a09a21beea419e837d8093fcb9b0fc976a7d7d4 | PHP | sled30/osint1 | /parser/avito/(остальное)exportcsv.php | UTF-8 | 3,086 | 2.5625 | 3 | [] | no_license | <?php
require_once 'config/db.connect.php';
$readfile=fopen("2.csv", "r");
$count=0;
while ($count < 10)
{
//Категория\подкатегория,Объявление,Цена,Владелец,Город,Номервладельца,Cсылка на объявление
$date=fgetcsv($readfile, 0, ",");
/*блок сохранения категории*/
$sql_select_category="select id from avito_catego... | true |
c592e9c21c70a786f353740d7abdda3f94a47412 | PHP | charlescampista/Laravel-Reference | /app/Donator.php | UTF-8 | 674 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Donator extends Model
{
protected $table = 'Donator';
protected $fillable = [
'name',
'image',
'description',
'donation',
];
public function tasks(){
return $this->hasMany(DonatorTask::class);... | true |
d8775224fc5b3b6dff3bace85dd3cc0a49299335 | PHP | Qafeen/Manager | /src/ManagerServiceProvider.php | UTF-8 | 1,036 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace Qafeen\Manager;
use Illuminate\Support\ServiceProvider;
use Qafeen\Manager\Console\Add;
/**
* Manager Service Provider.
*
* @author Mohammed Mudasir <hello@mudasir.me>
*/
class ManagerServiceProvider extends ServiceProvider
{
/**
* Register the application services.
*
* @return... | true |
c22550773dbb41b582f2e1f524d56ee2512d7553 | PHP | nasidyo/hdri-new | /model/AccountYearM.php | UTF-8 | 3,187 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
Class AccountYearM implements JsonSerializable {
protected $account_year_id;
protected $account_year_start;
protected $account_year_end;
protected $status;
protected $current_bugget;
protected $sub_group_id;
protected $bank_bugget;
protec... | true |
bad60431b022b6666790a5e23a96eafacd63a15e | PHP | suzanmanchandia/Loaner | /laravel/app/models/Location.php | UTF-8 | 1,084 | 2.765625 | 3 | [] | no_license | <?php
/**
* Location
*
* @property boolean $locationID
* @property string $locationName
* @property boolean $deptID
* @property-read \Department $department
* @property-read \Illuminate\Database\Eloquent\Collection|\Equipment[] $equipments
* @property-read \Illuminate\Database\Eloquent\Collection|\InactiveEqui... | true |
ce7858107030ed7e4b842c77d04c47493754f5c2 | PHP | imfaisalkh/nucleus | /helpers/walkers.inc.php | UTF-8 | 1,050 | 2.515625 | 3 | [] | no_license | <?php
#-----------------------------------------------------------------#
# Taxonomy Walker for Portfolio Filter
#-----------------------------------------------------------------#
class Nucleus_Category_Walker extends Walker_Category {
function start_el(&$output, $category, $depth = 0, $args = array(), $cu... | true |
4c6c3ad8145795ea46e0f21df79e10ca8c9a7307 | PHP | TheFly555/Portfolio_V2 | /opdrachten/phpVanhelden/opdracht14.php | UTF-8 | 392 | 3.0625 | 3 | [] | no_license | <DOCTYPE html>
<html>
<head>
<title>
</title>
</head>
<body>
<form action="" method="post">
<input type="text" name="input">
<input type="submit" name="submit" value="submit">
</form>
<?php
if(isset($_POST['submit'])){
$input = $_POST['input'];
if(is_numeric($input)){
echo "'{$input}' is numeric";
} else {
... | true |
3af1f3fa5b15a274abcd72a2f239b2867420a0b4 | PHP | thainq2/He-thong-quan-ly-ban-hang | /app/Http/Controllers/ManufacturerController.php | UTF-8 | 3,081 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Validator;
use Maatwebsite\Excel\Facades\Excel;
//MODEL CSDL
use App\Manufacturer;
class ManufacturerController extends Controller
{
/**
* API lấy danh sách nhà sản xuất
*/
p... | true |
8a3be4edb4df8fa1fca7597a0e65ab4aa67d2398 | PHP | WABruijntjes/Inf2A-Eindopdracht | /resetPassword_resetRequestPHP.php | UTF-8 | 2,535 | 2.546875 | 3 | [] | no_license | <?php
if(!isset($_POST["resetPasswordSubmit"])){
header("location:login.php");
}
include 'Logic/User_Service.php';
$User_Service = new User_Service();
/* //ZONDER MAIL SERVER WERKT DEZE CODE NIET. HIERONDER IS DE VERVANGENDE CODE DIE EEN WEBPAGINA OPENT DIE DE MAIL SIMULEERT/////////////////////////////... | true |
3628ccb1bed2e5c8ef47692688c3c287d1de6b61 | PHP | vsimko/gama-gateway | /GamaLib/classes/GAMA_Metadata_Writer.php | UTF-8 | 4,617 | 2.671875 | 3 | [] | no_license | <?php
/**
* This class provides facilities to write metadata
* in an RDF/XML format according to the GAMA Metadata Schema.
*
* Methods will be created dynamically from the schema definition
* and will be composed only of [0-9a-zA-Z_] characters.
* Other characters will be converted to underscore '_'.
*
* Exa... | true |
91abf12268bf7c27fb10623cc0316a93c598f189 | PHP | irinaslinko/preventiva | /include/branch.php | UTF-8 | 3,939 | 2.640625 | 3 | [] | no_license | <?php
require_once(dirname(__FILE__)."/init.php");
es_include("filesys.php");
es_include("localobject.php");
class Branch extends LocalObject
{
function Branch($data = array())
{
parent::LocalObject($data);
}
function LoadByID($branchID)
{
$query = "SELECT BranchID, CityID, BranchName, FullAddress, Address... | true |
291623b52b749a573eedc960af5b1a2b70dbf822 | PHP | s0rus/superancki-sklep | /src/classes/GetCategories.php | UTF-8 | 677 | 3.09375 | 3 | [] | no_license | <?php
class GetCategories {
private $DB;
function __construct($DB){
$this->DB = $DB;
}
public function displayCategories() {
$CATEGORIES_QUERY = "SELECT * FROM categories";
$CATEGORIES_RESULT = $this->DB->query($CATEGORIES_QUERY);... | true |
370fd03dde6054b51e19fda49886561896f13002 | PHP | sorkin19822/labs | /mylib/WrapperGuzzle.php | UTF-8 | 2,897 | 2.75 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: web
* Date: 23.07.2018
* Time: 16:23
*/
namespace mylib;
class WrapperGuzzle
{
private $apiKey;
protected $arrayBody = NULL;
private $idLab;
private $countPages;
const API_URL_GET_LABRATORIES = 'https://mylab.report/api/v1/mis/lab/getall';
const API... | true |
596216b0e4c914038a0280b2a682e90f1e279872 | PHP | christopher-fourgeaud/Mise-en-pratique-de-la-POO-en-PHP-Grafikart | /tests/Framework/RouterTest.php | UTF-8 | 4,652 | 3 | 3 | [] | no_license | <?php
namespace Tests\Framework;
use Framework\Router;
use PHPUnit\Framework\TestCase;
use GuzzleHttp\Psr7\ServerRequest;
class RouterTest extends TestCase
{
/**
* @var Router
*/
private $router;
public function setUp(): void
{
$this->router = new Router();
}
public functi... | true |
0ee2115b17bba02869989aee5e1c497575a51ded | PHP | raysrashmi/Peercoin.net | /tickerinfo.php | UTF-8 | 4,464 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
require('include/simple_html_dom.php');
// Configuration values
define('DB_PATH', 'ppcmarket.sqlite3');
define('INFO_EXPIRY', 90); // Seconds before cached data is re-downloaded
// Database schema is one table, as follows:
// CREATE TABLE ppcmarket(
// price REAL NOT NULL,
// market_cap REAL NOT NULL,
// ... | true |
7051c58867fab135c64f65d894dea74beeb9f46b | PHP | stepan2019/christian_transfers | /od/google-places.php | UTF-8 | 2,184 | 2.53125 | 3 | [] | no_license | <?php
$selected = 6;
$title="London places";
$breadcrumb = "London places";
$description = "London places";
include("include/_header.php");
?>
<h2>London Places</h2>
<form action="" method="get">
<input type="text" placeholder="station code" name="q" value="<?=$_GET['q'] ?>" />
</form><br>
... | true |
afe69b95bcad6421f16eb4681ce53899497f6f03 | PHP | cmorones/portal-pruebas | /wp-content/plugins/eventON/classes/class-evo-admin.php | UTF-8 | 1,359 | 2.515625 | 3 | [] | no_license | <?php
/**
* all wp-admin classes
*
* @author AJDE
* @category Admin
* @package eventon/Admin
* @version 2.2.17
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! class_exists( 'evo_admin' ) ) :
/** evo_admin Class */
class evo_admin {
private $class_name;
/... | true |
fa67046cdbcafbe6815160c4e980626ee947ec4d | PHP | jonathan-galpin/php-denkovi-controller-interface | /src/analog_sensor.php | UTF-8 | 499 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php
/**
* analog sensor class
*
* example, temperature sensor
*
* @author Jonathan Galpin, May 2014, jonathan@iqzero.net
*/
require_once 'base/input_output.php';
class analog_sensor extends input_output
{
public function __construct( $device_number )
{
parent::__construct( $device_number );
$this->se... | true |
a6dd6208a2f14ec645071022f5b88adfde443c2f | PHP | pmd30011991/XCMS | /CMS/classes/Loader.php | UTF-8 | 243 | 2.78125 | 3 | [] | no_license | <?php
Class Loader{
/* Function use to load any class by name any where. */
public static function import($className){
require_once(CLASS_DIR.DS.$className.'.php');
}
}
?> | true |
92ab27099ca8f630536d82a3b10810b2a81a8f15 | PHP | zenus/thinkphpLint | /test/stdlib/it/icosaedro/utils/test-Strings.php | UTF-8 | 2,484 | 2.734375 | 3 | [] | no_license | <?php
namespace it\icosaedro\utils;
require_once __DIR__ . "/../../../../../stdlib/all.php";
use it\icosaedro\utils\TestUnit as TU;
class testStrings extends TU {
function run(){
// Test isASCII() with single byte:
for($i = 0; $i < 128; $i++)
if( ! Strings::isASCII (chr($i)) )
throw new \RuntimeExcepti... | true |
e0158a6797de481fb1a32444d61051ff16a3380e | PHP | mkurlavicius/tictactoe | /database/migrations/2018_11_29_142849_remove_boards_point_squares_to_game.php | UTF-8 | 762 | 2.53125 | 3 | [] | no_license | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RemoveBoardsPointSquaresToGame extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('boar... | true |
6d94d1d90db278aa63b915a5584b40afc4626475 | PHP | nenitf/isb-conecta-core | /Tests/UseCases/CadastroUsuarioTest.php | UTF-8 | 2,323 | 2.71875 | 3 | [] | no_license | <?php
namespace Core\Tests\UseCases;
use Core\Exceptions\Validations\ValidationException;
use Core\UseCases\CadastroUsuario\{
CadastroUsuario,
CadastroUsuarioDTO,
};
use Core\Contracts\Repositories\{
IUsuariosRepository,
};
use Core\Contracts\Providers\{
ICriptografiaProvider,
};
class CadastroUsu... | true |
c9fed93af1b40f1189a1534c83c5ca36c0054e6f | PHP | taurcandance/shopFlowers_php_2015 | /class_FlowersDbManager.php | UTF-8 | 1,310 | 2.890625 | 3 | [] | no_license | <?php
require_once 'class_Flower.php';
class FlowersDbManager
{
private static $pdo;
public static function init()
{
if (self::$pdo != null) {
return;
}
try {
self::$pdo = new PDO('mysql:host=127.0.0.1;dbname=flowersDB1', 'root', '');
self::$pdo... | true |
f78f5d012c16a622805bdd584cd9727aaa28989b | PHP | outsideybif/raduga-grez | /catalog/model/stockist/stockist.php | UTF-8 | 743 | 2.59375 | 3 | [] | no_license | <?php
class ModelStockistStockist extends Model {
public function getStockist($stockis_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "oc_stockis_item WHERE stockis_item_id = " . $stockis_id);
return $query->row;
}
public function getStockists($data = null) {
if($data == null){
$query = $... | true |
f8ae3579820849dcbf3424f8e016bb3ed2a8ed9b | PHP | Jeket/xml | /src/Xml/Reader/Loader/xml_string_loader.php | UTF-8 | 686 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace VeeWee\Xml\Reader\Loader;
use Webmozart\Assert\Assert;
use XMLReader;
use function VeeWee\Xml\ErrorHandling\disallow_issues;
use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns;
/**
* @return callable(): XMLReader
*/
function xml_string_loader(string $xml):... | true |
e4796a43544462ec78d375e9b2bbdd804167bcba | PHP | konopelkosergeyv/game | /sectors/SectorInterface.php | UTF-8 | 263 | 2.71875 | 3 | [] | no_license | <?php
/**
* @author Sergey Konopelko <konopelkosergeyv@gmail.com>
* @copyright Copyright (c) 2018.
*/
namespace game\sectors;
/**
* Interface SectorInterface
* @package game\sectors
*/
interface SectorInterface
{
/**
* @return string
*/
public function getType();
}
| true |
581377061f940773eb9dff521c4a7a0bf6820787 | PHP | volodiapika/laravelmemberslist | /app/User.php | UTF-8 | 744 | 2.84375 | 3 | [] | no_license | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class User extends Model
{
protected $dates = ['deleted_at'];
protected $guarded = array('id');
/**
* Returns a formatted post content entry,
* this ensures that line breaks are returned.
*
* @return string
*/
public function... | true |
e1eb5295e71d6b3794e43444e7852e77e3b0028b | PHP | yycheng/minyx-lite-timothy | /functions.php | UTF-8 | 4,942 | 2.609375 | 3 | [] | no_license | <?php
/* Mini Pagenavi v1.0 by Willin Kan. */
if ( !function_exists('pagenavi') ) {
function pagenavi( $p = 4 ) { // 取当前页前后各 2 页,根据需要改
if ( is_singular() ) return; // 文章与插页不用
global $wp_query, $paged;
$max_page = $wp_query->max_num_pages;
if ( $max_page == 1 ) return; // 只有一页不用
if ( empty( $paged ) ) $page... | true |
6976b6114e8b722682aca7a5d84f1a11578895d0 | PHP | siberfx/laravel-telegram-bot | /src/Commands/CreateBotActions.php | UTF-8 | 1,137 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace SumanIon\TelegramBot\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\File;
class CreateBotActions extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'telegram:action {name : The class na... | true |
54c1d8bd99a6658bf46551df05ba93895dc29bbd | PHP | candyolivia/IF3110-2015-T1 | /numbervote.php | UTF-8 | 571 | 2.734375 | 3 | [] | no_license | <?php
if(isset($_GET['numvote']) && isset($_GET['id'])) {
$newVote = intval($_GET['numvote']);
$id = $_GET['id'];
echo $newVote;
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "stackexchange";
// Create connection
$conn = new mysqli($servername, $username, $password... | true |
82c3dc9400c38d9328f207fc46316c9e646d2bef | PHP | Manish-Pandya/USC | /rsms/src/includes/modules/ibc/classes/IBCResponse.php | UTF-8 | 2,256 | 2.84375 | 3 | [] | no_license | <?php
/**
*
*
*
* @author Matt Breeden, GraySail LLC
*/
class IBCResponse extends GenericCrud
{
/** Name of the DB Table */
protected static $TABLE_NAME = "ibc_response";
/** Key/Value Array listing column names mapped to their types */
protected static $COLUMN_NAMES_AND_TYPES = array(
"revision_id" =... | true |
b480b8c314ca84dc0d8d17738a46b696e9490612 | PHP | nicocabral/SES | /api/students/update.php | UTF-8 | 1,394 | 2.640625 | 3 | [] | no_license | <?php
require_once('../config/Middleware.php');
$middleware = new Middleware();
include_once '../config/Database.php';
include_once '../objects/User.php';
include_once '../objects/Student.php';
// get database connection
$database = new Database();
$db = $database->getConnection();
$user = new User($db);
$student =... | true |
c3f7df22f9ac750027e4baed5cfb2602664ecaad | PHP | Renanzinth/company | /class/Persistencia/PDOFactory.php | UTF-8 | 234 | 2.71875 | 3 | [] | no_license | <?php
/**
*
*/
class PDOFactory
{
private static $pdo;
public static function getConnection()
{
if(!static::$pdo) {
static::$pdo = new PDO('mysql:host=localhost;dbname=company', 'root', '');
}
return static::$pdo;
}
} | true |
f4a0d4b54e67683d6e1b96ccb0b281f862501608 | PHP | serafimdeveloper/leilao-gold | /api/Domain/Categorias/Categoria.php | UTF-8 | 547 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace Domain\Categorias;
use Domain\BaseModel;
class Categoria extends BaseModel {
protected $table = 'categorias';
protected $fillable = ['nome', 'descricao','categoria_id'];
public function itens() {
return $this->hasMany(\Domain\Itens\Item::class,'item_id');
}
public func... | true |
f253601db1c2bf4c424f0ec16399540734c0faf8 | PHP | rizwanayubi/fmove | /application/models/Agency_model.php | UTF-8 | 1,007 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
class Agency_model extends CI_Model
{
function __construct()
{
parent::__construct();
}
/*
* Get agency by id
*/
function get_agency($id)
{
return $this->db->get_where('agency',array('id'=>$id))->row_array();
}
/*
* Get all agency
... | true |
9e641b0ea17e74ae937320e2d27dfc8e9762ef42 | PHP | patrikrufino/livre | /App/Config/ConexaoBD.php | UTF-8 | 391 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
/*
* Classe de conexão com o banco de dados.
* Patrik Rufino
* 05/2021
*/
class ConexaoBD
{
private $serverName = "localhost";
private $userName = "root";
private $password = "";
private $dbname = "livre";
public function conectar()
{
$conn = new mysqli($this->serverName, $t... | true |
f9dfb9b1a7c570d597badf964dc41890a22db975 | PHP | subapp/app | /src/Web/Html/Element/TableElement.php | UTF-8 | 680 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
namespace Subapp\WebApp\Web\Html\Element;
use Subapp\WebApp\Web\Html\HtmlElement;
class TableElement extends HtmlElement
{
/**
* TableElement constructor.
*
* @param null $content
* @param array $attributes
*/
public function __construct($content = null, array $attributes = [])
{
par... | true |
cede8786bb075c679992145095af380692ad26d0 | PHP | alexislefebvre/dotclear-lab | /plugins/spamplemousse2/inc/class.progress.php | UTF-8 | 7,092 | 2.734375 | 3 | [] | no_license | <?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of Spamplemousse2, a plugin for Dotclear 2.
#
# Copyright (c) 2003-2008 Olivier Meunier and contributors
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
#... | true |
d0f16314102ad80fa862e26c7c3ae78d559ef7ba | PHP | KittyLomas/seed | /goals.php | UTF-8 | 962 | 2.71875 | 3 | [] | no_license | <?php
require 'scripts/connectDatabase.php';
session_start();
$db = new MySQLDatabase();
$db->connect();
// Retrive inputs from form submission and store in variables
$target = $_POST['target'];
$frequency = $_POST['freq'];
$due = $_POST['due'];
// saving date in chart-appropriate ... | true |
b35a4c3684b65042d801c785705a0d8815806939 | PHP | krillo/motiomera | /public_html/php/classes/ProfilDataVal.php | UTF-8 | 2,163 | 3.09375 | 3 | [] | no_license | <?php
/**
* Class and Function List:
* Function list:
* - __construct()
* - __getEmptyObject()
* - listAll()
* - listByprofilData()
* - getProfilDataObject()
* - loadById()
* - getVarde()
* - getProfilDataId()
* - setVarde()
* - setProfilDataId()
* - delete()
* Classes list:
* - ProfilDataVal extends Mobject
*/
/*
Med... | true |
5087b6fe344045fe24bf8a5b0039a8be26533b8b | PHP | HuangMan/v6 | /CMS/Admin/Model/ArticleModel.class.php | UTF-8 | 1,812 | 2.578125 | 3 | [] | no_license | <?php
Class ArticleModel extends Model{
public $table='article';
public $auto = array(
array('addtime','time','function',2,1),
array('updatetime','time','function',2,3),
array('admin_id','_getAdminId','method',2,3),
array(... | true |
20996f4a12bb570def6b82de330ad6b06d00b041 | PHP | hjacquir/HjDesignPatterns | /src/Hj/Structural/Adapter/With/Service.php | UTF-8 | 272 | 2.65625 | 3 | [] | no_license | <?php
/* Created by Hatim Jacquir
* User: Hatim Jacquir <jacquirhatim@gmail.com>
*/
namespace Hj\Structural\Adapter\With;
/**
* Contract for service like twitter, facebook, instagram ...
*/
interface Service
{
/**
* @param string $content
*/
public function post($content);
}
| true |
dc97f3415f9bc2a95f4470fa4a3d12a566beaedd | PHP | timmy3780/ussd | /src/Screens/Screen.php | UTF-8 | 4,819 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
namespace Dbilovd\PHP_USSD\Screens;
use Dbilovd\PHP_USSD\Contracts\ScreenContract;
use Dbilovd\PHP_USSD\Factories\SessionManagerFactory;
use Dbilovd\PHP_USSD\Managers\Configurations\Laravel as LaravelConfiguration;
use Dbilovd\PHP_USSD\Traits\InteractsWithSession;
abstract class Screen implements ScreenContrac... | true |
5463985e608a4d500d5e8f1ceb6222abebfc2222 | PHP | laura1819/AplicacionFinalDWEC | /model/Departamento.php | UTF-8 | 10,568 | 3.21875 | 3 | [] | no_license | <?php
/**
* Archivo Departamento.php
*
* negocio, crea departamentos y altera su estado
*
* @package modelo
*/
require_once 'DepartamentoPDO.php';
/**
* Class Departamento
*
* Clase que crea, borra, modifica y valida departamentos
*
* @author Laura Fernandez
*/
Class Departamento {
... | true |
fa84e99fbf1cfe175a6737d022138b3c46395e60 | PHP | mroduner/ppi-framework | /Test/Response/ResponseTest.php | UTF-8 | 2,572 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Unit test for PPI Response
*
* @package Core
* @author Paul Dragoonis <dragoonis@php.net>
* @license http://opensource.org/licenses/mit-license.php MIT
* @link http://www.ppiframework.com
*/
class PPI_ResponseTest extends PHPUnit_Framework_TestCase {
protected $_response = null;
public funct... | true |
bf9b63da42c565be5e8b0dc82afae21440e06c3e | PHP | JoKolov/ocp4 | /src/JNi/TicketingBundle/Service/PaymentService.php | UTF-8 | 1,751 | 2.765625 | 3 | [] | no_license | <?php
// src/JNi/TicketingBundle/Service/PaymentService.php
namespace JNi\TicketingBundle\Service;
use JNi\TicketingBundle\Entity\Invoice;
use JNi\TicketingBundle\Entity\Payment;
use Stripe\Stripe;
use Stripe\Charge;
use Stripe\Error;
class PaymentService
{
private $stripeSecretKey;
public function __construct($s... | true |
8059e0d490261c42a2ee17a2e141e64e17fa942a | PHP | axat17/Android_App | /kiddie_PHP/viewlogin.php | UTF-8 | 505 | 2.515625 | 3 | [] | no_license | <h2>Driver Details</h2>
<?php
include_once("common.php");
$q="select * from tblLogin";
$qr=mysqli_query($con,$q) or die(mysqli_error($con));
?>
<table border='1'>
<tr>
<th>Login ID</th>
<th>Phone No</th>
<th>Password</th>
<th>User Type</th>
<?php
while($res=mysqli_fetch_assoc($qr))
{
?>
<tr>
<td><?php echo $res[... | true |
01e045e3a310004943692bcfbbbe23d2517d6ef1 | PHP | emitkowski/laravel-demo | /app/Models/Player.php | UTF-8 | 1,216 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Models;
use App\Models\Traits\Activable;
use App\Models\Traits\Addressable;
use App\Models\Traits\AttachmentLimitable;
use Bnb\Laravel\Attachments\HasAttachment;
use Illuminate\Database\Eloquent\Model;
/**
* Class Player
*
* @package App\Models
*/
class Player extends Model
{
use Activabl... | true |
10d51c58468efc5b654e5adee4bffda0b8fba50c | PHP | inowas/api | /api/src/Model/Modflow/Boundary/DrainageBoundary.php | UTF-8 | 2,151 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace App\Model\Modflow\Boundary;
use GeoJson\Feature\Feature;
use GeoJson\Feature\FeatureCollection;
use GeoJson\GeoJson;
use GeoJson\Geometry\Geometry;
use RuntimeException;
final class DrainageBoundary extends FeatureCollection implements BoundaryInterface
{
public const T... | true |
76c13bcfbdff9dc407b79c3dbf33f4496a20ba30 | PHP | truong-tam-mulodo/FuelPHP_Learning | /fuel/app/classes/controller/hello1.php | UTF-8 | 598 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
class Controller_Hello1 extends Controller
{
public function action_category($a='1')
{
echo "tam_test"."<br>";
// 文字列を返す
if ($a=='1'){
echo "tam_test2 <br>";
//test();
}
echo "a=".$a."<br>";
if ($a=='<s>abc'){
echo "tam_test... | true |
c5bc0f7c54c3f723a026678bb2f7b127a949d0c8 | PHP | naaanazar/MachineLearning | /MachineLearningApp/app/Library/AWS/S3.php | UTF-8 | 1,834 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Library\AWS;
use Aws\S3\S3Client;
use Aws\S3\Exception\S3Exception;
class S3
{
private $bucket = 'ml-datasets-test';
private $client;
function __construct()
{
$this->client = $this->connect();
}
private function connect()
{
$s3 = new S3Client([
... | true |
1abb510c44338035ac5c3dc68d277467fa856afb | PHP | rose4jyoti/referralwebsite | /application/views/layout/pagination.php | UTF-8 | 1,116 | 2.828125 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
$max_pages = 10;
// Total element count
$current = isset($current) ? $current : Request::current()->param('page');
?>
<center>
<div class="pagination" >
<ul>
<?php if (Request::current()->param('page') > 1) : ?>
<li><?php echo HTML::anchor(Pagination::uri(Request::curr... | true |
a6b8c3064f1f4f8091f6303915e8733452ccdbf7 | PHP | alexconrad/x-statement_analysis | /src/Service/StatementService.php | UTF-8 | 2,300 | 2.84375 | 3 | [] | no_license | <?php
namespace Misico\Service;
use Misico\DB\Tables\Exceptions\NotFoundException;
use Misico\DB\Tables\SysStatementStatsDao;
use Misico\Entity\StatementStatsRow;
class StatementService
{
/**
* @var SysStatementStatsDao
*/
private SysStatementStatsDao $sysStatementStatsDao;
public function _... | true |
e20d9bd474c14c16dad640a85f72b2bec29046b4 | PHP | stephaneerard/Imagine | /lib/Imagine/ImageInterface.php | UTF-8 | 4,331 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Imagine package.
*
* (c) Bulat Shakirzyanov <mallluhuct@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Imagine;
use Imagine\PointInterface;
use Imagine\BoxInterface;
use ... | true |