From 6d5914049a0be6d062ae10c28906c19354ba0952 Mon Sep 17 00:00:00 2001 From: Casey McLaughlin Date: Thu, 22 Jan 2015 16:58:06 -0500 Subject: [PATCH] Cleaned up some variable names --- src/HeaderTagInterpreter.php | 4 ++-- src/UniqueSluggifier.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/HeaderTagInterpreter.php b/src/HeaderTagInterpreter.php index f0798a1..7379f23 100644 --- a/src/HeaderTagInterpreter.php +++ b/src/HeaderTagInterpreter.php @@ -27,6 +27,6 @@ trait HeaderTagInterpreter $desired = range((int) $topLevel, (int) $topLevel + ((int) $depth - 1)); $allowed = [1, 2, 3, 4, 5, 6]; - return array_map(function($v) { return 'h'.$v; }, array_intersect($desired, $allowed)); + return array_map(function($val) { return 'h'.$val; }, array_intersect($desired, $allowed)); } -} \ No newline at end of file +} diff --git a/src/UniqueSluggifier.php b/src/UniqueSluggifier.php index 82ff971..3af60d9 100644 --- a/src/UniqueSluggifier.php +++ b/src/UniqueSluggifier.php @@ -52,11 +52,11 @@ class UniqueSluggifier { $slugged = $this->slugify->slugify($text); - $ct = 1; + $count = 1; $orig = $slugged; while (in_array($slugged, $this->used)) { - $slugged = $orig . '-' . $ct; - $ct++; + $slugged = $orig . '-' . $count; + $count++; } $this->used[] = $slugged;