Skip to content

Commit 33940e4

Browse files
Fix concat operator issues.
1 parent 54bd45d commit 33940e4

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/class-tiny-image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private function parse_wp_metadata() {
5151
$upload_dir = wp_upload_dir();
5252
$path_prefix = $upload_dir['basedir'] . '/';
5353
if ( isset( $path_info['dirname'] ) ) {
54-
$path_prefix .= $path_info['dirname'] .'/';
54+
$path_prefix .= $path_info['dirname'] . '/';
5555
}
5656

5757
$filename = $path_prefix . $this->name;

src/class-tiny-plugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,18 @@ public function remove_retina_image( $attachment_id, $path ) {
164164
}
165165

166166
public function enqueue_scripts( $hook ) {
167-
wp_enqueue_style( self::NAME .'_admin',
167+
wp_enqueue_style( self::NAME . '_admin',
168168
plugins_url( '/css/admin.css', __FILE__ ),
169169
array(), self::version()
170170
);
171171

172-
wp_register_script( self::NAME .'_admin',
172+
wp_register_script( self::NAME . '_admin',
173173
plugins_url( '/js/admin.js', __FILE__ ),
174174
array(), self::version(), true
175175
);
176176

177177
// WordPress < 3.3 does not handle multidimensional arrays
178-
wp_localize_script( self::NAME .'_admin', 'tinyCompress', array(
178+
wp_localize_script( self::NAME . '_admin', 'tinyCompress', array(
179179
'nonce' => wp_create_nonce( 'tiny-compress' ),
180180
'wpVersion' => self::wp_version(),
181181
'pluginVersion' => self::version(),
@@ -199,7 +199,7 @@ public function enqueue_scripts( $hook ) {
199199
'L10nWaiting' => __( 'Waiting', 'tiny-compress-images' ),
200200
));
201201

202-
wp_enqueue_script( self::NAME .'_admin' );
202+
wp_enqueue_script( self::NAME . '_admin' );
203203

204204
if ( 'media_page_tiny-bulk-optimization' == $hook ) {
205205
wp_enqueue_style(
@@ -214,7 +214,7 @@ public function enqueue_scripts( $hook ) {
214214
array(), self::version(), true
215215
);
216216

217-
wp_enqueue_script( self::NAME .'_tiny_bulk_optimization' );
217+
wp_enqueue_script( self::NAME . '_tiny_bulk_optimization' );
218218
}
219219

220220
}

src/class-tiny-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ public function render_resize_input( $name ) {
530530
$field = sprintf( self::get_prefixed_name( 'resize_original[%s]' ), $name );
531531
$settings = get_option( self::get_prefixed_name( 'resize_original' ) );
532532
$value = isset( $settings[ $name ] ) ? $settings[ $name ] : '2048';
533-
echo '<input type="number" id="'. $id .'" name="' . $field .
533+
echo '<input type="number" id="' . $id . '" name="' . $field .
534534
'" value="' . $value . '" size="5" />';
535535
}
536536

test/helpers/setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function close_webdriver() {
193193
function reset_webservice() {
194194
$request = curl_init();
195195
curl_setopt_array($request, array(
196-
CURLOPT_URL => 'http://' . getenv( 'HOST' ) .':8080/reset',
196+
CURLOPT_URL => 'http://' . getenv( 'HOST' ) . ':8080/reset',
197197
));
198198
$response = curl_exec( $request );
199199
curl_close( $request );

test/helpers/wordpress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function getTestMetadata( $path = '14/01', $name = 'test' ) {
217217
'sizes' => array(),
218218
);
219219

220-
$regex = '#^' . preg_quote( $name ) .'-([^.]+)[.](png|jpe?g)$#';
220+
$regex = '#^' . preg_quote( $name ) . '-([^.]+)[.](png|jpe?g)$#';
221221
$dir = $this->vfs->getChild( self::UPLOAD_DIR . "/$path" );
222222
foreach ( $dir->getChildren() as $child ) {
223223
$file = $child->getName();

0 commit comments

Comments
 (0)