-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #238 from newfold-labs/enhance/php-files-lint-fix
PHP Lint fixes
- Loading branch information
Showing
31 changed files
with
538 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
<?php | ||
namespace NewfoldLabs\WP\Module\Onboarding\Data; | ||
|
||
|
||
/** | ||
* List of Onboarding events. | ||
*/ | ||
final class Events { | ||
|
||
// Contains a list of events with the key being the event slug. | ||
protected static $events = array( | ||
'nfd-module-onboarding-event-pageview' => array( | ||
'category' => 'Admin', | ||
'action' => 'pageview', | ||
/** | ||
* Contains a list of events with the key being the event slug. | ||
* | ||
* @var array | ||
*/ | ||
protected static $events = array( | ||
'nfd-module-onboarding-event-pageview' => array( | ||
'category' => 'Admin', | ||
'action' => 'pageview', | ||
), | ||
); | ||
); | ||
|
||
public static function get_event( $event_slug ) { | ||
return self::$events[ $event_slug ] ? self::$events[ $event_slug ] : false; | ||
} | ||
/** | ||
* Retrieves the active theme color variations. | ||
* | ||
* @param array $event_slug Event data. | ||
* @return array|boolean | ||
*/ | ||
public static function get_event( $event_slug ) { | ||
return self::$events[ $event_slug ] ? self::$events[ $event_slug ] : false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.