Completed
Push — master ( c92350...ab0c5b )
by frank
01:42
created
classes/autoptimizeConfig.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -798,6 +798,9 @@  discard block
 block discarded – undo
798 798
         return $preload_onload;
799 799
     }
800 800
 
801
+    /**
802
+     * @param string $key
803
+     */
801 804
     public function get( $key )
802 805
     {
803 806
         if ( ! is_array( $this->config ) ) {
@@ -824,6 +827,9 @@  discard block
 block discarded – undo
824 827
         return false;
825 828
     }
826 829
 
830
+    /**
831
+     * @param string $url
832
+     */
827 833
     private function get_futtta_feeds( $url ) {
828 834
         if ( $this->settings_screen_do_remote_http ) {
829 835
             $rss      = fetch_feed( $url );
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -837,10 +837,13 @@
 block discarded – undo
837 837
             <ul>
838 838
                 <?php if ( 0 == $maxitems ) : ?>
839 839
                     <li><?php _e( 'No items', 'autoptimize' ); ?></li>
840
-                <?php else : ?>
840
+                <?php else {
841
+    : ?>
841 842
                     <?php foreach ( $rss_items as $item ) : ?>
842 843
                         <li>
843
-                            <a href="<?php echo esc_url( $item->get_permalink() ); ?>"
844
+                            <a href="<?php echo esc_url( $item->get_permalink() );
845
+}
846
+?>"
844 847
                                 <?php // translators: the variable contains a date. ?>
845 848
                                 title="<?php printf( __( 'Posted %s', 'autoptimize' ), $item->get_date( 'j F Y | g:i a' ) ); ?>">
846 849
                                 <?php echo esc_html( $item->get_title() ); ?>
Please login to merge, or discard this patch.
classes/autoptimizeImages.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -370,6 +370,9 @@  discard block
 block discarded – undo
370 370
         }
371 371
     }
372 372
 
373
+    /**
374
+     * @return string
375
+     */
373 376
     private function get_imgopt_base_url()
374 377
     {
375 378
         static $imgopt_base_url = null;
@@ -718,6 +721,9 @@  discard block
 block discarded – undo
718 721
         return $out;
719 722
     }
720 723
 
724
+    /**
725
+     * @param string $tag
726
+     */
721 727
     public function add_lazyload( $tag, $placeholder = '' ) {
722 728
         // adds actual lazyload-attributes to an image node.
723 729
         if ( str_ireplace( $this->get_lazyload_exclusions(), '', $tag ) === $tag ) {
@@ -897,6 +903,9 @@  discard block
 block discarded – undo
897 903
         return $out;
898 904
     }
899 905
 
906
+    /**
907
+     * @return string
908
+     */
900 909
     public function process_bgimage( $in ) {
901 910
         if ( strpos( $in, 'background-image:' ) !== false && apply_filters( 'autoptimize_filter_imgopt_lazyload_backgroundimages', true ) ) {
902 911
             $out = preg_replace_callback(
@@ -1239,7 +1248,7 @@  discard block
 block discarded – undo
1239 1248
     /**
1240 1249
      * Determines and returns the service launch status.
1241 1250
      *
1242
-     * @return bool
1251
+     * @return null|boolean
1243 1252
      */
1244 1253
     public function launch_ok()
1245 1254
     {
Please login to merge, or discard this patch.
classes/autoptimizeMain.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
      *
297 297
      * @param bool $doing_tests Allows overriding the optimization of only
298 298
      *                          deciding once per request (for use in tests).
299
-     * @return bool
299
+     * @return boolean|null
300 300
      */
301 301
     public static function should_buffer( $doing_tests = false )
302 302
     {
Please login to merge, or discard this patch.