Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
use === instead of simple ==
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehrke committed Apr 26, 2016
1 parent 6280aa3 commit 403cdf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hooks/share.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ private static function reIndex($fileIds) {
}

public static function postShareHook(array $param) {
if ('file' == $param['itemType']) {
self::reIndex(array($param['itemSource']));
if ('file' === $param['itemType']) {
self::reIndex([$param['itemSource']]);
} else {
$app = new Application();
$container = $app->getContainer();
Expand All @@ -33,8 +33,8 @@ public static function postShareHook(array $param) {
}

public static function postUnshareHook(array $param) {
if ('file' == $param['itemType']) {
self::reIndex(array($param['itemSource']));
if ('file' === $param['itemType']) {
self::reIndex([$param['itemSource']]);
} else {
$app = new Application();
$container = $app->getContainer();
Expand Down

0 comments on commit 403cdf7

Please sign in to comment.