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
4880e756aa73054108308ed15bc6a47bb5467fbb
PHP
Dlayer/dlayer
/library/Dlayer/DesignerTool/ContentManager/Column/SubTool/Responsive/Model.php
UTF-8
5,582
2.609375
3
[ "MIT" ]
permissive
<?php /** * Data model for the responsive sub tool * * @author Dean Blackborough <dean@g3d-development.com> * @copyright G3D Development Limited * @license https://github.com/Dlayer/dlayer/blob/master/LICENSE */ class Dlayer_DesignerTool_ContentManager_Column_SubTool_Responsive_Model extends Zend_Db_Table_Abstra...
true
31e85802070713de6c9b0ec024044858d49a9553
PHP
philippmahlow/SensusDenios
/docker-lamp/www/hands-on/Restaurant/src/Dishes/Ingredient.php
UTF-8
3,010
3.34375
3
[ "MIT" ]
permissive
<?php namespace DENIOS\Restaurant\Dishes; class Ingredient { use IngredientTrait; /** * @var string $name */ protected $name; /** * @var bool */ protected $isVegan; /** * @var bool */ protected $isVegatarian; /** * @var bool */ protect...
true
f0232455a4c57b8bc3396eb0e68015576f696443
PHP
Attendize/Attendize
/app/Cancellation/OrderRefundAbstract.php
UTF-8
3,393
2.703125
3
[ "BSD-3-Clause", "AAL" ]
permissive
<?php namespace App\Cancellation; use App\Models\Attendee; use Superbalist\Money\Money; use Log; abstract class OrderRefundAbstract { protected $order; protected $attendees; protected $currency; protected $organiserAmount; protected $refundedAmount; protected $maximumRefundableAmount; pr...
true
6ddecc22b82fad1e2264eb8fe9fc9f65e8610a1d
PHP
advoor/nova-resource-field
/src/NovaResourceField.php
UTF-8
2,906
2.71875
3
[]
no_license
<?php namespace Advoor\NovaResourceField; use Laravel\Nova\Fields\Select; class NovaResourceField extends Select { private $formatLabel; private $defaultOption; /** * The field's component. * * @var string */ public $component = 'nova-resource-field'; public function __const...
true
1f4c06af8ba6642dd0b5b610a9e7df26dc3f3a11
PHP
maxamillion32/trainmeandroidapplication
/trainMe/adduserexercises.php
UTF-8
1,306
2.90625
3
[]
no_license
<?php require_once 'connection.php'; header('Content-Type: application/json'); class User{ private $db; private $connection; function __construct(){ $this->db = new DB_Connection(); $this->connection = $this->db->get_connection(); } public function addexercise($userid, $exerciseid,$pr...
true
977519ea8ab113cdd99cdc75a5db4d18f663f5c7
PHP
learning-student/owuan-swoole
/src/Table/SwooleTable.php
UTF-8
2,228
3.1875
3
[ "MIT" ]
permissive
<?php namespace SwooleTW\Http\Table; use Swoole\Table; class SwooleTable { /** * @var array */ protected $tables = []; /** * SwooleTable constructor. * @param array $tables */ public function __construct(array $tables = []) { $this->registerTables($tables); ...
true
0f41db740ebd1dd0724beaeb27c86506641c1975
PHP
SBSEDV/form-bundle
/src/MessageResolver/ChainMessageResolver.php
UTF-8
690
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SBSEDV\Bundle\FormBundle\MessageResolver; use Symfony\Component\Form\FormError; class ChainMessageResolver implements MessageResolverInterface { /** * @param iterable<MessageResolverInterface> $messageResolvers */ public function __construct( private...
true
b34bca1fa306989d3627c9fa55e380d80d407407
PHP
murkykiska/sql_test
/pts/add_item.php
UTF-8
2,192
2.59375
3
[]
no_license
<?php require_once("../db.php"); $tiptr = $db->query("SELECT * FROM tiptr"); $v_firm = $db->query("SELECT * FROM v_firm"); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $unts = $_POST['unts']; $tid = $_POST['tid']; $firmid = $_POST['firmid']; $grp = $_POST['grp']; $normt = $_POST['normt']; if(str...
true
f2c133ac3978c5a3813006ac4a8b1e56a77f92b9
PHP
putuyoga/tebak-lagu
/application/models/user_model.php
UTF-8
3,205
2.609375
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class User_model extends CI_Model { private $table; public function __construct() { parent::__construct(); $this->set_table('user'); } public function set_table($table) { $this->table = $table; } public function get_table() ...
true
85f74022537abb7dbb9f704cc2c3817e9a433b8d
PHP
Kilbourne/biosphaera
/web/app/plugins/admin-columns-pro/codepress-admin-columns/classes/column/media/width.php
UTF-8
576
2.71875
3
[ "MIT" ]
permissive
<?php /** * CPAC_Column_Media_Width * * @since 2.0 */ class CPAC_Column_Media_Width extends CPAC_Column { public function init() { parent::init(); $this->properties['type'] = 'column-width'; $this->properties['label'] = __( 'Width', 'codepress-admin-columns' ); } function get_value( $id ) { $value = $...
true
d1d8adf627d937fa1ec39989178bb178192cddae
PHP
pounard/Unit
/src/Unit/Reference/Operation.php
UTF-8
1,364
3.1875
3
[]
no_license
<?php namespace Unit\Reference; class Operation { /** * @var float */ protected $factor = 1; /** * Get factor. * * @return int|float */ public function getFactor() { return $this->factor; } /** * @var float */ protected $delta = 0; /*...
true
e96cbc0378970ab422d09425c665ce5917a7e6ba
PHP
alexbueno7/banco-inter-api-codeigniter
/application/libraries/Inter.php
UTF-8
14,025
2.59375
3
[]
no_license
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } /** * A class for Banco Inter API * @author Katz Soluções Web / Alex Bueno * @version 0.1 * @access public */ class Inter { private $parametros; public function __construct() { $this->conta...
true
0b0ee0ef72f4a91735f4cc72a59e8beed0a09e33
PHP
kinapersson/projektarbete_clogstore
/admin_controllers/admin_createAttribute_controller.php
UTF-8
1,556
2.921875
3
[]
no_license
<?php class attributeViewModel { public $response = ""; function set_response($new_response) { $this->response = $new_response; } function get_response() { return $this->response; } public $attributeName = ""; function set_attributeName($new_attributeName) { $this->attributeName = $new_...
true
e4de97a03fca1e423c2fb9b6c83ef70fd1831197
PHP
pelmegov/Survival-Middle-Ages
/models/RegForm.php
UTF-8
4,695
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: phpNT * Date: 02.05.2015 * Time: 18:17 */ namespace app\models; use yii\base\Model; use Yii; class RegForm extends Model { const ROLE_USER = 10; const ROLE_ADMIN = 20; public $username; public $email; public $password; public $status; public $...
true
548baad718a0848a17c07b1ba7a7e01f7343fa29
PHP
adammh9991/ProjektPHP
/app/controllers/MovieEditCtrl.class.php
UTF-8
5,501
2.640625
3
[]
no_license
<?php namespace app\controllers; use core\App; use core\Utils; use core\ParamUtils; use core\Validator; use app\forms\MovieSearchForm; class MovieEditCtrl { private $form; private $records; public function __construct() { $this->form = new MovieSearchForm(); } public function action_movie...
true
58309ef07bcd809635abc7a643bcb820fcbacca8
PHP
mjpb96/php_learning
/cours_php/public/index.php
UTF-8
1,078
2.9375
3
[]
no_license
<?php /* public/index.php : contrôleur frontal, toutes les URL passent par lui lancer le serveur PHP en ciblant le dossier public : php -S localhost:8000 -t public */ // démarrer la session session_start(); // auto-chargement des classes avec composer require_once '../vendor/autoload.php'; // importation des clas...
true
1cf0c4500806989443f163b4afc4f4f7f2c10ff5
PHP
matejvelikonja/SyncFS
/tests/SyncFS/Test/Map/FileSystemMapFactoryTest.php
UTF-8
2,384
2.765625
3
[]
no_license
<?php namespace SyncFS\Test\Map; use SyncFS\Map\FileSystemMap; use SyncFS\Map\FileSystemMapFactory; use SyncFS\Test\TestCase; /** * Class FileSystemMapFactoryTest * * @package SyncFS\Test\Map * @author Matej Velikonja <matej@velikonja.si> */ class FileSystemMapFactoryTest extends TestCase { /** * @var...
true
91604a9376d7b147a1dedbe10ce597bcc9c3b32d
PHP
devperez/webinar
/app/Http/Controllers/SimpleExcelController.php
UTF-8
2,413
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; //use Spatie\SimpleExcel\SimpleExcelWriter; use Spatie\SimpleExcel\SimpleExcelReader; class SimpleExcelController extends Controller { public function index() { return view('back.importcsv'); } // Importer les...
true
6d5c4f259cf3df342fd7478ad1d4775390b6dcdc
PHP
jeanmamelo/curso-php7
/projects/primeiroProjeto/classes_objetos/magic_methods.php
UTF-8
1,545
3.78125
4
[ "MIT" ]
permissive
<div class="titulo">Métodos mágicos</div> <?php class Pessoa { public $nome; public $idade; public function __construct($nome, $idade) { echo 'Construtor invocado.'; echo '<br>'; $this->nome = $nome; $this->idade = $idade; } public function __destruct() { ...
true
6812168369cb0f0ad940510261bd504cf0135b1e
PHP
WaylonWang2020/SolusVMController
/libraries/form.class.php
UTF-8
3,417
2.71875
3
[ "MIT" ]
permissive
<?php ########################################################################### # # # SolusVMController # # # # Copyrig...
true
926852a35c132f6735df5eb5aace41031368e933
PHP
rainner/biscuit-php
/tests/unit/DbTableBuilderTest.php
UTF-8
3,397
3
3
[ "MIT" ]
permissive
<?php /** * Tests */ class DbTableBuilderTest extends TestCase { // common test table scheme for both sqlite and mysql public function getTableSchema( $name, $is_sqlite ) { $table = new Biscuit\Db\TableBuilder( $name, $is_sqlite ); $table->setEngine( "InnoDB" ); $table->setCharset...
true
f44d94fb277eee5c6f54e40dd64ee52cd6c6b079
PHP
Akbar-Ibrahim/word-bumble
/app/Http/Controllers/WordDefinitionController.php
UTF-8
1,486
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\CommonWord; use App\Models\Dictionary; use Illuminate\Http\Request; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\DB; class WordDefinitionController extends Controller { // public function getWords() { return CommonW...
true
76ba52c1d4270a3f50c3e13d3fe641b2fe23ad32
PHP
ZhangYanXiong/demo
/test/trip/deomSum/11.php
UTF-8
313
3.203125
3
[]
no_license
<?php //This will get an array of all the gif, jpg and png images in a folder $img_array = glob("images/*.{gif,jpg,png}",GLOB_BRACE); //Pick a random image from the array $img = array_rand($img_array); //Display the image on the page echo '<img alt="'.$img_array[$img].'" src="'.$img_array[$img].'" />'; ?>
true
0259058b1d2aef1be83bf11d97d35b561c2321aa
PHP
wangbaojie/thinkAdmin
/vendor/zoujingli/wechat-developer/WeChat/Pay.php
UTF-8
9,881
2.609375
3
[ "MIT" ]
permissive
<?php // +---------------------------------------------------------------------- // | WeChatDeveloper // +---------------------------------------------------------------------- // | 版权所有 2014~2018 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // +---------------------------------------------------------------------- // | 官方网站: ...
true
dead105c40b8b0055fc675fad551eeacbc2fd365
PHP
MadeAja/Portal
/src/ItsRealNise/Portal/block/BlockManager.php
UTF-8
386
2.515625
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace ItsRealNise\Portal\block; use pocketmine\block\Block; use pocketmine\block\BlockFactory; /** * Class BlockManager * @package ItsRealNise\Portal\block */ class BlockManager { public static function init(): void{ BlockFactory::registerBlock(new Portal(), true); ...
true
948b5229404416ab8e9d0959cc1ee2ad069b1fcd
PHP
nielssp/jivoo-core
/tests/UnicodeTest.php
UTF-8
4,963
3.015625
3
[ "MIT" ]
permissive
<?php namespace Jivoo; class UnicodeTest extends \Jivoo\TestCase { public function testIsUpper() { $this->assertTrue(Unicode::isUpper('A')); $this->assertTrue(Unicode::isUpper('M')); $this->assertTrue(Unicode::isUpper('Z')); $this->assertTrue(Unicode::isUpper('Å')); $thi...
true
b3cfd527e9f4d04a60825fb6890cf9ec2bc915c2
PHP
puspa4riawan/rideventure
/system/cms/helpers/markdown_helper.php
UTF-8
707
2.8125
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Markdown helper for MaxCMS. * * This file contains a CodeIgniter helper for PHP Markdown. * The Parser is a third-party library. * * @author MaxCMS Dev Team * @copyright Copyright (c) 2012, MaxCMS LLC * @package MaxCMS\Core\H...
true
5d7622798bfe7af99534688c0a5ca84f8428d4fc
PHP
m44g11c/laravel-price-parser-app
/app/Import/Strategy/CsvImportStrategy.php
UTF-8
626
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Import\Strategy; use App\Import\Importer; class CsvImportStrategy extends Importer implements ImportInterface { public const TYPE = 'csv'; /** * import * * @param mixed $file * * @return array */ public function import(\SplFileInfo $file): array { ...
true
b3bf19bf8882e15074392fe4bd453e165d08aff2
PHP
cybercog/yii2-git-tools
/GitlabModel.php
UTF-8
1,782
2.75
3
[]
no_license
<?php /** * GithubModel class file. * @copyright (c) 2015, Bariew * @license http://www.opensource.org/licenses/bsd-license.php */ namespace bariew\gitTools; use Gitlab\Client; use Gitlab\Model\Project; use yii\web\HttpException; /** * Model for saving content into a file and commit changes right to Gitlab. *...
true
02938d0aa19def4e2487bd51fe92e42afeb82a9e
PHP
haterphp/mvc
/core/Router/Src/Interfaces/RouterInterface.php
UTF-8
354
2.78125
3
[]
no_license
<?php namespace Core\Router\Src\Interfaces; interface RouterInterface{ public static function get($url, $handler); public static function post($url, $handler); public static function put($url, $handler); public static function delete($url, $handler); public function name($name); public funct...
true
2807089910970a2ed44095137c823535b57cf699
PHP
mario-rivera/TestSymfonyCalculator
/src/Classes/Calculator.php
UTF-8
971
3.34375
3
[]
no_license
<?php namespace App\Classes; use App\Classes\CalculatorOperations; class Calculator{ public function do($a, $b, $op){ switch($op){ case CalculatorOperations::Add: return $this->add($a,$b); case CalculatorOperations::Substract...
true
2b0204d17fff09023d2b68ccff89e666a733f625
PHP
arjen3112/pao
/functions/informatie.php
UTF-8
1,971
2.625
3
[]
no_license
<?php function informatie() { //query voor tekst 1 $query = 'SELECT * FROM `content` WHERE `pagina` = "informatie" AND `type` = "text" AND `id`= "4"'; $resultaat = mysql_query($query); $row = mysql_fetch_array($resultaat); //query voor tekst 2 $qu = 'SELECT * FROM `content` WHERE `pagina` = "informatie"...
true
137bd06804f2e4942320af6ace23ab1980d6d7db
PHP
CoreTechSolution/bangerzarmy_ci
/application/modules/users/models/Users.php
UTF-8
1,644
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Users_model extends MY_Model{ protected $_tbl_name = 'users'; function __construct() { parent::__construct(); } /* * login user information */ public function login($data) { $query = $this->g...
true
1503c611566c4a2053aecff9bdf68baefdf6a1c4
PHP
jmoyaitc/itculiacan_93_tic1023
/TareasDemo/borrartarea.php
UTF-8
885
2.546875
3
[]
no_license
<?php // Nada de codigo aun. solo el html. require_once("tareas.repo.php"); $id = $_GET['id']; $tarea = LeerTarea($id); ?><DOCTYPE html> <html> <head> <title>Borrar <?php echo $tarea["descripcion"]; ?></title> <LINK href="site.css" rel="stylesheet" type="text/css"> </head> <body> <h1>Borrar <?php ech...
true
33f986ed29c435aed0d58e173a005c90c9a98377
PHP
ptprakhar/php_depedency_injection
/ConstructorInjection.php
UTF-8
738
3.28125
3
[]
no_license
<?php /** * This expmple explains how we can crate constroctor level depedency * */ class User{ private $database = null; /** * We are now injecting it into the constructor, that's it: */ public function __construct(Database $database){ $this->database = $database; } publ...
true
79b77854da569f3dac04928e270c991cc6299c84
PHP
Neo006/hotel
/Login.php
UTF-8
735
2.90625
3
[]
no_license
<?php require_once "./Database.php"; class Login extends Database { public function check($user, $pass) { $username = trim($user); $password = trim($pass); if($username != '' && $password != '') { $sql = "SELECT * FROM users WHERE username='$username' AND password='$pa...
true
9f0c88b0ba5e38589917d0ce12d98784e2c1f353
PHP
kamrultouhids/demo-project-laravel
/app/Http/Requests/LawSectionRequest.php
UTF-8
794
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class LawSectionRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get...
true
297af274f0e5c7141b657fedf19e4d7704ddc0ab
PHP
brslv/zanshin
/Zanshin/Providers/ViewProvider.php
UTF-8
1,608
2.59375
3
[ "MIT" ]
permissive
<?php namespace Zanshin\Providers; use Pimple\Container; use Pimple\ServiceProviderInterface; use Zanshin\Components\View\TwigViewComponent; /** * Class ViewProvider * * @author brlsv * @package Zanshin\Providers */ class ViewProvider implements ServiceProviderInterface { /** * Registers a class, which...
true
b02f637e03cbd932a4e00a667288d608dae165df
PHP
Ghie-coder/sudah
/application/models/Branches.php
UTF-8
1,291
2.734375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Branches extends CI_Model { public function __construct() { parent::__construct(); } public function getAll(){ $this->db->select('*'); $this->db->from('branch'); $query = $this->db->get(); ...
true
94a7f826efab6d89bcee5e8e5fd40b851ab00175
PHP
smartsolutionsitaly/cakephp-youtube
/src/Shell/YouTubeShell.php
UTF-8
2,561
2.765625
3
[ "MIT" ]
permissive
<?php /** * cakephp-youtube (https://github.com/smartsolutionsitaly/cakephp-youtube) * Copyright (c) 2019 Smart Solutions S.r.l. (https://smartsolutions.it) * * YouTube plugin for CakePHP * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE * Redistributions of...
true
35afc5cf57aa7cdde902300f49e88722952f70ce
PHP
prathipaselvam/taskformyself
/product/connect.php
UTF-8
1,074
2.796875
3
[ "MIT" ]
permissive
<?php include ("db.php"); if ($product_name == '' || $quantity == '' || $price == '' || date == '' ) { // generate error message $error = 'ERROR: Please fill in all required fields!'; // if either field is blank, display the form again } if(isset($_POST) & !empty($_POST)){ $product_name =($_POST['pr...
true
d0dcff82bd11a05404327380ee3bc7c8cd7cd7f9
PHP
Danack/intahwebz-routing
/src/Intahwebz/Routing/HTTPResponse.php
UTF-8
3,386
2.859375
3
[ "MIT" ]
permissive
<?php namespace Intahwebz\Routing; class HTTPResponse implements \Intahwebz\Response { public $headers = []; public $body; public $status = 200; public $errorText = ''; private $params; private $domain; function __construct(\Intahwebz\Domain $domain) { $this->domain = $doma...
true
39ab7afac9afc86ee85d7c1891694cc7cc45a3cc
PHP
Logic21/Vina
/Vina/app/ui/component/sidemenu/SideMenu.php
UTF-8
1,858
2.53125
3
[]
no_license
<?php namespace app\ui\component\sidemenu; abstract class SideMenu extends \Jhul\Core\UI\_Design\_Component { private $_id = 'jui_sidemenu'; public function resDirPath() { return __DIR__.'/res' ; } public function setID( $id ) { $this->_id = $id; return $this ; } public function id() { return $thi...
true
83013336efc973847d0b9d303f4c401c808383d3
PHP
Baribal172/PHP-eindopdracht
/classes/User.php
UTF-8
20,554
2.953125
3
[]
no_license
<?php include_once(__DIR__ . "/Db.php"); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; class User { private $id; private $firstname; private $lastname; private $email; private $password; private $interests; ...
true
fcf7fdca168ecd53ff932f7d240110a9165d7bec
PHP
aejnsn/lapis
/tests/RequestMixinTest.php
UTF-8
1,990
2.546875
3
[ "MIT" ]
permissive
<?php namespace Aejnsn\Lapis\Tests; use Illuminate\Http\Request; use Aejnsn\Lapis\Exceptions\InvalidFilterQueryException; /** * Class RequestMixinTest * * @package Aejnsn\Lapis\Tests */ class RequestMixinTest extends TestCase { public function testIncludesMacroIsProvided() { static::assertTrue(Re...
true
a71f95d4daec3400e76c53b0be0ca031c71cf99e
PHP
michalstaniecko/ihumbak-laravel-cv
/app/Http/Controllers/InterestController.php
UTF-8
1,139
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Interest; use Illuminate\Http\Request; use Illuminate\Validation\Rules\In; class InterestController extends Controller { public function __construct() { $this->middleware('auth'); } public function index() { $interests = auth()->user()->inte...
true
46df59df86738c5cfa554bc3dd4d540b571a82fb
PHP
inpsyde/composer-asset-compiler
/src/Util/SilentConsoleIo.php
UTF-8
2,102
2.65625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the "Composer Asset Compiler" package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Inpsyde\AssetsCompiler\Util; use Composer\IO\ConsoleIO; /** * @psalm-supp...
true
47f438cb085a667b8a34d6a231212314aa0a5495
PHP
Shahelm/Parser
/src/ConsoleCommands/Amazon/ProductUrlCollector.php
UTF-8
3,204
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: root * Date: 06.07.15 * Time: 20:41 */ namespace ConsoleCommands\Amazon; /** * Class ProductUrlCollector * * @package ConsoleCommands\Amazon */ class ProductUrlCollector extends \ConsoleCommands\Autoplicity\ProductUrlCollector { /** * @return string */ ...
true
a6d5c78399e04ead60b2e3de4cb972cac48c5c0f
PHP
DekodeInteraktiv/wp-resets
/theme-supports/embeds/youtube-embed-nocookie.php
UTF-8
833
2.828125
3
[]
no_license
<?php /** * Youtube Embed No-cookie * Use tracking free domain for YouTube embeds. * Author: Bjørn Johansen (https://bjornjohansen.no/) * * @package Dekode\Resets */ declare( strict_types = 1 ); namespace Dekode\Resets\ThemeSupports\Embed; /** * Modify YouTube oEmbeds to use youtube-nocookie.com * * @param s...
true
0d410417f77fe0cd7a981f61ff2c9dab29937e34
PHP
RPGLE/CustomMailer
/CustomMailer.php
UTF-8
2,920
2.6875
3
[ "MIT" ]
permissive
<?php // Author: Ghost+ // GitHub: https://github.com/RPGLE/CustomMailer/ ini_set('include_path', '/usr/local/zendphp7/share/ZendFramework2/library'); require_once('Zend/Loader/StandardAutoloader.php'); use Zend\Mail\Message; use Zend\Mail\Transport\Smtp as SmtpTransport; use Zend\Mail\Transport\SmtpOptions; use...
true
1ca901cc2f2bb1fd325e47b400746386cfd7072f
PHP
teusreis/RESTful-SuperMarkt-API
/app/services/ProductServices.php
UTF-8
5,769
2.671875
3
[]
no_license
<?php namespace App\Services; use App\Model\Product; use App\Auth\AuthController; class ProductServices { private Product $product; public function __construct() { header("content-type: application/json"); AuthController::checkAuth(); $this->product = new Product(); } ...
true
cb6ad163bbd2b57ea337831e3074df992686138c
PHP
hako-975/andrilio
/application/models/Section_model.php
UTF-8
2,283
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Section_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->model('Log_model', 'lomo'); $this->load->model('Admin_model', 'admo'); } // ------------------ START GET ------------------ publi...
true
9903de2e2d550f73d2ea52b9ec78bd1a4108539e
PHP
openrightsgroup/alidade
/app/model/step.model.php
UTF-8
1,110
2.734375
3
[ "CC-BY-4.0", "CC0-1.0" ]
permissive
<?php class Step extends Model { protected $table = 'steps'; public function getNextPosition() { $sql = 'SELECT max(position)+1 as nextpos from `' . $this->table . '`'; $stmt = $this->database->prepare($sql); $stmt->execute(); ...
true
3f886450268f25b634adeab885a76ffc48d0da1b
PHP
morteza-jamali/winword
/includes/WinWord.php
UTF-8
1,426
2.6875
3
[]
no_license
<?php namespace WinWord\Includes; use WinWord\Admin\WinWord_Admin; class WinWord { protected $loader; protected $plugin_name; protected $version; public function __construct() { if (defined('WinWord_VERSION')) { $this->version = WinWord_VERSION;...
true
bac1e95834afcba6a3249c1085978904d3a92210
PHP
safriansah/ci-lumino
/application/models/BeritaModel.php
UTF-8
1,455
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class BeritaModel extends CI_Model { public $judul, $url; public $isi; public $kategori; public $tgl_ambil; public function get_all_berita() { $query=$this->db->get('tb_berita'); return $query->result(); } public function get_data_berita($key) { $que...
true
b866271a28dcdfe5b5abcbd8913632c3981fbeb2
PHP
AbdulRahman-Abu/selene-team
/forgot_password.php
UTF-8
7,795
2.765625
3
[]
no_license
<?php // Initialize the session session_start(); $pending = ""; // Check if the user is already logged in, if yes then redirect him to welcome page if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){ header("location: dashboard.php"); exit; } // Include config file require_once "config.php"...
true
1f8532cacb04950bcbe59060db39f62178736535
PHP
dobrosite/crawler
/src/Event/LinkEvent.php
UTF-8
964
3
3
[ "MIT" ]
permissive
<?php /** * DobroSite Crawler. * * @copyright 2019, ООО «Добро.сайт», http://добро.сайт */ namespace DobroSite\Crawler\Event; use Symfony\Component\EventDispatcher\Event; /** * Событие, связанное со ссылкой. * * @since 0.1 */ class LinkEvent extends Event { /** * Ссылка, с которой связано событие. ...
true
67fa46d6ba2cda70ecb8a7c4e971fdffff64e00c
PHP
eduandebruijne/admin-bundle
/src/Entity/EntityHierarchy.php
UTF-8
1,328
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace EDB\AdminBundle\Entity; trait EntityHierarchy { public function getParent(): ?BaseEntity { return $this->parent; } public function getChildren(): array { /** * Assuming that 'children' will be a Doctrine Collection */ ...
true
f22e5d99ac9e464517cc2a7a806810bea667c04f
PHP
Kiwirumi/PHP-PasswordGenerator
/ListPasswd.php
UTF-8
1,404
3.296875
3
[ "MIT" ]
permissive
<?php // Récupère les paramètres pour adapter selon les besoins de l'utilisateur $SaisieNbrPasswd = $_GET['nbrPasswd'] ; $SaisieNbrCaract = $_GET['nbrCaract'] ; $SaisieTypePasswd = $_GET['typePasswd'] ; // Type de caractères à prendre en compte pour générer les mots de passe (change selon paramètre utilisate...
true
fc99e2f47310c143153d29a593e4f7e82d6d1625
PHP
eltortuganegra/shared-secret
/src/Infrastructure/Repositories/Doctrine/DoctrineSecretEntityFactory.php
UTF-8
1,575
2.78125
3
[ "MIT" ]
permissive
<?php namespace SharedSecret\Infrastructure\Repositories\Doctrine; use SharedSecret\Entities\Secret\Secret; use SharedSecret\Infrastructure\Repositories\Doctrine\Entities\Secret as SecretDoctrineEntity; class DoctrineSecretEntityFactory { static public function create(Secret $secret): SecretDoctrineEntity {...
true
45d9773094f305058bee991b0323025a5e227bb7
PHP
tbrianjones/thewikisources
/application/data_processors/push_books_to_elasticsearch.php
UTF-8
3,187
2.875
3
[]
no_license
<?php // push all books to elasticsearch // // - do not need to create a fresh index // - this will simple version each book and add new data to them // // - if you want to create a fresh index, run SETUP/create_elasticsearch_books_mapping.sh // echo "\n\n -- adding books to elasticsearch\n"; ini_set('memo...
true
ea801dbc18d852e8181893593d029701ac46f75f
PHP
aliounekanoute/projet_mglsi_news
/Models/DAO/ArticleService.php
UTF-8
1,300
2.84375
3
[]
no_license
<?php include_once("Database.php"); include_once(ROOT."/Models/Domaine/Article.php"); /** * */ class ArticleService extends Database { public function createArtilce(Article $article) { $query = $this->_pdo->prepare('INSERT INTO article (titre,contenu,date_de_creation,id_category) VALUES (:titre,:contenu,NO...
true
26fbeb4d7b6b9f1ae2b687b4308c0caf42476da1
PHP
kirillmaftuljak/OOP
/OOPs/Burgers/LuxuryBurger.php
UTF-8
826
2.796875
3
[]
no_license
<?php require_once 'burger.php'; class LuxuryBurger extends burger { public function __construct(){ parent::__countruct('LuxuryBurger','loomaliha ja peekon', 'valge sai', 12.65); parent::lisand1() } public function valikLisand1($lisand1, $lisand1Hinnang){ echo 'Lisandite juurde lis...
true
b3d63ee82d47a6afee9307ed97974b6615355cf6
PHP
ernestasj/car2car
/Frontend/php/classes/task.php
UTF-8
582
3.40625
3
[ "MIT" ]
permissive
<?php class Task { var $name = ""; var $rego = ""; var $percentage = "0"; function AsJSDict(){ $object = "{"; $object .= "name: '". $this->name . "',"; $object .= "rego: '". $this->rego . "',"; $object .= "percentage: '". $this->percen...
true
3bcef834bf937243e7006568d0820dadd69162a7
PHP
Danbardo/IntroWebDevNutshell
/Video 15/testdb.php
UTF-8
202
2.578125
3
[]
no_license
<?php include_once('db.php'); $sql="SELECT * FROM users"; $query = $db -> query($sql); foreach($query as $row){ echo $row['name']." ".$row['email'].'<br>'; } echo $query->num_rows; ?>
true
91676820ee6b4e64274cf75315a0145c85692971
PHP
Aysta453/Bank-Internetowy
/api/objects/useraccount.php
UTF-8
943
2.890625
3
[]
no_license
<?php class UserAccount{ private $connection; public $id; public $firstname; public $lastname; public $pesel; public $email; public $telephone; public $address; public $username; public $password; public $type_user; public $id_account; public $account_number; publ...
true
bcc55017e5727f5e357da37aac93ed8239fc2bcb
PHP
remybuyse/wescreen-test
/models/Users.php
UTF-8
2,590
2.828125
3
[]
no_license
<?php class Users extends CommonModels{ public function __construct(){ $this->table = '`ws_user`'; $this->primaryKey = '`id_user`'; } public function insertUser($gender, $firstName, $lastName, $email, $birthDate, $dateCreation, $hash) { $pdo = $this->pdoConnectUtf8(); $result...
true
9b7be336965b261c87b7cb91be29fda5a7abded1
PHP
AdrienVannson/XavierGury
/admin/view/project.php
UTF-8
5,764
2.671875
3
[]
no_license
<?php /* View */ include_once(__DIR__.'/menus.php'); function show_admin_project($project) { if($project->getId() == -1) { $action = 'Ajouter'; } else { $action = 'Modifier'; } ?> <!DOCTYPE HTML> <html lang="fr"> <head> <meta charset="utf-8"/> <title><?php echo $action; ?> un projet - Administration - ...
true
6f74304f57c5e6cc1385139fea3fb230363bfedc
PHP
reese-repo/php-sort
/src/Sort.php
UTF-8
2,933
3.296875
3
[]
no_license
<?php /** * Author Tinker * Date 17-9-11 * Time 下午4:25 */ namespace tinker\sort; /** * Class Sort * @package tinker\sort * * only for linear array */ class Sort { /** * @param $array * @return array */ public static function quickSort($array) { $count = count($array); ...
true
ad947e9d0dd03e935375f0cd8422fc872342098e
PHP
MJacobs92/books-ajax
/booklist.php
UTF-8
2,968
2.75
3
[]
no_license
<?php include("db_connection.php"); error_reporting(E_ALL); ini_set('display_errors', 1); if(isset($_GET['format'])){ $format = $_GET["format"]; } else{ $format = 'xml'; } if(isset($_GET['category'])) { $category = $_GET["category"]; $sqlQuery = "SELECT * FROM Book_Category where name = '" . $category . "';"; ...
true
f02ae5935d33e52288b85fe1e19d5f00d00464e4
PHP
kennedyeduardo1996/PHP-udemy
/php-com-mysql/public/unidade_03-conectar-com-banco/conexao.php
UTF-8
703
3.296875
3
[]
no_license
<?php require_once("../../conexao/conexao.php"); //criando uma consulta $query = $con->query("SELECT nomeproduto, tempoentrega FROM produtos;"); //passando a consulta para var como um array associative $categorias = $query->fetchAll(PDO::FETCH_ASSOC); ?> <!doctype html> <html> <head> <meta charset="UTF-8"> <t...
true
a520be6e8ab6286355226b1c115b8b1fbfee2b28
PHP
graemetait/jobsoc-api
/app/src/Entity/Student.php
UTF-8
2,440
3.0625
3
[]
no_license
<?php namespace Jobsoc\Entity; /** * Student */ class Student { /** * @var integer */ private $id; /** * @var string */ private $title; /** * @var string */ private $first_name; /** * @var string */ private $surname; /** * @var \Do...
true
488201ccbfdb6e5287fba1df18b12b58746bb25a
PHP
sxm00/project
/0717/array.php
UTF-8
275
2.71875
3
[]
no_license
<?php $member=array('username'=>"tom",'gender'=>"male");//关联数组,key是字符串 echo "<pre>"; var_dump($member); echo "</pre>"; echo "<hr>"; $vip=array("tom",'peter','mary');//索引数组,key是数字; echo "<pre>"; var_dump($vip); echo "</pre>"; ?>
true
875bc1ead9331e5fc0bd613ef5ce8c181b253dc5
PHP
DGTVE-VE/Reportes-M-xico-X
/model/mysql/ShoppingcartCourseregcodeitemannotationMySqlDAO.class.php
UTF-8
5,307
2.9375
3
[]
no_license
<?php /** * Class that operate on table 'shoppingcart_courseregcodeitemannotation'. Database Mysql. * * @author: http://phpdao.com * @date: 2015-09-03 19:45 */ class ShoppingcartCourseregcodeitemannotationMySqlDAO implements ShoppingcartCourseregcodeitemannotationDAO{ /** * Get Domain object by primry key * ...
true
ac34232682d64aba50fc0911d6ac6e2bfa65888b
PHP
metaship-ru/shiptor-russia-php-api-client
/src/Api/ShippingEndpoint/Request/AddService.php
UTF-8
1,000
2.59375
3
[]
no_license
<?php namespace ShiptorRussiaApiClient\Client\Api\ShippingEndpoint\Request; use ShiptorRussiaApiClient\Client\Api\ShippingEndpoint\Request\GenericRequest as GenericShippingRequest, ShiptorRussiaApiClient\Client\Api\ShippingEndpoint\Model\Service as AddServiceResult; class AddService extends GenericShippingRequest...
true
622524d45b26c8a795f986a208fea584b8b6454a
PHP
wwschung2/24store
/paypal/ReviewOrder.php
UTF-8
13,772
2.53125
3
[]
no_license
<?php session_start(); /******************************************** ReviewOrder.php This file is called after the user clicks on a button during the checkout process to use PayPal's Express Checkout. The user logs in to their PayPal account. This file is called twice. On the first pass, the code executes...
true
aa9f860a60c75fd6f2be0a66e090556ef8af62b7
PHP
sinestermouse/phpUnitTest
/src/ColaFIFO.php
UTF-8
297
3.015625
3
[]
no_license
<?php class ColaFifo { protected $items = []; public function push($elemento) { array_push($this->items, $elemento); } public function count() { return count($this->items); } public function pull() { return array_pop($this->items); } }
true
905e2c9eb50ee877961d8ba8bfd181bc9126ad49
PHP
alecrabbit/php-timers
/src/Timers/Core/Traits/TimerFields.php
UTF-8
2,462
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AlecRabbit\Timers\Core\Traits; use AlecRabbit\Timers\HRTimer; use AlecRabbit\Traits\GettableName; use AlecRabbit\Traits\StartableAndStoppable; trait TimerFields { use GettableName, StartableAndStoppable; /** @var int|float */ protected $previous = 0.0; /** @...
true
637f42ff314e729c54d0e33fe0c5de7acb7c9408
PHP
kirancheema/JMapMyLDAP
/libraries/shmanic/ldap/result.php
UTF-8
6,568
2.96875
3
[]
no_license
<?php /** * PHP Version 5.3 * * @package Shmanic.Libraries * @subpackage Ldap * @author Shaun Maunder <shaun@shmanic.com> * * @copyright Copyright (C) 2011-2013 Shaun Maunder. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_PLATF...
true
9cc5e233bf40b4248d3abb0f1fdbed5ac416834e
PHP
Piterden/crosswords-module
/src/ClueEn/Contract/ClueEnInterface.php
UTF-8
489
2.515625
3
[]
no_license
<?php namespace Defr\CrosswordsModule\ClueEn\Contract; use Anomaly\Streams\Platform\Entry\Contract\EntryInterface; use Defr\CrosswordsModule\WordEn\Contract\WordEnInterface; interface ClueEnInterface extends EntryInterface { /** * Gets the word. * * @return WordInterface The word. */ pu...
true
2e2b63e650636473774537e2263eecd5d16b9242
PHP
riyaz-ryz/Parent-Teacher-Interaction-System
/admin/adminstudentview.php
UTF-8
7,596
2.671875
3
[]
no_license
<?php require_once('Connections/PTS.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $the...
true
0687a43b22b625b511255bed96748ee697f2b343
PHP
innocentpice/cw_site
/Models/supplier.php
UTF-8
2,923
2.609375
3
[]
no_license
<?php class supplier extends Model { function __construct(){ parent::__construct(); } function viewsup($NO=NULL,$GETNO_ABNAME){ if(isset($NO)){ if($GETNO_ABNAME != true){ $sql = "SELECT * FROM SUPPLIER WHERE NO = '".$NO."'"; }else{ $sq...
true
ef9698c5d148afe161dbe82290964cd2d630a60b
PHP
Saif-Mahmud-Khan-Dourjoy/Systech_digital_Web-admin_laravel
/database/migrations/2021_08_04_100125_create_company_heads_table.php
UTF-8
917
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCompanyHeadsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('company_he...
true
ef525b963d850d1a87ceac84932d30a315dd6e92
PHP
bangformis/bang.mvc
/Bang/Lib/TaskResult.php
UTF-8
1,777
2.9375
3
[]
no_license
<?php namespace Bang\Lib; use Exception; /** * 使用於工作或API一般回傳結果 * @author Bang */ class TaskResult { public function __construct() { $this->IsSuccess = FALSE; $this->Message = ""; } /** * @param type $json * @return TaskResult */ public static function CreateFromJso...
true
1d9636ee3fce0fd87007348c8713221c2573953c
PHP
nc-isolutionstechnology/htdocs
/eg-03-php-auth-code-grant-master/src/EG010SendBinaryDocs.php
UTF-8
13,474
2.71875
3
[ "MIT" ]
permissive
<?php /** * Example 010: Send binary docs with multipart mime: Remote signer, cc; the envelope has three documents */ namespace Example; class EG010SendBinaryDocs { private $eg = "eg010"; # reference (and url) for this example public function controller() { $method = $_SERVER['REQUEST_METHOD'];...
true
894d0a5522308332fa0c6aeb047b6e3f9c26a1bf
PHP
VladPotapov/php
/1/30_const/index.php
UTF-8
511
3.484375
3
[]
no_license
<?php class Cls { const NAME = "Cls <br>"; public function method() { //error //echo $this->NAME; echo self::NAME; echo "<br>"; echo cls::NAME; echo "<br>"; } } echo cls::NAME; $obj = new Cls(); $obj->method(); if(defined("Cls::NAME")) echo " константа о...
true
a950e8ca6cf43f32684f1e0d649d939fe3dd8f8c
PHP
php-censor/common
/src/Repository/SecretRepositoryInterface.php
UTF-8
393
2.625
3
[ "BSD-2-Clause" ]
permissive
<?php declare(strict_types=1); namespace PHPCensor\Common\Repository; use PHPCensor\Common\Secret\SecretInterface; /** * @package PHP Censor * @subpackage Common Library * * @author Dmitry Khomutov <poisoncorpsee@gmail.com> */ interface SecretRepositoryInterface { /** * @param string[] $names ...
true
22b837ef8002670c52d7bcdfdfb8041352918e78
PHP
gilleswittenberg/CakePHP_HTMLPurifier
/Model/Behavior/PurifiableBehavior.php
UTF-8
3,864
2.6875
3
[]
no_license
<?php /** * Purifiable Behavior * * PHP 5 * * Copyright 2012, Gilles Wittenberg (http://www.gilleswittenberg.com) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) 2012, Gilles Wittenberg * @license MIT License (http:/...
true
53682078cbf16448c7a0023a24f0dc45e26314c4
PHP
retsef/CoLi
/test/Crypt/crypt_manager.php
UTF-8
1,035
3
3
[]
no_license
<?php class crypt_manager { public $public; public $private; function __construct() { $path = "./"; $fpriv = "privkey.key"; $fpubl = "publkey.key"; $fname = $path . $fpriv; $file = fopen($fname, "r"); $this->private = frea...
true
207a0bfc6015babec9fe22114b1bca714fc087fe
PHP
denismakhlin/NickDenis
/controller/read-posts.php
UTF-8
809
2.671875
3
[]
no_license
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow' rel='stylesheet' type='text/css'> <link type="text/css" rel="stylesheet" href="css/style.css"> <?php //This connects the confi.php page to this page require_once(__DIR__ . "/../model/config.php"); //this will post your text $query = "SELECT * FROM pos...
true
4df9490cd5ea6cb8d970b918e57e7d9c486e4112
PHP
joshbrw/rss-reader
/src/Container.php
UTF-8
1,853
3.0625
3
[]
no_license
<?php namespace Joshbrw\RSS; use Joshbrw\RSS\Exceptions\ContainerBindingNotFoundException; final class Container { private $singletons = []; private $resolvedSingletons = []; private $bindings = []; public function bindSingleton(string $abstract, callable $concrete): Container { $this-...
true
2042828216b32460f05a395456e3b1ecd0e7efea
PHP
travislykes/restaurant
/packages/hof_express_app/Classes/Domain/Model/Address.php
UTF-8
1,864
2.71875
3
[]
no_license
<?php namespace TravisLykes\HofExpressApp\Domain\Model; /*** * * This file is part of the "Hof Express App" Extension for TYPO3 CMS. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * (c) 2020 Travis Lykes <hello@travislykes.c...
true
6d408bd3434475dd0ae2b2cbec04f042499d52ec
PHP
Serrjik/WD05-project-grigorovich
/www/modules/portfolio/work-new.php
UTF-8
4,831
2.5625
3
[]
no_license
<?php if ( !isAdmin() ) { header('Location: ' . HOST); die(); } $title = "Работы - Добавить новую работу"; $works = R::find('works', 'ORDER BY id DESC'); if ( isset($_POST['workNew']) ) { if ( trim($_POST['workTitle']) == '' ) { $errors[] = ['title' => 'Введите название работы' ]; } if ( trim($_POST['workT...
true
09fc415b3ebcb3427dcebd8b3139408a44f7122c
PHP
wodim/amsn
/branches/tcl_tip_278/www/poll_results.php
UTF-8
1,693
2.578125
3
[]
no_license
<?php define('source', 'poll-results'); include 'common.php'; include inc . 'init.php'; include inc . 'header.php'; ?> <?php $id = (isset($_GET['poll']) && ereg('^[0-9]+$', $_GET['poll'])) ? (int)$_GET['poll'] : 0; $query_poll = mysql_query("SELECT `id`, `question` FROM `amsn_poll` " . ($id === 0 ? 'ORDE...
true
acb3a6918e5ae066ce3170e0aa3de93d38ec6696
PHP
cbazureau/website
/app/controller/ErrorController.php
UTF-8
520
2.640625
3
[ "MIT" ]
permissive
<?php /** * Controlleur error * @package website */ namespace controller; class ErrorController { const ERR_404 = "404"; const ERR_404_IMG = "404_IMG"; const ERR_404_CONTROLLER = "404_CONTROLLER"; /** * Gestion du controlleur * @return string */ public static function main() { $ihm = \core\IHM::ge...
true
9dcb53805873976ef8f525118cc74daa57d76ba5
PHP
BeAPI/acf-svg-icon
/fields/acf-base.php
UTF-8
8,201
2.859375
3
[]
no_license
<?php class acf_field_svg_icon extends acf_field { /** * Defaults for the svg. * * @var array */ public $defaults = array(); public $cache_key = 'acf_svg_icon_files'; public function __construct() { // vars $this->name = 'svg_icon'; $this->label = __( 'SVG Icon selector', 'acf-svg-icon' ); ...
true
e87ee4e213cc59c373619f431f52119dd81770e4
PHP
carlos-sysclass/Sysclass3
/themes/default/plugins/modifier.sC_formatTitlePath.php
UTF-8
2,340
3.0625
3
[]
no_license
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty truncate modifier plugin * * Type: modifier<br> * Name: sC_formatTitlePath<br> * Purpose: Format the top tilebar path using an algorithm to * cut each inner link if necessary. * * @param string * @param integer ...
true
53f5ccaba2aba9d2671ea9b4f5a0eca7ebb74fa2
PHP
mycodecrafting/php-chocolate
/lib/Chocolate/core/should_helper.php
UTF-8
3,401
2.71875
3
[]
no_license
<?php /* $Id: should_helper.php 63 2007-03-26 00:03:34Z dreamscape $ */ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * @copyright Copyright &copy; 2007 JD Productions, LLC * @license http://www.opensource.org/osi3.0/licenses/gpl-license.php GNU General Public License * @package Chocolate */ ...
true
f61943e1c3d47e542a189ba7a94820525ecd8091
PHP
Islamic-Blogger/nysc
/app/Models/Ward.php
UTF-8
423
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Models\LGA; use App\Models\Citizen; use Illuminate\Database\Eloquent\Model; class Ward extends Model { /* * A Ward has many citizens */ public function citizen() { return $this->hasMany(Citizen::class); } /* * A Ward belongs to an lga ...
true
2626cc659cc12c85f72f5115d2ad77495826377b
PHP
leen1988/woj-land
/code/web/module/source/source.inc.php
UTF-8
359
2.703125
3
[]
no_license
<?php //this function requires "indent" function format_code($code) { $code = str_replace("\r\n", "\n", $code); $code = escapeshellarg($code); exec ("/bin/echo $code | indent -linux -l120 -bl -nce -bls -bli0", $arr_lines, $ret); if ($ret > 0) throw new Exception("error while formatting..."); ...
true