<?php

use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Phragile\PhabricatorAPI;

class User extends Eloquent implements UserInterface {

	// This is used for password authentication, recovery etc which we don't need.
	// Only using this because Auth::login won't work otherwise.
	use UserTrait;

	protected $fillable = ['phid', 'username'];

	public function setRememberToken($token) {
		// Workaround: Auth::logout breaks with the default behavior since we're using OAuth.
	}

	public function certificateValid($certificate = null)
	{
		try
		{
			$phabricator = new PhabricatorAPI(new ConduitClient($_ENV['PHABRICATOR_URL']));
			$phabricator->connect($this->username, $certificate ?: $this->conduit_certificate);
		} catch (ConduitClientException $e)
		{
			return false;
		}

		return true;
	}

	public function isAdmin()
	{
		return in_array(
			strtolower($this->username),
			array_map('trim', explode(',', $_ENV['PHRAGILE_ADMINS']))
		);
	}
}

<?php

use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Phragile\PhabricatorAPI;

class User extends Eloquent implements UserInterface {

	// This is used for password authentication, recovery etc which we don't need.
	// Only using this because Auth::login won't work otherwise.
	use UserTrait;

	protected $fillable = ['phid', 'username'];

	public function setRememberToken($token) {
		// Workaround: Auth::logout breaks with the default behavior since we're using OAuth.
	}

	public function certificateValid($certificate = null)
	{
		try
		{
			$phabricator = new PhabricatorAPI(new ConduitClient($_ENV['PHABRICATOR_URL']));
			$phabricator->connect($this->username, $certificate ?: $this->conduit_certificate);
		} catch (ConduitClientException $e)
		{
			return false;
		}

		return true;
	}

	public function isAdmin()
	{
		return in_array(strtolower($this->username), array_map('trim', explode(',', $_ENV['PHRAGILE_ADMINS'])));
	}
}

--- 
+++ 
@@ -32,6 +32,9 @@
 
 	public function isAdmin()
 	{
-		return in_array(strtolower($this->username), array_map('trim', explode(',', $_ENV['PHRAGILE_ADMINS'])));
+		return in_array(
+			strtolower($this->username),
+			array_map('trim', explode(',', $_ENV['PHRAGILE_ADMINS']))
+		);
 	}
 }
Make isAdmin method more readable.
