Skip to content
This repository
Browse code

indentation in templates

  • Loading branch information...
commit e1357ca8aa7f5ef85c12f686d6c9eeca3a240603 1 parent 70ac1c7
Mark authored July 18, 2012
50  lib/Cake/Console/Templates/default/classes/controller.ctp
@@ -49,33 +49,33 @@ class <?php echo $controllerName; ?>Controller extends <?php echo $plugin; ?>App
49 49
 
50 50
 <?php else:
51 51
 
52  
-    if (count($helpers)):
53  
-        echo "/**\n * Helpers\n *\n * @var array\n */\n";
54  
-        echo "\tpublic \$helpers = array(";
55  
-        for ($i = 0, $len = count($helpers); $i < $len; $i++):
56  
-            if ($i != $len - 1):
57  
-                echo "'" . Inflector::camelize($helpers[$i]) . "', ";
58  
-            else:
59  
-                echo "'" . Inflector::camelize($helpers[$i]) . "'";
60  
-            endif;
61  
-        endfor;
62  
-        echo ");\n\n";
63  
-    endif;
  52
+	if (count($helpers)):
  53
+		echo "/**\n * Helpers\n *\n * @var array\n */\n";
  54
+		echo "\tpublic \$helpers = array(";
  55
+		for ($i = 0, $len = count($helpers); $i < $len; $i++):
  56
+			if ($i != $len - 1):
  57
+				echo "'" . Inflector::camelize($helpers[$i]) . "', ";
  58
+			else:
  59
+				echo "'" . Inflector::camelize($helpers[$i]) . "'";
  60
+			endif;
  61
+		endfor;
  62
+		echo ");\n\n";
  63
+	endif;
64 64
 
65  
-    if (count($components)):
66  
-        echo "/**\n * Components\n *\n * @var array\n */\n";
67  
-        echo "\tpublic \$components = array(";
68  
-        for ($i = 0, $len = count($components); $i < $len; $i++):
69  
-            if ($i != $len - 1):
70  
-                echo "'" . Inflector::camelize($components[$i]) . "', ";
71  
-            else:
72  
-                echo "'" . Inflector::camelize($components[$i]) . "'";
73  
-            endif;
74  
-        endfor;
75  
-        echo ");\n\n";
76  
-    endif;
  65
+	if (count($components)):
  66
+		echo "/**\n * Components\n *\n * @var array\n */\n";
  67
+		echo "\tpublic \$components = array(";
  68
+		for ($i = 0, $len = count($components); $i < $len; $i++):
  69
+			if ($i != $len - 1):
  70
+				echo "'" . Inflector::camelize($components[$i]) . "', ";
  71
+			else:
  72
+				echo "'" . Inflector::camelize($components[$i]) . "'";
  73
+			endif;
  74
+		endfor;
  75
+		echo ");\n\n";
  76
+	endif;
77 77
 
78  
-    echo trim($actions) . "\n";
  78
+	echo trim($actions) . "\n";
79 79
 
80 80
 endif; ?>
81 81
 }
6  lib/Cake/Console/Templates/default/classes/model.ctp
@@ -48,9 +48,9 @@ class <?php echo $name ?> extends <?php echo $plugin; ?>AppModel {
48 48
 <?php endif;
49 49
 
50 50
 if ($useTable && $useTable !== Inflector::tableize($name)):
51  
-    $table = "'$useTable'";
52  
-    echo "/**\n * Use table\n *\n * @var mixed False or table name\n */\n";
53  
-    echo "\tpublic \$useTable = $table;\n\n";
  51
+	$table = "'$useTable'";
  52
+	echo "/**\n * Use table\n *\n * @var mixed False or table name\n */\n";
  53
+	echo "\tpublic \$useTable = $table;\n\n";
54 54
 endif;
55 55
 
56 56
 if ($primaryKey !== 'id'): ?>

0 notes on commit e1357ca

Please sign in to comment.
Something went wrong with that request. Please try again.