Skip to content

Instantly share code, notes, and snippets.

View amacgregor's full-sized avatar
:shipit:
Working on Side Projects

Allan MacGregor amacgregor

:shipit:
Working on Side Projects
View GitHub Profile
{
"files":{
"app\/code\/local\/Igex\/StoreLocator\/Block\/Adminhtml\/Import\/Form.php":{
"phpmetrics":{
"metrics":{
"loc":31,
"logicalLoc":8,
"volume":364.35,
"length":75,
"vocabulary":29,
input {
file {
type => "magento-exception"
path => "/path/to/magento/www/var/log/exception.log"
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601}"
negate => true
what => previous
}
}
{
"files":{
"app\/code\/community\/Kodematix\/Inquiry\/Block\/Inquiry.php":{
"phpmetrics":{
"metrics":{
"loc":48,
"logicalLoc":10,
"volume":529.1,
"length":104,
"vocabulary":34,
@amacgregor
amacgregor / score_data.json
Last active August 29, 2015 14:12
Example score data from a triplecheck.io build
{
"app\/code\/community\/Kodematix\/Inquiry\/Block\/Inquiry.php":{
"phpmetrics":{
"instability":-1,
"lloc":5,
"maintainability":"3.89",
"nocchecks":5
},
"phpcs":{
"errors":5,
@amacgregor
amacgregor / Command.php
Created December 16, 2014 14:29
L4shell patched
<?php
namespace Netson\L4shell;
use Config;
use Log;
use File;
class Command {
/**
<?xml version="1.0"?>
<package>
<name>666999</name>
<version>0.3.5</version>
<stability>beta</stability>
<license uri="http://opensource.org/licenses/gpl-license.php">GPL</license>
<channel>community</channel>
<extends />
<summary>Securely access and process online payments with the NETBANX payment gateway.</summary>
<description>The Optimal Payments NETBANX Hosted Payment Extension allows ecommerce businesses to securely accept and process online payments using Optimal&amp;#x2019;s NETBANX payment gateway and services. The integration is easy to implement and provides the ultimate in payment processing capabilities, fraud management, and reporting.&amp;#xD;
{
"phpcs":{
"files":{
"app\/code\/community\/Demac\/Chase\/Model\/Adapter\/DatabaseAdapter.php":{
"issues":[
],
"scores":{
"errors":0,
"warnings":0,
{
"settings": {
"ignore_list": [
{ "type": "directory", "path": "app/code/core/"}
],
"file_extensions": ["php", "phtml"],
"standards": ["ECG","Zend"],
"report": "json",
"files": [ "app/code/local/Demac/Bogo/Model/Observer.php", "app/code/local/Demac/"]
}
{
"name": "demac/chase",
"description": "Pending Description",
"authors": [
{
"name": "Demac Media",
"email": "[email protected]"
}
],
"config": {