Code Duplication    Length = 11-11 lines in 3 locations

controller/calendarcontroller.php 1 location

@@ 73-83 (lines=11) @@
70
	 * @NoAdminRequired
71
	 * @NoCSRFRequired
72
	 */
73
	public function index($limit=null, $offset=null) {
74
		try {
75
			return $this->calendars->findAll(
76
				$this->user->getUID(),
77
				$limit,
78
				$offset
79
			);
80
		} catch (\Exception $ex) {
81
			return $this->handleException($ex);
82
		}
83
	}
84
85
86
	/**

controller/subscriptioncontroller.php 1 location

@@ 87-97 (lines=11) @@
84
	 * @NoAdminRequired
85
	 * @NoCSRFRequired
86
	 */
87
	public function index($limit=null, $offset=null) {
88
		try {
89
			return $this->subscriptions->findAll(
90
				$this->user->getUID(),
91
				$limit,
92
				$offset
93
			);
94
		} catch (\Exception $ex) {
95
			return $this->handleException($ex);
96
		}
97
	}
98
99
100
	/**

controller/timezonecontroller.php 1 location

@@ 66-76 (lines=11) @@
63
	 * @NoAdminRequired
64
	 * @NoCSRFRequired
65
	 */
66
	public function index($limit=null, $offset=null) {
67
		try {
68
			return $this->timezones->findAll(
69
				$this->user->getUID(),
70
				$limit,
71
				$offset
72
			);
73
		} catch (\Exception $ex) {
74
			return $this->handleException($ex);
75
		}
76
	}
77
78
79
	/**