Skip to content

Commit

Permalink
Merge pull request #250 from fenos/develop
Browse files Browse the repository at this point in the history
v4.0.2
  • Loading branch information
Gummibeer committed Jan 13, 2017
2 parents 89345fb + 2a9474a commit 0bba585
Show file tree
Hide file tree
Showing 27 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
coverage_clover: build/logs/clover.xml
json_path: build/logs/coveralls-upload.json
service_name: travis-ci
service_name: travis-ci
2 changes: 1 addition & 1 deletion .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/vendor
composer.lock
/build
/build
5 changes: 4 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ filter:
- tests/*
build:
environment:
php: 7.0.6
php: 7.0.6
dependencies:
after:
- composer dump-autoload -o
2 changes: 1 addition & 1 deletion .travis.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ after_script:

## Send Build Notifications to Slack
notifications:
slack: notifynder:CnF7P2xaZuJTJ4VzNOy6ksDH
slack: notifynder:CnF7P2xaZuJTJ4VzNOy6ksDH
9 changes: 3 additions & 6 deletions CoverageChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
$percentage = min(100, max(0, (int) $argv[2]));

if (! file_exists($inputFile)) {
echo $inputFile." isn't present.";
exit(0);
throw new RuntimeException($inputFile." isn't present.");
}

if (! $percentage) {
echo $percentage." isn't percentage.";
exit(0);
throw new RuntimeException($percentage." isn't a percentage value.");
}

$xml = new SimpleXMLElement(file_get_contents($inputFile));
Expand All @@ -26,8 +24,7 @@
$coverage = ($checkedElements / $totalElements) * 100;

if ($coverage < $percentage) {
echo 'Code coverage is '.$coverage.'%, which is below the accepted '.$percentage.'%'.PHP_EOL;
exit(1);
throw new RuntimeException('Code coverage is '.$coverage.'%, which is below the accepted '.$percentage.'%');
}

echo 'Code coverage is '.$coverage.'% - OK!'.PHP_EOL;
2 changes: 2 additions & 0 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/fenos/Notifynder/master/LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/fenos/Notifynder.svg?style=flat-square)](https://github.com/fenos/Notifynder/issues)
[![Total Downloads](https://img.shields.io/packagist/dt/fenos/notifynder.svg?style=flat-square)](https://packagist.org/packages/fenos/notifynder)
[![VersionEye](https://www.versioneye.com/user/projects/5878c014a21fa90051522611/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/5878c014a21fa90051522611)
[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/ef2a6768-337d-4a88-ae0b-8a0eb9621bf5.svg?style=flat-square&label=SensioLabs)](https://insight.sensiolabs.com/projects/ef2a6768-337d-4a88-ae0b-8a0eb9621bf5)

[![Travis branch](https://img.shields.io/travis/fenos/Notifynder/master.svg?style=flat-square&label=TravisCI)](https://travis-ci.org/fenos/Notifynder/branches)
[![StyleCI](https://styleci.io/repos/18425539/shield)](https://styleci.io/repos/18425539)
Expand Down
4 changes: 1 addition & 3 deletions composer.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
},
"require-dev": {
"laravel/framework": "~5.0",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1",
"phpunit/phpunit": "~4.0|~5.0",
"laracasts/testdummy": "~2.0",
"orchestra/testbench": "~3.0",
"doctrine/dbal": "^2.5",
"codeclimate/php-test-reporter": "^0.3.2",
"satooshi/php-coveralls": "^1.0"
},
Expand Down
Empty file modified phpspec.yml
100755 → 100644
Empty file.
Empty file modified phpunit.xml
100755 → 100644
Empty file.
Empty file modified src/Notifynder/Builder/Builder.php
100755 → 100644
Empty file.
Empty file modified src/Notifynder/Contracts/NotifynderManagerContract.php
100755 → 100644
Empty file.
Empty file modified src/Notifynder/Managers/NotifynderManager.php
100755 → 100644
Empty file.
Empty file modified src/Notifynder/Models/Notification.php
100755 → 100644
Empty file.
Empty file modified src/Notifynder/Models/NotificationCategory.php
100755 → 100644
Empty file.
Empty file modified src/Notifynder/NotifynderServiceProvider.php
100755 → 100644
Empty file.
1 change: 0 additions & 1 deletion src/Notifynder/Senders/SingleSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fenos\Notifynder\Senders;

use Fenos\Notifynder\Models\Notification;
use Fenos\Notifynder\Contracts\SenderContract;
use Fenos\Notifynder\Contracts\SenderManagerContract;

Expand Down
Empty file modified src/Notifynder/Traits/Notifable.php
100755 → 100644
Empty file.
Empty file modified src/Notifynder/Traits/NotifableBasic.php
100755 → 100644
Empty file.
Empty file modified src/Notifynder/Traits/NotifableLaravel53.php
100755 → 100644
Empty file.
Empty file modified src/config/notifynder.php
100755 → 100644
Empty file.
Empty file modified src/migrations/2014_02_10_145728_notification_categories.php
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file modified src/migrations/2015_05_05_212549_create_notifications_table.php
100755 → 100644
Empty file.
5 changes: 3 additions & 2 deletions src/migrations/2015_06_06_211555_add_expire_time_column_to_notification_table.php
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddExpireTimeColumnToNotificationTable extends Migration
Expand All @@ -11,7 +12,7 @@ class AddExpireTimeColumnToNotificationTable extends Migration
*/
public function up()
{
Schema::table('notifications', function ($table) {
Schema::table('notifications', function (Blueprint $table) {
$table->timestamp('expire_time')->nullable();
});
}
Expand All @@ -23,7 +24,7 @@ public function up()
*/
public function down()
{
Schema::table('notifications', function ($table) {
Schema::table('notifications', function (Blueprint $table) {
$table->dropColumn('expire_time');
});
}
Expand Down
Empty file.
5 changes: 3 additions & 2 deletions src/migrations/2015_06_07_211555_alter_category_name_to_unique.php
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlterCategoryNameToUnique extends Migration
Expand All @@ -11,7 +12,7 @@ class AlterCategoryNameToUnique extends Migration
*/
public function up()
{
Schema::table('notification_categories', function ($table) {
Schema::table('notification_categories', function (Blueprint $table) {
$table->unique('name');
});
}
Expand All @@ -23,7 +24,7 @@ public function up()
*/
public function down()
{
Schema::table('notification_categories', function ($table) {
Schema::table('notification_categories', function (Blueprint $table) {
$table->dropUnique('notification_categories_name_unique');
});
}
Expand Down

0 comments on commit 0bba585

Please sign in to comment.