Browse Source

Merge pull request #4883 from bcrowe/3.0-cs

3.0 - Fix coding standards
Mark Story 11 years ago
parent
commit
d57701fd79

+ 0 - 1
src/Database/Exception/MissingExtensionException.php

@@ -24,4 +24,3 @@ class MissingExtensionException extends \Cake\Core\Exception\Exception {
 	protected $_messageTemplate = 'Database driver %s cannot be used due to a missing PHP extension or unmet dependency';
 
 }
-

+ 1 - 1
src/Database/Expression/CaseExpression.php

@@ -216,4 +216,4 @@ class CaseExpression implements ExpressionInterface {
 		}
 	}
 
-}
+}

+ 0 - 1
src/Database/Statement/BufferedStatement.php

@@ -150,4 +150,3 @@ class BufferedStatement extends StatementDecorator {
 	}
 
 }
-

+ 0 - 2
src/Database/Statement/SqliteStatement.php

@@ -38,5 +38,3 @@ class SqliteStatement extends BufferedStatement {
 	}
 
 }
-
-

+ 0 - 1
src/Network/Socket.php

@@ -378,4 +378,3 @@ class Socket {
 	}
 
 }
-

+ 1 - 1
src/Utility/String.php

@@ -643,7 +643,7 @@ class String {
 	public static function isMultibyte($string) {
 		$length = strlen($string);
 
-		for ($i = 0; $i < $length; $i++ ) {
+		for ($i = 0; $i < $length; $i++) {
 			$value = ord(($string[$i]));
 			if ($value > 128) {
 				return true;

+ 0 - 1
tests/Fixture/SiteAuthorsFixture.php

@@ -43,4 +43,3 @@ class SiteAuthorsFixture extends TestFixture {
 	];
 
 }
-

+ 0 - 1
tests/Fixture/SiteTagsFixture.php

@@ -42,4 +42,3 @@ class SiteTagsFixture extends TestFixture {
 		['id' => 4, 'site_id' => 2, 'name' => 'tag4']
 	];
 }
-

+ 0 - 1
tests/Fixture/SpecialTagsFixture.php

@@ -50,4 +50,3 @@ class SpecialTagsFixture extends TestFixture {
 		array('article_id' => 2, 'tag_id' => 1, 'highlighted' => true, 'highlighted_time' => '2014-06-01 10:10:00', 'author_id' => null)
 	);
 }
-

+ 1 - 1
tests/TestCase/Database/Expression/CaseExpressionTest.php

@@ -65,4 +65,4 @@ class CaseExpressionTest extends TestCase {
 		$caseExpression->traverse($visitor);
 		$this->assertSame(4, $count);
 	}
-}
+}

+ 0 - 1
tests/TestCase/I18n/PluralRulesTest.php

@@ -120,4 +120,3 @@ class PluralRulesTest extends TestCase {
 	}
 
 }
-

+ 0 - 1
tests/TestCase/Log/Engine/SyslogLogTest.php

@@ -87,4 +87,3 @@ class SyslogLogTest extends TestCase {
 	}
 
 }
-

+ 1 - 1
tests/test_app/Plugin/TestPlugin/config/custom_config.php

@@ -3,4 +3,4 @@ namespace TestPlugin\Config;
 
 use Cake\Core\Configure;
 
-Configure::write('PluginTest.test_plugin.custom', 'loaded plugin custom config');
+Configure::write('PluginTest.test_plugin.custom', 'loaded plugin custom config');

+ 0 - 1
tests/test_app/Plugin/TestPlugin/src/Shell/SampleShell.php

@@ -32,4 +32,3 @@ class SampleShell extends Shell {
 		$this->out('This is the main method called from SampleShell');
 	}
 }
-

+ 1 - 1
tests/test_app/Plugin/TestPlugin/src/Shell/Task/OtherTaskTask.php

@@ -25,4 +25,4 @@ use Cake\Console\Shell;
 
 class OtherTaskTask extends Shell {
 
-}
+}

+ 1 - 1
tests/test_app/Plugin/TestPlugin/src/View/Helper/TestPluginAppHelper.php

@@ -5,4 +5,4 @@ use Cake\View\Helper;
 
 class TestPluginAppHelper extends Helper {
 
-}
+}

+ 0 - 1
tests/test_app/TestApp/Controller/SomePagesController.php

@@ -54,4 +54,3 @@ class SomePagesController extends Controller {
 	}
 
 }
-

+ 0 - 1
tests/test_app/TestApp/Controller/TestCachedPagesController.php

@@ -95,4 +95,3 @@ class TestCachedPagesController extends Controller {
 	}
 
 }
-

+ 1 - 1
tests/test_app/config/empty.php

@@ -1,2 +1,2 @@
 <?php
-//do nothing this is an empty file.
+//do nothing this is an empty file.