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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4b36def2db806398ce7169f6dfc4ecb3ea2aef1d | PHP | daedwards767/MscProject2 | /worker/UnavailabilityCalendar.php | UTF-8 | 578 | 2.984375 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace worker;
class UnavailabilityCalendar extends Availability{
protected $dates = array();
public function __construct(Array $dates){
foreach ($dates as $date){
$this->addDate($date);
}
}
protected function addDate(String $date... | true |
1c7bc3f0c977c9e2106b1e7fb0e83b1c2614a269 | PHP | Joanpanisello/Codeigniter_HMVC | /application/modules/usuaris/models/model_example.php | UTF-8 | 271 | 2.578125 | 3 | [] | no_license | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Model_example extends CI_Model{
function __construct()
{
parent::__construct();
}
function hello()
{
return "HelloWorld, CodeIgniter it's amazing!";
}
}
| true |
62e86df8871779e824b580330a4a5e1bd21237f5 | PHP | wecodenlsystem/LanguageDetector | /src/Ideea/LanguageDetector/Section/Loader/YamlLoader.php | UTF-8 | 1,747 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
/**
* This file is part of the LanguageDetector package
*
* (c) Vitaliy Zhuk <zhuk2205@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code
*/
namespace Ideea\LanguageDetector\Section\Loader;
use Ideea\LanguageDetector\S... | true |
f384634cec6751bdbe3eae0d4ece8c6544709342 | PHP | EugenPopov/Mavok | /src/Mappers/Brand.php | UTF-8 | 370 | 2.75 | 3 | [] | no_license | <?php
namespace App\Mappers;
use App\DTO\Brand as BrandDto;
use App\Entity\Brand as BrandEntity;
class Brand
{
public function entityToDto(BrandEntity $entity): BrandDto
{
return new BrandDto(
$entity->getName(),
$entity->getUsdValue(),
$entity->getEurValue(),
... | true |
a3be25c20be82e2af4d35f4fe0651a885c9518a1 | PHP | mahmoud-ahmed-elqenawey/invoices | /app/Http/Controllers/SectionsController.php | UTF-8 | 3,110 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Models\Section;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class SectionsController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
... | true |
096056870fac05bf16139a858a8aac7e55c5fd5e | PHP | makuragi/utwitter | /include/model/profile_model.php | UTF-8 | 1,109 | 2.828125 | 3 | [] | no_license | <?php
class profile_model {
/**
* ユーザプロフィールを更新する
* @param unknown $db
* @param unknown $user_id
* @param unknown $user_name
* @param unknown $user_profile
* @return boolean
*/
public function profileEdit ($db, $user_id, $user_name, $user_profile, $user_profile_photo) {
try {
// SQL文を作成
$sql = ... | true |
67a3f7b2be6ebd0f63640ec551eab23982918607 | PHP | nani88/Ecart-Shopping-Website-Project- | /ECart/cart/admin-logincheck.php | UTF-8 | 1,187 | 2.53125 | 3 | [] | no_license | <?php
session_start();
if(($_POST['username']=='')||($_POST['password']=='')){echo "<script language='javascript'>alert('Please Enter Details')</script><script>window.location='index.php'</script>";
}else{
include('includes/dbconnect.php');
$tbl_name="admin"; // Table name
// username and password sent from form
$myus... | true |
6c5f34e5540b9034638a67042e1f6554cb05e690 | PHP | joceduardoarias/Parcial_-1_Prog_-3 | /p3_parcial/index.php | UTF-8 | 4,129 | 2.765625 | 3 | [] | no_license | <?php
include ("./entidades/usuario.php");
include ("./entidades/DAO.php");
include ("vendor/autoload.php");
include ("./entidades/producto.php");
$headers = getallheaders();
$token = $headers['token']??'';//Si no viene el token que pase un string vacio para que falle!
print_r($token);
// die();
$DAO =... | true |
e1f0c98d2f4e31a37aca24b6d4b713572e8ddbe3 | PHP | Feltsmg/capstone | /aptfinder/signup.php | UTF-8 | 2,220 | 3.03125 | 3 | [] | no_license | <?php
include("dbconnect.txt");
mysql_select_db("feltsmg",$mydb);
session_start();
function newUser()
{
$first_name=$_POST['firstname'];
$last_name=$_POST['lastname'];
$email=$_POST['email'];
$password=$_POST['password'];
if (filter_var($email, FILTER_VALIDATE_EMAIL))
{
$query = my... | true |
93d80f87f5d87793ee36bad0a4dc279881b9ade5 | PHP | anezashraf/hostable-podcast | /src/Command/Podcast/PodcastShowCommand.php | UTF-8 | 711 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Command\Podcast;
use App\Command\AbstractShowCommand;
use App\Entity\Podcast;
class PodcastShowCommand extends AbstractShowCommand
{
protected static $defaultName = 'podcast:show';
public function getEntity()
{
return new Podcast;
}
public function canAcceptArgument(... | true |
48be6f1da1a08ec77953014d93e9433730a7d685 | PHP | alimansoori/base-api | /app/Lib/Tables/Buttons/TButtonButtons.php | UTF-8 | 1,962 | 3.109375 | 3 | [] | no_license | <?php
namespace Lib\Tables\Buttons;
use Lib\DTE\Table\Button;
use Lib\DTE\Table\TableException;
trait TButtonButtons
{
/** @var Button[] $buttons */
protected $buttons = [];
public function getButtons()
{
return $this->buttons;
}
public function getButton($name)
{
if(!$t... | true |
2a9df156c6822b8a0ff26b2c6dedd2e028c22c5d | PHP | mako-framework/framework | /src/mako/reactor/CommandInterface.php | UTF-8 | 596 | 2.984375 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* @copyright Frederic G. Østby
* @license http://www.makoframework.com/license
*/
namespace mako\reactor;
/**
* Command interface.
*/
interface CommandInterface
{
/**
* Success status code.
*
* @var int
*/
public const STATUS_SUCCESS = 0;
/**
* Error status code.
*
* @var int
*/
... | true |
8d327e39841692d1181a92c6422f9e355e0a45be | PHP | loki0609/brackmond | /app/State.php | UTF-8 | 659 | 2.765625 | 3 | [] | no_license | <?php
namespace App;
/**
* Model (not a Database-related one) for State data, to be returned to the
* front-end app
*/
class State {
public static function build()
{
return [
'username' => 'Matt',
'loggedIn' => false,
'clients' => self::getClients(),
... | true |
04b34ca20a47d8d883bf2ceb6499bebc41ce5ea1 | PHP | nataliia-zarudna/Students | /framework/core/validation/validator.php | UTF-8 | 3,198 | 2.84375 | 3 | [] | no_license | <?php
namespace framework\core\validation;
use framework\core\ConfigManager;
class Validator
{
public static $VALIDATION_RESULT_PATH = "/framework/core/view";
public static $VALIDATION_RESULT_VIEW = "validationResult";
/**
* @param object $object
* @return array
*/
public function val... | true |
efed403029be9b422b1126220194ebd60114afd3 | PHP | brainsqueezer/angieframework | /project/commands/all.php | UTF-8 | 2,059 | 3.046875 | 3 | [] | no_license | <?php
/**
* Handler that will walk thorugh commands folder and list all awailable angie commands for a specific project
*
* @package Angie.project
* @subpackage commands
* @author Ilija Studen <ilija.studen@gmail.com>
*/
class Angie_Command_All extends Angie_Console_ExecutableCommand {
/**
*... | true |
a95a52cab12c122b7e4316a20a62a084513a62ee | PHP | antoniovenezia/php-badwords | /index.php | UTF-8 | 1,579 | 2.953125 | 3 | [] | no_license |
<!-- Creare una variabile con un paragrafo di testo a vostra scelta.
Stampare a schermo il paragrafo e la sua lunghezza.
Una parola da censurare viene passata dall’utente tramite parametro GET.
Stampare di nuovo il paragrafo e la sua lunghezza, dopo aver sostituito con tre asterischi (***) tutte le occorrenze della pa... | true |
6dc69492dc8654df6628f128bd1b28ae378aaaab | PHP | carlimretiro/lista_tarefas_contass | /config/excluir_tarefa.php | UTF-8 | 342 | 2.5625 | 3 | [] | no_license | <?php
// Buscar as configurações do banco de dados
require_once ("conexao.php");
$cod = $_GET['id'];
$sql = "DELETE FROM tarefas WHERE id = $cod ";
$resultado = mysqli_query($con, $sql);
// Retornando o resultado
if($resultado == true){
header("Location:../index.php");
} else {
echo "Falha ao tentar ex... | true |
2a814403f4977c555a21d41ca313f5c2e505626c | PHP | tradesouthwest/details | /admin/respond-crud.php | UTF-8 | 4,254 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
session_start();
if (!isset($_SESSION['user_session']))
{
header('Location: ../lib/user/login.php');
}
include 'header.php'; ?>
<title>Dev App for Looping Details</title>
</head>
<body>
<?php include 'admin-nav.php'; ?>
<div class="clearfix"></div>
<div class="container">
<div class="row">
<header c... | true |
7eb7aecc639a520be137d7826c5b0ab667609c76 | PHP | Fien-Dora/p1-25-coding-challenges-ds | /Emy/exercise_5.php | UTF-8 | 107 | 3.890625 | 4 | [] | no_license | <?php
//Sum of numbers from 1 to 10
$sum = 0;
for($i=0;$i<=10;$i++){
$sum = $sum + $i;
}
echo $sum;
| true |
8d07d81c029a5871e06405cb4968e6b19b5454f5 | PHP | LeVanTan-58131382/design_pattern_LP | /php_designpattern/10-decorator/RedShapeDecorator.php | UTF-8 | 502 | 3.3125 | 3 | [] | no_license | <?php
namespace Decorator;
require_once("Shape.php");
require_once("ShapeDecorator.php");
class RedShapeDecorator extends ShapeDecorator
{
protected $decoratedShape;
function __construct(Shape $decoratedShape){
parent::__construct($decoratedShape);
}
public function draw()
{
$this-... | true |
ce850a98cd85441bee1c8fa0d1bfae6f84ca203e | PHP | chinawilon/wilon-server | /src/Log.php | UTF-8 | 713 | 3.25 | 3 | [] | no_license | <?php
namespace Wilon;
class Log
{
public static function info(...$args): void
{
printf("\033[32m[%s]\033[0m %s\n", date("H:i:s"), self::string($args));
}
public static function error(...$args): void
{
printf("\033[31m[%s]\033[0m %s\n", date("H:i:s"), self::string($args));
}
... | true |
6dcbd044f3bc2ada04b58779c14e968632b2202c | PHP | josigam15/PhpToolbox | /PhpClass6/exercise1_cookie/page2.php | UTF-8 | 269 | 2.625 | 3 | [] | no_license | <?php
/*
* Web page #2: Read the cookie and color the
background according to the cookie value.
*/
$usercolor= $_COOKIE["color"];
?>
<html>
<body style="background-color: <?php echo $usercolor; ?>">
<title>Setting user color</title>
</body>
</html> | true |
229b9310213e9bd6aee8063571d4b1e7f059738c | PHP | hak005/Software_Project | /DateTime.php | UTF-8 | 326 | 3.34375 | 3 | [] | no_license | <?php
date_default_timezone_set("Asia/Beirut");
$CurrentTime=time();/*!< a variable to save the time we are in */
//$DateTime=strftime("%Y-%m-%d %H:%M:%S",$CurrentTime);
$DateTime=strftime("%B-%d-%Y %H:%M:%S",$CurrentTime);/*!< a variable that uses strftime php built in function to format the time */
echo $DateTim... | true |
6fd1eda5ae5f42a83100cc8e6ebf113d3cccdf5c | PHP | ahoy-jon/DokuWiki-on-JVM | /dokujvm/src/main/webapp/index.php | UTF-8 | 1,889 | 3.78125 | 4 | [] | no_license |
<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<head>
<title>Page HTML5 en PHP5</title>
</head>
<body>
<h1>Coucou, je suis une page HTML5 en PHP5 !</h1>
<h2>Quelques tests</h2>
<h3>Conversions de fous (atoi mon ami)</h3>
<pre>
<?php $a = 0; $b = 'x'; ?>
$a = 0; $b = 'x';
<?php if(FALSE == $a) : ?>
OK -... | true |
8744d265ad49d897a31eceb0dd2271f361a01c56 | PHP | jacevedo/SAPP | /webservice/ws-asistencia.php | UTF-8 | 2,558 | 2.65625 | 3 | [] | no_license | <?php
require_once '../entidades/asistencia.php';
require_once '../controladoras/controladora-asistencia.php';
require_once '../controladoras/controladora-login.php';
/*
* 1. Insertar Asistencias
* 2. Buscar Asistencia Fecha Institucion
* 3. Listar Asistecia Alumno
* 4. Modificar Fecha Alumno
*/
$jsonRecibido = $_REQ... | true |
5086e9841e85d3888d087c01a5a610bbf3b37eb0 | PHP | Internet2/comanage-registry | /app/Vendor/adodb5/tests/test-active-relationsx.php | UTF-8 | 25,688 | 2.5625 | 3 | [
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LGPL-2.1-or-later",
"GPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode... | permissive | <?php
/**
* ADOdb tests.
*
* This file is part of ADOdb, a Database Abstraction Layer library for PHP.
*
* @package ADOdb
* @link https://adodb.org Project's web site and documentation
* @link https://github.com/ADOdb/ADOdb Source code and issue tracker
*
* The ADOdb Library is dual-licensed, released under bo... | true |
3b4c72f0b0af8be909a785361dad71b9882f87ad | PHP | naufalislam/guntur | /add.php | UTF-8 | 964 | 2.828125 | 3 | [] | no_license | <?php
// koneksi database
include 'koneksi.php';
if(isset($_POST['simpan'])){
// menangkap data yang di kirim dari form
$cashier = $_POST['cashier'];
$product = $_POST['product'];
$category = $_POST['category'];
$prince = $_POST['prince'];
if(empty($cashier)){
echo "<p style=... | true |
8150ff65f7f8385eec0033cf725d6f614949dcf6 | PHP | michael-kusdya/thewatch-v1 | /backend/models/ServiceConfirmation.php | UTF-8 | 1,730 | 2.53125 | 3 | [] | no_license | <?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "service_confirmation".
*
* @property integer $service_confirmation_id
* @property integer $service_id
* @property string $account_name
* @property string $account_number
* @property string $bank_account
* @property integer $amo... | true |
8853f5db8c525edab75b638b03a6a0436f19ba25 | PHP | FranciscoNadal1/WebshopCMS | /app/Models/getSettings.php | UTF-8 | 1,813 | 2.609375 | 3 | [] | no_license | <?php
namespace Settings;
class getSettings{
static function getTheme(){
$results = \DB::select("SELECT theme FROM settings ");
return $results[0]->theme;
}
static function getProductListType(){
$results = \DB::select("SELECT typeList FROM settings ");
ret... | true |
4b6e2e08441b900225eea8d1e8c389b225019ebf | PHP | agentmishra/client_notices | /client_notices/client_notices_plugin.php | UTF-8 | 3,206 | 2.578125 | 3 | [] | no_license | <?php
/**
* Client Notices Plugin
*
* @package blesta
* @subpackage blesta.plugins.ClientNotices
* @copyright Copyright (c) 2005, Naja7host SARL.
* @link http://www.naja7host.com/ Naja7host
*/
class ClientNoticesPlugin extends Plugin {
public function __construct() {
Language::loadLang("client_notices_plug... | true |
d4707555f2c1128fc24d284cc9a769bfb7733c79 | PHP | Dobbelsteen/code9000 | /app/database/seeds/SchoolTableSeeder.php | UTF-8 | 2,858 | 2.53125 | 3 | [] | no_license | <?php
class SchoolTableSeeder extends Seeder {
/**
* Run the groupTable seeds.
*
* @return void
*/
public function run()
{
Eloquent::unguard();
$school = new School();
$school->name = 'TestSchool';
$school->opening = '08:45';
$school->city = 'Ge... | true |
cf8daa746472541436ef987faf8c80d8375ab705 | PHP | ShevchenkoEV/bsa-2020-php-1 | /src/Task2/Start.php | UTF-8 | 783 | 3 | 3 | [
"MIT"
] | permissive | <?php
require __DIR__ . '/../../vendor/autoload.php';
use App\Task2\BooksGenerator;
use App\Task2\Book;
$booksGenerator = new BooksGenerator(50, getLibraryBooks(), 60, getStoreBooks());
foreach ($booksGenerator->generate() as $book){
$booksGenerator->filteredBooks[] = $book;
}
foreach ($booksGenerator->filtered... | true |
cfa7bf4ffcd32180f69626027c6d084a43b38038 | PHP | lufee404/mia | /src/data/robot/EditorSubject.php | UTF-8 | 3,251 | 2.53125 | 3 | [] | no_license | <?php
namespace mia\miagroup\Data\Robot;
class EditorSubject extends \DB_Query
{
protected $dbResource = 'miagroup';
protected $tableName = 'group_robot_editor_subject';
protected $mapping = [];
/**
* 新增运营帖子
*/
public function addEditorSubject($insert_data) {
if (empty($inser... | true |
830893051aa8b6693d13c9bbcc225c6e0bfab2af | PHP | Jagad-IT-Solution/JIT_Codeigniter | /system/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/RoundUp.php | UTF-8 | 1,095 | 3.28125 | 3 | [
"MIT"
] | permissive | <?php
namespace PhpOffice\PhpSpreadsheet\Calculation\MathTrig;
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
use PhpOffice\PhpSpreadsheet\Calculation\MathTrig;
class RoundUp
{
/**
* ROUNDUP.
*
* Rounds a number up to a specified number of decimal places
*
* @param float $number Num... | true |
4a200de4be8e554b90255e447384b7b7ae77f12d | PHP | coduo/flipper | /src/Coduo/Flipper/Activation/Strategy/Chain.php | UTF-8 | 1,438 | 2.75 | 3 | [] | no_license | <?php
namespace Coduo\Flipper\Activation\Strategy;
use Coduo\Flipper\Activation\Argument;
use Coduo\Flipper\Activation\Context;
use Coduo\Flipper\Activation\Strategy;
use Coduo\Flipper\Feature;
class Chain implements Strategy
{
/**
* @var Strategy[]
*/
private $strategies;
/**
* @param S... | true |
79ec4f105958f84919dfa039ba413d0e54b075cf | PHP | KrasimiraGeorgieva/Programming-Basics-with-PHP-January-2018 | /6. Drawing-with-Loops/06. Rhombus of Stars.php | UTF-8 | 582 | 3.578125 | 4 | [
"MIT"
] | permissive | <?php
$n = intval(readline());
$stars = 1;
$spaces = $n - 1;
for ($row = 0; $row <= $n - 1; $row++) {
for ($i = 1; $i <= $spaces; $i++) {
echo " ";
}
echo "*";
for ($i = 1; $i <= $stars - 1; $i++) {
echo " *";
}
echo "\n";
$stars++;
$spaces--;
}
$spacesDown = 1;
$stars... | true |
f82a124193c9b183ae15292a299c70e1930059c5 | PHP | blackalbino01/student-portal | /config/database.php | UTF-8 | 4,572 | 2.953125 | 3 | [] | no_license | <?php
require_once('conn.php');
class DatabaseTranscations extends PDOStatement {
private $connection;
public function __construct()
{
}
private function connection() {
$connection = new PDOConfig();
if($connection === false){
ec... | true |
f533504b4957950bc979391303cf7db61a71a1dc | PHP | symfony/panther | /src/ProcessManager/ChromeManager.php | UTF-8 | 4,902 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Symfony\Component\Panther\ProcessManager;
use Fac... | true |
a8b672cd3a7eb489e853c1a4aed8f3a4df8f3a88 | PHP | Azakazam/shelteredWorkshop.github.io | /helpers/db_fncs.php | UTF-8 | 254 | 2.671875 | 3 | [] | no_license | <?php
include("config.inc.php");
function getConn()
{
try{
$conn = new PDO(DB_DATA_SOURCE, DB_USERNAME, DB_PASSWORD);
}
catch (PDOException $exception)
{
echo "Oh no, there was a problem" . $exception->getMessage();
}
return $conn;
}
?> | true |
59c6394a5d7939aaa9bc6430627a6ac94af3ed89 | PHP | FIU-SCIS-Senior-Projects/FIU-GPA-Tracker-and-Forecaster-Ver-3.0 | /Code/WebSite/fiugpatf/common_files/getCourse.php | UTF-8 | 3,104 | 2.828125 | 3 | [] | no_license | <?php
include_once 'db_connect.php';
include_once 'functions.php';
sec_session_start();
class major {
private $username;
private $majorID;
private $d_month;
private $d_year;
public function __construct($un, $maj, $dm, $dy)
{
$this->username = $un;
$this->majorID = $maj;
... | true |
292115d4734ffb9ecb5e419a2d811c5b8be96033 | PHP | Zirconium2159/Station | /station/get_data.php | UTF-8 | 1,529 | 2.875 | 3 | [] | no_license | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!--以下为接收数据代码-->
<?php
$temperature = $_GET["tem"];
$humidity = $_GET["hum"];
$lightness = $_GET["light"];
$conn = @mysql_connect('127.0.0.1', 'root', '233233'); //链接服务器
if (!$conn) {
die("failed... | true |
9120a468f23c8b74aa08b6d63be0f1da0a6e0c0e | PHP | ltkfree1/hawthorn | /old_data/inc/widgets/promo_widget.php | UTF-8 | 6,307 | 2.796875 | 3 | [] | no_license | <?php
/**
* Plugin Name: Promo Box Widget
*/
if(!class_exists('hawthorn_promo_widget')) {
add_action( 'widgets_init', 'hawthorn_promo_load_widget' );
function hawthorn_promo_load_widget() {
register_widget( 'hawthorn_promo_widget' );
}
class hawthorn_promo_widget extends WP_Widget {
/**
* Widget setup.
*/... | true |
1749a820ca5c43960b82b16d5d8d2fdbbe1c5aa5 | PHP | MaximeConan/oquizz | /oquiz/resources/views/quiz/listByTag.php | UTF-8 | 2,316 | 2.609375 | 3 | [
"MIT"
] | permissive | <?= view('layout.header'); ?>
<div class="row">
<p>
Filtres disponibles :
<?php foreach($tagsToFilter as $tag):?>
<!--
Note : comme je suis obligée de boucler sur l'intégralité de mes tags
et que je ne souhaite qu'en colorer un seul. la creation d'un tableau ... | true |
8dd8598aca53ff298cf1cdc0b5b6ea038f8f2df8 | PHP | jschreuder/SpotDesk | /src/Entity/Status.php | UTF-8 | 1,016 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php declare(strict_types = 1);
namespace jschreuder\SpotDesk\Entity;
use jschreuder\SpotDesk\Value\StatusTypeValue;
class Status
{
const STATUS_NEW = 'new';
const STATUS_OPEN = 'open';
const STATUS_AWAITING_CLIENT = 'awaiting-client';
const STATUS_CLOSED = 'closed';
public function __construct... | true |
68903d62ea3d2b3d091b5818b0c4d2ab90d4aa49 | PHP | EduardoMRB/webflavia-php-sdk-v1 | /src/Webflavia/Exception/ValidationFailedException.php | UTF-8 | 2,241 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
/**
* Copyright (c) 2014 Webflavia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, pu... | true |
4308df61d5bbc030064c8f9893d112ca95b51eed | PHP | victayo/TaskManager | /app/Repositories/Task/TaskRepository.php | UTF-8 | 2,239 | 2.671875 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: mighty
* Date: 2/20/2018
* Time: 4:18 PM
*/
namespace App\Repositories\Task;
use App\Models\Task;
class TaskRepository implements TaskRepositoryInterface
{
public function getAll()
{
return Task::get();
}
public function ge... | true |
2937816a3114d39ff363923e3798f9a2fba9e9cc | PHP | paolobattistella/wf-acme | /src/Dto/Transformer/AbstractDtoTransformer.php | UTF-8 | 404 | 2.765625 | 3 | [] | no_license | <?php
namespace App\Dto\Transformer;
use App\Dto\Transformer\Contract\DtoTransformerContract;
abstract class AbstractDtoTransformer implements DtoTransformerContract
{
public function transformFromObjects(iterable $objects): iterable
{
$dto = [];
foreach ($objects as $object) {
$... | true |
0a166dbcedb2ce87a8f344b5dcf6f98317977879 | PHP | payping/payping-oauth2-socialite-client | /Provider.php | UTF-8 | 2,805 | 2.671875 | 3 | [] | no_license | <?php
namespace SocialiteProviders\PayPing;
use Illuminate\Http\Request;
use SocialiteProviders\Manager\OAuth2\AbstractProvider;
use SocialiteProviders\Manager\OAuth2\User;
class Provider extends AbstractProvider
{
/**
* Unique Provider Identifier.
*/
const IDENTIFIER = 'PAYPING';
private $veri... | true |
3d0e7c7099a29143f70027e8c03119c478cefcf2 | PHP | ivancabot1/Magic-Database | /taula.php | UTF-8 | 1,654 | 2.78125 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title>Taula</title>
<?php
require "includes/head.php";
?>
</head>
<body>
<form action="taula.php" method="GET">
<label>Nombre</label>
<select name="filtro1">
<?php
$query = "SELECT Nombre_Personaje FROM Personaje... | true |
19a97a38046354444f8a5b2e4b09524364c695bc | PHP | halgurdh/site | /wp-content/plugins/jetpack/modules/shortcodes/upcoming-events.php | UTF-8 | 1,176 | 2.796875 | 3 | [
"GPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"MIT"
] | permissive | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
* Display a list of upcoming events from a calendar.
*
* @package Jetpack
*/
/**
* Register a upcomingevents shortcode.
* Most of the heavy lifting done in iCalendarReader class,
* where the icalendar_render_events() function controls the ... | true |
16af81c4986fb2ab76faca9a28b48b8957d1a487 | PHP | irfanmazuki/WIF2003eCollege | /index/login_check.php | UTF-8 | 1,380 | 2.578125 | 3 | [] | no_license | <?php
if (isset($_POST['login-check'])) {
require 'config.php';
$email = $_POST['email'];
$pass = $_POST['pass'];
if (empty($email)||empty($pass)) {
header("Location: login.php?null_error");
exit();
}
else {
$sql = "select * from user_info where email=?";
... | true |
b49b6cd45fb82e8d12d4ba42cdc13bb8311ef38f | PHP | leewk94/testing | /mvc/views/TraAttendance/edit.php | UTF-8 | 2,718 | 2.703125 | 3 | [] | no_license | <h1>Attendance - Trainer & Student </h1>
<?php
$exist=count($this->studentlist);
$num= count($this->attendance);
$j=1;
?>
<?php if(empty($this->traAttendance[0]['checkIn'])) {?>
<form method="post" action="<?php echo URL;?>TraAttendance/traCheckIn/<?php echo $this->attendance[0]['classesID']; ?>">
<h3>Trainer Attend... | true |
d6a3e2c36f7ba3544d677be48ca68a954d5ace11 | PHP | marcantondahmen/automad | /automad/src/server/Engine/Extension.php | UTF-8 | 6,775 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
/*
* ....
* .: '':.
* :::: ':..
* ::. ''..
* .:'.. ..':.:::' . :. '':.
* :. '' '' '. ::::.. ..:
* ::::. ..':.. .'''::::: .
* :::::::.. '..:::: :. :::: :
* ::'':::::::.... | true |
35b93fed32e45647170e95b0aba6ac432dffdd2a | PHP | cindyshen/class2012 | /Bingo_2/model/dog.php | UTF-8 | 985 | 3.953125 | 4 | [] | no_license | <?php
class Animal implements Showable
{
public $sHungry = ' hell yeah I am hungry.';
function eat($food)
{
$this->sHungry = "not so much. I don't like " . $food;
}
function show()
{
foreach($this as $name =>... | true |
f01ae3ed1db68378a985d43849fe6c5c828e283d | PHP | Red-Fern/laravel-array-query-builder | /src/Conditions/WhereRule.php | UTF-8 | 5,251 | 2.8125 | 3 | [
"MIT"
] | permissive | <?php
namespace RedFern\ArrayQueryBuilder\Conditions;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Str;
use RedFern\ArrayQueryBuilder\Exceptions\InvalidOperatorException;
class WhereRule
{
/**
* @var Builder
*/
protected $builder;
/**
* @var array
*/
protected... | true |
b96be2fd386fb2d1573e4c88f60e3a2a5e4df241 | PHP | msrumon/warehouse-manager | /insert.php | UTF-8 | 2,582 | 2.90625 | 3 | [
"MIT"
] | permissive | <?php
// Redirecting to registration page for GET requests
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
return header('Location: /register.php');
}
// Starting session
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
// Validating role
if (empty(trim($_POST['role']))) {
$_SESSION['error'][... | true |
92d20bdde74e86f2189cbccfc8df764a90e48322 | PHP | chlasswg26/arkademy-b16k1 | /3.php | UTF-8 | 414 | 4.09375 | 4 | [
"MIT"
] | permissive | <?php
function triangle($value)
{
if (is_int($value)) {
for($row = 1; $row <= $value; $row++)
{
for($col = 1; $col <= $row; $col++)
{
echo "# ";
}
echo "<br />";
}
} else {
return "Paramemeter harus angka dan positi... | true |
3484291cb4dce34fc30fc08303d547aa13198582 | PHP | pramod08/Otrs-i-doit-Dockerfile | /i-doit/src/classes/modules/cmdb/src/Search/IndexExtension/Config.php | UTF-8 | 3,512 | 2.515625 | 3 | [] | no_license | <?php
/**
* i-doit - Documentation and CMDB solution for IT environments
*
* This file is part of the i-doit framework. Modify at your own risk.
*
* Please visit http://www.i-doit.com/license for a full copyright and license information.
*
* @version 1.7.3
* @package i-doit
* @author synetics GmbH... | true |
154da4e4752efb7005b7c130709cdddccc61b437 | PHP | VySellathurai/MyPortfolio | /fonctionsPHP/projetView.php | ISO-8859-3 | 626 | 2.734375 | 3 | [] | no_license | <?php
/**
*
* @param projectName string
*
* @param stringDate string
*
* @param path string
*
* @param imgSrcFile string
*
* @param alt string
*
* @return affiche le code html de l'aperu d'un projet
*/
function projetView($projectName, $stringDate, $path, $imgSrcFile, $alt) {
echo ("
<div cla... | true |
8dc7d42e25cfea24fab9e78a1c5524d9114444e1 | PHP | wplib/wplib-box | /www/wp-content/mu-plugins/wplib-box-db-provisioner/wplib-box-db-provisioner.php | UTF-8 | 2,333 | 2.546875 | 3 | [
"MIT",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"GPL-2.0-only"
] | permissive | <?php
/**
* mu-plugins/wplib-box-provisioner/wplib-box-provisioner.php
*
* This file provisions WPLib Box's WordPress database for default use.
* If it not needed after you first install WordPress, but might be
* instructive to review for who to create a similar configuration
* for WordPress sites you want to be ... | true |
68618684086122094550ac258fa7440d0a979413 | PHP | JCharly95/Educatorium | /Funcionamiento/PHPs/login.php | UTF-8 | 3,680 | 2.640625 | 3 | [] | no_license | <?php
session_start();
require 'conexion.php';
$usuario = $contraseña = "";
$us_err = $pas_err = "";
$us_right = $pas_right = "";
$busUser=$busContra=false;
$NumRes=0;
if(isset($_POST['entrar']))//Hacer el proceso de validacion si se presiono el boton de acceder
{
$usuario = $_POST['Username'];
$contrase... | true |
01eb808f05571607af230b69893991c6018851d3 | PHP | rickdcneves/nyenze | /app/model/ClassMorada.php | UTF-8 | 1,054 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Model;
use App\Model\ClassConexao;
class ClassMorada extends ClassConexao {
private $db;
/*public function cadastroContacto($tipo,$contacto,$id_user){
$this->db=$this->conexaoDB()->prepare("INSERT INTO contacto(tipo,contacto,id_user) VALUES (:tipo, :contacto, :... | true |
eca5b16b7c599c1e375d3fcedaec9aeaf37cc35e | PHP | FrederickPullen/Sfera-Dev-RC | /protected/modules/googlePlayProjectCreation/components/api/GooglePlayProjectCreationTrait.php | UTF-8 | 11,690 | 2.65625 | 3 | [] | no_license | <?php
/**
* The API class provides some services
* for processing google play projects
*
* @author Alexey K alexey.kovalev@sferastudios.com
*/
trait GooglePlayProjectCreationTrait
{
/**
* Get Google Play Client ID
*
* @return int
*/
public static function getGooglePlayClientId()
... | true |
9a70f394eb798c5b197afad3cd5d58f1bf25f3b5 | PHP | Checkmatein3/compiler-messaging-system | /postphp1.php | UTF-8 | 1,362 | 2.53125 | 3 | [] | no_license | <?php
$error = $loginError = "";
$username = $stream = "";
exec("\"./IDL\" index.wpml > index.php");
if ($_SERVER["REQUEST_METHOD"] == "POST") {
/*verify user is logged in*/
if (empty($_POST["username"])) {
$loginError .= "No user logged in. ";
}
... | true |
2f3d3b2dddca8e20a74236112e05a92137f125e7 | PHP | nuiz/rtsms | /private/src/Main/CTL/StampStyleCTL.php | UTF-8 | 676 | 2.515625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: p2
* Date: 7/16/14
* Time: 3:33 PM
*/
namespace Main\CTL;
use Main\Service\StampStyleService;
/**
* @Restful
* @uri /stamp/style
*/
class StampStyleCTL extends BaseCTL {
protected $service = null;
public function getService(){
if(is_null($this->service)... | true |
e4c27aff3962d83684ab23f0f27af034db6d099a | PHP | ioncode/yii2k18_app | /yii2-app-basic/models/AirportQuery.php | UTF-8 | 554 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[Airport]].
*
* @see Airport
*/
class AirportQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return Airport[]|array
*/
... | true |
420b75990028fba23f5bdcb567b5c7f260b66ae3 | PHP | lodemuylaert/laravelvotingsystem | /laravel/app/User.php | UTF-8 | 1,667 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use App\Models\Voterroles;
use App\Models\Vote;
use Carbon\Carbon;
use Illuminate\Support\Facades\Auth;
use Kyslik\ColumnSortable\Sortable;
class User extends Authenticatable
{
use Notifiable, ... | true |
5cfdab9ccb9e9a10bd3c2948dac6a77cf69795d9 | PHP | Logolo/OpenVPN-PHP-Management-Gui | /install.php | UTF-8 | 19,258 | 2.625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
//NOTES:
//Currently assuming you are running this on the server that is your CA
//and (if already running) have ca.crt and ca.key in openvpn config dir
//PLEASE EDIT LOCATIONS IF THEY ARE NOT DEFAULT FOR DEBIAN
//Default locations:
//
// bin/executable location: /usr/sbin/openvpn
// config directory: /etc/... | true |
8850182d5669ed04ffba90e94413261c50fa5dd9 | PHP | alvaropmello/idos-sdk-php | /src/idOS/Endpoint/Profile/Features.php | UTF-8 | 3,773 | 2.9375 | 3 | [
"MIT"
] | permissive | <?php
namespace idOS\Endpoint\Profile;
use GuzzleHttp\Client;
use idOS\Auth\AuthInterface;
use idOS\Endpoint\AbstractEndpoint;
/**
* Features Class Endpoint
*/
class Features extends AbstractProfileEndpoint {
private function typeInfer($value) : string {
if (is_float($value)) {
return 'dou... | true |
efd1e87ccdc5c0c91cdd9e3d4592df23f5cae002 | PHP | ProyectoSaH/sah | /app/Model/Cliente.php | UTF-8 | 2,734 | 2.8125 | 3 | [] | no_license | <?php
class Cliente extends AppModel{
public $name = 'Cliente';
public $validate = array(
'name' => array(
'nonEmpty' => array(
'rule' => array('notEmpty'),
'message' => 'Se Requiere ingresar un Nombre',
'allowEmpty' => false
... | true |
65444f2b060c3c1c51e2a5399fa5f247f01f714a | PHP | AthensStateComputerScience/InServiceCenter-dev | /public_html/php/add_request.php | UTF-8 | 8,128 | 2.65625 | 3 | [] | no_license | <?php
/**
* User: rickmilliken
* Date: 9/3/17
* Time: 2:16 PM
* PHP file that will add a request to the database.
*/
require "../../resources/config.php";
require "../php/captcha/get_captcha_hash.php";
$captcha_entered = $_POST['captcha'];
$captcha_hash = $_POST['captcha_hash'];
//$report_date = date("Y-m-d");... | true |
98c7d8753e2ba2f79378e3c163fcdafdc79aaa9e | PHP | emexxRepo/PHPLogger | /index.php | UTF-8 | 542 | 2.578125 | 3 | [] | no_license | <?php
require 'vendor/autoload.php';
use MLogger\Logger\FileLogger;
use MLogger\Factory\LoggerFactory;
$logpath = __DIR__ . '/public/logs.log'; // Loglarımızın kaydedileceği dosya
$logger = (new LoggerFactory())->setLogger(new FileLogger); // LoggerFactory Aracılığı ile File Logger Sınıfımızı oluşturuyoruz
$logger->se... | true |
79a299d0b828124048d288bf9cef0fe422acadab | PHP | ctabordaz/diskitos | /classes/empleado.php | UTF-8 | 822 | 2.703125 | 3 | [] | no_license | <?php
class empleado extends object_standard{
protected $cedula;
protected $nombre;
protected $contraseña;
protected $salario;
protected $telefono;
protected $correo;
protected $tipo;
var $components = array();
var $auxiliars = array();
public function meta... | true |
51ca1cd70bc86e254561d794f9ea0da09677f5c4 | PHP | timiTao/BehatTerminalExtension | /src/Behat/TerminalExtension/Terminal/TerminalInterface.php | UTF-8 | 580 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
/**
* @author Tomasz Kunicki
*/
namespace Behat\TerminalExtension\Terminal;
use Behat\TerminalExtension\Terminal\Response\TerminalResponseInterface;
/**
* Interface TerminalInterface
*
* @package Behat\TerminalExtension\Terminal
*/
interface TerminalInterface
{
/**
* @param string $command
*... | true |
86d67faba7908a6f5220b0945a752571d2021ae1 | PHP | axixnix/portfolioBackend | /app/Http/Controllers/RegisterController.php | UTF-8 | 1,455 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use App\Utils\RandomFunctions;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use App\Models\User;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Mail;
use App\Mail\VerifyEmail;
use App\Models\Verification;
class RegisterController ex... | true |
920dddc3b97a562df6e5bfe1f493846d801d9407 | PHP | jakfarshodiq230/Ci4-CRUD_awal | /app/Models/m_produk.php | UTF-8 | 1,054 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use CodeIgniter\Model;
class m_produk extends Model
{
protected $table = 'tb_produk';
protected $useTimestamps = true;
protected $allowedFields = ['id', 'nama_produk', 'keterangan', 'harga', 'jumlah'];
public function getKeluar($slug = false)
{
if ($slug ... | true |
e6b382d5888cfb8007ebd76ea5f5d2fb4624dfe4 | PHP | DARLANALONE/30-abril | /database/seeders/CompaniesTableSeeder.php | UTF-8 | 587 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace Database\Seeders;
use App\Models\Companies;
use Faker\Factory as Faker;
use Illuminate\Database\Seeder;
class CompaniesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker= Faker::create();
for ($... | true |
dfab6ddb3f034c552c3fbeb1ddbc9a4112a09fe2 | PHP | santhoshjanan/codesnifferdoc | /src/CSDHelper/CodeSniffDoc.php | UTF-8 | 667 | 2.78125 | 3 | [
"MIT"
] | permissive | <?php
namespace CSDHelper;
class CodeSniffDoc
{
public static function GetCodeSnifferPage($errorcode = NULL){
if(!$errorcode){
return "#";
}
preg_match('/[0-9]_[0-9]_[0-9]/', $errorcode, $matches, PREG_OFFSET_CAPTURE);
$standard = explode('.', $errorcode)[0];
$returnpage = "http://squizlabs.gi... | true |
06b9b2f215e9507ff5b4b15bd53ddc0f6fdb2714 | PHP | Jerry-0919/phpMyFAQ-version-upgrade | /src/phpMyFAQ/Category/CategoryRelation.php | UTF-8 | 6,777 | 2.828125 | 3 | [] | no_license | <?php
/**
* Category relations class.
*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/.
*
* @package phpMyFAQ
* @author Thorsten Rinne <thorsten@phpmyfaq.d... | true |
6c60dc7901a4beff44fb212cfec9472b572d53be | PHP | senttor/llara | /app/Models/BlogCategory.php | UTF-8 | 2,479 | 3.03125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class BlogCategory
* @package App\Models
*
* @property-read BlogCategory $parentCategory
* @property-read string $parentTitle
*/
class BlogCategory extends Model
{
use SoftDeletes;
... | true |
3ce260c72e3d41e52392c9ad472ddb8d77ebd0ae | PHP | GJTemplate/GRT-theme | /vendor/yootheme/platform-joomla/src/Router.php | UTF-8 | 872 | 2.671875 | 3 | [] | no_license | <?php
namespace YOOtheme\Joomla;
use Joomla\CMS\Router\Route;
use YOOtheme\Url;
class Router
{
public static function generate($pattern = '', array $parameters = [], $secure = null)
{
if ($pattern !== '') {
$search = [];
foreach ($parameters as $key => $value) {
... | true |
e5d663fbcbb449cdee3f47aa1519adb38576cc1c | PHP | lazeras/PHPVideoEncode | /Classes/paths.php | UTF-8 | 8,667 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
/**
* File : Classes\paths.php
*
* @author Patrick Scott <lazeras@kaoses.com>
* @copyright 1997-2020 lazeras@kaoses.com
* @license https://opensource.org/licenses/MIT MIT License
*/
namespace Classes;
/**
*
* Object to hold all information about the file
*
* PHP version 5.5
* @package En... | true |
d40f8c2a47fab395cd5c0e4a44e9dbc947d7f847 | PHP | paolomelgar/www | /huanuco/ventas/verlistaproductos.php | UTF-8 | 2,670 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
require_once('../connection.php');
if(isset($_POST) && !empty($_POST)){
$q=$_POST['ver'];
$sql1=mysqli_query($con,"SELECT * FROM pedido WHERE seriepedido='$q' ORDER BY id_pedido");
$n=0;
$n1=0;
if (mysqli_num_rows($sql1)>0){
?>
<table width="100%" style="border-collapse: collapse;">
... | true |
d5089bb9c3261e4ad80b82287b4b579615c7aa94 | PHP | shuyttr/WebDev | /IMDb/common.php | UTF-8 | 802 | 3.125 | 3 | [] | no_license | <?php
#This file is used to extract an id from an Actor
#If there is more than one actor for a given name, this
#query will return the actor (id) which appears in the most amount of movies
$db = new PDO("mysql:dbname=imdb;", "student", "student");
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$first_na... | true |
49ff77a41a81a1d3b4e9d1eaf325553b6720dac8 | PHP | Yeasir0995/Doctor-Appointment-Web-Application | /app/Doctor.php | UTF-8 | 1,274 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
use\App\Doctor;
class Doctor extends Authenticatable
{
use Notifiable;
protected $guard = 'doctor';
/**
* The attributes that are mass assignable.
*
* @var array
... | true |
0b1261519ed9f5701ee64febd6760fbf56f1d7a7 | PHP | Logan-174/student_quiz_system | /Database cwk2/implementation/delete.php | UTF-8 | 1,548 | 2.703125 | 3 | [] | no_license | <form method="post">
<h1>Enter the quiz id and quiz name that you want to delete</h1>
<br/><br/>
<label>quiz_ID:<input type="number" name="id"></label>
<br/><br/>
<label>quiz_Name:<input type="text" name="name"></label>
<br/><br/>
<button type="submit" name="submit">Submit</button>
<button type=... | true |
c81e0fd4588ca4342e9410a9ae38610fac4978b6 | PHP | dbrumann/deptrac | /src/Supportive/File/Exception/FileCannotBeParsedAsYamlException.php | UTF-8 | 612 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace Qossmic\Deptrac\Supportive\File\Exception;
use Qossmic\Deptrac\Contract\ExceptionInterface;
use RuntimeException;
use Symfony\Component\Yaml\Exception\ParseException;
/**
* @internal
*/
final class FileCannotBeParsedAsYamlException extends RuntimeException implements Excep... | true |
6154e948a2d555b1fc8f5c26c819c3d6ac7c8afa | PHP | helgatheviking/wc-catalog-product | /includes/class-wc-product-catalog.php | UTF-8 | 4,083 | 2.65625 | 3 | [] | no_license | <?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Catalog Product Class.
*
* Create custom catalogs from PDFs.
*
* @class WC_Product_Catalog
* @category Class
* @author Kathy Darling
*/
class WC_Product_Catalog extends WC_Product {
/**
* Supported features such as 'ajax... | true |
243eb9aa58b777adf18c9f51e275b21d25ee8490 | PHP | tautvydascoding/2017-10-09-kurso-medziaga | /uzduotys_visos/MAMP/uzduotis14/valdas/1/index.php | UTF-8 | 829 | 3.015625 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>PHP</title>
<link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>... | true |
b5c5085e60c33740269a684d5e1de68856bcb571 | PHP | Herois32/aula-laravel | /app/Models/Painel/Produtos.php | UTF-8 | 1,395 | 2.65625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models\Painel;
use Illuminate\Database\Eloquent\Model;
class Produtos extends Model
{
public $timestamps = false;
protected $fillable = [
'et_codigo', 'et_nome', 'et_preco', 'et_descricao'
];
//protected $guarded = ['updated_at'];
public $rules = [
'et_codigo' => '... | true |
d1396e64b0aacb9235b843791ddd29f431d30d75 | PHP | hanchen999/cmpe272 | /show_order_detail.php | UTF-8 | 1,954 | 2.5625 | 3 | [
"MIT"
] | permissive | <!DOCTYPE html>
<html lang="en">
<head>
<title>Order History</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/li... | true |
f5ffc1153de78cc79c8a60897ef12466d19ed99c | PHP | quangND1998/CMS-backend | /app/Http/Middleware/AdminMiddleware.php | UTF-8 | 939 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Response;
class AdminMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public functi... | true |
14efaac188c4f5c72ee5e79f0b63c0c441bc1b8f | PHP | zeupin/dida-db--dev | /src/Dida/Db/Db.php | UTF-8 | 4,038 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
/**
* Dida Framework -- A Rapid Development Framework
* Copyright (c) Zeupin LLC. (http://zeupin.com)
*
* Licensed under The MIT License.
* Redistributions of files MUST retain the above copyright notice.
*/
namespace Dida\Db;
/**
* Db
*/
class Db
{
/**
* 版本号
*/
const VERSION = '20171... | true |
825f423af877ca6b8df683fd12f80656d31bd5a3 | PHP | archyyu/archymvc | /core/common/Request.php | UTF-8 | 1,291 | 2.859375 | 3 | [] | no_license | <?php
/**
* Created by IntelliJ IDEA.
* User: Administrator
* Date: 2019/12/13
* Time: 10:52
*/
namespace common;
class Request
{
private $getParameters;
private $postParameters;
public function __construct() {
global $_GET;
$this->getParameters = $_GET;
global $_POST;
... | true |
2f6f9520eab9a448a20daade2b2c365d84047548 | PHP | bradhlewis/katas | /src/cuboidVolume.php | UTF-8 | 160 | 2.75 | 3 | [] | no_license | <?php
namespace Katas;
class cuboidVolume
{
function getVolume( int $length, int $width, int $height){
return $length * $width * $height;
}
}
| true |
48068e3cec7cbcb94acd8bea583684f420f44b91 | PHP | ADMTec/WebEngine | /admincp/modules/plugins.php | UTF-8 | 2,825 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
/**
* WebEngine CMS
* https://webenginecms.org/
*
* @version 1.2.1
* @author Lautaro Angelico <http://lautaroangelico.com/>
* @copyright (c) 2013-2020 Lautaro Angelico, All Rights Reserved
*
* Licensed under the MIT license
* http://opensource.org/licenses/MIT
*/
?>
<h1 class="page-header">Plugin Mana... | true |
5ac223439e223723965e3e1961597268a363345a | PHP | mateusjp/starting-site | /Site/php/login.php | UTF-8 | 1,983 | 2.59375 | 3 | [] | no_license | <?php
if(isset($_POST['logon'])){
$login = mysql_real_escape_string(strip_tags(trim($_POST['login'])));
$senha = mysql_real_escape_string(strip_tags(trim($_POST['senha'])));
$lembrar = (isset($_POST['lembrar'])) ? true : false;
if(empty($login) && empty($senha))
echo 'Informe seu login e sua sen... | true |
490710761e6c12bca113f17cf7044e61da22dd01 | PHP | olalekan-agbaje/matrix_multiply | /tests/Feature/MatrixMultiplicationTest.php | UTF-8 | 3,562 | 2.796875 | 3 | [] | no_license | <?php
namespace Tests\Feature;
use Tests\TestCase;
use App\Models\User;
use Laravel\Sanctum\Sanctum;
use Illuminate\Foundation\Testing\RefreshDatabase;
class MatrixMultiplicationTest extends TestCase
{
use RefreshDatabase;
public function testRequestContaintsOnlyTwoArrays()
{
$data = $this->data... | true |
02320eb7aa1ea4c515736afefbe3eec35171b4b3 | PHP | EricJasletLean/Solid-Exo | /Circle/Cercle.php | UTF-8 | 445 | 3.71875 | 4 | [] | no_license | <?php
class Circle
{
private Color $color;
public function perimeter():float
{
return 100;
}
/**
* Get the value of color
* @return Color
*/
public function getColor(): Color
{
return $this->color;
}
/**
* Set the value of color
* @return ... | true |
52a434de91d02e57ca5b9f196d753c578ed30831 | PHP | cbschuld/pegasusphp.org | /test/GoogleMap.php | UTF-8 | 1,843 | 2.59375 | 3 | [] | no_license | <?php
/**
* @package PegasusPHP-TEST
*/
class Address {
public $line1;
public $city;
public $state;
public $zip;
public function Address($line1,$city,$state,$zip) {
$this->line1 = $line1;
$this->city = $city;
$this->state = $state;
$this->zip = $zip;
}
}
$addresses ... | true |