diff --git a/src/ACFDataProvider.php b/src/ACFDataProvider.php index affa243..509fb83 100644 --- a/src/ACFDataProvider.php +++ b/src/ACFDataProvider.php @@ -128,4 +128,4 @@ public function getUserField($name, $userID = null, $prefixed = true) return ''; } -} \ No newline at end of file +} diff --git a/src/AssetBundle.php b/src/AssetBundle.php index 2567185..cb3c2e6 100644 --- a/src/AssetBundle.php +++ b/src/AssetBundle.php @@ -7,7 +7,6 @@ namespace degordian\wpHelpers; - class AssetBundle { protected static $includeBasePath = '/static/'; @@ -31,8 +30,8 @@ public static function register() protected function enqueueScripts() { - foreach($this->js as $handle => $data) { - if(isset($data['path']) === false) { + foreach ($this->js as $handle => $data) { + if (isset($data['path']) === false) { throw new \Exception('Missing path definition for ' . $handle); } @@ -46,8 +45,8 @@ protected function enqueueScripts() protected function enqueueStyles() { - if($this->asyncCss) { - add_action('wp_head', function() { + if ($this->asyncCss) { + add_action('wp_head', function () { ?>