Skip to content

Commit 447d407

Browse files
abr4xasactions-user
authored andcommitted
Fix styling
1 parent ecaff6d commit 447d407

File tree

8 files changed

+11
-16
lines changed

8 files changed

+11
-16
lines changed

.php-cs-fixer.cache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"php":"8.1.3","version":"3.7.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"sort_algorithm":"alpha"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}}},"hashes":{"src\/Models\/Note.php":33057777,"src\/Models\/Service.php":1308036330,"src\/Models\/Lead.php":3909068467,"src\/SimpleCrmServiceProvider.php":944153556,"tests\/Unit\/LeadTest.php":614413385,"tests\/Unit\/ServiceTest.php":303507015,"tests\/Unit\/NoteTest.php":2065232214,"tests\/Models\/User.php":2662874227,"tests\/TestCase.php":1234141560,"tests\/Pest.php":2378833050}}

src/Models/Lead.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class Lead extends Model
1313
{
1414
use HasFactory;
1515

16-
const ORGANIC_TYPE = 'Organic';
17-
const USER_SUBMITTED_TYPE = 'User Submitted';
16+
public const ORGANIC_TYPE = 'Organic';
17+
public const USER_SUBMITTED_TYPE = 'User Submitted';
1818

19-
const PROSPECT_STATUS = 'Prospect';
20-
const LEAD_STATUS = 'Lead';
21-
const CUSTOMER_STATUS = 'Customer';
19+
public const PROSPECT_STATUS = 'Prospect';
20+
public const LEAD_STATUS = 'Lead';
21+
public const CUSTOMER_STATUS = 'Customer';
2222

2323
/**
2424
* The attributes that are mass assignable.

src/Models/Note.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class Note extends Model
1111
{
1212
use HasFactory;
1313

14-
const LOW_PRIORITY = 'Low';
15-
const MEDIUM_PRIORITY = 'Medium';
16-
const HIGH_PRIORITY = 'High';
14+
public const LOW_PRIORITY = 'Low';
15+
public const MEDIUM_PRIORITY = 'Medium';
16+
public const HIGH_PRIORITY = 'High';
1717

1818
/**
1919
* The attributes that are mass assignable.

src/SimpleCrmServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
class SimpleCrmServiceProvider extends PackageServiceProvider
99
{
10-
1110
public function configurePackage(Package $package): void
1211
{
1312
/*

tests/Models/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Tepuilabs\SimpleCrm\Tests\Models;
34

45
use Illuminate\Database\Eloquent\Factories\HasFactory;

tests/Unit/LeadTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,18 @@
33
use Tepuilabs\SimpleCrm\Models\Lead;
44

55
test('it can create lead', function () {
6-
76
$lead = Lead::factory()->create();
87

98
$this->assertInstanceOf(Lead::class, $lead);
109
});
1110

1211
test('it can create a new lead as prospect', function () {
13-
1412
$lead = Lead::factory()->create(['status' => 'Prospect']);
1513

1614
$this->assertEquals('Prospect', $lead->status);
1715
});
1816

1917
test('it can create a new lead as organic', function () {
20-
2118
$lead = Lead::factory()->create(['type' => 'Organic']);
2219

2320
$this->assertEquals('Organic', $lead->type);

tests/Unit/NoteTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?php
22

33
use Tepuilabs\SimpleCrm\Models\Lead;
4-
use \Tepuilabs\SimpleCrm\Models\Note;
5-
4+
use Tepuilabs\SimpleCrm\Models\Note;
65

76
test('if a user can create a note', function () {
8-
97
$user = \Tepuilabs\SimpleCrm\Tests\Models\User::factory()->create();
108
$lead = Lead::factory()->create();
119

tests/Unit/ServiceTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use Tepuilabs\SimpleCrm\Models\Service;
44

55
test('it can create services', function () {
6-
76
$service = Service::factory()->create();
87

98
$this->assertInstanceOf(Service::class, $service);

0 commit comments

Comments
 (0)