Showing 481 of 922 total issues
Function onAddParameterFilter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onAddParameterFilter: function (rec) {
var subFilters = [];
subFilters.push( Ext.create("PartKeepr.util.Filter", {
Function createLayout
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createLayout: function ()
{
this.statusBar = Ext.create("PartKeepr.Statusbar");
this.messageLog = this.createMessageLog();
Method import
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function import($row, $obj = null)
{
if ($obj === null) {
$obj = new $this->baseEntity();
$this->persist($obj);
Method getExtJSFieldMapping
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getExtJSFieldMapping($type)
{
switch ($type) {
case 'integer':
return 'int';
Method import
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function import($preview = false)
{
$entities = [];
$logs = [];
Function fs_error
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, fs_error = function() {
if (target_view && is_safari && typeof FileReader !== "undefined") {
// Safari doesn't allow downloading of blob urls
var reader = new FileReader();
reader.onloadend = function() {
Function SIUnitPrefix
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SIUnitPrefix: function( q_value, q_unit )
{
// the new Octopart API returns quantities as display strings: e.g. "12 mm"
// try to recognize SI-unit and SI-prefix
Function onSetValueClick
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onSetValueClick: function (widgetColumn)
{
this.editingRecord = widgetColumn.getWidgetRecord();
Function getFramedPanel
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getFramedPanel: function () {
return this.applySizing('framedPanel', {
xtype: 'panel',
title: 'Framed Panel',
animCollapse: true,
Function launch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
launch: function ()
{
Ext.setGlyphFontFamily('FontAwesome');
Ext.get("loader-wrapper").hide();
Ext.setLocale('en_US');
Method testMimeType
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testMimeType()
{
$client = static::makeClient(true);
$file = __DIR__.'/Fixtures/files/uploadtest.png';
Method testGetFile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testGetFile()
{
$client = static::makeClient(true);
$file = __DIR__.'/Fixtures/files/uploadtest.png';
Function initComponent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initComponent: function ()
{
this.testResultPanel = Ext.create("PartKeeprSetup.TestResultPanel", {
flex: 1
});
Method replaceFromURL
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function replaceFromURL(UploadedFile $file, $url)
{
/* Some sites don't like automated requests. But the internet is meant to be open for anybody,
* even for scripts. So we are evil and fake the headers.
*
Method getPartByUID
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getPartByUID($uid)
{
try {
$redisclient = new PredisClient();
$redisclient->connect();
Method testProjectPartRemoval
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testProjectPartRemoval()
{
$client = static::makeClient(true);
$project = $this->fixtures->getReference('project');
Function renderer
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
renderer: function (value, metaData, record, rowIndex, colIndex, store, view, renderObj)
Function renderer
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
renderer: function (value, metaData, record, rowIndex, colIndex, store, view, renderObj)
Function renderer
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
renderer: function (value, metaData, record, rowIndex, colIndex, store, view, renderObj)
Function renderer
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
renderer: function (value, metaData, record, rowIndex, colIndex, store, view, renderObj)