Showing 318 of 14,363 total issues
Method getSubscribingMethods
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getSubscribingMethods()
{
return array(
array(
'direction' => GraphNavigator::DIRECTION_DESERIALIZATION,
- Create a ticketCreate a ticket
Function exports
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
grunt.registerTask('template:compile', 'Open Orchestra task to find template underscore and compile it', function () {
var config = grunt.config('application.config');
- Create a ticketCreate a ticket
Function _submitPatch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_submitPatch(event, context) {
Backbone.Events.trigger('form:deactivate', this);
let formView = this;
let $form = $('form', this.$el);
- Create a ticketCreate a ticket
Function format
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
format(value) {
let getGeneralPattern = function (originPattern) {
return new RegExp(originPattern
.replace('d', '[0-9]{2}')
.replace('Y', '[0-9]{4}')
- Create a ticketCreate a ticket
Function listContentType
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
listContentType(page) {
if (null === page) {
page = 1
}
this._displayLoader(Application.getRegion('content'));
- Create a ticketCreate a ticket
Method newAction
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function newAction(Request $request)
{
/** @var ContentTypeInterface $contentType */
$contentType = $this->get('open_orchestra_backoffice.manager.content_type')->initializeNewContentType();
- Create a ticketCreate a ticket
Method provideEditContent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function provideEditContent()
{
$status0 = Phake::mock('OpenOrchestra\ModelInterface\Model\StatusInterface');
Phake::when($status0)->isBlockedEdition()->thenReturn(false);
$content0 = Phake::mock('OpenOrchestra\ModelInterface\Model\ContentInterface');
- Create a ticketCreate a ticket
Method duplicateAction
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function duplicateAction(Request $request)
{
$format = $request->get('_format', 'json');
$facade = $this->get('jms_serializer')->deserialize(
$request->getContent(),
- Create a ticketCreate a ticket
Method provideFacadesConfig
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function provideFacadesConfig()
{
return array(
array('api_client', 'ApiClientFacade'),
array('api_client_collection', 'ApiClientCollectionFacade'),
- Create a ticketCreate a ticket
Method getNotSupportedSubjects
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getNotSupportedSubjects()
{
$node = $this->createPhakeNode();
$trashItem = $this->createPhakeTrashItem();
$site = $this->createPhakeSite();
- Create a ticketCreate a ticket
Method provideEvent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function provideEvent()
{
$event0 = Phake::mock('Symfony\Component\Form\FormEvent');
$form0 = Phake::mock('Symfony\Component\Form\FormInterface');
$contentType0 = Phake::mock('OpenOrchestra\ModelInterface\Model\ContentTypeInterface');
- Create a ticketCreate a ticket
Method testDisplayUsedReferences
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testDisplayUsedReferences()
{
$content = Phake::mock('OpenOrchestra\ModelInterface\Model\ContentInterface');
$contentName = 'contentName';
Phake::when($content)->getName()->thenReturn($contentName);
- Create a ticketCreate a ticket
Method testResolver
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testResolver()
{
$this->form->configureOptions($this->resolver);
Phake::verify($this->resolver)->setDefaults(
- Create a ticketCreate a ticket
Function _addSharedBlock
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_addSharedBlock(event) {
let blockId = $(event.currentTarget).attr('data-block-id');
let block = this._blocks.findWhere({'id': blockId});
if (typeof block === 'undefined') {
throw new ApplicationError('Block not found');
- Create a ticketCreate a ticket
Function listStatus
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
listStatus(page) {
if (null === page) {
page = 1
}
this._displayLoader(Application.getRegion('content'));
- Create a ticketCreate a ticket
Method getNotSupportedSubjects
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getNotSupportedSubjects()
{
$content = $this->createPhakeContent();
$trashItem = $this->createPhakeTrashItem();
$site = $this->createPhakeSite();
- Create a ticketCreate a ticket
Method provideEntityAndKeywords
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function provideEntityAndKeywords()
{
$nodeId = 'nodeId';
$node = $this->createPhakeNode($nodeId);
$contentId = 'contentId';
- Create a ticketCreate a ticket
Method addFormType
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function addFormType(FormEvent $event)
{
$form = $event->getForm();
$data = $event->getData();
$event->setData($data);
- Create a ticketCreate a ticket
Method preSetData
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function preSetData(FormEvent $event)
{
$form = $event->getForm();
$user = $event->getData();
- Create a ticketCreate a ticket
Method transform
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function transform($status, array $params = array())
{
if (!$status instanceof StatusInterface) {
throw new TransformerParameterTypeException();
}
- Create a ticketCreate a ticket