Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spatie/emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 27, 2016
2 parents 07f6cd4 + 1912368 commit 8140f97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Emoji.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Spatie\Emoji\Exceptions\UnknownCharacter;

/**
* Emoji class
* Emoji class.
*
* @method static string keycapNumberSign()
* @method static string keycapAsterisk()
Expand Down Expand Up @@ -2587,7 +2587,7 @@ public static function getCharacter(string $characterName) : string
{
$constantName = static::convertCharacterNameToConstantName($characterName);

if (!defined("static::{$constantName}")) {
if (! defined("static::{$constantName}")) {
throw UnknownCharacter::create($characterName);
}

Expand All @@ -2610,7 +2610,7 @@ protected static function convertCharacterNameToConstantName(string $characterNa

protected static function convertToSnakeCase(string $value) : string
{
if (!ctype_lower($value)) {
if (! ctype_lower($value)) {
$value = preg_replace('/\s+/', '', $value);

$value = strtolower(preg_replace('/(.)(?=[A-Z])/', '$1'.'_', $value));
Expand Down

0 comments on commit 8140f97

Please sign in to comment.