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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b97d28381e2f558614e010458bc86fbc99e267a2 | PHP | Sywooch/kidup | /modules/notification/models/base/MailMessage.php | UTF-8 | 1,843 | 2.625 | 3 | [] | no_license | <?php
namespace notification\models\base;
use Yii;
/**
* This is the base-model class for table "mail_message".
*
* @property integer $id
* @property string $message
* @property string $from_email
* @property integer $message_id
* @property string $subject
* @property integer $created_at
* @property string ... | true |
e6008abcda66c4b8e8371d83fbe0644fdff973d4 | PHP | miniloko/slack_lunchbot | /restaurants/sweden/skövde/wallermans.php | UTF-8 | 2,467 | 2.65625 | 3 | [] | no_license | <?php
use Symfony\Component\DomCrawler\Crawler; // Prevents an error in ->reduce()
function sweden_skövde_wallermans()
{
// Restaurang Wallermans
// -----------------
$client = getClient();
$crawler = $client->request('GET', 'http://www.wallermans.se/Dagens-lunch.html');
$foodbox = $c... | true |
c5bfddc80a6e374b3fe449dba9b1f725d38d36c7 | PHP | joenefloresca/qms | /app/Http/Models/External.php | UTF-8 | 1,183 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Models;
use DB;
class External
{
/**
* The database table used by the model.
*
* @var string
*/
public function createHeader($headerName, $connString, $method)
{
switch($method)
{
case "ADD":
$query = "ALTER TABLE customer ADD $head... | true |
4df30b51745e54eaa1a13791d9c6b0cb19950529 | PHP | project-sunbird/sunbird-cms-website | /www/administrator/components/com_akeeba/BackupEngine/Util/AesAdapter/Mcrypt.php | UTF-8 | 2,809 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Akeeba Engine
*
* @package akeebaengine
* @copyright Copyright (c)2006-2020 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace Akeeba\Engine\Util\AesAdapter;
use Akeeba\Engine\Util\RandomValue;
class Mcrypt extends AbstractAdapter imple... | true |
ee9a913b04a5f8b2054541a09d51e5b54713ac50 | PHP | agelfirmandani/inventory_pkl | /application/models/Perm_pembelian_model.php | UTF-8 | 5,556 | 2.515625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Perm_pembelian_model extends CI_Model {
var $table = 'tb_permintaan_pembelian';
var $column_order = array('CB_NAMA','PP_TGL','PP_TGL_BUTUH','PP_JENIS','NAMA_GDG',null); //set column field database for datatable orderable
var $column_search... | true |
a5c90acca95a328da340fbcb8eef3754d7a6a0e6 | PHP | renecruzlaguna/clinicadminnewclient | /src/AppBundle/Controller/EmailController.php | UTF-8 | 1,382 | 2.546875 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
namespace AppBundle\Controller;
use AppBundle\Libs\Controller\BaseController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\O... | true |
deeed2627bef84ae12f99569f61999ccd2ba36a0 | PHP | XavierVillavicencio/domund | /back/modules/Administration/Models/Files_topics.php | UTF-8 | 1,312 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace Modules\Administration\Models;
use CodeIgniter\Model;
class Files_topics extends Model {
protected $DBGroup = 'default';
protected $table = 'administration.files_topics';
protected $primaryKey = 'fxt_int_id';
protected $returnType = 'array';
protected $useSoftDeletes = t... | true |
b9badab72a846b1138df9fcf2ad8f5e695a64105 | PHP | midium/bookshelf | /app/Helpers/ArrayHelpers.php | UTF-8 | 794 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
function ArrayMultiSort($array, $field, $order = 'ASC', $second_field = '', $order2 = 'ASC'){
$result = $array;
usort($result, function($a, $b) use($field, $order, $second_field, $order2) {
if(!isset($order) || trim($order) == '' || $order == null || $order == 'ASC'){
$diff = $a[$field] - $b[$f... | true |
7e25dbf7be86cad2e74ed18b8c9e9782d5bf3035 | PHP | jasonKristanto/to-do-list-project | /app/Http/Requests/Auth/UserLoginRequest.php | UTF-8 | 1,213 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Requests\Auth;
use Illuminate\Foundation\Http\FormRequest;
class UserLoginRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
*... | true |
4cbd02ca77d9b05befad0d17982db64e80d801cf | PHP | hxii/YRFW-Extensions | /YRFW_Export_Products.php | UTF-8 | 3,601 | 2.5625 | 3 | [] | no_license | <?php
require_once YRFW_PLUGIN_PATH . 'inc/Helpers/class-yrfw-csv-helper.php';
/**
* Review export
*/
class YRFW_Export_Products extends YRFW_CSV_Helper {
protected $products_handler;
protected $csv_helper;
public function __construct() {
add_action( 'yrfw_extensions_admin_header', array( $this, 'form' ) );
... | true |
4f98110ff0500b4a50f1ad798bca2b85201f4dd4 | PHP | PauliusKrutkis/pfs | /src/Config.php | UTF-8 | 793 | 2.796875 | 3 | [] | no_license | <?php
namespace Pfs;
class Config
{
const DIR = 'config';
const REGISTRY = [
'enqueue'
];
protected static $storage;
protected static $pluginDir;
public static function get($key)
{
if ( ! in_array($key, self::REGISTRY)) {
throw new \Exce... | true |
9b763b17d7bd2ef75b617b662c4eec9a2a5250ef | PHP | inouetakuya/mini-blog | /core/DbRepository.php | UTF-8 | 2,580 | 3.484375 | 3 | [] | no_license | <?php
/**
* DbRepository.
*
* 実際にはデータベース上のテーブルごとにこのクラスを継承したクラスを
* 作成し、そこにデータベースアクセス処理を記述する
* 例: user テーブルがあれば UserRepository クラスを作成
*
* user テーブルヘレコードの新規作成を行う insert メソッドや
* id というカラムを元にデータを取得する fetchById メソッドなどを
* 必要に合わせて作成していくことを想定
*
* @author Katsuhiro Ogawa <fivestar@nequal.jp>
*/
abstract class DbRepo... | true |
dc9342a4ef49a56f419d4b7747088406f476cca7 | PHP | DR2010/GUFCphpsource | /PHPWebAPI/gradinglist.php | UTF-8 | 4,141 | 2.5625 | 3 | [] | no_license | <?php
/*
Template Name: Grading List
*/
// This is the official connection string
$db_hostname = 'gungahlinunitedfc.org.au';
$db_username = 'gufcweb_readmain';
$db_password = 'r&admain2015';
$db_database = 'gufcweb_wordpress';
$mysqli = new mysqli($db_hostname,$db_username,$db_password, $db_database);... | true |
4cb30ba4a2cc3920298f6671d14d9a13be4c307d | PHP | oldThing/practice | /framework/core/Controller.class.php | UTF-8 | 855 | 3.125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: pc
* Date: 2017/3/16
* Time: 11:37
* 基础的控制器
* 1.跳转
* 2.数据的处理 json
*/
class Controller
{
/**
* 页面的跳转
* @param $url
* @param $message
* @param $time
*/
public function jump($url, $message, $wait = 3)
{
if($wait == 0){
... | true |
637fd280a7d57735c119d962a836b02412390e14 | PHP | erdikaRKusumah/tugas-2-oophp | /produk.php | UTF-8 | 313 | 3.109375 | 3 | [] | no_license | <?php
class Produk {
public $judul = "Judul",
$penulis = "Penulis",
$penerbit = "Penerbit",
$harga = 0;
public function getLabel() {
return "$this->penulis, $this->penerbit";
}
}
$produk3 = new Produk();
$produk3->penulis = "Erdika";
$produk3->penerbit = "Unpas";
echo $produk3->getLabel(); | true |
43d49c975050e3b8ccb3da4946b7127961a5b2c0 | PHP | pklink/RndOrg | /src/RndOrg/Generator/AbstractImpl.php | UTF-8 | 2,889 | 3.046875 | 3 | [
"MIT"
] | permissive | <?php
/**
*
* @author Pierre Klink <dev@klinks.info>
* @license MIT
*/
namespace RndOrg\Generator;
/**
*
* @throws \RuntimeException
*/
abstract class AbstractImpl implements \RndOrg\Generator
{
/**
* The number of columns in which the integers will be arranged.
*
* @var int
*/
p... | true |
5d285672fa12309bba2f824213e20b3238a70170 | PHP | olivernarsinghani/profitloss | /app/Http/Controllers/DashboardController.php | UTF-8 | 2,131 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DateTime;
use App\Models\CsvRead;
use File;
class DashboardController extends Controller
{
public function index()
{
// read the CSV file
$fileD = fopen(storage_path('app/public/sample_data.csv'),"r");
$column=fge... | true |
e4a97efcf42846ec5922011c0c576f392711a6f0 | PHP | UNLSiteMaster/site_master | /src/SiteMaster/Core/Registry/Site/Member/Role.php | UTF-8 | 3,048 | 2.875 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | <?php
namespace SiteMaster\Core\Registry\Site\Member;
use DB\Record;
use SiteMaster\Core\Registry\Site\Member;
class Role extends Record
{
public $id; //int required
public $site_members_id; //int required fk -> site_members
public $roles_id; //int required fk -> roles
public $a... | true |
5ed2cd8db6dd34dcd9196fc8b22da67d77180427 | PHP | vedmaka/RadiantApiTests | /tests/phpunit/ChecklistTest.php | UTF-8 | 5,233 | 2.53125 | 3 | [] | no_license | <?php
/**
* Class RadiantAPIChecklistTest
* @group Database
* @group medium
* @group API
*/
class RadiantAPIChecklistTest extends ApiTestCase
{
protected static $_checklistId;
protected function setUp()
{
parent::setUp();
$this->setMwGlobals( array(
'smwgEnableUpdateJobs' ... | true |
9c73d73858b53b6e73c2fa3c886e9678b3d0ccd6 | PHP | mr-augustine/sensor-data-repo | /lab4/ha_lab4/WebContent/views/UserDataView.class.php | UTF-8 | 17,723 | 2.703125 | 3 | [] | no_license | <?php
class UserDataView {
public static function show() {
$_SESSION['headertitle'] = "UserData details";
$_SESSION['styles'] = array('site.css');
MasterView::showHeader();
MasterView::showNavBar();
UserDataView::showDetails();
MasterView::showFooter();
MasterView::showPageEnd();
}
... | true |
6f358c22782a5a7682d6b731ad0caf41289bf9b3 | PHP | BenjaminLu/github-crawler | /lib/Github/Tools/GithubCrawler.php | UTF-8 | 9,638 | 2.859375 | 3 | [] | no_license | <?php
namespace Github\Tools;
class GithubCrawler
{
private $urlsDir = "urls";
private $dataDir = "data";
private $resDir = "resource";
private $readmeDir = "readme";
private $urlsFilePath;
private $interestValueStorePath;
public function __construct($urlsFilePath)
{
$this->urlsF... | true |
d41901575b84f109aa4d85c2808585ea7cec0c18 | PHP | spiral-modules/statistics | /tests/Statistics/Extract/RowTest.php | UTF-8 | 1,592 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
namespace Spiral\Tests\Statistics\Extract;
use Spiral\Statistics\Extract\Events\Row;
use Spiral\Tests\BaseTest;
class RowTest extends BaseTest
{
public function testGetLabel()
{
$label = 'label';
$row = new Row($label, []);
$this->assertSame($label, $row->getLabel());
}
... | true |
8ea3febd63ecd943cfb839f94a7f2889ab17673f | PHP | ricardo-araujo/cnpjs-receitaws | /src/Request/ReceitaWS.php | UTF-8 | 1,377 | 2.5625 | 3 | [] | no_license | <?php
namespace Forseti\Cnpjs\Request;
use Forseti\Cnpjs\Utils\Utils;
use GuzzleHttp\ClientInterface;
use Psr\Log\LoggerInterface;
class ReceitaWS
{
private $client;
private $logger;
public function __construct(ClientInterface $client, LoggerInterface $logger)
{
$this->client = $client;
... | true |
6c703c739c160aa73ab863bc2c0186910b290d5d | PHP | gcaggia/Astroclub | /Model/Comment.class.php | UTF-8 | 1,096 | 2.890625 | 3 | [] | no_license | <?php
require_once "Framework/Model.class.php";
class Comment extends Model {
// Return the list of comments from a specific poem
public function getComments($idPoem) {
$sql = 'SELECT COM_ID as id, ' .
' COM_DATE as date, ' .
' CO... | true |
2a9550c05f8f1e52888c14bcb72f42fe5f6fdcf9 | PHP | justinfernald/lopeseat | /menu/updateRestaurants.php | UTF-8 | 2,656 | 2.65625 | 3 | [] | no_license | <?php
$secrets = json_decode(file_get_contents(__DIR__ . "/config/secrets.json"));
function addToHours(&$hours, $schedObj, $day) {
$dayObj = array();
$closed = $schedObj->HoursType;
if ($closed == 0) {
$jHours = $schedObj->Hours;
$hArr = array();
for ($k = 0; $k < sizeof($jHours); $... | true |
d68ace6915e438fd0a1920e13f04758d01ac861f | PHP | Mojility/Coaching-Cohesion-PHP-FizzBuzz | /spec/WordMatcherTest.php | UTF-8 | 628 | 3.140625 | 3 | [
"MIT"
] | permissive | <?php
require_once('src/WordMatcher.php');
class WordMatcherTest extends PHPUnit_Framework_TestCase {
function testMatchesCorrectly() {
$modulus = 3;
$matcher = new WordMatcher($modulus, "Fizz");
$this->assertTrue($matcher->matches($modulus));
$this->assertTrue($matcher->matches(2... | true |
aa40b311e7c817530d9b4767367c470c9089a42a | PHP | henrryup/New | /Frame/Core/Upload.class.php | UTF-8 | 3,431 | 3.03125 | 3 | [] | no_license | <?php
class Upload{
private $info = array();//用来存放上传文件的信息
private $error = '';//用来记录错误
public $size = 6;//允许上传的文件的大小,单位是M,写成public形式,意思是外部可以调用
public $ext = array('jpg','gif','png');//允许上传的文件后缀
public $rootPath = './Public/Uploads/';//默认的存放目录
//上传之前,应该有分析中的各项判断
//最后是上传,
//先获取上传文件的信息,才能进... | true |
0a583c0941549a7c1259d8d524f253e50be40169 | PHP | kitsunet/Kitsunet.ProxyObjects | /Classes/MaybeObject.php | UTF-8 | 1,862 | 3.328125 | 3 | [
"MIT"
] | permissive | <?php
namespace Kitsunet\ProxyObjects;
/**
* A proxy object to help object method chaining without having to test for NULL all the way.
* This takes inspiration from the Maybe monad.
*
*/
class MaybeObject {
/**
* @var object The object or NULL
*/
protected $object;
/**
* @var \Closure
*/
protected $... | true |
3ea7fcf98f301696c4c3ff579471bcfd0537133a | PHP | damaainan/Functional-PHP-Code | /Chapter03/03-functional-php-1.php | UTF-8 | 235 | 2.6875 | 3 | [] | no_license | <?php
require_once __DIR__.'/../vendor/autoload.php';
use function Functional\map;
var_dump(map(range(0, 4), function($v) { return $v * 2; }));
use Functional as F;
var_dump(F\map(range(0, 4), function($v) { return $v * 2; }));
| true |
e04403f1c56eb3ce87496f3c9afbcf439d4159ce | PHP | aminemasseoudi99/sap | /eventC.php | UTF-8 | 2,779 | 2.78125 | 3 | [] | no_license | <?PHP
include "../config.php";
class eventtC {
function afficherevents ($eventt){
echo "Nom: " . $eventt->getNom() . "<br>";
echo "Num: " . $eventt->getNum() . "<br>";
echo "Dated: " . $eventt->getDated() . "<br>";
echo "Dated: " . $eventt->getDatef() . "<br>";
}
function afficherevent(){
//$sql="... | true |
89304d8a379ebe8aed07da728d56fac60c65ba0d | PHP | timhunt/moodle-local_codechecker | /PHPCompatibility/Tests/Namespaces/ReservedNamesUnitTest.php | UTF-8 | 2,185 | 2.625 | 3 | [] | no_license | <?php
/**
* PHPCompatibility, an external standard for PHP_CodeSniffer.
*
* @package PHPCompatibility
* @copyright 2012-2020 PHPCompatibility Contributors
* @license https://opensource.org/licenses/LGPL-3.0 LGPL3
* @link https://github.com/PHPCompatibility/PHPCompatibility
*/
namespace PHPCompatibility... | true |
6173c43f47753b240d7699e86a58e0fedfddacca | PHP | NxSys/Library.NCL-Full | /src/NxSys/Library/Utility/Scheduler/Temporal/Year.php | UTF-8 | 5,816 | 2.984375 | 3 | [
"MIT"
] | permissive | <?php
namespace NxSys\Library\Utility\Scheduler\Temporal;
use NxSys\Library\Utility\Scheduler\TemporalInterface;
use NxSys\Library\Utility\Scheduler\Exception;
class Year extends Instant implements TemporalInterface
{
public static function getName() : string
{
return "Year";
}
public static fu... | true |
e83e4b568bb418f174d71f4a1a43264581de90ea | PHP | nathan-fiscaletti/curlit.tk | /public/index.php | UTF-8 | 1,604 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
include '../vendor/autoload.php';
use \CurlIt\Content\Page;
use \CurlIt\Content\PageController;
use MySqliWrapper\DataBase;
// Load Databases
$config = include '../config/web.php';
foreach ($config['databases'] as $database) {
Database::register($database);
}
// Create the PageController using the
// ro... | true |
98413a66d99da78a68dc2cc99f346b565e701d2f | PHP | RicTheJamGuy/Sorellas | /contactUs.php | UTF-8 | 1,512 | 2.671875 | 3 | [] | no_license | <?php
echo($_POST);
if(isset($_POST['email'])) {
// CHANGE THE TWO LINES BELOW
$email_to = "ricardonalves@gmail.com";
$email_subject = $_POST['sub'];
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with... | true |
f97361208bb2feb7f69e8c61b1f08e85cd3ac5bf | PHP | sajibcu/NECI | /src/Bitm/Consume/Consume.php | UTF-8 | 17,758 | 2.6875 | 3 | [] | no_license | <?php
namespace App\Bitm\Consume;
use App\Bitm\Message\Message;
use App\Bitm\Utility\Utility;
use App\Bitm\Model\Database as DB;
class Consume extends DB{
//Variable Declare
public $id="";
public $notice_title="";
public $notice_content="";
public $district_cd="";
public $user_id="";
public... | true |
7ef479b95065ae72bf9f81ce541fd1a13f44ad0b | PHP | Anatoly38/mzportal | /components/com_doc_pattern/model/doc_dp_section_query.php | UTF-8 | 8,331 | 2.53125 | 3 | [] | no_license | <?php
/**
* @version $Id$
* @package MZPortal.Framework
* @subpackage Document Patterns
* @copyright Copyright (C) 2010 МИАЦ ИО
Прямой доступ запрещен
*/
defined( '_MZEXEC' ) or die( 'Restricted access' );
require_once ( MZPATH_BASE .DS.'includes'.DS.'active_record.php' );
require_once ( MZPATH_BASE .DS.'includes'.D... | true |
d51c02bc8c18324d02dfa2e39394ffcdd5f0dbcb | PHP | indigophp/iterators | /src/LazyAppendIterator.php | UTF-8 | 1,563 | 3.078125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace Indigo\Iterator;
/**
* This is an extension of the SPL AppendIterator.
*
* Lazily append iterators from a traversable object.
* Useful when moving to the next element invokes an expensive resolver logic.
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
class LazyAppendIterator extends ... | true |
5e782803a7105603a9196ece1355392529a1f747 | PHP | muditmehrotra1987/AploWebservices | /getuser.php | UTF-8 | 591 | 2.75 | 3 | [] | no_license | <?php
$q=$_GET["q"];
$con = mysql_connect('localhost', 'root', 'vertrigo');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("test", $con);
$sql="SELECT * FROM players WHERE id = '".$q."'";
$result = mysql_query($sql);
echo "<table border='1'>
<tr>
<th>ID</th>
<th>Firstname</th>
<th... | true |
f0d9bbce2e6700d5ca2a5af791789a52b0851464 | PHP | DodMediaGroup/dinamov | /protected/extensions/Herramientas.php | UTF-8 | 6,465 | 2.921875 | 3 | [] | no_license | <?php
/**
* Contiene metodos usados de manera global entre ellos la subida de imagenes al servidor
*/
class Herramientas extends CApplicationComponent
{
/**
* Elimina archivos de la carpeta images/tmp/
*/
public function vaciar_temporales()
{
$directorio = $_SERVER['DOCUMENT_ROOT'].Yii::app()->request->baseUrl.... | true |
2e836905761a827bf06a65c8ab9741b97afc4c18 | PHP | iandeth/trials | /php/basics/namespace/lib/MyProj/Model/Foo.php | UTF-8 | 516 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace MyProj\Model;
## 他のモジュールを読み込む
require_once 'MyProj/Bar.php';
## こう書けば MyProj\Bar を Bar として利用可能
## use MyProj\Bar as Bar と書いても OK
use MyProj\Bar;
class Foo {
public function say (){
return __CLASS__ . ' say called';
}
public function bar_say (){
$p = new Bar(); ... | true |
20ca73b65a129b371bd7adc2781abbd25d4d507a | PHP | Lucasico/Repositorio-PW1 | /aula_03/questao_15/qt08.php | UTF-8 | 243 | 2.890625 | 3 | [] | no_license | <?php
$nl = $_GET['linhas'];
$nc = $_GET['colunas'];
for($i = 0; $i <= $nl; $i++){
echo "<table>";
echo "<tr>";
for($j = 0; $j <= $nc; $j++){
echo '<td> |Lógica| </td>';
}
echo "<tr/>";
echo "<table/>";
}
?> | true |
eca5a65e1bb19200e700095a5727ac7bc4db2484 | PHP | eltonoliver/Algorithms | /Sorting/insertionsort.php | UTF-8 | 564 | 4.0625 | 4 | [] | no_license | <?php
function insertionSort(array $array)
{
$length = count($array);
for ($i = 1; $i < $length; $i++) {
$element = $array[$i];
$j = $i;
while ($j > 0 && $array[$j - 1] > $element) {
//move value to right and key to previous smaller index
$array[$j] = $array[$j -... | true |
b93bf44add87261f4250436f9e5ac494cf081ece | PHP | Pablossoo/CQRS-symfony | /src/domain/exception/UserNotFoundException.php | UTF-8 | 232 | 2.625 | 3 | [] | no_license | <?php
namespace App\domain\exception;
final class UserNotFoundException extends \Exception
{
public static function WithTo(string $email)
{
return new self(sprintf('user with email %s not exist', $email));
}
}
| true |
660bc8948c4c1b101d515bdb531b4a8c54221c65 | PHP | feulf/useragent | /src/Sail/Useragent.php | UTF-8 | 2,423 | 3.375 | 3 | [
"MIT"
] | permissive | <?php
namespace Sail;
/**
* Sail\UserAgent
* --------
* Library to get the browser information, including the version,
* the device type, the operating system and more.
*
* @example
* $useragent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2)
* AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1... | true |
e34f9743beeac21413ec0c5bbe9952967d579150 | PHP | ishikhir/gsworkphp | /oneweek/insert_home.php | UTF-8 | 4,781 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | <?php
include("functions.php");
/************************
* ajaxでフォーム生成
*************************/
if(isset($_GET["id"]) && $_GET["id"]=="roof"){
$roof=$_GET["roof"];
$homeAge=$_GET["homeAge"];
$pdo = pdolocalhost();
$stmt = $pdo->prepare("SELECT * FROM roof_spec WHERE type=:roof AND homeAge > ... | true |
7cf4cf236b6dfc4cadbe1e1f5ceb171924e82ae9 | PHP | cutewebapps/webapps-shipper-lib | /classes/Shipper/model/Company/Ups/Service.php | UTF-8 | 6,635 | 2.875 | 3 | [] | no_license | <?php
/**
*
*/
class Shipper_Company_Ups_Service {
protected $userId;
protected $licenseNumber;
protected $password;
private $channel;
private $accessRequestXml;
private $requestXml;
private $responseXml;
protected $xmlWriter;
protected $xmlReader;
protected $i... | true |
4dd5ef1b59ff3b57cd1f2593cc23e61f58ccc484 | PHP | sad-new/mitsad.github.io | /Backend/a_SYTermManagement.php | UTF-8 | 8,258 | 2.65625 | 3 | [] | no_license | <?php
// if(!isset($_SESSION)) {
// session_start();
// }
include 'b_ConnectionString.php';
//function selection block
if(isset($_POST['action']) && !empty($_POST['action'])) {
$action = $_POST['action'];
switch($action)
{
case '2' : addNewSYTerm();break;
case '3' : retr... | true |
d0e84f2c0db8f2771bacdb80eedb45e9dfb39ec4 | PHP | earlye/minemon | /lib/curl_delete.php | UTF-8 | 663 | 2.65625 | 3 | [
"BSD-2-Clause"
] | permissive | <?php
require_once "curl_transfer.php";
function curl_delete( $url , $options = null , $headers = null )
{
if ( $headers == null )
$headers = array();
$curlopt_httpheader = array();
foreach( $headers as $header => $value )
{
array_push( $curlopt_httpheader , "$header: $value" );
}
if ( !isset( ... | true |
19046b699344d99ab368863625d68d03672239eb | PHP | CarlosJesusMaldonadoPAtino/2do-par | /ActiveBox.com/includes/funciones.php | UTF-8 | 3,947 | 2.546875 | 3 | [] | no_license | <?php
require_once("db.php");
switch ($_POST["accion"]) {
case 'login':
login();
break;
case 'consultar_usuarios':
consultar_usuarios();
break;
case 'insertar_usuarios':
insertar_usuarios();
break;
default:
break;
case 'insertar_testimonials':
insertar_testimonials();
break;
case 'consultar_download':
... | true |
aa2117d722bd6d67f4c4a611057140dcd96abacc | PHP | Ephigenia/ephFrame | /lib/ephFrame/Filter/PregReplace.php | UTF-8 | 233 | 2.625 | 3 | [
"MIT"
] | permissive | <?php
namespace ephFrame\Filter;
class PregReplace extends Filter
{
public $regexp;
public $replace;
public function apply($value)
{
return parent::apply(preg_replace($this->regexp, $this->replace, (string) $value));
}
} | true |
d917a97f307891d9ed8ce9e41e966e2c0d8931b5 | PHP | farhadfx/FarhadExchange-API-for-WebMoney-Gateway | /verify.php | UTF-8 | 2,054 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
$data = file_get_contents ('https://farhadexchange.com/exchange_statusj.php?API_REFERENCE=API_REFERENCE'); // API_REFERENCE is unique order number on your website, you want to check its status
$data = json_decode($data, true); // Turns it into an array, change the last argument to false to make it an object
if (... | true |
e4f17dbdc2074382138a285d8897f8bb632b18d7 | PHP | FlorentFlament/tsob | /tools/sin.php | UTF-8 | 304 | 2.703125 | 3 | [] | no_license | <?php
$a=0;
$ligne=0;
for($i=0;$i<60;$i++)
{
$a=$a+0.4;
$msg=abs(sin($a)*6);
$msg=dechex(round($msg,0));
if($msg==0)$msg=1;
if($ligne==0){
echo(".byte $".$msg.",");
$ligne++;
}else{
if($ligne>=9){
echo("$".$msg."\r\n");
$ligne=0;
}else{
echo("$".$msg.",");
$ligne++;
}
}
}
?> | true |
fa667a505a1d12e264e485b47ca4a9f02a9fb071 | PHP | TeaInside/tea-inside-bot-s2 | /src/Bot/Telegram/Abstraction/EventHandler.php | UTF-8 | 564 | 2.953125 | 3 | [
"MIT"
] | permissive | <?php
namespace Bot\Telegram\Abstraction;
use Bot\Telegram\Events\EventRecognition as Event;
abstract class EventHandler
{
/**
* @var \Bot\Telegram\Events\EventRecognition
*/
protected $e;
/**
* @var string
*/
protected $chattype;
/**
* Constructor.
*
* @param... | true |
48162bd15cffda0992d9b4140b3c3ae7ef99a7d8 | PHP | Fifa2/project_fifa | /website_fifa/project_fifa/app/pools.php | UTF-8 | 572 | 2.59375 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: shoev
* Date: 16-5-2017
* Time: 14:25
*/
namespace project_fifa;
class pools
{
protected $idPool;
protected $idTeamA;
protected $idTeamB;
protected $idTeamC;
protected $idTeamD;
protected $idTeamE;
function __construct($idPool,$idTeamA,$idTea... | true |
09b954d89cecfc7fd4c12f88f83b4d1e663cc89d | PHP | DimitrisKas/PLH518-Cloud-Services-Course | /main_app/app/Utils/Logs.php | UTF-8 | 843 | 3.296875 | 3 | [] | no_license | <?php
// Save msg to log
function logger($msg)
{
$filename = $_SERVER['DOCUMENT_ROOT'].'/Utils/Logs/log.txt';
$msg = date("[d/m] h:i:sa") . ": ". $msg . "\n";
file_put_contents( $filename, $msg, FILE_APPEND);
}
// Get Last 10000 characters from logs
function getLogs(): string
{
$filename = $_SERVER[... | true |
0d9209a2a73a5b0593af92526daa3bcfb02aac3d | PHP | welcometriculin/runpando | /uatrunpando/models-18-01-2017/LabelNames.php | UTF-8 | 2,391 | 2.53125 | 3 | [] | no_license | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "label_names".
*
* @property integer $label_names_id
* @property string $crop_label
* @property string $product_label
* @property string $village_label
* @property string $sub_activity_label
* @property integer $company_id
* @prope... | true |
fd079e302d86404671ad07c23d52e5e248c54952 | PHP | SsewagumaJonathan/Icare-Hospital | /app/Models/Skill.php | UTF-8 | 1,592 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Skill
* @package App\Models
* @version March 13, 2020, 9:23 am UTC
*
* @property string Skill_Name
* @property integer employee_id
* @property string Start_Date
* @property string Employee_History
* ... | true |
97de36b1796d1bcd8d976cd6914276258356878e | PHP | alexeevdv/string-psr-logger | /src/StringLogger.php | UTF-8 | 1,271 | 3.28125 | 3 | [
"MIT"
] | permissive | <?php
namespace alexeevdv\psr;
use Psr\Log\AbstractLogger;
/**
* Class StringLogger
* @package alexeevdv\psr
*/
class StringLogger extends AbstractLogger
{
/**
* @var string
*/
private $_log;
/**
* @inheritdoc
*/
public function log($level, $message, array $context = [])
{... | true |
8a5f53efbbd9714cbe5e653fa225704242a2406c | PHP | luqmanarifin/IF3110-2015-T1 | /src/controller/questionController.php | UTF-8 | 480 | 2.53125 | 3 | [] | no_license | <?php
require_once '../model/question.php';
if($_SERVER["REQUEST_METHOD"] == "POST") {
$id = $_POST["id"];
$name = $_POST["authorName"];
$email = $_POST["authorEmail"];
$topic = $_POST["topic"];
$content = $_POST["content"];
$questionModel = new Question();
if($id == -1) {
$questionModel->add($nam... | true |
7d2f7b7e3a870b7d287103e18f004794d4c7eef9 | PHP | BrunoNaves07/modelagem_e_implementacao_de_software | /Teste.php | UTF-8 | 596 | 3.90625 | 4 | [] | no_license | <?php
/**
* classe de Teste
*/
class Teste {
private $valX;
private $valY;
/**
* Construtor
*/
public function __construct($valX, $valY) {
$this->valX = $valX;
$this->valY = $valY;
}
/**
* Get valor de X
*/
public function getValX()... | true |
01c101237485175e0e57aaf87649c23162f0413e | PHP | CcrisS/PHP-Patterns | /creational/decorator/minimalist/Decorator.php | UTF-8 | 407 | 2.71875 | 3 | [] | no_license | <?php
/**
* Decorator participant
* @package creational/decorator/minimalist/Decorator.php
*/
abstract class Decorator extends IComponent
{
// Inherits both getSite() and getPrice()
// This is still an abstract class and there's no need to implement either abstract method here
// Its job is to maintain referenc... | true |
caed555aa50fe34d5688af1b20fa96c5849ea6dc | PHP | Bhekisizwe/Wheel_Software_App | /Eclipse Settings/WheelSystem/vendor/UserClasses/BusinessObjects/src/BusinessObject.php | UTF-8 | 2,174 | 3.140625 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace UserClasses\BusinessObjects;
/**
*
* @author Bheki Mthethwa
*
*/
abstract class BusinessObject
{
//status of request processing
protected $transactionStatus=False;
//associative array of errors
protected $errorAssocArray;
//action code sent from the clie... | true |
6d0b969fc6ef9239e651e70538a31699948a6f10 | PHP | cegepmatane/projet-bd-2018-marina-totale-MarinaSite | /docker-marina-site/app/src/vue/creerCompte.php | UTF-8 | 5,797 | 2.90625 | 3 | [] | no_license | <?php include 'headerConnexion.php';
$prenom = null;
$nom = null;
$mail = null;
$motDePasse = null;
$password2 = null;
$mobile = null;
$dejaPost = 0;
if (!empty($_POST)) {
$dejaPost = 1;
}
if ((isset($_POST['motDePasse']))) {
$motDePasse = $_POST['motDePasse'];
}
if ((isset($_POST['password2']))) {
$passw... | true |
f6b81cdabc805d79e99b9f9f2d10966893a3c5bd | PHP | JuKu/CMS | /widgets/Widget_Log.php | UTF-8 | 951 | 2.640625 | 3 | [] | no_license | <?php
class Widget_Log extends Widget {
public function Widget ($sys) {
$this->sys = $sys;
$this->lang = $this->sys->getLang();
$this->log = $sys->getLog();
$this->db = $sys->getDB();
}
public function load() {
$this->headline = "Admin-Log";
$this->con... | true |
9181c6a8c38945cd4cc542a957be6c1a41a08b19 | PHP | Devonia/battle4tetris | /src/AppBundle/Controller/DefaultController.php | UTF-8 | 5,084 | 2.5625 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
namespace AppBundle\Controller;
use AppBundle\Entity\MarkedPoint;
use AppBundle\Entity\Partie;
use AppBundle\Entity\Player;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Ht... | true |
b121ca2ac5a1399d332d275ce076d42b0b75974c | PHP | Peter-Oe/gambio | /GXModules/Mollie/Mollie/vendor/mollie/integration-core/src/BusinessLogic/Configuration.php | UTF-8 | 2,891 | 2.71875 | 3 | [
"BSD-2-Clause"
] | permissive | <?php
namespace Mollie\BusinessLogic;
use Mollie\BusinessLogic\Http\DTO\WebsiteProfile;
use Mollie\Infrastructure\Logger\Logger;
/**
* Class Configuration
*
* @package Mollie\BusinessLogic
*/
abstract class Configuration extends \Mollie\Infrastructure\Configuration\Configuration
{
const MIN_LOG_LEVEL = Logg... | true |
7aaf9db14d7aac79edb151bd7c411ec7c9ce606e | PHP | kappuccino/image | /src/Sephora/src/Exception.php | UTF-8 | 1,004 | 3.359375 | 3 | [] | no_license | <?php
namespace Sephora;
class Exception extends \Exception{
private $name;
private $path;
protected $code;
// Redéfinissez l'exception ainsi le message n'est pas facultatif
public function __construct($data, $code = 0, \Exception $previous = null) {
#var_dump($data);
if($data['name']) $this->name = $dat... | true |
8d17d3b171f7e0e56a93738db79a995904908465 | PHP | tamurayk/laravel-photo-sharing-app | /src/app/Models/Interfaces/BaseInterface.php | UTF-8 | 15,222 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
namespace App\Models\Interfaces;
use Carbon\Carbon;
use Illuminate\Database\ConnectionResolverInterface as Resolver;
/**
* Interface BaseInterface
* @package App\Model\Entities
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*/
interface BaseInterface
{
... | true |
f1dd21229a924198253b4414d17e1672e444d97b | PHP | vartananastasia/SMS-Aero | /SMS/Client.php | UTF-8 | 3,014 | 2.859375 | 3 | [] | no_license | <?php
namespace SMS;
use GuzzleHttp\Client as GC;
/**
* Class Client
* @package SMS
*/
class Client
{
private $login;
private $password;
# subscription in sms
const from = 'LEXAND'; // Change subscription
# chanel types
const TYPE_4 = 4;
const TYPE_5 = 5;
const TYPE_6 = 6;
... | true |
e4e938d9716e0bf8606f4603423282db925b2852 | PHP | kevinmalats/Camaron-Latino | /detalle_producto.php | UTF-8 | 1,009 | 2.84375 | 3 | [] | no_license | <?php
class detalle_producto
{
private $idDetalleProducto;
private $idProducto;
private $nombre;
private $fecha;
private $descripcion;
function __construct() {
}
function setIdDetalleProducto($idDetalleProducto){
$this->idDetalleProducto = $idDetalleProducto;
}
... | true |
1c52fc8fd93d10301231b968d7403f90cdaef721 | PHP | taemin19/todolist | /src/AppBundle/Controller/SecurityController.php | UTF-8 | 1,132 | 2.546875 | 3 | [] | no_license | <?php
namespace AppBundle\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
class SecurityController
{
/**
* @var \Twig\Environment
*/
private $twig;
/**
* Secu... | true |
feb1fda5e368f894e38853af60187e8e9d085f2d | PHP | ALandazabal/ServicioCompleto | /protected/models/Municipio.php | UTF-8 | 3,485 | 2.625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
/**
* This is the model class for table "municipio".
*
* The followings are the available columns in table 'municipio':
* @property integer $idMunicipio
* @property string $descripcionM
* @property integer $fkEstado
*
* The followings are the available model relations:
* @property Estado $fkEstado0
* @... | true |
9193473e625f4726ac5c26e95401e1d9ca9ae56a | PHP | japicoder/Behat | /src/Behat/Testwork/Tester/Cli/ExerciseController.php | UTF-8 | 5,351 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the Behat Testwork.
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Behat\Testwork\Tester\Cli;
use Behat\Testwork\Cli\Controller;
use Beha... | true |
de50a2b53ea4099f10eacca4d9462bcd8ddd02a6 | PHP | kubulu/alloweb | /content/themes/youdate/widgets/Gallery.php | UTF-8 | 3,184 | 2.59375 | 3 | [] | no_license | <?php
namespace youdate\widgets;
use app\helpers\Html;
use Yii;
use yii\helpers\ArrayHelper;
/**
* @author Alexander Kononenko <contact@hauntd.me>
* @package youdate\widgets
*/
class Gallery extends \dosamigos\gallery\Gallery
{
public $maxPhotosVisible = 3;
/**
* @inheritdoc
*/
public funct... | true |
bc5a6f6a1cf5ee33198a1e5bd2e3d1975515f54e | PHP | alabannere/Apptorant | /inc/login.php | UTF-8 | 3,308 | 2.75 | 3 | [] | no_license | <?php
// Initialize the session
session_start();
include '../inc/functions.php';
// Include config file
require_once "../config-site.php";
// Define variables and initialize with empty values
$username = $password = "";
$_err = "";
// Processing form data when form is submitted
// Check if username is empty
... | true |
ca77c0812131eb771606c3ba354ebcc9a6e99273 | PHP | yashsite/grabcollege | /app/Repositories/PostQueryBuilder.php | UTF-8 | 8,930 | 2.796875 | 3 | [] | no_license | <?php namespace App\Repositories;
use App\Models\Category;
use App\Models\Grade;
use App\Models\Post;
use App\Models\Subject;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder;
class PostQueryBuilder {
/**
* Array of available Options.
*
* @var array
*/
protected $availableOptio... | true |
a7152044c143af853b3e876ae476c6f03f41cd97 | PHP | jinchuika/suni-app | /tests/model/ModelMeSolicitud.test.php | UTF-8 | 4,084 | 2.671875 | 3 | [] | no_license | <?php
/**
* Clase para probar el modelo de solicitudes de MyE
*/
require_once dirname(__FILE__) . '/../../app/bknd/autoload.php';
$AUTOLOAD_LVL = 2;
class MeSolicitudTest extends PHPUnit_Framework_TestCase
{
public function testExiste()
{
$me_solicitud = new MeSolicitud();
$this->assertInstanceOf('MeSolicitud',$m... | true |
f3beab9c31b52e40d6c00db9ee0e7885ec3b535a | PHP | saahaaar/Integration | /src/FavorisBundle/Entity/Favoris.php | UTF-8 | 801 | 2.75 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | <?php
namespace FavorisBundle\Entity;
/**
* Favoris
*/
class Favoris
{
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $libelleFav;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
... | true |
3f4cfec70182b0a0db92b2ab7335f02195a79e1d | PHP | nicolagaldiolo/laracasts | /design-patterns-in-php/TheDecoratorPattern.php | UTF-8 | 1,278 | 3.65625 | 4 | [] | no_license | <?php
// Con il decorator pattern posso decorare delle classi con altri oggetti che implementano la stessa interfaccia
// posso iniettare una classe all'interno del costruttore dell'altra
// https://medium.com/@sirajul.anik/understanding-decorator-pattern-with-php-implementation-7f536e742bb0
interface Maintenance {
... | true |
1e7394650469614b77a1a9f42a263f7900b53842 | PHP | kweon332000/lab06 | /customer.php | UTF-8 | 2,923 | 2.734375 | 3 | [] | no_license | <!DOCTYPE html>
<html>
<head>
<title>Fruit Store</title>
<link href="http://selab.hanyang.ac.kr/courses/cse326/2015/problems/pResources/gradestore.css" type="text/css" rel="stylesheet" />
</head>
<body>
<?php
if ($_POST["card"] == "Visa") {
$r="/^4[0-9]{15}/";
}
elseif($_POST["card"]=="Master... | true |
b2216963a19bbfde767b862cab67d7e9d652f9d4 | PHP | ricardosierra/changelog | /tests/unit/ChangeLogTest.php | UTF-8 | 1,735 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
/**
* PHP Version 5.6
* @category Library
* @package ChangeLog
* @author Emlyn West <emlyn.west@gmail.gom>
* @license MIT http://opensource.org/licenses/MIT
* @link https://github.com/emlynwest/changelog
*/
namespace ChangeLog;
use Codeception\TestCase\Test;
use LogicException;
use Mockery;
/**
* Tests... | true |
a3f8c072653c8b5fafd4998018c00922f04cf128 | PHP | joelbejar/Calidad | /ajax/tablaValoraciones.ajax.php | UTF-8 | 2,779 | 2.546875 | 3 | [] | no_license | <?php
require_once "../controladores/valoraciones.controlador.php";
require_once "../modelos/valoraciones.modelo.php";
require_once "../controladores/general.controlador.php";
require_once "../modelos/general.modelo.php";
class TablaValoraciones{
/*=============================
... | true |
8c0e87abf47da7e16451e7f9a81c09ac94d3c55d | PHP | kosuha606/multilogin | /src/client/Login.php | UTF-8 | 963 | 2.71875 | 3 | [] | no_license | <?php
namespace app\client;
class Login
{
public $baseUri = 'https://multilogin.kosuha606.ru/';
private $password;
private $user;
public function __construct($user, $password)
{
$this->password = $password;
$this->user = $user;
}
public function getToken()
{
... | true |
233cd4db05bb495ab67f0fc88325de5d2e2a9d82 | PHP | Strig007/ajax | /DbInsert.php | UTF-8 | 705 | 2.59375 | 3 | [] | no_license | <?php
require 'DbConnect.php';
function register ($firstname, $lastname, $gender, $dob, $religion, $presentAddress,
$permanentAddress, $phone, $email,$personal, $username, $password)
{
$conn = connect();
$sql = $conn->prepare("INSERT INTO user (FirstName, LastName, Gender, DateOfBirth, ... | true |
bb6d3723ceb8070d7f2974ae5e3fdd3ab194e55f | PHP | bmenadue/Web-1 | /PHP/masterStyle/labs/week05/addscore.php | UTF-8 | 4,338 | 2.8125 | 3 | [] | no_license | <!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Guitar Wars - Add Your High Score</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="header">
<h2>Guitar Wars - Add Your High Score</h2>
</div>
<br>
<div class="sc... | true |
ac2df72363567a249cfd9ebc395d71559ee13f9d | PHP | BrainThc/cj_dev | /application/common/model/Message.php | UTF-8 | 1,139 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | <?php
namespace app\common\model;
use think\Db;
use think\Model;
/**
* 留言model
* Class User
*/
class Message extends Model
{
protected $name = 'message_list';
protected $pk = 'id';
//阅读状态
const READ_STATUS = 0;
const READED_STATUS = 1;
//回复状态
const REPLY_STATUS = 0;
const REPLYED_STA... | true |
849bf4356df63b40c7d301de3938ae817b4d2a75 | PHP | laradic/assets | /src/Helper.php | UTF-8 | 5,354 | 2.859375 | 3 | [
"MIT"
] | permissive | <?php
namespace Laradic\Assets;
use Illuminate\Contracts\Routing\UrlGenerator;
class Helper
{
/** @var UrlGenerator */
protected static $urlGenerator;
/**
* @return mixed
*/
public static function getUrlGenerator()
{
return self::$urlGenerator;
}
/**
* Set the url... | true |
4ecb0aa2ab41b2e24d65ff604eae2aba3537752d | PHP | squigg/azure-queue-laravel | /tests/AzureConnectorTest.php | UTF-8 | 2,495 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace Squigg\AzureQueueLaravel\Tests;
use MicrosoftAzure\Storage\Queue\Internal\IQueue;
use MicrosoftAzure\Storage\Queue\QueueRestProxy;
use Mockery;
use Mockery\MockInterface;
use Squigg\AzureQueueLaravel\AzureConnector;
use Squigg\AzureQueueLaravel\AzureQueue;
class AzureConnectorTest extends TestCase
{
... | true |
ae40e9be65a49939fe61a975bb27095dd8f79911 | PHP | gurmesoft/gurmesoft-invoice | /src/Base/Taxpayer.php | UTF-8 | 2,643 | 2.625 | 3 | [] | no_license | <?php
namespace GurmesoftInvoice\Base;
class Taxpayer
{
protected $taxNumber;
protected $taxOffice;
protected $firstName;
protected $lastName;
protected $company;
protected $email;
protected $phone;
protected $address;
protected $district;
protected $city;
protected $countr... | true |
8e1f2e5122f6c95ff6fd85d3935c5ec55aabfc13 | PHP | wxy1991725/farmCode_clone | /lib/Config.lib.php | UTF-8 | 863 | 2.5625 | 3 | [] | no_license | <?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
final class Lib_Config {
static function GetConfig($key = null) {
if (!empty($key)) {
if (strpos($key, '.')) {
$name = explode('.', $key);
$name[0] = strto... | true |
33570f579e7da35081857b9ee0f05f46fbfff97a | PHP | OlegKalmykov/Zadmin | /app/Zed/Players/Http/Controllers/Backend/ActivitiesController.php | UTF-8 | 1,133 | 2.5625 | 3 | [] | no_license | <?php
namespace Zed\Players\Http\Controllers\Backend;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Zed\Players\Services\ActivitiesDiagramService;
class ActivitiesController extends Controller
{
/**
* @var ActivitiesDiagramService
*/
private $activitiesDiagramService;
/**... | true |
b54b12b1450ca7d34e316a7ba15898aaa8245e4c | PHP | visualplus/helper | /src/SecureUrlGenerator.php | UTF-8 | 2,323 | 2.84375 | 3 | [
"MIT"
] | permissive | <?php namespace Visualplus\Helper;
use Illuminate\Routing\RouteCollection;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
class SecureUrlGenerator extends \Illuminate\Routing\UrlGenerator
{
/**
* ssl을 적용해야하는 url
* @var array
*/
protected $mustBeSecure = [];
/**
* ssl 적용하지 않는... | true |
65dc71b6a9ca85ca4c9d87afa50388b25c01c0fe | PHP | nishat-mumu/wt | /final/final labtask-6/Final labtask-6/Design/ShowInfo.php | UTF-8 | 1,108 | 2.75 | 3 | [] | no_license | <?php
include ('../DB connection/db.php');
$connection = new db();
$conobj=$connection->OpenCon();
$sql = "SELECT id,username, pass,email,dob FROM userinfo";
$result = $conobj->query($sql);
$connection->CloseCon($conobj);
?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-... | true |
b52f6d2aa5ab1e6a1bf05c17a3d110986976fcab | PHP | thatcoderagain/Picket | /vendor/tymon/jwt-auth/src/Providers/JWT/Lcobucci.php | UTF-8 | 4,401 | 2.671875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types=1);
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Providers\JWT;
use Exception;
use ReflectionClas... | true |
290d25f3d6ac38bb9ce37a502a0f1a79702477aa | PHP | macofallico/phpvms | /app/Contracts/Controller.php | UTF-8 | 2,724 | 2.875 | 3 | [] | permissive | <?php
namespace App\Contracts;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\Request;
use Laracasts\Flash\Flash;
/**
* Class Controller
*/
abstract class Controller extends \Illumin... | true |
0446fb9c17412e95008f16ba5c42c0deca216697 | PHP | ys1985/archive | /muscle-talk/lib/Message.php | UTF-8 | 829 | 3.28125 | 3 | [] | no_license | <?php
namespace MuscleTalk;
use MuscleTalk\Participant;
/**
* メッセージクラス
* 一つ一つの発言を表す
*/
class Message
{
// /var MessageId
private $id;
// @var Member 発言者
private $member;
// @var string 発言内容
private $text;
/**
* @param string 発言の内容
*/
public function __construct(Member $member, $text... | true |
2f9db1fc8b3ef98ea7846436905a48964e2442be | PHP | traycycles/itse_class | /program-07/selfprocessor.php | UTF-8 | 9,047 | 2.765625 | 3 | [] | no_license | <!DOCTYPE HTML>
<html>
<head>
<style>
.error {
color: deeppink;
}
</style>
</head>
<body>
<h2 style="text-align: center; padding-bottom: 100px">Requirement #8</h2>
<?php
/**
* Created by PhpStorm.
* User: Tracy
* Date: 2/18/2016
* Time: 11:28 PM
*/
$nameErr... | true |
b95cf7369945453d12dc44ee63f8a652813c777c | PHP | AndyDune/ok62.ru | /!_dune/_lib/ver_1/Special/Vtor/Nearby/List/Groups.php | WINDOWS-1251 | 6,542 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
/**
*
* .
*
*/
class Special_Vtor_Nearby_List_Groups
{
protected $_DB = null;
protected $_status = null;
protected $_id;
protected $_userId = 0;
protected $_data = false;
protected $_orderString = '';
public static $tableGroups = 'unity_cata... | true |
367a9a60ffe65df01c1b75e815835c58f5b2b89d | PHP | mindplay-dk/petitparserphp | /src/RepeatingParser.php | UTF-8 | 895 | 3.453125 | 3 | [] | no_license | <?php
namespace petitparser;
/**
* A parser that repeatedly parses a sequence of parsers.
*/
abstract class RepeatingParser extends DelegateParser
{
/**
* @var int
*/
protected $_min;
/**
* @var int
*/
protected $_max;
/**
* @param Parser $parser
* @param int $min... | true |
5092f1190bb11d58c6834bfd5b69058a9fb03ff4 | PHP | janssens/classements_fftri_raids | /src/Repository/ClubRepository.php | UTF-8 | 2,518 | 2.625 | 3 | [] | no_license | <?php
namespace App\Repository;
use App\Entity\Club;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use Symfony\Bridge\Doctrine\RegistryInterface;
/**
* @method Club|null find($id, $lockMode = null, $lockVersion = null)
* @method Club|null findOneBy... | true |