diff --git a/coder_sniffer/Drupal/Sniffs/Commenting/DocCommentSniff.php b/coder_sniffer/Drupal/Sniffs/Commenting/DocCommentSniff.php
index d73604c..ed27f4d 100644
--- a/coder_sniffer/Drupal/Sniffs/Commenting/DocCommentSniff.php
+++ b/coder_sniffer/Drupal/Sniffs/Commenting/DocCommentSniff.php
@@ -144,7 +144,11 @@ class Drupal_Sniffs_Commenting_DocCommentSniff implements PHP_CodeSniffer_Sniff
             return;
         }
 
-        $start = isset($fileShort) === true ? $fileShort : $stackPtr;
+        if (isset($fileShort) === true) {
+            $start = $fileShort;
+        } else {
+            $start = $stackPtr;
+        }
 
         // No extra newline before short description.
         if ($tokens[$short]['line'] !== ($tokens[$start]['line'] + 1)) {
diff --git a/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php b/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php
index 1ded638..14606e9 100644
--- a/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php
+++ b/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php
@@ -444,7 +444,12 @@ class Drupal_Sniffs_Commenting_FunctionCommentSniff implements PHP_CodeSniffer_S
                     }
                 }
 
-                $var    = isset($matches[2]) ? $matches[2] : '';
+                if (isset($matches[2]) === true) {
+                    $var = $matches[2];
+                } else {
+                    $var = '';
+                }
+
                 $varLen = strlen($var);
                 if ($varLen > $maxVar) {
                     $maxVar = $varLen;
@@ -716,11 +721,21 @@ class Drupal_Sniffs_Commenting_FunctionCommentSniff implements PHP_CodeSniffer_S
                 continue;
             }
 
+            if (isset($param['commentLines'][0]['comment']) === true) {
+                $firstChar = $param['commentLines'][0]['comment'];
+            } else {
+                $firstChar = $param['comment'];
+            }
+
             // Param comments must start with a capital letter and end with the full stop.
-            $firstChar = isset($param['commentLines'][0]['comment']) ? $param['commentLines'][0]['comment'] : $param['comment'];
             if (preg_match('|\p{Lu}|u', $firstChar) === 0) {
-                $error        = 'Parameter comment must start with a capital letter';
-                $commentToken = isset($param['commentLines'][0]['token']) ? $param['commentLines'][0]['token'] : $param['tag'];
+                $error = 'Parameter comment must start with a capital letter';
+                if (isset($param['commentLines'][0]['token']) === true) {
+                    $commentToken = $param['commentLines'][0]['token'];
+                } else {
+                    $commentToken = $param['tag'];
+                }
+
                 $phpcsFile->addError($error, $commentToken, 'ParamCommentNotCapital');
             }
 
diff --git a/coder_sniffer/Drupal/Sniffs/InfoFiles/ClassFilesSniff.php b/coder_sniffer/Drupal/Sniffs/InfoFiles/ClassFilesSniff.php
index f5f83e1..d1cbb93 100644
--- a/coder_sniffer/Drupal/Sniffs/InfoFiles/ClassFilesSniff.php
+++ b/coder_sniffer/Drupal/Sniffs/InfoFiles/ClassFilesSniff.php
@@ -145,7 +145,11 @@ class Drupal_Sniffs_InfoFiles_ClassFilesSniff implements PHP_CodeSniffer_Sniff
                 // Fetch the key and value string.
                 $i = 0;
                 foreach (array('key', 'value1', 'value2', 'value3') as $var) {
-                    $$var = (isset($match[++$i]) === true) ? $match[$i] : '';
+                    if (isset($match[++$i]) === true) {
+                        $$var = $match[$i];
+                    } else {
+                        $$var = '';
+                    }
                 }
 
                 $value = stripslashes(substr($value1, 1, -1)).stripslashes(substr($value2, 1, -1)).$value3;
diff --git a/coder_sniffer/Drupal/Sniffs/InfoFiles/DuplicateEntrySniff.php b/coder_sniffer/Drupal/Sniffs/InfoFiles/DuplicateEntrySniff.php
index 842711f..ec26c21 100644
--- a/coder_sniffer/Drupal/Sniffs/InfoFiles/DuplicateEntrySniff.php
+++ b/coder_sniffer/Drupal/Sniffs/InfoFiles/DuplicateEntrySniff.php
@@ -100,7 +100,11 @@ class Drupal_Sniffs_InfoFiles_DuplicateEntrySniff implements PHP_CodeSniffer_Sni
                 // Fetch the key and value string.
                 $i = 0;
                 foreach (array('key', 'value1', 'value2', 'value3') as $var) {
-                    $$var = (isset($match[++$i]) === true) ? $match[$i] : '';
+                    if (isset($match[++$i]) === true) {
+                        $$var = $match[$i];
+                    } else {
+                        $$var = '';
+                    }
                 }
 
                 $value = stripslashes(substr($value1, 1, -1)).stripslashes(substr($value2, 1, -1)).$value3;
diff --git a/coder_sniffer/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php b/coder_sniffer/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php
index 18e4058..b71956d 100644
--- a/coder_sniffer/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php
+++ b/coder_sniffer/DrupalPractice/Sniffs/CodeAnalysis/VariableAnalysisSniff.php
@@ -654,7 +654,11 @@ class DrupalPractice_Sniffs_CodeAnalysis_VariableAnalysisSniff implements PHP_Co
             $currScope = 'file';
         }
 
-        return ((isset($this->currentFile) === true) ? $this->currentFile->getFilename() : 'unknown file').':'.$currScope;
+        if (isset($this->currentFile) === true) {
+            return ($this->currentFile->getFilename()).':'.$currScope;
+        } else {
+            return ('unknown file').':'.$currScope;
+        }
 
     }//end scopeKey()
 
