Showing 67 of 89 total issues
Function _setupCrop
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupCrop(event) {
event.preventDefault();
this._destroyCropApi();
this._hideOverrideTool();
- Create a ticketCreate a ticket
Method setUp
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setUp()
{
$this->site1 = Phake::mock('OpenOrchestra\ModelInterface\Model\SiteInterface');
Phake::when($this->site1)->getSiteId()->thenReturn($this->siteId1);
Phake::when($this->site1)->getName()->thenReturn($this->siteName1);
- Create a ticketCreate a ticket
Function listMedia
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
listMedia(page) {
if (null === page) {
page = 1
}
this._displayLoader(Application.getRegion('content'));
- Create a ticketCreate a ticket
Function filterMedia
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
filterMedia(folderId) {
this._displayLoader(Application.getRegion('content'));
new Medias().fetch({
urlParameter: {
siteId: Application.getContext().get('siteId')
- Create a ticketCreate a ticket
Method getNotSupportedSubjects
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getNotSupportedSubjects()
{
$node = $this->createPhakeNode();
$content = $this->createPhakeContent();
$trashItem = $this->createPhakeTrashItem();
- Create a ticketCreate a ticket
Method setUp
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setUp()
{
$this->tmpDir = __DIR__ . '/../../Fixtures/Source';
$this->fullMedia = Phake::mock('OpenOrchestra\Media\Model\MediaInterface');
Phake::when($this->fullMedia)->getFilesystemName()->thenReturn($this->fullMediaFileSystemName);
- Create a ticketCreate a ticket
Function init
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init(editor) {
editor.addButton('media', {
icon : 'media',
tooltip : 'Insert media',
stateSelector: 'img.tinymce-media',
- Create a ticketCreate a ticket
Method getNotSupportedSubjects
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getNotSupportedSubjects()
{
$node = $this->createPhakeNode();
$content = $this->createPhakeContent();
$trashItem = $this->createPhakeTrashItem();
- Create a ticketCreate a ticket
Method getNotSupportedSubjects
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getNotSupportedSubjects()
{
$node = $this->createPhakeNode();
$content = $this->createPhakeContent();
$trashItem = $this->createPhakeTrashItem();
- Create a ticketCreate a ticket
Method testConfigureOptions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testConfigureOptions()
{
$resolverMock = Phake::mock('Symfony\Component\OptionsResolver\OptionsResolver');
$this->form->configureOptions($resolverMock);
- Create a ticketCreate a ticket
Method updateBlockConfiguration
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function updateBlockConfiguration(ContainerBuilder $container)
{
$mediaBlockConfiguration = array(
GalleryStrategy::NAME => array(
'category' => 'open_orchestra_backoffice.block_configuration.category.media',
- Create a ticketCreate a ticket
Method testGetPerimeterConfiguration
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testGetPerimeterConfiguration()
{
$result = $this->strategy->getPerimeterConfiguration('siteId');
$this->assertEquals(array (
array (
- Create a ticketCreate a ticket
Method testPreSetData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testPreSetData($findSite, $expectedAddCount)
{
$fakeSiteId = 'fakeSiteId';
$fakeSiteName = 'fakeSiteName';
- Create a ticketCreate a ticket
Method transformSubTree
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function transformSubTree(array $folder)
{
$rootFolder = $folder['folder'];
$folderFacade = $this->newFolderFacade();
- Create a ticketCreate a ticket
Method provideFolder
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function provideFolder()
{
$mediaRepository = Phake::mock('OpenOrchestra\Media\Repository\MediaRepositoryInterface');
$subfolder0 = Phake::mock('OpenOrchestra\Media\Model\MediaFolderInterface');
- Create a ticketCreate a ticket
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$tmpDir,
MediaStorageManagerInterface $mediaStorageManager,
array $allowedMimeTypes,
ObjectManager $objectManager,
FolderRepositoryInterface $folderRepository,
- Create a ticketCreate a ticket
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$facadeClass,
FileAlternativesManager $fileAlternativesManager,
MultiLanguagesChoiceManagerInterface $multiLanguageChoiceManager,
MediaStorageManagerInterface $mediaStorageManager,
AuthorizationCheckerInterface $authorizationChecker,
- Create a ticketCreate a ticket
Method testConfig
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$file,
$tmpDir,
array $alternatives,
array $thumbnail,
$default,
- Create a ticketCreate a ticket
Method testTransform
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function testTransform($folderId, $names, $parent, $siteId, $expectedParentId, $expectedName)
- Create a ticketCreate a ticket
Method testCropAndResize
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function testCropAndResize($x, $y, $h, $w, $formatName, $expectedFileName)
- Create a ticketCreate a ticket