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.

CI3Finder::find()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
1
<?php namespace Myth\Bay;
2
3
class CI3Finder implements LibraryFinderInterface {
4
5
	/**
6
	 * Allows framework/project-specific methods of loading a library
7
	 * when the Bay class cannot autoload it.
8
	 *
9
	 * Should load the class into memory and return true or false.
10
	 *
11
	 * @param $class
12
	 *
13
	 * @return bool
14
	 */
15
	public function find($class)
16
	{
17
	    $ci =& get_instance();
18
19
		$ci->load->library($class);
20
21
		// If the library can't be found,
22
		// it's going to throw an error,
23
		// so the only possible response is true.
24
		return true;
25
	}
26
27
	//--------------------------------------------------------------------
28
29
30
}