Skip to content

Commit

Permalink
Merge pull request #33 from samwiggins/master
Browse files Browse the repository at this point in the history
Laravel update breaking Collection
  • Loading branch information
edvinaskrucas committed Jul 28, 2014
2 parents 60f6cc1 + 9282dac commit 01de145
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
language: php

php:
- 5.3
- 5.4

before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev

script: phpunit
script: phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"license": "MIT",
"require": {
"php": ">=5.3.0",
"php": ">=5.4.0",
"illuminate/support": "4.*",
"illuminate/session": "4.*",
"illuminate/config": "4.*",
Expand All @@ -25,4 +25,4 @@
}
},
"minimum-stability": "dev"
}
}
13 changes: 1 addition & 12 deletions src/Krucas/Notification/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,7 @@ public function addUnique(Message $message)

return $this;
}

/**
* Determines if given message is already in collection.
*
* @param Message $message
* @return bool
*/
public function contains(Message $message)
{
return in_array($message, $this->items);
}


/**
* Sets item at given position.
*
Expand Down

0 comments on commit 01de145

Please sign in to comment.