Skip to content

Instantly share code, notes, and snippets.

View lmuzinic's full-sized avatar

Luka Muzinic lmuzinic

View GitHub Profile
<?php
class User
{
// ...
public function isAdmin()
{
if ($this->status === self::ADMIN) {
- return true;
<?php
class User
{
// ...
public function isAdmin()
{
- if ($this->status === self::ADMIN) {
+ if ($this->status !== self::ADMIN) {
<?php
class User
{
// ...
- public function isAdmin()
+ protected function isAdmin()
{
if ($this->status === self::ADMIN) {
<?php
class User
{
// ...
public function isAdmin()
{
if ($this->status === self::ADMIN) {
return true;
<?php
class LegalAgeTest extends TestCase
{
use \Eris\TestTrait;
public function setUp()
{
$this->legalAge = new LegalAge();
}
@lmuzinic
lmuzinic / User.php
Created January 29, 2018 15:02
Infection
<?php
class User
{
// ...
public function isAdmin()
{
if ($this->status === self::ADMIN) {
return true;
<?php
class User
{
// ...
public function isAdmin()
{
if ($this->status === self::ADMIN) {
return true;

Keybase proof

I hereby claim:

  • I am lmuzinic on github.
  • I am lmuzinic (https://keybase.io/lmuzinic) on keybase.
  • I have a public key whose fingerprint is 9C74 980C C325 2990 2B9F 40BB 72BB AC5B 0ED1 2F67

To claim this, I am signing this object:

ssh-keygen -t rsa -C "travis_ci" -f travis_id_rsa
# Generating public/private rsa key pair.
# Enter passphrase (empty for no passphrase):
# Enter same passphrase again:
# Your identification has been saved in travis_id_rsa.
# Your public key has been saved in travis_id_rsa.pub.
before_script:
- 'echo -n $id_rsa_{00..30} >> ~/.ssh/id_rsa_base64'
- 'base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa'
- 'chmod 600 ~/.ssh/id_rsa'
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config'