| @@ -2,7 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\TinyMce; | 
| 4 | 4 | |
| 5 | -use Flynt\Utils\Feature; | |
| 6 | 5 | use Flynt\Utils\Asset; | 
| 7 | 6 | |
| 8 | 7 | // Load TinyMCE Settings from config file | 
| @@ -246,6 +246,9 @@ discard block | ||
| 246 | 246 | }); | 
| 247 | 247 | } | 
| 248 | 248 | |
| 249 | + /** | |
| 250 | + * @param string $type | |
| 251 | + */ | |
| 249 | 252 | protected static function createSubPage($type, $name) | 
| 250 | 253 |      { | 
| 251 | 254 | $namespace = self::FILTER_NAMESPACES[$type]; | 
| @@ -263,6 +266,9 @@ discard block | ||
| 263 | 266 | } | 
| 264 | 267 | } | 
| 265 | 268 | |
| 269 | + /** | |
| 270 | + * @param string $subPageName | |
| 271 | + */ | |
| 266 | 272 | protected static function addOptionSubPage($optionCategoryName, $subPageName, $optionType, $fields) | 
| 267 | 273 |      { | 
| 268 | 274 | $prettySubPageName = StringHelpers::splitCamelCase($subPageName); | 
| @@ -291,6 +297,9 @@ discard block | ||
| 291 | 297 | ); | 
| 292 | 298 | } | 
| 293 | 299 | |
| 300 | + /** | |
| 301 | + * @param string $menuSlug | |
| 302 | + */ | |
| 294 | 303 | protected static function addFieldGroupToSubPage($parentMenuSlug, $menuSlug, $prettySubPageName, $fields) | 
| 295 | 304 |      { | 
| 296 | 305 | $fieldGroup = ACFComposer\ResolveConfig::forFieldGroup( | 
| @@ -314,6 +323,10 @@ discard block | ||
| 314 | 323 | acf_add_local_field_group($fieldGroup); | 
| 315 | 324 | } | 
| 316 | 325 | |
| 326 | + /** | |
| 327 | + * @param string $optionCategory | |
| 328 | + * @param string $feature | |
| 329 | + */ | |
| 317 | 330 | protected static function checkFeature($optionCategory, $feature) | 
| 318 | 331 |      { | 
| 319 | 332 |          if (array_key_exists($optionCategory, self::$optionCategories) && !Feature::isRegistered($feature)) { | 
| @@ -13,7 +13,6 @@ | ||
| 13 | 13 | use Flynt\Features\AdminNotices\AdminNoticeManager; | 
| 14 | 14 | use Flynt\Features\CustomPostTypes\CustomPostTypeRegister; | 
| 15 | 15 | use Flynt\Utils\Feature; | 
| 16 | -use Flynt\Utils\FileLoader; | |
| 17 | 16 | use Flynt\Utils\StringHelpers; | 
| 18 | 17 | |
| 19 | 18 | class OptionPages | 
| @@ -66,6 +66,9 @@ | ||
| 66 | 66 |          self::addFilters('feature', $name, $filePath); | 
| 67 | 67 | } | 
| 68 | 68 | |
| 69 | + /** | |
| 70 | + * @param string $category | |
| 71 | + */ | |
| 69 | 72 | public static function addFilters($category, $name, $filePath) | 
| 70 | 73 |      { | 
| 71 | 74 |          if (false === $filePath || !file_exists($filePath)) { | 
| @@ -63,7 +63,7 @@ | ||
| 63 | 63 | * @param string $basePath The feature base path. | 
| 64 | 64 | * @param array $options An array of options. Optional. | 
| 65 | 65 | * | 
| 66 | - * @return boolean | |
| 66 | + * @return boolean|null | |
| 67 | 67 | */ | 
| 68 | 68 | public static function register($feature, $basePath, $options = []) | 
| 69 | 69 |      { |