Browse Source

fix CS errors

ADmad 10 years ago
parent
commit
efaf3e2006

+ 2 - 1
tests/TestCase/Database/Driver/MysqlTest.php

@@ -134,7 +134,8 @@ class MysqlTest extends TestCase
      *
      * @return void
      */
-    public function testIsConnected() {
+    public function testIsConnected()
+    {
         $connection = ConnectionManager::get('test');
         $connection->disconnect();
         $this->assertFalse($connection->isConnected(), 'Not connected now.');

+ 7 - 3
tests/TestCase/Routing/RouteBuilderTest.php

@@ -395,9 +395,13 @@ class RouteBuilderTest extends TestCase
     public function testResourcesNestedInflection()
     {
         $routes = new RouteBuilder($this->collection, '/api');
-        $routes->resources('NetworkObjects', ['inflect' => 'dasherize'], function($routes) {
-            $routes->resources('Attributes');
-        });
+        $routes->resources(
+            'NetworkObjects',
+            ['inflect' => 'dasherize'],
+            function ($routes) {
+                $routes->resources('Attributes');
+            }
+        );
 
         $all = $this->collection->routes();
         $this->assertCount(10, $all);