Skip to content

Instantly share code, notes, and snippets.

View braders's full-sized avatar

Bradley Taylor braders

View GitHub Profile
@braders
braders / output-with-tests-l4.log
Last active January 27, 2023 17:09
PHPStan-CiviCRM output 27th Jan 2023 (level 4)
This file has been truncated, but you can view the full file.
------ ------------------------------------------------------------------------------
Line CRM/ACL/Form/ACLBasic.php
------ ------------------------------------------------------------------------------
:31 Strict comparison using === between 0 and '0' will always evaluate to false.
:107 Strict comparison using === between 0 and '0' will always evaluate to false.
------ ------------------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line CRM/ACL/Form/WordPress/Permissions.php
------ ---------------------------------------------------------------------
@braders
braders / test_title.js
Created January 24, 2014 14:45
Add (testing) to title of local hostname.
if (window.location.hostname == "localhost" || window.location.hostname == "127.0.0.1"){
document.title = document.title + " (testing)";
}
var NewsWidget = (function () {
var s; // private alias to settings
var self; //private alias to self
return {
settings: {
numArticles: 5,
articleList: $("#article-list"),
moreButton: $("#more-button")
},