Skip to content

Commit 1711c5d

Browse files
Use self:: instead of SELF::
1 parent f4f31fc commit 1711c5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Antoineaugusti/LaravelSentimentAnalysis/SentimentAnalysis.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public function decision($string)
3030
break;
3131

3232
case 'neu':
33-
return SELF::NEUTRAL;
33+
return self::NEUTRAL;
3434
break;
3535

3636
case 'pos':
37-
return SELF::POSITIVE;
37+
return self::POSITIVE;
3838
break;
3939
}
4040
}
@@ -76,7 +76,7 @@ public function score($string)
7676
*/
7777
public function isPositive($string)
7878
{
79-
return $this->decision($string) == SELF::POSITIVE;
79+
return $this->decision($string) == self::POSITIVE;
8080
}
8181

8282
/**
@@ -96,6 +96,6 @@ public function isNegative($string)
9696
*/
9797
public function isNeutral($string)
9898
{
99-
return $this->decision($string) == SELF::NEUTRAL;
99+
return $this->decision($string) == self::NEUTRAL;
100100
}
101101
}

0 commit comments

Comments
 (0)