GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — develop ( b5e3c2...7799bc )
by
unknown
15s
created

Zen   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 11 2
1
<?php
2
/**
3
 * Part of the Joomla Framework Github Package
4
 *
5
 * @copyright  Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
6
 * @license    GNU General Public License version 2 or later; see LICENSE
7
 */
8
9
namespace Joomla\Github\Package;
10
11
use Joomla\Github\AbstractPackage;
12
13
/**
14
 * GitHub API Zen class for the Joomla Framework.
15
 *
16
 * @since  1.0
17
 *
18
 * @documentation  http://developer.github.com/guides/getting-started/
19
 */
20
class Zen extends AbstractPackage
21
{
22
	/**
23
	 * Get a random response about one of our design philosophies.
24
	 *
25
	 * @throws \RuntimeException
26
	 *
27
	 * @return string
28
	 */
29
	public function get()
30
	{
31
		$response = $this->client->get($this->fetchUrl('/zen'));
32
33
		if (200 != $response->code)
34
		{
35
			throw new \RuntimeException('Can\'t get a Zen');
36
		}
37
38
		return $response->body;
39
	}
40
}
41