Skip to content

Commit 4428697

Browse files
authored
Merge pull request #24 from kirschbaum-development/analysis-qBbM4m
Apply fixes from StyleCI
2 parents 4cd5a29 + bed4b23 commit 4428697

File tree

9 files changed

+17
-27
lines changed

9 files changed

+17
-27
lines changed

migrations/2019_05_22_142633_create_nova_chartjs_metric_values_table.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ class CreateNovaChartJsMetricValuesTable extends Migration
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
1412
public function up()
1513
{
@@ -25,8 +23,6 @@ public function up()
2523

2624
/**
2725
* Reverse the migrations.
28-
*
29-
* @return void
3026
*/
3127
public function down()
3228
{

src/Contracts/Chartable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ interface Chartable
1212
public function novaChartjsMetricValue(): MorphOne;
1313

1414
/**
15-
* Should return settings for Nova Chart in prescribed format
15+
* Should return settings for Nova Chart in prescribed format.
1616
*
1717
* @return array
1818
*/
1919
public static function getNovaChartjsSettings(): array;
2020

2121
/**
22-
* Return a list of all models available for comparison to root model
22+
* Return a list of all models available for comparison to root model.
2323
*
2424
* @return array
2525
*/
2626
public static function getNovaChartjsComparisonData(): array;
2727

2828
/**
29-
* Return a list of additional datasets added to chart
29+
* Return a list of additional datasets added to chart.
3030
*
3131
* @return array
3232
*/

src/Models/NovaChartjsMetricValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class NovaChartjsMetricValue extends Model
2626
];
2727

2828
/**
29-
* Return Chartable model for which this Metric Values are stored
29+
* Return Chartable model for which this Metric Values are stored.
3030
*
3131
* @return MorphTo
3232
*/

src/NovaChartjs.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ class NovaChartjs extends Field
2222
* @param string $name
2323
* @param string|callable|null $attribute
2424
* @param callable|null $resolveCallback
25-
*
26-
* @return void
2725
*/
2826
public function __construct($name, $attribute = null, callable $resolveCallback = null)
2927
{
@@ -37,7 +35,7 @@ public function __construct($name, $attribute = null, callable $resolveCallback
3735
}
3836

3937
/**
40-
* Pass chartable model to NovaChartjs to fetch settings
38+
* Pass chartable model to NovaChartjs to fetch settings.
4139
*
4240
* @param Chartable|null $chartable
4341
*
@@ -60,7 +58,7 @@ public function chartable(Chartable $chartable): self
6058
}
6159

6260
/**
63-
* Hide Label to make Chart occupy full width
61+
* Hide Label to make Chart occupy full width.
6462
*
6563
* @return NovaChartjs
6664
*/
@@ -72,7 +70,7 @@ public function showLabel(): self
7270
}
7371

7472
/**
75-
* set whether a user can edit a model data
73+
* set whether a user can edit a model data.
7674
*
7775
* @return NovaChartjs
7876
*/
@@ -87,7 +85,7 @@ public function notEditable(): self
8785
}
8886

8987
/**
90-
* Fetch a property from Chartable
88+
* Fetch a property from Chartable.
9189
*
9290
* @param Chartable $chartable
9391
* @param string $prop

src/NovaChartjsServiceProvider.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ class NovaChartjsServiceProvider extends ServiceProvider
1111
{
1212
/**
1313
* Bootstrap any application services.
14-
*
15-
* @return void
1614
*/
1715
public function boot()
1816
{
@@ -23,8 +21,6 @@ public function boot()
2321

2422
/**
2523
* Register any application services.
26-
*
27-
* @return void
2824
*/
2925
public function register()
3026
{

src/Traits/HasChart.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
trait HasChart
99
{
1010
/**
11-
* Get the Chartable Model's metric values
11+
* Get the Chartable Model's metric values.
1212
*
1313
* @return MorphOne
1414
*/
@@ -18,7 +18,7 @@ public function novaChartjsMetricValue(): MorphOne
1818
}
1919

2020
/**
21-
* Delete a models chart data before model is deleted
21+
* Delete a models chart data before model is deleted.
2222
*/
2323
public static function bootHasNovaChartjsChart()
2424
{
@@ -30,7 +30,7 @@ public static function bootHasNovaChartjsChart()
3030
}
3131

3232
/**
33-
* Mutator to set Metric Values from Chartable model
33+
* Mutator to set Metric Values from Chartable model.
3434
*
3535
* @param $value
3636
*/
@@ -46,7 +46,7 @@ public function setNovaChartjsMetricValueAttribute($value): void
4646
}
4747

4848
/**
49-
* Return a list of all models available for comparison to root model
49+
* Return a list of all models available for comparison to root model.
5050
*
5151
* @return \Illuminate\Database\Eloquent\Collection
5252
*/
@@ -59,7 +59,7 @@ public static function getNovaChartjsComparisonData(): array
5959
}
6060

6161
/**
62-
* Return a list of additional datasets added to chart
62+
* Return a list of additional datasets added to chart.
6363
*
6464
* @return array
6565
*/

tests/Chartable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Chartable extends Model
2121
protected $fillable = ['name'];
2222

2323
/**
24-
* Should return settings for Nova Chart in prescribed format
24+
* Should return settings for Nova Chart in prescribed format.
2525
*
2626
* @return array
2727
*/

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ abstract class TestCase extends Orchestra
1111
protected $testChartable;
1212

1313
/**
14-
* Setup the Tests
14+
* Setup the Tests.
1515
*/
1616
public function setUp(): void
1717
{
@@ -59,7 +59,7 @@ protected function setUpDatabase($app): void
5959
}
6060

6161
/**
62-
* Create Chartable Model for Testing
62+
* Create Chartable Model for Testing.
6363
*/
6464
protected function createTestModels(): void
6565
{

tests/Unit/ChartableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function a_chartable_can_return_his_metric_value()
3434
}
3535

3636
/**
37-
* Adds a NovaChartjsMetricValue to a Chartable Model
37+
* Adds a NovaChartjsMetricValue to a Chartable Model.
3838
*
3939
* @param NovaChartjsMetricValue|null $metricValue
4040
* @param Chartable|null $chartable

0 commit comments

Comments
 (0)