Passed
Push — master ( 02306d...9f9b89 )
by Morris
14:24 queued 10s
created
core/Command/Encryption/ListModules.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -28,54 +28,54 @@
 block discarded – undo
28 28
 use Symfony\Component\Console\Output\OutputInterface;
29 29
 
30 30
 class ListModules extends Base {
31
-	/** @var IManager */
32
-	protected $encryptionManager;
31
+    /** @var IManager */
32
+    protected $encryptionManager;
33 33
 
34
-	/**
35
-	 * @param IManager $encryptionManager
36
-	 */
37
-	public function __construct(IManager $encryptionManager) {
38
-		parent::__construct();
39
-		$this->encryptionManager = $encryptionManager;
40
-	}
34
+    /**
35
+     * @param IManager $encryptionManager
36
+     */
37
+    public function __construct(IManager $encryptionManager) {
38
+        parent::__construct();
39
+        $this->encryptionManager = $encryptionManager;
40
+    }
41 41
 
42
-	protected function configure() {
43
-		parent::configure();
42
+    protected function configure() {
43
+        parent::configure();
44 44
 
45
-		$this
46
-			->setName('encryption:list-modules')
47
-			->setDescription('List all available encryption modules')
48
-		;
49
-	}
45
+        $this
46
+            ->setName('encryption:list-modules')
47
+            ->setDescription('List all available encryption modules')
48
+        ;
49
+    }
50 50
 
51
-	protected function execute(InputInterface $input, OutputInterface $output) {
52
-		$encryptionModules = $this->encryptionManager->getEncryptionModules();
53
-		$defaultEncryptionModuleId = $this->encryptionManager->getDefaultEncryptionModuleId();
51
+    protected function execute(InputInterface $input, OutputInterface $output) {
52
+        $encryptionModules = $this->encryptionManager->getEncryptionModules();
53
+        $defaultEncryptionModuleId = $this->encryptionManager->getDefaultEncryptionModuleId();
54 54
 
55
-		$encModules = array();
56
-		foreach ($encryptionModules as $module) {
57
-			$encModules[$module['id']]['displayName'] = $module['displayName'];
58
-			$encModules[$module['id']]['default'] = $module['id'] === $defaultEncryptionModuleId;
59
-		}
60
-		$this->writeModuleList($input, $output, $encModules);
61
-	}
55
+        $encModules = array();
56
+        foreach ($encryptionModules as $module) {
57
+            $encModules[$module['id']]['displayName'] = $module['displayName'];
58
+            $encModules[$module['id']]['default'] = $module['id'] === $defaultEncryptionModuleId;
59
+        }
60
+        $this->writeModuleList($input, $output, $encModules);
61
+    }
62 62
 
63
-	/**
64
-	 * @param InputInterface $input
65
-	 * @param OutputInterface $output
66
-	 * @param array $items
67
-	 */
68
-	protected function writeModuleList(InputInterface $input, OutputInterface $output, $items) {
69
-		if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) {
70
-			array_walk($items, function(&$item) {
71
-				if (!$item['default']) {
72
-					$item = $item['displayName'];
73
-				} else {
74
-					$item = $item['displayName'] . ' [default*]';
75
-				}
76
-			});
77
-		}
63
+    /**
64
+     * @param InputInterface $input
65
+     * @param OutputInterface $output
66
+     * @param array $items
67
+     */
68
+    protected function writeModuleList(InputInterface $input, OutputInterface $output, $items) {
69
+        if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) {
70
+            array_walk($items, function(&$item) {
71
+                if (!$item['default']) {
72
+                    $item = $item['displayName'];
73
+                } else {
74
+                    $item = $item['displayName'] . ' [default*]';
75
+                }
76
+            });
77
+        }
78 78
 
79
-		$this->writeArrayInOutputFormat($input, $output, $items);
80
-	}
79
+        $this->writeArrayInOutputFormat($input, $output, $items);
80
+    }
81 81
 }
Please login to merge, or discard this patch.
core/Command/Encryption/Status.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -28,30 +28,30 @@
 block discarded – undo
28 28
 use Symfony\Component\Console\Output\OutputInterface;
29 29
 
30 30
 class Status extends Base {
31
-	/** @var IManager */
32
-	protected $encryptionManager;
31
+    /** @var IManager */
32
+    protected $encryptionManager;
33 33
 
34
-	/**
35
-	 * @param IManager $encryptionManager
36
-	 */
37
-	public function __construct(IManager $encryptionManager) {
38
-		parent::__construct();
39
-		$this->encryptionManager = $encryptionManager;
40
-	}
34
+    /**
35
+     * @param IManager $encryptionManager
36
+     */
37
+    public function __construct(IManager $encryptionManager) {
38
+        parent::__construct();
39
+        $this->encryptionManager = $encryptionManager;
40
+    }
41 41
 
42
-	protected function configure() {
43
-		parent::configure();
42
+    protected function configure() {
43
+        parent::configure();
44 44
 
45
-		$this
46
-			->setName('encryption:status')
47
-			->setDescription('Lists the current status of encryption')
48
-		;
49
-	}
45
+        $this
46
+            ->setName('encryption:status')
47
+            ->setDescription('Lists the current status of encryption')
48
+        ;
49
+    }
50 50
 
51
-	protected function execute(InputInterface $input, OutputInterface $output) {
52
-		$this->writeArrayInOutputFormat($input, $output, [
53
-			'enabled' => $this->encryptionManager->isEnabled(),
54
-			'defaultModule' => $this->encryptionManager->getDefaultEncryptionModuleId(),
55
-		]);
56
-	}
51
+    protected function execute(InputInterface $input, OutputInterface $output) {
52
+        $this->writeArrayInOutputFormat($input, $output, [
53
+            'enabled' => $this->encryptionManager->isEnabled(),
54
+            'defaultModule' => $this->encryptionManager->getDefaultEncryptionModuleId(),
55
+        ]);
56
+    }
57 57
 }
Please login to merge, or discard this patch.
core/Command/Encryption/SetDefaultModule.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -30,40 +30,40 @@
 block discarded – undo
30 30
 use Symfony\Component\Console\Output\OutputInterface;
31 31
 
32 32
 class SetDefaultModule extends Command {
33
-	/** @var IManager */
34
-	protected $encryptionManager;
33
+    /** @var IManager */
34
+    protected $encryptionManager;
35 35
 
36
-	/**
37
-	 * @param IManager $encryptionManager
38
-	 */
39
-	public function __construct(IManager $encryptionManager) {
40
-		parent::__construct();
41
-		$this->encryptionManager = $encryptionManager;
42
-	}
36
+    /**
37
+     * @param IManager $encryptionManager
38
+     */
39
+    public function __construct(IManager $encryptionManager) {
40
+        parent::__construct();
41
+        $this->encryptionManager = $encryptionManager;
42
+    }
43 43
 
44
-	protected function configure() {
45
-		parent::configure();
44
+    protected function configure() {
45
+        parent::configure();
46 46
 
47
-		$this
48
-			->setName('encryption:set-default-module')
49
-			->setDescription('Set the encryption default module')
50
-			->addArgument(
51
-				'module',
52
-				InputArgument::REQUIRED,
53
-				'ID of the encryption module that should be used'
54
-			)
55
-		;
56
-	}
47
+        $this
48
+            ->setName('encryption:set-default-module')
49
+            ->setDescription('Set the encryption default module')
50
+            ->addArgument(
51
+                'module',
52
+                InputArgument::REQUIRED,
53
+                'ID of the encryption module that should be used'
54
+            )
55
+        ;
56
+    }
57 57
 
58
-	protected function execute(InputInterface $input, OutputInterface $output) {
59
-		$moduleId = $input->getArgument('module');
58
+    protected function execute(InputInterface $input, OutputInterface $output) {
59
+        $moduleId = $input->getArgument('module');
60 60
 
61
-		if ($moduleId === $this->encryptionManager->getDefaultEncryptionModuleId()) {
62
-			$output->writeln('"' . $moduleId . '"" is already the default module');
63
-		} else if ($this->encryptionManager->setDefaultEncryptionModule($moduleId)) {
64
-			$output->writeln('<info>Set default module to "' . $moduleId . '"</info>');
65
-		} else {
66
-			$output->writeln('<error>The specified module "' . $moduleId . '" does not exist</error>');
67
-		}
68
-	}
61
+        if ($moduleId === $this->encryptionManager->getDefaultEncryptionModuleId()) {
62
+            $output->writeln('"' . $moduleId . '"" is already the default module');
63
+        } else if ($this->encryptionManager->setDefaultEncryptionModule($moduleId)) {
64
+            $output->writeln('<info>Set default module to "' . $moduleId . '"</info>');
65
+        } else {
66
+            $output->writeln('<error>The specified module "' . $moduleId . '" does not exist</error>');
67
+        }
68
+    }
69 69
 }
Please login to merge, or discard this patch.
core/Command/Group/ListCommand.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -34,58 +34,58 @@
 block discarded – undo
34 34
 use Symfony\Component\Console\Output\OutputInterface;
35 35
 
36 36
 class ListCommand extends Base {
37
-	/** @var IGroupManager */
38
-	protected $groupManager;
37
+    /** @var IGroupManager */
38
+    protected $groupManager;
39 39
 
40
-	/**
41
-	 * @param IGroupManager $groupManager
42
-	 */
43
-	public function __construct(IGroupManager $groupManager) {
44
-		$this->groupManager = $groupManager;
45
-		parent::__construct();
46
-	}
40
+    /**
41
+     * @param IGroupManager $groupManager
42
+     */
43
+    public function __construct(IGroupManager $groupManager) {
44
+        $this->groupManager = $groupManager;
45
+        parent::__construct();
46
+    }
47 47
 
48
-	protected function configure() {
49
-		$this
50
-			->setName('group:list')
51
-			->setDescription('list configured groups')
52
-			->addOption(
53
-				'limit',
54
-				'l',
55
-				InputOption::VALUE_OPTIONAL,
56
-				'Number of groups to retrieve',
57
-				500
58
-			)->addOption(
59
-				'offset',
60
-				'o',
61
-				InputOption::VALUE_OPTIONAL,
62
-				'Offset for retrieving groups',
63
-				0
64
-			)->addOption(
65
-				'output',
66
-				null,
67
-				InputOption::VALUE_OPTIONAL,
68
-				'Output format (plain, json or json_pretty, default is plain)',
69
-				$this->defaultOutputFormat
70
-			);
71
-	}
48
+    protected function configure() {
49
+        $this
50
+            ->setName('group:list')
51
+            ->setDescription('list configured groups')
52
+            ->addOption(
53
+                'limit',
54
+                'l',
55
+                InputOption::VALUE_OPTIONAL,
56
+                'Number of groups to retrieve',
57
+                500
58
+            )->addOption(
59
+                'offset',
60
+                'o',
61
+                InputOption::VALUE_OPTIONAL,
62
+                'Offset for retrieving groups',
63
+                0
64
+            )->addOption(
65
+                'output',
66
+                null,
67
+                InputOption::VALUE_OPTIONAL,
68
+                'Output format (plain, json or json_pretty, default is plain)',
69
+                $this->defaultOutputFormat
70
+            );
71
+    }
72 72
 
73
-	protected function execute(InputInterface $input, OutputInterface $output) {
74
-		$groups = $this->groupManager->search('', (int)$input->getOption('limit'), (int)$input->getOption('offset'));
75
-		$this->writeArrayInOutputFormat($input, $output, $this->formatGroups($groups));
76
-	}
73
+    protected function execute(InputInterface $input, OutputInterface $output) {
74
+        $groups = $this->groupManager->search('', (int)$input->getOption('limit'), (int)$input->getOption('offset'));
75
+        $this->writeArrayInOutputFormat($input, $output, $this->formatGroups($groups));
76
+    }
77 77
 
78
-	/**
79
-	 * @param IGroup[] $groups
80
-	 * @return array
81
-	 */
82
-	private function formatGroups(array $groups) {
83
-		$keys = array_map(function (IGroup $group) {
84
-			return $group->getGID();
85
-		}, $groups);
86
-		$values = array_map(function (IGroup $group) {
87
-			return array_keys($group->getUsers());
88
-		}, $groups);
89
-		return array_combine($keys, $values);
90
-	}
78
+    /**
79
+     * @param IGroup[] $groups
80
+     * @return array
81
+     */
82
+    private function formatGroups(array $groups) {
83
+        $keys = array_map(function (IGroup $group) {
84
+            return $group->getGID();
85
+        }, $groups);
86
+        $values = array_map(function (IGroup $group) {
87
+            return array_keys($group->getUsers());
88
+        }, $groups);
89
+        return array_combine($keys, $values);
90
+    }
91 91
 }
Please login to merge, or discard this patch.
core/Command/Group/RemoveUser.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -33,47 +33,47 @@
 block discarded – undo
33 33
 use Symfony\Component\Console\Output\OutputInterface;
34 34
 
35 35
 class RemoveUser extends Base {
36
-	/** @var IUserManager */
37
-	protected $userManager;
38
-	/** @var IGroupManager */
39
-	protected $groupManager;
36
+    /** @var IUserManager */
37
+    protected $userManager;
38
+    /** @var IGroupManager */
39
+    protected $groupManager;
40 40
 
41
-	/**
42
-	 * @param IUserManager $userManager
43
-	 * @param IGroupManager $groupManager
44
-	 */
45
-	public function __construct(IUserManager $userManager, IGroupManager $groupManager) {
46
-		$this->userManager = $userManager;
47
-		$this->groupManager = $groupManager;
48
-		parent::__construct();
49
-	}
41
+    /**
42
+     * @param IUserManager $userManager
43
+     * @param IGroupManager $groupManager
44
+     */
45
+    public function __construct(IUserManager $userManager, IGroupManager $groupManager) {
46
+        $this->userManager = $userManager;
47
+        $this->groupManager = $groupManager;
48
+        parent::__construct();
49
+    }
50 50
 
51
-	protected function configure() {
52
-		$this
53
-			->setName('group:removeuser')
54
-			->setDescription('remove a user from a group')
55
-			->addArgument(
56
-				'group',
57
-				InputArgument::REQUIRED,
58
-				'group to remove the user from'
59
-			)->addArgument(
60
-				'user',
61
-				InputArgument::REQUIRED,
62
-				'user to remove from the group'
63
-			);
64
-	}
51
+    protected function configure() {
52
+        $this
53
+            ->setName('group:removeuser')
54
+            ->setDescription('remove a user from a group')
55
+            ->addArgument(
56
+                'group',
57
+                InputArgument::REQUIRED,
58
+                'group to remove the user from'
59
+            )->addArgument(
60
+                'user',
61
+                InputArgument::REQUIRED,
62
+                'user to remove from the group'
63
+            );
64
+    }
65 65
 
66
-	protected function execute(InputInterface $input, OutputInterface $output) {
67
-		$group = $this->groupManager->get($input->getArgument('group'));
68
-		if (is_null($group)) {
69
-			$output->writeln('<error>group not found</error>');
70
-			return 1;
71
-		}
72
-		$user = $this->userManager->get($input->getArgument('user'));
73
-		if (is_null($user)) {
74
-			$output->writeln('<error>user not found</error>');
75
-			return 1;
76
-		}
77
-		$group->removeUser($user);
78
-	}
66
+    protected function execute(InputInterface $input, OutputInterface $output) {
67
+        $group = $this->groupManager->get($input->getArgument('group'));
68
+        if (is_null($group)) {
69
+            $output->writeln('<error>group not found</error>');
70
+            return 1;
71
+        }
72
+        $user = $this->userManager->get($input->getArgument('user'));
73
+        if (is_null($user)) {
74
+            $output->writeln('<error>user not found</error>');
75
+            return 1;
76
+        }
77
+        $group->removeUser($user);
78
+    }
79 79
 }
Please login to merge, or discard this patch.
core/Command/Group/AddUser.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -33,47 +33,47 @@
 block discarded – undo
33 33
 use Symfony\Component\Console\Output\OutputInterface;
34 34
 
35 35
 class AddUser extends Base {
36
-	/** @var IUserManager */
37
-	protected $userManager;
38
-	/** @var IGroupManager */
39
-	protected $groupManager;
36
+    /** @var IUserManager */
37
+    protected $userManager;
38
+    /** @var IGroupManager */
39
+    protected $groupManager;
40 40
 
41
-	/**
42
-	 * @param IUserManager $userManager
43
-	 * @param IGroupManager $groupManager
44
-	 */
45
-	public function __construct(IUserManager $userManager, IGroupManager $groupManager) {
46
-		$this->userManager = $userManager;
47
-		$this->groupManager = $groupManager;
48
-		parent::__construct();
49
-	}
41
+    /**
42
+     * @param IUserManager $userManager
43
+     * @param IGroupManager $groupManager
44
+     */
45
+    public function __construct(IUserManager $userManager, IGroupManager $groupManager) {
46
+        $this->userManager = $userManager;
47
+        $this->groupManager = $groupManager;
48
+        parent::__construct();
49
+    }
50 50
 
51
-	protected function configure() {
52
-		$this
53
-			->setName('group:adduser')
54
-			->setDescription('add a user to a group')
55
-			->addArgument(
56
-				'group',
57
-				InputArgument::REQUIRED,
58
-				'group to add the user to'
59
-			)->addArgument(
60
-				'user',
61
-				InputArgument::REQUIRED,
62
-				'user to add to the group'
63
-			);
64
-	}
51
+    protected function configure() {
52
+        $this
53
+            ->setName('group:adduser')
54
+            ->setDescription('add a user to a group')
55
+            ->addArgument(
56
+                'group',
57
+                InputArgument::REQUIRED,
58
+                'group to add the user to'
59
+            )->addArgument(
60
+                'user',
61
+                InputArgument::REQUIRED,
62
+                'user to add to the group'
63
+            );
64
+    }
65 65
 
66
-	protected function execute(InputInterface $input, OutputInterface $output) {
67
-		$group = $this->groupManager->get($input->getArgument('group'));
68
-		if (is_null($group)) {
69
-			$output->writeln('<error>group not found</error>');
70
-			return 1;
71
-		}
72
-		$user = $this->userManager->get($input->getArgument('user'));
73
-		if (is_null($user)) {
74
-			$output->writeln('<error>user not found</error>');
75
-			return 1;
76
-		}
77
-		$group->addUser($user);
78
-	}
66
+    protected function execute(InputInterface $input, OutputInterface $output) {
67
+        $group = $this->groupManager->get($input->getArgument('group'));
68
+        if (is_null($group)) {
69
+            $output->writeln('<error>group not found</error>');
70
+            return 1;
71
+        }
72
+        $user = $this->userManager->get($input->getArgument('user'));
73
+        if (is_null($user)) {
74
+            $output->writeln('<error>user not found</error>');
75
+            return 1;
76
+        }
77
+        $group->addUser($user);
78
+    }
79 79
 }
Please login to merge, or discard this patch.
settings/help.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
36 36
 
37 37
 
38 38
 if(isset($_GET['mode']) and $_GET['mode'] === 'admin') {
39
-	$url=\OCP\Util::linkToAbsolute( 'core', 'doc/admin/index.html' );
40
-	$style1='';
41
-	$style2=' active';
39
+    $url=\OCP\Util::linkToAbsolute( 'core', 'doc/admin/index.html' );
40
+    $style1='';
41
+    $style2=' active';
42 42
 }else{
43
-	$url=\OCP\Util::linkToAbsolute( 'core', 'doc/user/index.html' );
44
-	$style1=' active';
45
-	$style2='';
43
+    $url=\OCP\Util::linkToAbsolute( 'core', 'doc/user/index.html' );
44
+    $style1=' active';
45
+    $style2='';
46 46
 }
47 47
 
48 48
 $url1=\OC::$server->getURLGenerator()->linkToRoute('settings_help').'?mode=user';
Please login to merge, or discard this patch.
lib/private/Contacts/ContactsMenu/ActionFactory.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -30,28 +30,28 @@
 block discarded – undo
30 30
 
31 31
 class ActionFactory implements IActionFactory {
32 32
 
33
-	/**
34
-	 * @param string $icon
35
-	 * @param string $name
36
-	 * @param string $href
37
-	 * @return ILinkAction
38
-	 */
39
-	public function newLinkAction($icon, $name, $href) {
40
-		$action = new LinkAction();
41
-		$action->setName($name);
42
-		$action->setIcon($icon);
43
-		$action->setHref($href);
44
-		return $action;
45
-	}
33
+    /**
34
+     * @param string $icon
35
+     * @param string $name
36
+     * @param string $href
37
+     * @return ILinkAction
38
+     */
39
+    public function newLinkAction($icon, $name, $href) {
40
+        $action = new LinkAction();
41
+        $action->setName($name);
42
+        $action->setIcon($icon);
43
+        $action->setHref($href);
44
+        return $action;
45
+    }
46 46
 
47
-	/**
48
-	 * @param string $icon
49
-	 * @param string $name
50
-	 * @param string $email
51
-	 * @return ILinkAction
52
-	 */
53
-	public function newEMailAction($icon, $name, $email) {
54
-		return $this->newLinkAction($icon, $name, 'mailto:' . urlencode($email));
55
-	}
47
+    /**
48
+     * @param string $icon
49
+     * @param string $name
50
+     * @param string $email
51
+     * @return ILinkAction
52
+     */
53
+    public function newEMailAction($icon, $name, $email) {
54
+        return $this->newLinkAction($icon, $name, 'mailto:' . urlencode($email));
55
+    }
56 56
 
57 57
 }
Please login to merge, or discard this patch.
lib/private/Contacts/ContactsMenu/Actions/LinkAction.php 1 patch
Indentation   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -28,76 +28,76 @@
 block discarded – undo
28 28
 
29 29
 class LinkAction implements ILinkAction {
30 30
 
31
-	/** @var string */
32
-	private $icon;
33
-
34
-	/** @var string */
35
-	private $name;
36
-
37
-	/** @var string */
38
-	private $href;
39
-
40
-	/** @var int */
41
-	private $priority = 10;
42
-
43
-	/**
44
-	 * @param string $icon absolute URI to an icon
45
-	 */
46
-	public function setIcon($icon) {
47
-		$this->icon = $icon;
48
-	}
49
-
50
-	/**
51
-	 * @param string $name
52
-	 */
53
-	public function setName($name) {
54
-		$this->name = $name;
55
-	}
56
-
57
-	/**
58
-	 * @return string
59
-	 */
60
-	public function getName() {
61
-		return $this->name;
62
-	}
63
-
64
-	/**
65
-	 * @param int $priority
66
-	 */
67
-	public function setPriority($priority) {
68
-		$this->priority = $priority;
69
-	}
70
-
71
-	/**
72
-	 * @return int
73
-	 */
74
-	public function getPriority() {
75
-		return $this->priority;
76
-	}
77
-
78
-	/**
79
-	 * @param string $href
80
-	 */
81
-	public function setHref($href) {
82
-		$this->href = $href;
83
-	}
84
-
85
-	/**
86
-	 * @return string
87
-	 */
88
-	public function getHref() {
89
-		return $this->href;
90
-	}
91
-
92
-	/**
93
-	 * @return array
94
-	 */
95
-	public function jsonSerialize() {
96
-		return [
97
-			'title' => $this->name,
98
-			'icon' => $this->icon,
99
-			'hyperlink' => $this->href,
100
-		];
101
-	}
31
+    /** @var string */
32
+    private $icon;
33
+
34
+    /** @var string */
35
+    private $name;
36
+
37
+    /** @var string */
38
+    private $href;
39
+
40
+    /** @var int */
41
+    private $priority = 10;
42
+
43
+    /**
44
+     * @param string $icon absolute URI to an icon
45
+     */
46
+    public function setIcon($icon) {
47
+        $this->icon = $icon;
48
+    }
49
+
50
+    /**
51
+     * @param string $name
52
+     */
53
+    public function setName($name) {
54
+        $this->name = $name;
55
+    }
56
+
57
+    /**
58
+     * @return string
59
+     */
60
+    public function getName() {
61
+        return $this->name;
62
+    }
63
+
64
+    /**
65
+     * @param int $priority
66
+     */
67
+    public function setPriority($priority) {
68
+        $this->priority = $priority;
69
+    }
70
+
71
+    /**
72
+     * @return int
73
+     */
74
+    public function getPriority() {
75
+        return $this->priority;
76
+    }
77
+
78
+    /**
79
+     * @param string $href
80
+     */
81
+    public function setHref($href) {
82
+        $this->href = $href;
83
+    }
84
+
85
+    /**
86
+     * @return string
87
+     */
88
+    public function getHref() {
89
+        return $this->href;
90
+    }
91
+
92
+    /**
93
+     * @return array
94
+     */
95
+    public function jsonSerialize() {
96
+        return [
97
+            'title' => $this->name,
98
+            'icon' => $this->icon,
99
+            'hyperlink' => $this->href,
100
+        ];
101
+    }
102 102
 
103 103
 }
Please login to merge, or discard this patch.