@@ -27,11 +27,11 @@ public static function getAllIdps($tableName)
2727 $ greyListTableName = $ databaseConnector ->getGreyListTableName ();
2828 $ table = null ;
2929 $ listOfIdPs = [];
30- assert ($ conn != null );
30+ assert ($ conn !== null );
3131
32- if ($ tableName == self ::WHITELIST ) {
32+ if ($ tableName === self ::WHITELIST ) {
3333 $ table = $ whiteListTableName ;
34- } elseif ($ tableName == self ::GREYLIST ) {
34+ } elseif ($ tableName === self ::GREYLIST ) {
3535 $ table = $ greyListTableName ;
3636 }
3737
@@ -74,11 +74,11 @@ public static function getAllEntityIds($tableName)
7474 $ greyListTableName = $ databaseConnector ->getGreyListTableName ();
7575 $ table = null ;
7676 $ listOfIdPs = [];
77- assert ($ conn != null );
77+ assert ($ conn !== null );
7878
79- if ($ tableName == self ::WHITELIST ) {
79+ if ($ tableName === self ::WHITELIST ) {
8080 $ table = $ whiteListTableName ;
81- } elseif ($ tableName == self ::GREYLIST ) {
81+ } elseif ($ tableName === self ::GREYLIST ) {
8282 $ table = $ greyListTableName ;
8383 }
8484
@@ -117,11 +117,11 @@ public static function insertTolist($tableName, $entityId, $reason)
117117 $ whiteListTableName = $ databaseConnector ->getWhiteListTableName ();
118118 $ greyListTableName = $ databaseConnector ->getGreyListTableName ();
119119 $ table = null ;
120- assert ($ conn != null );
120+ assert ($ conn !== null );
121121
122- if ($ tableName == self ::WHITELIST ) {
122+ if ($ tableName === self ::WHITELIST ) {
123123 $ table = $ whiteListTableName ;
124- } elseif ($ tableName == self ::GREYLIST ) {
124+ } elseif ($ tableName === self ::GREYLIST ) {
125125 $ table = $ greyListTableName ;
126126 }
127127
@@ -155,11 +155,11 @@ public static function deleteFromList($tableName, $entityId)
155155 $ whiteListTableName = $ databaseConnector ->getWhiteListTableName ();
156156 $ greyListTableName = $ databaseConnector ->getGreyListTableName ();
157157 $ table = null ;
158- assert ($ conn != null );
158+ assert ($ conn !== null );
159159
160- if ($ tableName == self ::WHITELIST ) {
160+ if ($ tableName === self ::WHITELIST ) {
161161 $ table = $ whiteListTableName ;
162- } elseif ($ tableName == self ::GREYLIST ) {
162+ } elseif ($ tableName === self ::GREYLIST ) {
163163 $ table = $ greyListTableName ;
164164 }
165165
0 commit comments