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
2b994f3f2baabef6d37a1f31ac41fd5d678abb13
PHP
staronetres/newitb
/database/seeds/BlogsTableSeeder.php
UTF-8
669
2.578125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Blog; class BlogsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $blog_one = new Blog(); $blog_one->title = 'This is the title of my first blog'; $blog_one->bod...
true
b58da71ab00ca302b34a2f3df6651b57cf0c4df4
PHP
codesyariah122/rewrite-url-lighthttpd
/login/admin.php
UTF-8
1,884
2.5625
3
[]
no_license
<?php session_start(); if(isset($_SESSION['username'])): $username=$_SESSION['username']; $password=$_SESSION['password']; require 'time.php'; ?> <h1> <?=$text." ".$username;?> <?=$password;?> </h1> <?php else: header("Location:/login/"); endif; ?> <form action="" method="POST"> <?php $action=["process","disk"]; $...
true
5a352ca350ec24d7f63e3e0a4c0c38f6ed577987
PHP
Rockvole/indoor-air-quality-dashboard
/www/calendar/year.php
UTF-8
1,730
3.015625
3
[ "MIT" ]
permissive
<?php require('calendar.php'); date_default_timezone_set('UTC'); setlocale(LC_ALL, 'en_US'); // get the year from the query string and sanitize it $year = filter_input(INPUT_GET, 'year', FILTER_VALIDATE_INT); $calendar = new calendar(); $currentYear = $calendar->year($year); // get the previous and next year fo...
true
48372f87385cd720f685791f775c144bdc32a8eb
PHP
matsumoto-sp/sdcbar_sample
/server-side/tests/lib/DbConnector.php
UTF-8
227
2.71875
3
[ "MIT" ]
permissive
<?php class DbConnector extends \PDO { public $login_name; public function __construct($dsn, $user, $password) { $this->login_name = $user; parent::__construct($dsn, $user, $password); } }
true
e587a362e62cd42a7f344eb9b1734f8a55df61a3
PHP
flipty/hutch2
/wp-content/plugins/vimm-accessibility/vimm-accessibility.php
UTF-8
2,238
2.671875
3
[]
no_license
<?php /* * Plugin Name: Vimm Accessibility * Plugin URI: http://www.vimm.com * Description: Creates the shortcode [get-accessibility-statement] to load the accessibility page content remotely * Author: Vivid Image Development Team * Version: 1.0 * Author URI: http://www.vimm.com * GitHub Plugin URI: https://github.com...
true
aa690af6f333f6de579ea74fe84face9dc5c8537
PHP
toshcn/yii-len168
/common/models/MyUser.php
UTF-8
2,110
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @link http://www.len168.com/ * @copyright Copyright (c) 2015 len168.com * @license http://www.len168.com/license/ */ namespace common\models; use Yii; use yii\web\User; use yii\web\IdentityInterface; class MyUser extends User { /** * 会员登录 * 登录后更新auth_key令牌, 同一帐号无法异地同时登录 * @see [[...
true
d2a79a78ec3c1febb0ce038e3698081d602fe4af
PHP
Simplon-Roubaix/php_product_seafy-guillaume
/library/debug.php
UTF-8
117
2.609375
3
[ "MIT" ]
permissive
<?php function dd($variable){ ?> <pre> <?php print_r($variable); ?> </pre> <?php die(); }
true
6a356a954fabcaf2eb49d87408608f98cf0893dd
PHP
mrrobot47/site-command
/migrations/db/20181212035130_site-command_fix_ssl_entries.php
UTF-8
1,421
2.625
3
[]
no_license
<?php namespace EE\Migration; use EE; use EE\Model\Site; use EE\Migration\Base; class FixSslEntries extends Base { public function __construct() { parent::__construct(); $this->sites = Site::all(); if ( $this->is_first_execution || ! $this->sites ) { $this->skip_this_migration = true; } } /** * Ex...
true
b1561cad0ef0aead7f5dcc1f766dd8c37766dfd0
PHP
lowfill/statisticsextended
/lib/statistics.php
UTF-8
15,952
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /** * Return the number of active and inactive users in the site. * * If a group is specified the query is restricted to that group only * * @param $group optional group id * @return mixed an array (members_count,non_members_count) */ function statistics_extended_active_count($group=null){ g...
true
2a4a7cea51d960b88a95a796b8368fb3208eef01
PHP
syrotchukandrew/aws_api
/src/AppBundle/AwsManager/AwsS3Manager.php
UTF-8
1,774
2.90625
3
[]
no_license
<?php namespace AppBundle\AwsManager; use Aws\S3\S3Client; class AwsS3Manager { private $region; private $version; private $key; private $secret; /** * @var S3Client */ private $client; /** * @var string */ private $bucket; public function __construct($region...
true
fc125331fc0c42ee78c56d903c74a014d8590313
PHP
Dheia/oc-shop-plugin-old
/components/Navigation.php
UTF-8
738
2.53125
3
[ "MIT" ]
permissive
<?php namespace Bedard\Shop\Components; use Bedard\Shop\Models\Category as CategoryModel; use Cms\Classes\ComponentBase; class Navigation extends ComponentBase { /** * @var Collection */ public $categories; /** * Component details * * @return array */ public function c...
true
ec3acd91bbba6d8a5073600c8e33a3c5d552a517
PHP
bmw546/tamtaam
/HTML/produit.php
UTF-8
1,785
2.828125
3
[]
no_license
<?php /******************************** Fichier : produit.php Auteur : Joel Lapointe Fonctionnalité : WEB-02 - Gestion des commandes Date : 23 avril 2018 Vérification : Date Nom Approuvé ==================================================== Historique de m...
true
b68afd1b62c65ac74c09a466248ee10882a84de0
PHP
mgkimsal/Cinch
/protected/commands/MakeCsv.php
UTF-8
1,004
2.921875
3
[ "BSD-3-Clause" ]
permissive
<?php abstract class MakeCsv extends CConsoleCommand { /** * Get user's base download path for csv file creation * @param $user_id * @param $type * @access public * @return string */ public function getUserPath($user_id, $type = 'curl') { $user_name = Yii::app()->db->createCommand() ->select('username') ...
true
f02e693b3269b88a7f8aff7b1b679ac3530dea5a
PHP
cgTag/php-disposable
/src/Handlers/DisposeHandler.php
UTF-8
5,030
3.078125
3
[ "MIT" ]
permissive
<?php namespace cgTag\Disposable\Handlers; use cgTag\Disposable\Exceptions\MissingPropertyException; use cgTag\Disposable\Exceptions\NotAnObjectException; use cgTag\Disposable\Exceptions\NotPublicPropertyException; use cgTag\Disposable\Exceptions\PropertyParamException; use cgTag\Disposable\Exceptions\StaticPropertyEx...
true
676f5a8cd6fa11f9d659fb591fb13c0be8837cc9
PHP
suhara-kana/jstest
/DocumentRoot/book/rensyu/renshu3/send-reserve.php
UTF-8
1,043
2.75
3
[]
no_license
<pre style="font: normal 1.1em/125% Consolas"> ファイル一つで送信→受信するための分岐 <?php //確認画面 if( !empty( $_POST['submit']) && !empty( $_POST['onamae']) ){ /* 送信された値があればここに出す */ echo $_POST['onamae'] ; ?> <form action="" method="post"> <input type="hidden" name="onamae" value="<?=$_POST['onamae']?>"> <...
true
1e25a95e88213e3365fdebe078e975c75237947c
PHP
pieman1981/simonlait.info
/wordpress - theme option page builder/theme_options.php
UTF-8
5,572
2.921875
3
[]
no_license
<?php /** * Include the builder class */ include('class.ThemeOptionPageBuilder.php'); /** * Create a default variable for current option tab */ $sl_options_current = ''; /** * Create a class instance */ $sl_options = new ThemeOptionPageBuilder(); /** * Now add tabs (key is the URL parameter, value is the text...
true
bfe231e3d44a01558f03a256dddfa4281d51f97d
PHP
kingsoftcloud/sdk-php
/src/Ksyun/Client/Ebs/V20160304/Models/DescribeVolumesResponse.Php
UTF-8
837
2.578125
3
[]
permissive
<?php namespace Ksyun\Client\Ebs\V20160304\Models; use Ksyun\Common\BaseModel; class DescribeVolumesResponse extends BaseModel { /** 唯一请求ID,每次请求都会返回**/ public $RequestId; /**Object 云硬盘相关信息列表,若无信息则不返回**/ public $Volumes; public function __construct() { ...
true
63269b030fc90b6de4a4a357d4280e47a3a83753
PHP
overtrue/wisteria
/src/Documentation.php
UTF-8
3,842
2.671875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the overtrue/wisteria. * * (c) overtrue <anzhengchao@gmail.com> * * This source file is subject to the MIT license that is bundled. */ namespace Overtrue\Wisteria; use Illuminate\Contracts\Cache\Repository as Cache; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\St...
true
6524dc0ee98cf35613b09dfb79c084989b09d2e9
PHP
imgrbs/laravel-hello-post
/app/Repositories/PostRepositoryInterface.php
UTF-8
179
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; interface PostRepositoryInterface { public function create($post); public function getPosts(); public function getPost($postId); }
true
81c962547a11fd98458172dc3368939c6a00999f
PHP
chec000/rapifixv1
/app/Helpers/CommonFunctions.php
UTF-8
3,890
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: vicente.gutierrez * Date: 18/07/18 * Time: 09:46 */ if (! function_exists('str_limit2')) { function str_limit2($value, $limit = 100, $end = '...') { if (mb_strwidth($value, 'UTF-8') <= $limit) { return $value; } $pos = strpos($value...
true
cd48d8b1fec1e80145e6b6cb0151ea2fceb08046
PHP
gmsantos/php-community-summit-logs
/magento/dev/tests/static/framework/Magento/Sniffs/Less/CombinatorIndentationSniff.php
UTF-8
1,225
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0", "OSL-3.0" ]
permissive
<?php /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Sniffs\Less; use PHP_CodeSniffer_File; use PHP_CodeSniffer_Sniff; /** * Class CombinatorIndentationSniff * * Ensure that spaces are used before and after combinators * * @link http:...
true
386b7aefa6912114312fa6fd54b006196f2b5f7c
PHP
bciar/woocommerce-shop
/pakkelabels-for-woocommerce/includes/legacy_pakkelabels_shipping_gls_business.php
UTF-8
4,095
2.59375
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } require_once('legacy_pakkelabels_shipping_main.php'); /** * @class Pakkelabels_Shipping_GLS_Business_Legacy * @version 0.1.0 * @author Magnus Vejlø - Pakkelabels */ class Legacy_Pakkelabels_Shipping_GLS_Business extends Legacy_Pakkelabels_Shipping_Main { ...
true
73a3a2632399684541fb21922cc8f44de69b03f0
PHP
Mikiko6276/sample3
/practice13-4.php
UTF-8
187
2.859375
3
[]
no_license
<?php function max_array($arr){ $max_number = $arr[0]; foreach($arr as $a){ $result //どうしたらいいかわからない・・・・ } return $max_number; }
true
f73909c40e05b114c9f24aa9abdce547fe834a11
PHP
kangaijing/guorenxiong-admin
/application/base/Base.php
UTF-8
1,952
2.53125
3
[]
no_license
<?php /* ** 后台基类控制器,后台登陆直接继承此控制器 */ class BaseController extends Yaf_Controller_Abstract { // 自动优先加载 public function init() { // 检测后台 url 密码 $config = Yaf_Application::app() -> getConfig() -> get('encrypt'); $ufw_passwd = $config['ufw']; // 如果设置了后台 url 密码 if($ufw_passwd){ $ufw_session =...
true
e65b5dbca0a7114159a2968e172d31e4b06f50f3
PHP
Aline-L/ProjetWebPartie2
/inscription.php
UTF-8
2,042
2.84375
3
[]
no_license
<?php session_start() ?> <!DOCTYPE html> <html> <?php include("./includes/head.php"); ?> <body> <?php include ("./includes/header.php"); ?> <div id="colonneP"> <div id="inscription"> <form id="Inscription" method="post" action="#" > <input name="Identifiant" type="text" placeholder="Pse...
true
d2acca22cf2b3c0b81dd58436c87b7e1f3fe1bf9
PHP
lky44132/assign3
/displaydoc.php
UTF-8
1,473
2.71875
3
[]
no_license
<!DOCTYPE html> <!-- Author: Kaiyang Lin --> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="all.css"> </head> <body> <div id="show"> <?php $dbhost = "localhost"; $dbuser= "root"; $dbpass = "cs3319"; $dbname = "klin88assign2db"; $connection = mysqli_co...
true
594d5ff2d28471e1da6775e5a4bb3f17e888fbab
PHP
justForLu/www.escort.com
/app/Repositories/Admin/PermissionRoleRepository.php
UTF-8
1,429
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Admin; use App\Repositories\BaseRepository; class PermissionRoleRepository extends BaseRepository { public function model() { return 'App\Models\Admin\PermissionRole'; } /** * 批量插入角色权限关系 * @param $permissions * @param $role * @return mix...
true
a13e53fd6201088a02f5d59d9eee947be77d81f1
PHP
Barraguesh/GDAW
/2GDAW/DWES/MVC/controller/EmpleadoController.php
UTF-8
1,312
2.734375
3
[ "MIT" ]
permissive
<?php require_once "core/Conectar.php"; class EmpleadoController { //Metodos public function run($action) { switch ($action) { case "index": $this->carga(); break; case "alta": $t...
true
be352af752916d23816236ea92b36d1ad2b60f5c
PHP
humuhimi/start
/Calender/Calender.php
UTF-8
2,603
3.21875
3
[]
no_license
<?php namespace Myapp; // ini_set('display_errors',1); class Calender{ // public $ini; public $prev; public $next; public $yearMonth; private $_thisMonth; // よく使う奴はprivateにしておく function __construct(){ try { if(!isset($_GET['t'])||!preg_match('/\A\d{4}-\d{2}\z/',$_GET['t'])){ throw new \Exc...
true
c664ccbca3afff4ee9cb618f9ccfd0a685fab34e
PHP
JKVX/vr_web
/application/models/teambuild_model.php
UTF-8
4,157
2.640625
3
[]
no_license
<?php class TeamBuild_model extends CI_Model { /** *将$data添加到teambuild表 *@param $data */ public function insert($data) { $this->db->insert('teambuild', $data); } /** *在teambuild表中更新$data信息 *@param $data */ public function update($data) { $thi...
true
d4a2fa1980f1e00d7b84d6b2ccb54e40aec4d7c8
PHP
softdev1029/into-world-travel
/administrator/components/com_admintools/platform/Filescan/Driver/Joomla.php
UTF-8
3,782
2.640625
3
[]
no_license
<?php /** * @package AdminTools * @copyright 2010-2016 Akeeba Ltd / Nicholas K. Dionysopoulos * @license GNU General Public License version 3, or later */ namespace Akeeba\Engine\Driver; // Protection against direct access defined('AKEEBAENGINE') or die(); use Akeeba\Engine\Base\Object; use Akeeba\Engine\Pla...
true
171db9843abeb0c56c3246c75dfe7bcc272653fd
PHP
AndreaCano/cst336
/FinalProject/updateCandy.php
UTF-8
5,593
2.78125
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['username'])) { //validates that admin has indeed logged in header("Location: index.php"); } include("../dbConnection.php"); $conn = getDatabaseConnection("candy"); function getTypeInfo(){ global $conn; $sql = "SELECT typeName, typeId ...
true
259cf1855c06fb87c144c04c212125b0c319a6d0
PHP
atonui/registration
/login.php
UTF-8
4,416
2.765625
3
[]
no_license
<?php require 'config.php'; require 'header.php'; $username = $password = ''; $username_err = $password_err = ''; if (isset($_POST['btn-login'])){ $username = $_POST['username']; $password = $_POST['password']; if (empty($username)){ $username_err = 'Please fill in your username'; }elseif(em...
true
fc7c64d7462a9b2430a2ddb5cbc6c53cb21162bf
PHP
GetResponse/share-code-plugin
/src/ContactList/Autoresponder.php
UTF-8
1,726
3.0625
3
[]
no_license
<?php namespace GrShareCode\ContactList; /** * Class Autoresponder * @package GrShareCode\ContactList */ class Autoresponder { const ENABLED = 'enabled'; /** @var string */ private $id; /** @var string */ private $name; /** @var string */ private $campaignId; /** @var string */ ...
true
e0797742d7295ab7208eae738b3bbe6d88da4353
PHP
webbati/megacompany
/updates/migration104.php
UTF-8
747
2.53125
3
[]
no_license
<?php namespace FszTeam\MegaCompany\Updates; use Schema; use October\Rain\Database\Updates\Migration; class Migration104 extends Migration { public $models = [ 'employee', 'gallery', 'project', 'role', 'service', 'testimonial', 'tag', ...
true
3f280d8f954ac9808e8c1a97e50897706fbe7d82
PHP
Yukibashiri/Repositorio-Digital-Gratuito-Brasileiro
/database/seeds/DatabaseSeeder.php
UTF-8
1,317
2.546875
3
[]
no_license
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { // Ressalto que a ordem aqui importa muito, para não criar problema com as dependencias existentes. $this->call([ ...
true
3eddb3c9478126e18b32f92a6c4663ffc252ee65
PHP
philippehvp/pronostics
/creer_prono_maj_buteur.php
UTF-8
3,956
2.515625
3
[]
no_license
<?php include_once('commun.php'); // Mise à jour des buteurs // Lecture des paramètres passés à la page $match = isset($_POST["match"]) ? $_POST["match"] : 0; $joueurs = isset($_POST["joueurs"]) ? $_POST["joueurs"] : 0; $equipe = isset($_POST["equipe"]) ? $_POST["equipe"] : 0; // On vérifie avant to...
true
c50e0482bfe326f0d5263cbb1b2a6ffbb36e1ef0
PHP
D3VSOFTBG/BulgarianForum
/auth/reset-password.php
UTF-8
7,942
2.953125
3
[]
no_license
<?php // Initialize the session session_start(); // Check if the user is already logged in, if yes then redirect people to index page if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){ header("location: ../index.php"); exit; } // Include database file require_once("../include/db.php"); // In...
true
23879a97f55d2e913796352f6ae78896a26021fd
PHP
marceloleob/lumeldecor
/app/Repositories/ItemPictureRepository.php
UTF-8
1,246
2.890625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\ItemPicture; use App\Services\ImageService; class ItemPictureRepository extends BaseRepository { /** * Armazena a entidade * * @var Entity */ protected $model = ItemPicture::class; /** * Manipula as imagens do item * * @param integer $itemId * @pa...
true
ec745a8b23f58b2e4a1edabf4baf7291d1e3d1cf
PHP
MahmoudHemaid/digital-library
/database/factories/BookFactory.php
UTF-8
903
2.515625
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\Book; use App\Models\Publisher; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\SoftDeletes; class BookFactory extends Factory { use SoftDeletes; /** * The name of the factory's corresponding model. * * @va...
true
67d75e7ab3c8a29267e9d3b5c5cf54ea0d0656d5
PHP
yuyasugimoto/pull_Request
/app/Http/Middleware/checkip.php
UTF-8
609
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use App; class checkip { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $model = new \A...
true
0e09215891313fd901bbac30c3e4a498b1bb9ac6
PHP
khandesh/event_manager_cs251
/login/1.php
UTF-8
943
3.03125
3
[]
no_license
<?php $con = mysql_connect("localhost","root","kkkk"); if (!$con) { die('Could not connect: ' . mysql_error()); } // Create table /*mysql_select_db("my_db", $con); $sql = "CREATE TABLE Persons ( FirstName varchar(15), LastName varchar(15), Age int )"; // Execute query mysql_query($sql,$con); */ /* mysql_sele...
true
3aa701bc01dbec9772f6c1a4f4b9d88f2e2973d0
PHP
Marcinxxl2/PracowniaAplikacji4Tc
/php/19.10.2017/index.php
UTF-8
562
2.765625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Zajęcia 1</title> </head> <body> <?php //znacznik kanoniczny echo 'test'; ?> <? //znacznik typu SQML (włącz w php.ini) echo ''; ?> <!-- Znacznik typu asp <% %> --> <?php //komentarz jednoliniowy #komentarz unixowy /* komentarz wieloliniowy */ echo ("cudzysłów<br>"); echo ...
true
9d9b2819e7fbea69a46b9cb38e8ed556881aabf5
PHP
ezeroldan/voyager-tools
/src/Seeder/Bread/Field/Field.php
UTF-8
4,204
2.765625
3
[]
no_license
<?php namespace EzeRoldan\VoyagerTools\Seeder\Bread\Field; use Illuminate\Support\Str; use TCG\Voyager\Models\DataRow; use EzeRoldan\VoyagerTools\Seeder\Bread\Bread; use EzeRoldan\VoyagerTools\Seeder\Bread\Field\Traits\Cols; use EzeRoldan\VoyagerTools\Seeder\Bread\Field\Traits\Page; use Illuminate\Database\E...
true
29bc707fc3fa1cf721d6d5c2767f48579bb8e018
PHP
geeketi/CatClinic
/Modele/Chat.php
UTF-8
3,880
2.9375
3
[]
no_license
<?php final class Chat extends CorrespondanceTable implements CorrespondanceTableInterface { private $_I_age; private $_S_tatouage; private $_S_nom; public function __construct() { parent::__construct(Constantes::TABLE_CHAT); } // Mes mutateurs (setters) public function changeIdentifiant ($identifiant) ...
true
c6992b34a47b44f8cbe41d8b2bfb40f581968a00
PHP
Jacqu82/project_fussball
/src/AppBundle/Service/EmblemService.php
UTF-8
616
2.625
3
[]
no_license
<?php namespace AppBundle\Service; use AppBundle\Entity\Club; use Symfony\Component\DependencyInjection\ContainerInterface; class EmblemService { private $container; public function __construct(ContainerInterface $container) { $this->container = $container; } public function getEmblem(C...
true
033a632289874f6ac44961511142e3d38a28d0a9
PHP
kraenkvisuell/nova-mailcoach
/src/Imports/SubscribersImport.php
UTF-8
2,762
2.53125
3
[]
no_license
<?php namespace Kraenkvisuell\NovaMailcoach\Imports; use Carbon\Carbon; use Illuminate\Support\Collection; use Spatie\Mailcoach\Models\Subscriber; use Maatwebsite\Excel\Concerns\ToCollection; use Maatwebsite\Excel\Concerns\WithHeadingRow; class SubscribersImport implements ToCollection, WithHeadingRow { private ...
true
50b857396fab769b30c521c5bcbf09dbf56ed92d
PHP
cameronrowe2/ecommerce_be
/resources/library/email.php
UTF-8
2,332
2.96875
3
[]
no_license
<?php class email { public static function sendVerificationEmail($email, $email_hash) { // send validation email $to = $email; // Send email to our user $subject = 'Email Verification'; // Give the email a subject $message = ' Thanks for signing up! Your a...
true
50daaba830e3ef578d968029cdebed1b1b474e15
PHP
laudarch/phpBallin
/cGenPasswd.php
UTF-8
806
3.09375
3
[ "Unlicense" ]
permissive
<?php /* $Id: cGenPasswd.php,v 0.1 2009/08/15 17:17:17 aedavies Exp $ */ interface iGenPasswd { public static function genpasswd($len); public static function genid($salt); } class cGenPasswd implements iGenPasswd { public static function genpasswd($len) { $pwchars = "abcdefhjmnpqrstuvwxyz1234567890,?;.:!$=+@_...
true
1fe6f1766ab10b5192f899a6eaa4fc475b412a2c
PHP
tunet/php-project-lvl2
/src/Formatters.php
UTF-8
524
2.828125
3
[]
no_license
<?php namespace Differ\Formatters; use InvalidArgumentException; const FORMATTER_STYLISH = 'stylish'; const FORMATTER_PLAIN = 'plain'; const FORMATTER_JSON = 'json'; function getFormatter(string $format): string { return match (strtolower($format)) { FORMATTER_STYLISH => 'Differ\Formatters\Stylish', ...
true
5668643cf7938f23c67718cfb85e3111f380d3cd
PHP
Exitialis/stankinplay
/app/Services/components.php
UTF-8
2,791
2.546875
3
[]
no_license
<?php if ( ! function_exists('attrs')) { function attrs(array $options = [], array $additional = []) { $attrs = []; $options = $options + $additional; foreach($options as $key => $value) { $attrs[] = is_numeric($key) ? $value : $key . '="' . e($value) . '"'; } ...
true
05e61a4ee376689048c3545b5663a252f5502011
PHP
nikita4380/Khakimov.github.io
/lab1/lab-1-3.php
UTF-8
534
3.359375
3
[]
no_license
<TITLE> Хакимов Н.И. </TITLE> <p> Введите числе е <p> <?php const NUM_E=2.71828; print ("Число е = : ".(NUM_E).'<br>'); ?> <p> <?php $num_el=(string)NUM_E; print("Тип данных Double: ".($num_el).'<br>'); ?> <p> <?php $num_el=(string)NUM_E; print("Тип данных Dtring: ".($num_el).'<br>'); ?> <p> <?php $n...
true
be2635be3790609e5945409e6bb68e57a2056b22
PHP
genie20212022/kimia-arabic
/app/Helpers/ConvertDate.php
UTF-8
675
2.921875
3
[]
no_license
<?php namespace App\Helpers; use Morilog\Jalali\CalendarUtils; class ConvertDate { public static function toGeorgian($date) { $date = explode("-", $date); $g_date = CalendarUtils::toGregorian($date[0], $date[1], $date[2]); if($g_date[1] < 10) $g_date[1] = "0".$g_date[1]; if($g_date[2] ...
true
ae6353e794e09a3870ee3dc9e6f419b88aa61d94
PHP
sohini1326/Zomato-website-clone
/zomato/add_review.php
UTF-8
874
2.515625
3
[]
no_license
<?php require "db_config.php"; session_start(); $user_id = $_SESSION['user_id']; $restaurant_id = $_GET['restaurant_id']; $review_tag = $_POST['review_tag']; $review_desc = $_POST['review_desc']; $star_rating = $_POST['star_rating']; date_default_timezone_set("Asia/Kolkata"); $review_date = ...
true
7e1fa83c672883d5b1aa0e9cc00e7a0dd946f2af
PHP
shariikhan/system
/app/Http/Controllers/StripePaymentController.php
UTF-8
1,641
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Session; use Stripe; class StripePaymentController extends Controller { /** * success response method. * * @return \Illuminate\Http\Response */ public function stripe() { return view('stripe'); ...
true
5b08edcf5e7059115c93305b7f12ae7d96617fb3
PHP
PeppeJerry/Multishop
/Multishop/website/assets/php/add_product.php
UTF-8
2,069
2.625
3
[]
no_license
<?php function add_product($info){ if(!isset($info['category'])) $category = 0; else $category = $info['category']; require 'get_setting.php'; if(!isset($info['name'])) return "Name+problem"; $info['name'] = strtolower($info['name']); $setting = get_setting(); if(!$setting['OK']) return "Get_Set...
true
0d15f60b63cb96f662ba2203226ca7fd81895fab
PHP
phacility/phabricator
/src/applications/diffusion/response/DiffusionGitResponse.php
UTF-8
955
2.6875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class DiffusionGitResponse extends AphrontResponse { private $httpCode; private $headers = array(); private $response; public function setGitData($data) { list($headers, $body) = explode("\r\n\r\n", $data, 2); $this->response = $body; $headers = explode("\r\n", $headers); $matche...
true
3ec72fa3b3852939a4f6f6827a9ce987969a2d83
PHP
Dado1513/chatSecurity
/CodeChatSecurity/ChatServerSecurity/updatePassword.php
UTF-8
1,935
2.59375
3
[]
no_license
<?php include_once('include/config.php'); include_once('include/AES.php'); $response=array(); if(isset($_POST['email']) && isset($_POST['newPassword']) && isset($_POST['oldPassword']) && isset ($_POST['root']) && $_POST['root']=="caputotavellamantovani99" && isset($_POST["id"])){ $connection = mysqli_connect(DB_HO...
true
06d851cd281ed0aaac08273ef327338e164a3237
PHP
laureano23/bpApp
/src/Mbp/PersonalBundle/Entity/CodigoSueldosRepository.php
UTF-8
6,312
2.515625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace Mbp\PersonalBundle\Entity; /** * CodigoSueldosRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class CodigoSueldosRepository extends \Doctrine\ORM\EntityRepository { /* * @param $esVariable | boolean */ public function list...
true
4bc0565f1a82a6a4a3c4878e9c82f74d91d57df8
PHP
NegoPrograma/institutional-site-php
/Controllers/ContatoController.php
UTF-8
860
2.703125
3
[]
no_license
<?php class ContatoController extends Controller { /** * */ private $data = array(); public function index(){ if(isset($_POST['name']) && !empty($_POST['name'])){ $name = addslashes($_POST['name']); $email = addslashes($_POST['email']); $msg = ...
true
3c2bf4715e845c10da594699b99cdf3bdcd16582
PHP
2br-dev/esayan_site
/core/rs/img/type/axy.inc.php
UTF-8
2,452
2.78125
3
[]
no_license
<?php /** * ReadyScript (http://readyscript.ru) * * @copyright Copyright (c) ReadyScript lab. (http://readyscript.ru) * @license http://readyscript.ru/licenseAgreement/ */ namespace RS\Img\Type; use RS\Img\Create; use RS\Img\File; /** * Этот класс задает тип масштабирования картинки. также как и у XY, только добавля...
true
b02b554bc3934262b8547f5b1cd8d2a021c1c570
PHP
daviddoran/whiteboard-capture
/post-to-hipchat.php
UTF-8
879
2.640625
3
[]
no_license
#!/usr/bin/env php <?php /** * Posts an image link into a HipChat room. */ use HipChat\HipChat; require "vendor/autoload.php"; require "utilities.php"; $image_url = get_single_argument(); $defaults = array( "from" => "Whiteboard", "notify" => false, "color" => HipChat::COLOR_YELLOW, "format" =...
true
10aeb5de07af5ee2029d52882b8772c3f93c0123
PHP
ascseb/dbforge
/classes/database/column.php
UTF-8
7,141
2.953125
3
[ "MIT" ]
permissive
<?php defined('SYSPATH') or die('No direct script access.'); /** * Database table column object. * * @package DBForge * @author Oliver Morgan * @uses Kohana 3.0 Database * @copyright (c) 2009 Oliver Morgan * @license MIT */ abstract class Database_Column { /** * Creates a new database colu...
true
ceda8946d9888a543fd71b162b7977d7d7e3eced
PHP
jeremyworboys/DrawingBoard
/drawingboard/core/functions.php
UTF-8
2,550
2.921875
3
[]
no_license
<?php if (!defined('BASE_PATH')) exit('No direct script access allowed'); /** * DrawingBoard * * A small lightweight PHP HMVC application framework. Its core design is to be * a simple starting point for small web application projects. * * @package DrawingBoard * @author Jeremy Worboys <jeremy@complexcompulsio...
true
5a9a59261f9fdca404a5546b264ec1d884fa9618
PHP
chronhub/storm
/src/Contracts/Reporter/Reporter.php
UTF-8
739
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace Chronhub\Storm\Contracts\Reporter; use Chronhub\Storm\Contracts\Tracker\MessageSubscriber; use Chronhub\Storm\Contracts\Tracker\MessageTracker; use Chronhub\Storm\Reporter\DomainType; use React\Promise\PromiseInterface; interface Reporter { /** * @var string */...
true
a535ea7a00485dec20b565a20a71798c26e2b517
PHP
huifeng-shelly-zhou/antiques
/plugins/antiques-apis/classes/class-antiques.php
UTF-8
23,595
2.5625
3
[]
no_license
<?php class ANTIQUE_LIST_ITEM{ public $id = ''; public $title = ''; public $status = ''; public $thumbnail = ''; public $headline_image = array('attachment_id'=>'', 'url'=> ''); public $promotion_image = array('attachment_id'=>'', 'url'=> ''); public $style = ''; public $owner = ''; public $price = ''; pub...
true
393578bf3b86f342da9c97e7a765a5249b345276
PHP
Hamzakh777/sbz-crm
/app/Observers/DocumentObserver.php
UTF-8
1,410
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use App\Document; use Illuminate\Support\Facades\Storage; class DocumentObserver { /** * Handle the document "created" event. * * @param \App\Document $document * @return void */ public function created(Document $document) { // } ...
true
cc9c2ab5f5891871a1a3bdff162915a677e6ff69
PHP
Crystal-Sky/myWebserver
/database/initial.php
UTF-8
1,552
2.859375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 云雪 * Date: 2018/5/7 * Time: 16:46 */ header("Status: 200 OK"); header('Content-type:text/json'); //这句是重点,它告诉接收数据的对象此页面输出的是json数据; $serverName = "localhost"; $username = "root"; $password = ""; $databaseName="mywebsite"; $urlCollection=array(...
true
ac0c1bf45e98c8d6cd9633094ee7a7b705610d0d
PHP
gesior/password-manager-backend
/src/Model/DataRowModel.php
UTF-8
2,922
2.890625
3
[]
no_license
<?php namespace App\Model; class DataRowModel { /** * @var int|null */ private $id; /** * @var int */ private $passwordEncryptionKeyId; /** * @var int */ private $recoveryInfoEncryptionKeyId; /** * @var int */ private $ownerId; /** *...
true
03c535a74bc4f9d4e17e668edb983798fe3e001f
PHP
SobhieSaad/CRUDSymf_AMQP
/src/EventsBus.php
UTF-8
627
2.75
3
[]
no_license
<?php namespace App; use App\Entity\Users; use Symfony\Component\Messenger\Envelope; use Symfony\Component\Messenger\MessageBusInterface; class EventsBus implements MessageBusInterface{ /** * @var MessageBusInterface */ private $messageBus; /** * EventsBus constructor. * @param Mess...
true
7bbfc8daedfc4d59a377f3cf900a615c03d18586
PHP
QSGolloh/Connection
/controller/ajaxcontroller.php
UTF-8
3,715
2.65625
3
[]
no_license
<?php /** *@author Selassie Golloh *@version 1.0 **/ include_once('userprofilecontroller.php'); //including the userprofile controller include_once('searchcontroller.php'); //including the searchcontroller include_once('postController.php'); $msg = $_REQUEST['msg']; switch($msg){ // search by major case 0: ...
true
bdfc8ec00198a35c16cdf007dcfa667d970b234d
PHP
drvelasquezq/back-test
/app/Traits/Conversor.php
UTF-8
1,227
3.046875
3
[]
no_license
<?php namespace App\Traits; trait Conversor { protected function fromDecimalDegreesToDegreesWithMinutesAndSeconds($number = 0) { $result = []; if ($number < 0) { $number *= -1; } $integerNumber = (int) $number; $result['degrees'] = $integerNumber; $deci...
true
9fa572ebad35e41dacadd176dfe7d11526dc6136
PHP
Redsymbol9782/twiliochat
/app/User.php
UTF-8
1,915
2.625
3
[]
no_license
<?php namespace App; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Hash; /** * Class User * * @package App * @property string $first_name * @property string $last_name * @property string $email * @property string $password * @property string $role * @pro...
true
e16a12a2f7c5e40405b350fb585a509c0db7ed00
PHP
eliot-lin/artisan
/Artisan/processString.php
UTF-8
383
3.0625
3
[]
no_license
<?php /***************************** Process String Function *****************************/ { function camelize($input, $separator = '_') { return str_replace($separator, '', ucwords($input, $separator)); } function decamelize($string) { return strtolower(preg_replace(['/([a-z\d])...
true
8f96702e593c3a550dfa88a82e491780e6393c17
PHP
CiviCooP/be.kava.kavaevent
/KavaEventHelper.php
UTF-8
7,439
2.703125
3
[]
no_license
<?php class KavaEventHelper { public $contactID = 0; public $eventID = 0; public $eventTitle = ''; public $maxRegistrations = 0; public $pharmacyID = 0; public $canRegisterTeamMembers = FALSE; public $teamMembers = []; public function __construct($drupalID, $eventID) { if ($eventID > 0 && $drupal...
true
8b485c7c78e0348bb1ab77d4120699ec16db89c5
PHP
Enakoneschniy/php5-hw
/Artem_Zhovtyi/03/index.php
UTF-8
377
3.53125
4
[]
no_license
<?php //task 1 $age= rand(0,100); echo "$age <br>"; // task 2 if ($age>=18&&$age<=59){ echo"Вам еще работать и работать <br>"; } elseif ($age>59){ echo"Вам пора на пенсию <br>"; } elseif ($age>=1&&$age<=17){ echo"Вам еще рано работать <br>"; } else{ echo "Неизвестный возраст <br>"; }
true
a0675f41a94e6d02304dd21d8c3c3539957f28f5
PHP
deependerrathore/MVC
/classes/framework/Database.php
UTF-8
588
3.5
4
[]
no_license
<?php class Database{ protected $_instance; public function getInstance(){ throw new Exception("Instance is protected"); } public function setInstance($instance){ if($instance instanceof mysqli){ $this->_instance = $instance; } throw new Exception("Instance mu...
true
6b3c84dac76e4c8880bee2214b472e052f65a4cb
PHP
wmillar/remote-backup
/server/login.php
UTF-8
1,314
2.671875
3
[]
no_license
<?php require_once('includes/db.php'); require_once('includes/helper_functions.php'); require_once('includes/path_variables.php'); session_start(); if ($_SESSION['auth'] === 1) { redirect('index.php'); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { $db = new DB(); if ($db->validLogin($_POST['username'], $_POST['pa...
true
41f03e0942573732314107ffbcedad4116876e5f
PHP
lazaarIssam/Bitbucket
/app/Http/Controllers/CompanieController.php
UTF-8
5,086
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Companie; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Auth; use Session; class CompanieController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { ...
true
d21e7c6aafa0745e51a9200def3be872f75ae8b4
PHP
rinatio/blog-example
/app/component/Request.php
UTF-8
681
2.96875
3
[]
no_license
<?php namespace app\component; /** * Class Request * Handle http request * * @package app\component */ class Request { public $properties = []; public function __construct() { $this->properties = $_REQUEST; } public function getProperty($key) { if(array_key_exists($key, ...
true
55713a831d3567b1c2a6607064898c3b5808a25a
PHP
bcerban/flags-php-sdk
/src/Flags/Flag.php
UTF-8
936
3.515625
4
[]
no_license
<?php namespace Flags; class Flag { /** @var string */ private $identifier; /** @var string */ private $name; /** * Flag constructor. * @param string $name * @param string $identifier */ public function __construct( $identifier, $name = '' ) { ...
true
b169550cf8e7f66e50856cc34eff8607a8099d50
PHP
KayevonAzuca/VarsitysEatery
/project/private_html/VarsitysEatery/php/classes/CustomExceptions/NoFormsFoundException.class.php
UTF-8
2,417
3.09375
3
[]
no_license
<?php // ========================================================================== // file: NoFormsFoundException.class.php // ========================================================================== // Developer: Kayevon Azuca // Date: 1/5/2021 // Description: // Custom exception for when no cont...
true
6bbec1cdba3298b6ccdf90109641fc379e6acf6b
PHP
sean-m-c/Agape-Project
/app/protected/extensions/EDbiCal/includes/dbiCal_metadata_DAO.class.php
UTF-8
6,657
2.765625
3
[]
no_license
<?php /** * dbiCal * ver 3.0 * * The iCal calendar database interface, using PEAR MDB2 package * * copyright (c) 2011 Kjell-Inge Gustafsson kigkonsult * www.kigkonsult.se/index.php * ical@kigkonsult.se * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Le...
true
745045b53b26efe40038597a17a90776999095d0
PHP
codingmonkey9/test
/mySecondPackage.php
UTF-8
180
2.546875
3
[]
no_license
<?php function dd($param) { if(is_array($param)){ print_r($param);exit; }elseif(is_bool($param) || is_object($param)){ var_dump($param);exit; }else{ print_r($param); } }
true
380aea6596f04df637cc96e1bc8cc411c7996f33
PHP
hkdobrev/timezones
/migrations/20140824204249_insert_login_scope_and_make_it_default.php
UTF-8
767
2.625
3
[]
no_license
<?php use Phinx\Migration\AbstractMigration; class InsertLoginScopeAndMakeItDefault extends AbstractMigration { /** * Migrate Up. */ public function up() { $this->execute( 'UPDATE `oauth_scopes` SET `is_default` = 0' ); $this->execute( ...
true
bd42e6b399f2afd102e90511c19d0a6942ef6cad
PHP
Findforsikring/Support
/src/functions.php
UTF-8
8,316
3.21875
3
[]
no_license
<?php /** * Helper functions * @global */ if (!function_exists('implode_danish_list')) { if (!function_exists('is_assoc')) { /** * Checks if array is associative or not * @param array $array * @return bool */ function is_assoc(array $array) { ...
true
ca690a6f65d9c86d44f16923276e4b580c8fe89c
PHP
ems-project/elasticms
/EMS/core-bundle/src/Resources/DoctrineMigrations/pdo_mysql/Version20220716091159.php
UTF-8
1,946
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; use EMS\CommonBundle\Helper\Text\Encoder; final class Version20220716091159 extends AbstractMigration { public function up(Schem...
true
1c058f8ed1e50db76f5fa12f20aba9533e42894b
PHP
ddanielroche/yii2-shasta
/validators/ObjectValidator.php
UTF-8
829
2.640625
3
[]
no_license
<?php namespace ddroche\shasta\validators; use yii\validators\Validator; class ObjectValidator extends Validator { /** * @var string */ public $targetClass; /** * {@inheritdoc} */ public function validateAttribute($model, $attribute) { if (is_array($model->$attrib...
true
51225fa9f693df9445f5b4b22c7f40bc58d4250a
PHP
soldiers1989/Moncher
/application/models/admin/MouldModel.php
UTF-8
2,573
2.609375
3
[]
no_license
<?php require_once(dirname(dirname(dirname(dirname(__FILE__)))).'/system/core/Model.php'); class MouldModel extends CI_Model { /** *********************************************************** *方法::MouldModel::__construct * ---------------------------------------------------------- * 描述::数据库基础类初始化方法 *---------...
true
9fde87cd28ea962e583a648a67c792dece698d89
PHP
Recommio/recommio-laravel-sdk
/src/Recommio.php
UTF-8
1,582
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: roboticsexpert * Date: 5/14/17 * Time: 12:26 AM */ namespace Roboticsexpert\Recommio; use GuzzleHttp\Client; class Recommio { private $baseUrl; private $token; private $client; public function __construct($baseUrl, $token) { $this->baseUrl...
true
38142ad7e29981c798750ebee1a40953b18f753d
PHP
phpactor/phpactor
/lib/WorseReflection/Core/Reflection/Collection/ReflectionMethodCollection.php
UTF-8
982
2.5625
3
[ "MIT" ]
permissive
<?php namespace Phpactor\WorseReflection\Core\Reflection\Collection; use Phpactor\WorseReflection\Core\Reflection\ReflectionMethod as CoreReflectionMethod; use Phpactor\WorseReflection\Core\Reflection\Collection\ReflectionMethodCollection as CoreReflectionMethodCollection; /** * @extends HomogeneousReflectionMember...
true
45e4753aa560992bd9eb07238eb3cc7f430fb2b2
PHP
Flighteur/Scripts
/init.php
UTF-8
1,951
2.703125
3
[]
no_license
<?php define('DB_HOST', '127.0.0.1'); // IP/URL of the SQL Server // define the user to connect to the SQL Server define('DB_ROOT_USER', 'root'); define('DB_ROOT_PASS', ''); // NEED ENCRYPTION function create_db($name) { // the database you want to create $Usersdb = 'Users'; ...
true
4e429928d28280773ca7d3279616c3d224f920f7
PHP
anedovba/homeworks
/test2/index.php
UTF-8
781
3.453125
3
[]
no_license
<?php //// .gitignore // //echo 1; //// two //echo 2; // //echo 3; //echo 'some new stuff'; //echo 4; // //echo 5; // null, bool, int, float, string // array echo '<pre>'; $fruits = array( 'apples' => 2, 'oranges' => 32, 'bananas' => 343, 'pineapple' => 0 ); // < 5.4 //var_dump($fruits); //echo $fruit...
true
3822f4ff9685e81dd28827e5b4ccd95da10173d3
PHP
Thinlt/simi-magento
/magento/app/code/Vnecoms/VendorsApi/Model/Data/Sale/ItemQty.php
UTF-8
912
2.625
3
[]
no_license
<?php namespace Vnecoms\VendorsApi\Model\Data\Sale; use Magento\Framework\Model\AbstractModel; /** * Class vendor * @SuppressWarnings(PHPMD.ExcessivePublicCount) */ class ItemQty extends AbstractModel implements \Vnecoms\VendorsApi\Api\Data\Sale\ItemQtyInterface { /** * @return int */ public...
true
30c65830661d4b88a2ea0929f17c3702518626b0
PHP
xvkurke/gta-monitoring
/frontend/modules/telegram/controllers/LanguageController.php
UTF-8
1,009
2.578125
3
[]
no_license
<?php namespace frontend\modules\telegram\controllers; use frontend\modules\telegram\models\TelegramMessages; use Telegram\Bot\Api; use Telegram\Bot\Objects\Update; use frontend\modules\telegram\models\TelegramUser; class LanguageController { public function actionIndex(Api $telegram, Update $webHook, $command, T...
true
9c3af43fda8f223ab2e791067b670df49da82642
PHP
fzpanxi/tp-mvc-demo
/app/controller/request/user/GetUserRequest.php
UTF-8
503
2.84375
3
[ "Apache-2.0" ]
permissive
<?php namespace app\controller\request\user; use JMS\Serializer\Annotation\Type; use JMS\Serializer\Annotation\SerializedName; class GetUserRequest { /** * @Type("int") * @SerializedName("user_id") */ private $userID; /** * @return mixed */ public function getUserID() : int...
true
dd7d927dde242e98f4dd5021531c3edc44964f01
PHP
abetterstory/abetter-wordpress
/plugins/wpml-translation-management/classes/jobs/class-wpml-tm-jobs-collection.php
UTF-8
2,673
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only" ]
permissive
<?php class WPML_TM_Jobs_Collection implements IteratorAggregate, Countable { /** @var WPML_TM_Job_Entity[] */ private $jobs = array(); public function __construct( array $jobs ) { foreach ( $jobs as $job ) { if ( $job instanceof WPML_TM_Job_Entity ) { $this->add( $job ); } } } /** * @param WPML...
true
813c8b547b2e7482877c90c1aa0df27711eceb2d
PHP
sventendo/advent-of-code-2017
/src/Classes/Day/Day4.php
UTF-8
1,525
3.5625
4
[]
no_license
<?php namespace Sventendo\AdventOfCode2017\Day; use AdventOfCode\Bootstrap\Day; class Day4 implements Day { public function firstPuzzle(string $input): int { $passphrasesValid = 0; $passphrases = explode(PHP_EOL, $input); foreach ($passphrases as $passphrase) { if (!empt...
true
ef3644e26899a55ccd403aaf666c3cd9c2b76280
PHP
Loligan/All4bom_TA
/features/bootstrap/src/PageObjects/PageObject.php
UTF-8
257
2.59375
3
[]
no_license
<?php use Facebook\WebDriver\WebDriver; use Facebook\WebDriver\WebDriverBy; interface PageObject { static function init(); /** * @param Facebook\WebDriver\Remote\RemoteWebDriver $webDriver */ static function openPage($webDriver); }
true
271966fe96d05ed595ecbb57ae051d9d7b0c23ec
PHP
TusbolGame/Serie
/app/Http/Controllers/JavascriptErrorController.php
UTF-8
1,087
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\JavascriptError; use Illuminate\Http\Request; class JavascriptErrorController extends Controller { public function errorManager() { $url = NULL; $data = NULL; $error = NULL; if (is_array(request()->error)) { if (isset(reque...
true