Completed
Push — master ( 63d8d6...28be9d )
by Raphael
11:25
created
src/Scaffolder/Compilers/AngularJs/ListDetailCompiler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
 class ListDetailCompiler extends AbstractCompiler
12 12
 {
13 13
 	protected $cachePrefix 	= 'list_detail_';
14
-	protected $stubFilename = 'DetailDialog.html' ;
14
+	protected $stubFilename = 'DetailDialog.html';
15 15
 
16 16
 	public function __construct($scaffolderConfig, $modelData = null)
17 17
 	{
18
-		$this->stubsDirectory = __DIR__ . '/../../../../stubs/AngularJs/';
18
+		$this->stubsDirectory = __DIR__.'/../../../../stubs/AngularJs/';
19 19
 		parent::__construct($scaffolderConfig, $modelData);
20 20
 	}
21 21
 
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 	 */
40 40
 	protected function getOutputFilename()
41 41
 	{
42
-		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/list/' ;
42
+		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/list/';
43 43
 
44 44
 		Directory::createIfNotExists($folder, 0755, true);
45 45
 
46
-		return $folder .$this->modelData->tableName . '_details.dialog.html';
46
+		return $folder.$this->modelData->tableName.'_details.dialog.html';
47 47
 	}
48 48
 
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
src/Scaffolder/Compilers/AngularJs/IndexApiCompiler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
 class IndexApiCompiler extends AbstractCompiler
12 12
 {
13 13
 	protected $cachePrefix 	= 'index_api_';
14
-	protected $stubFilename = 'IndexApi.js' ;
14
+	protected $stubFilename = 'IndexApi.js';
15 15
 
16 16
 	public function __construct($scaffolderConfig, $modelData = null)
17 17
 	{
18
-		$this->stubsDirectory = __DIR__ . '/../../../../stubs/AngularJs/';
18
+		$this->stubsDirectory = __DIR__.'/../../../../stubs/AngularJs/';
19 19
 		parent::__construct($scaffolderConfig, $modelData);
20 20
 	}
21 21
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 */
39 39
 	public function compile($extra = null)
40 40
 	{
41
-		if (File::exists(base_path('scaffolder-config/cache/' . $this->cachePrefix  . self::CACHE_EXT)))
41
+		if (File::exists(base_path('scaffolder-config/cache/'.$this->cachePrefix.self::CACHE_EXT)))
42 42
 		{
43 43
 			return $this->store(new FileToCompile(true, $this->cachePrefix));
44 44
 		}
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	{
60 60
 		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->index);
61 61
 
62
-		return $folder  . 'index.api.js';
62
+		return $folder.'index.api.js';
63 63
 	}
64 64
 
65 65
 }
66 66
\ No newline at end of file
Please login to merge, or discard this patch.
src/Scaffolder/Compilers/AngularJs/TranslateCompiler.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,17 +8,17 @@  discard block
 block discarded – undo
8 8
 use Scaffolder\Compilers\Support\PathParser;
9 9
 use Scaffolder\Support\Directory;
10 10
 use Scaffolder\Support\CamelCase;
11
-use stdClass ;
11
+use stdClass;
12 12
 
13 13
 
14 14
 class TranslateCompiler extends AbstractCompiler
15 15
 {
16 16
 	protected $cachePrefix 	= 'translate_';
17
-	protected $stubFilename = 'Translate.js' ;
17
+	protected $stubFilename = 'Translate.js';
18 18
 
19 19
 	public function __construct($scaffolderConfig, $modelData = null)
20 20
 	{
21
-		$this->stubsDirectory = __DIR__ . '/../../../../stubs/AngularJs/';
21
+		$this->stubsDirectory = __DIR__.'/../../../../stubs/AngularJs/';
22 22
 		parent::__construct($scaffolderConfig, $modelData);
23 23
 	}
24 24
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 *
42 42
 	 * @return $this
43 43
 	 */
44
-	public function replaceArea(){
44
+	public function replaceArea() {
45 45
 		$this->stub = str_replace('{{singular}}', ucwords($this->modelData->tableName), $this->stub); 
46 46
 		$this->stub = str_replace('{{plural}}', ucwords(CamelCase::pluralize($this->modelData->tableName)), $this->stub); 
47 47
 		return $this;
@@ -52,18 +52,18 @@  discard block
 block discarded – undo
52 52
 	 *
53 53
 	 * @return $this
54 54
 	 */
55
-	public function replaceColumns(){
55
+	public function replaceColumns() {
56 56
 
57 57
 		$columns = [];
58 58
 
59 59
 		foreach ($this->modelData->fields as $field)
60 60
 		{
61
-			array_push($columns,  "\t\t".sprintf('"%s" : "%s"',  $field->name,  CamelCase::convertToCamelCase($field->name) ));
61
+			array_push($columns, "\t\t".sprintf('"%s" : "%s"', $field->name, CamelCase::convertToCamelCase($field->name)));
62 62
 		}
63 63
 
64 64
 		$this->stub = str_replace('{{columns}}', join(",\n", $columns), $this->stub); 
65 65
 
66
-		return $this ;
66
+		return $this;
67 67
 
68 68
 	}
69 69
 	
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
 	 */
76 76
 	protected function getOutputFilename()
77 77
 	{
78
-		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/i18n/' ;
78
+		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/i18n/';
79 79
 
80 80
 		Directory::createIfNotExists($folder, 0755, true);
81 81
 
82
-		return $folder . 'en.json';
82
+		return $folder.'en.json';
83 83
 	}
84 84
 
85 85
 }
86 86
\ No newline at end of file
Please login to merge, or discard this patch.
src/Scaffolder/Compilers/AngularJs/ResourceCompiler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
 class ResourceCompiler extends AbstractCompiler
12 12
 {
13 13
 	protected $cachePrefix 	= 'resource_';
14
-	protected $stubFilename = 'Resource.js' ;
14
+	protected $stubFilename = 'Resource.js';
15 15
 
16 16
 	public function __construct($scaffolderConfig, $modelData = null)
17 17
 	{
18
-		$this->stubsDirectory = __DIR__ . '/../../../../stubs/AngularJs/';
18
+		$this->stubsDirectory = __DIR__.'/../../../../stubs/AngularJs/';
19 19
 		parent::__construct($scaffolderConfig, $modelData);
20 20
 	}
21 21
 
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
 	 */
38 38
 	protected function getOutputFilename()
39 39
 	{
40
-		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/' ;
40
+		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/';
41 41
 
42 42
 		Directory::createIfNotExists($folder, 0755, true);
43 43
 
44
-		return $folder .  $this->modelData->tableName . '.resource.js';
44
+		return $folder.$this->modelData->tableName.'.resource.js';
45 45
 	}
46 46
 
47 47
 }
48 48
\ No newline at end of file
Please login to merge, or discard this patch.
src/Scaffolder/Compilers/AngularJs/RegisterControllerCompiler.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
 class RegisterControllerCompiler extends AbstractCompiler
12 12
 {
13 13
 	protected $cachePrefix 	= 'register_controller_';
14
-	protected $stubFilename = 'RegisterController.js' ;
14
+	protected $stubFilename = 'RegisterController.js';
15 15
 
16 16
 	public function __construct($scaffolderConfig, $modelData = null)
17 17
 	{
18
-		$this->stubsDirectory = __DIR__ . '/../../../../stubs/AngularJs/';
18
+		$this->stubsDirectory = __DIR__.'/../../../../stubs/AngularJs/';
19 19
 		parent::__construct($scaffolderConfig, $modelData);
20 20
 	}
21 21
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 		foreach ($this->modelData->fields as $field)
40 40
 		{
41 41
 
42
-			if($field->type->ui == 'autoComplete' || $field->type->ui == 'multipleAutoComplete')
42
+			if ($field->type->ui == 'autoComplete' || $field->type->ui == 'multipleAutoComplete')
43 43
 			{
44 44
 				$this->stub = str_replace('{{table_from}}', $field->table_from, $this->stub);
45 45
 			}
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
 	private function replaceFileUpload()
54 54
 	{
55
-		$fileStub = File::get($this->stubsDirectory . '/Register/FileRegisterControllerStub.php');
55
+		$fileStub = File::get($this->stubsDirectory.'/Register/FileRegisterControllerStub.php');
56 56
 		$this->stub = str_replace('{{file_upload}}', $fileStub, $this->stub);
57 57
 
58 58
 		$keyAutoComplete = $keyMultipleAutoComplete = $keyCheckbox = $keyCheckboxTree = false;
@@ -67,22 +67,22 @@  discard block
 block discarded – undo
67 67
 					$keyAutoComplete = true;
68 68
 					break;
69 69
 				case 'multipleAutoComplete':
70
-					$multipleAutoStub = $this->changeStubDataAndTag('MultipleAutoComplete','{{multiple_auto_complete}}',$field->table_from);
70
+					$multipleAutoStub = $this->changeStubDataAndTag('MultipleAutoComplete', '{{multiple_auto_complete}}', $field->table_from);
71 71
 					$keyMultipleAutoComplete = true;
72 72
 					break;
73 73
 				case 'checkbox':
74
-					$checkboxStub = $this->changeStubDataAndTag('Checkbox','{{checkbox}}', $field->table_from);
74
+					$checkboxStub = $this->changeStubDataAndTag('Checkbox', '{{checkbox}}', $field->table_from);
75 75
 					$keyCheckbox = true;
76 76
 					break;
77 77
 				case 'checkboxTree':
78
-					$checkboxTreeStub = $this->changeStubDataAndTag('CheckboxTree','{{checkbox_tree}}', $field->table_from);
78
+					$checkboxTreeStub = $this->changeStubDataAndTag('CheckboxTree', '{{checkbox_tree}}', $field->table_from);
79 79
 					$keyCheckboxTree = true;
80 80
 					break;
81 81
 				default:
82 82
 					break;
83 83
 			}
84 84
 
85
-			if($field->foreignKey)
85
+			if ($field->foreignKey)
86 86
 			{
87 87
 				$this->stub = str_replace('{{foreign_table}}', $field->foreignKey->table, $this->stub);
88 88
 			}
@@ -90,22 +90,22 @@  discard block
 block discarded – undo
90 90
 
91 91
 		}
92 92
 		
93
-		if(!$keyAutoComplete)
93
+		if (!$keyAutoComplete)
94 94
 		{
95 95
 			$this->stub = str_replace('{{auto_complete}}', ' ', $this->stub);
96 96
 		}
97 97
 
98
-		if(!$keyMultipleAutoComplete)
98
+		if (!$keyMultipleAutoComplete)
99 99
 		{
100 100
 			$this->stub = str_replace('{{multiple_auto_complete}}', ' ', $this->stub);
101 101
 		}
102 102
 
103
-		if(!$keyCheckbox)
103
+		if (!$keyCheckbox)
104 104
 		{
105 105
 			$this->stub = str_replace('{{checkbox}}', ' ', $this->stub);
106 106
 		}			
107 107
 
108
-		if(!$keyCheckboxTree)
108
+		if (!$keyCheckboxTree)
109 109
 		{
110 110
 			$this->stub = str_replace('{{checkbox_tree}}', ' ', $this->stub);
111 111
 		}
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
 	}
115 115
 	
116 116
 
117
-	public function changeStubDataAndTag($stubName,$stubTag,$table_from)
117
+	public function changeStubDataAndTag($stubName, $stubTag, $table_from)
118 118
 	{
119
-		$stubFile = File::get($this->stubsDirectory . '/Register/'.$stubName.'ControllerStub.php');
119
+		$stubFile = File::get($this->stubsDirectory.'/Register/'.$stubName.'ControllerStub.php');
120 120
 		$stubFile = str_replace('{{table_from}}', $table_from, $stubFile);
121 121
 		$this->stub = str_replace($stubTag, $stubFile, $this->stub);
122 122
 	}
@@ -129,11 +129,11 @@  discard block
 block discarded – undo
129 129
 	 */
130 130
 	protected function getOutputFilename()
131 131
 	{
132
-		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/register/' ;
132
+		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/register/';
133 133
 
134 134
 		Directory::createIfNotExists($folder, 0755, true);
135 135
 
136
-		return $folder .$this->modelData->tableName . '_register.controller.js';
136
+		return $folder.$this->modelData->tableName.'_register.controller.js';
137 137
 	}
138 138
 
139 139
 }
140 140
\ No newline at end of file
Please login to merge, or discard this patch.
src/Scaffolder/Compilers/AngularJs/ListChooseColumnsCompiler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
 class ListChooseColumnsCompiler extends AbstractCompiler
12 12
 {
13 13
 	protected $cachePrefix 	= 'list_choose_column_';
14
-	protected $stubFilename = 'ChooseColumnsDialog.html' ;
14
+	protected $stubFilename = 'ChooseColumnsDialog.html';
15 15
 
16 16
 	public function __construct($scaffolderConfig, $modelData = null)
17 17
 	{
18
-		$this->stubsDirectory = __DIR__ . '/../../../../stubs/AngularJs/';
18
+		$this->stubsDirectory = __DIR__.'/../../../../stubs/AngularJs/';
19 19
 		parent::__construct($scaffolderConfig, $modelData);
20 20
 	}
21 21
 
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 	 */
40 40
 	protected function getOutputFilename()
41 41
 	{
42
-		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/list/' ;
42
+		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/list/';
43 43
 
44 44
 		Directory::createIfNotExists($folder, 0755, true);
45 45
 
46
-		return $folder .$this->modelData->tableName . '_columns.dialog.html';
46
+		return $folder.$this->modelData->tableName.'_columns.dialog.html';
47 47
 	}
48 48
 
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
src/Scaffolder/Compilers/AngularJs/RegisterTemplateCompiler.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -9,16 +9,16 @@  discard block
 block discarded – undo
9 9
 use Scaffolder\Support\Directory;
10 10
 use Scaffolder\Support\CamelCase;
11 11
 use Scaffolder\Support\Validator;
12
-use stdClass ;
12
+use stdClass;
13 13
 
14 14
 class RegisterTemplateCompiler extends AbstractCompiler
15 15
 {
16 16
 	protected $cachePrefix 	= 'register_template_';
17
-	protected $stubFilename = 'RegisterTemplate.html' ;
17
+	protected $stubFilename = 'RegisterTemplate.html';
18 18
 
19 19
 	public function __construct($scaffolderConfig, $modelData = null)
20 20
 	{
21
-		$this->stubsDirectory = __DIR__ . '/../../../../stubs/AngularJs/';
21
+		$this->stubsDirectory = __DIR__.'/../../../../stubs/AngularJs/';
22 22
 		parent::__construct($scaffolderConfig, $modelData);
23 23
 	}
24 24
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	 *
43 43
 	 * @return $this
44 44
 	 */
45
-	private function replaceInputFields(){
45
+	private function replaceInputFields() {
46 46
 
47 47
 		$inputFields = $this->getInputFields();
48 48
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 *
57 57
 	 * @return $this
58 58
 	 */
59
-	public function getInputFields(){
59
+	public function getInputFields() {
60 60
 
61 61
 		$inputFields = $eagerFields = '';
62 62
 
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
 		{
65 65
 			$fieldStub = $this->getInputStubByField($field);
66 66
 			
67
-			if($field->foreignKey){
67
+			if ($field->foreignKey) {
68 68
 				
69
-				$fieldStub 	= $this->replaceForeingStrings($field, $fieldStub) ;
69
+				$fieldStub = $this->replaceForeingStrings($field, $fieldStub);
70 70
 				$fieldStub = str_replace('{{foreign_model_name}}', strtolower(CamelCase::convertToCamelCase($field->foreignKey->table)), $fieldStub);
71 71
 			}
72 72
 
73
-			$inputFields .= $this->replaceFieldInput($field, $fieldStub) ;
73
+			$inputFields .= $this->replaceFieldInput($field, $fieldStub);
74 74
 
75 75
 			// Check foreign key
76 76
 			if ($field->foreignKey && isset($field->foreignKey->eager) && $field->foreignKey->eager)
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 				$foreignModelData = $this->getModelData($field->foreignKey->table);
80 80
 				$foreignControllerCompiler = new RegisterTemplateCompiler($this->scaffolderConfig, $foreignModelData);
81 81
 				$foreignControllerCompiler->setEagerTable($this->modelData->tableName);
82
-				$eagerFields 	.= $foreignControllerCompiler->getInputFields();
82
+				$eagerFields .= $foreignControllerCompiler->getInputFields();
83 83
 			}
84 84
 
85 85
 		}
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 		
90 90
 		$this->stub = str_replace('{{eager_objects_inputs}}', $eagerFields, $this->stub); 
91 91
 
92
-		return $inputFields ;
92
+		return $inputFields;
93 93
 
94 94
 	}
95 95
 
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
 		foreach ($this->modelData->reverseRelationships as $relationship)
106 106
 		{
107 107
 			if ($relationship->type == "belongsToMany") {
108
-				$fieldStub = File::get($this->stubsDirectory . 'Register/'. CamelCase::convertToCamelCase($relationship->ui). '.html');
108
+				$fieldStub = File::get($this->stubsDirectory.'Register/'.CamelCase::convertToCamelCase($relationship->ui).'.html');
109 109
 
110
-				$fieldStub = str_replace('{{related_table}}',CamelCase::convertToCamelCase($relationship->relatedTable), $fieldStub);
110
+				$fieldStub = str_replace('{{related_table}}', CamelCase::convertToCamelCase($relationship->relatedTable), $fieldStub);
111 111
 				$fieldStub = str_replace('{{related_table_lw}}', strtolower(CamelCase::convertToCamelCase($relationship->relatedTable)), $fieldStub);
112 112
 				$fieldStub = str_replace('{{table_name}}', $this->modelData->tableName, $fieldStub);
113 113
 				$fieldStub = str_replace('{{related_table_lw_pl}}', CamelCase::pluralize(strtolower($relationship->relatedTable)), $fieldStub);
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
 	 *
131 131
 	 * @return $this
132 132
 	 */
133
-	protected function replaceFieldInput($field, $fieldStub){
134
-		$fieldStub = $this->replaceFieldStrings($field, $fieldStub) ;
135
-		$fieldStub = $this->replaceFieldValidations($field, $fieldStub) ;
133
+	protected function replaceFieldInput($field, $fieldStub) {
134
+		$fieldStub = $this->replaceFieldStrings($field, $fieldStub);
135
+		$fieldStub = $this->replaceFieldValidations($field, $fieldStub);
136 136
 
137
-		return $fieldStub ;
137
+		return $fieldStub;
138 138
 	}
139 139
 
140 140
 	/**
@@ -145,23 +145,23 @@  discard block
 block discarded – undo
145 145
 	 *
146 146
 	 * @return $this
147 147
 	 */
148
-	protected function replaceFieldValidations($field, $fieldStub){
149
-		$fieldStub = $this->replaceFieldStrings($field, $fieldStub) ;
148
+	protected function replaceFieldValidations($field, $fieldStub) {
149
+		$fieldStub = $this->replaceFieldStrings($field, $fieldStub);
150 150
 		
151 151
 		$validationsConverted = Validator::convertValidations($field->validations);
152 152
 
153
-		$inputValidations = '' ; 
153
+		$inputValidations = ''; 
154 154
 
155 155
 		foreach ($validationsConverted as $attribute => $value) {
156
-			if($value)
157
-				$inputValidations .=  ' '.$attribute.'="'. $value.'"' ;
156
+			if ($value)
157
+				$inputValidations .= ' '.$attribute.'="'.$value.'"';
158 158
 			else
159
-				$inputValidations .=  ' '.$attribute  ; 
159
+				$inputValidations .= ' '.$attribute; 
160 160
 		}
161 161
 
162 162
 		$fieldStub = str_replace('{{field_validation}}', $inputValidations, $fieldStub);
163 163
 
164
-		return $fieldStub ;
164
+		return $fieldStub;
165 165
 	}
166 166
 
167 167
 	
@@ -173,26 +173,26 @@  discard block
 block discarded – undo
173 173
 	 * @return $this
174 174
 	 */
175 175
 	private $inputStub = [];
176
-	private function getInputStubByField($field){
176
+	private function getInputStubByField($field) {
177 177
 		
178
-		if($field->index == 'primary'){
179
-			$uiType = 'primary' ;
178
+		if ($field->index == 'primary') {
179
+			$uiType = 'primary';
180 180
 		}
181
-		elseif(isset($field->foreignKey) && $field->foreignKey){
182
-			if(isset($field->foreignKey->eager) && $field->foreignKey->eager)
183
-				$uiType = 'foreign_eager' ;
181
+		elseif (isset($field->foreignKey) && $field->foreignKey) {
182
+			if (isset($field->foreignKey->eager) && $field->foreignKey->eager)
183
+				$uiType = 'foreign_eager';
184 184
 			else 
185
-				$uiType = $field->type->ui ;
185
+				$uiType = $field->type->ui;
186 186
 		}
187 187
 		else {
188
-			$uiType = $field->type->ui ;
188
+			$uiType = $field->type->ui;
189 189
 		}
190 190
 
191
-		if(array_key_exists($uiType, $this->inputStub)){
191
+		if (array_key_exists($uiType, $this->inputStub)) {
192 192
 			return $this->inputStub[$uiType];
193 193
 		}
194 194
 		else {
195
-			$this->inputStub[$uiType] = File::get($this->stubsDirectory . 'Register/'. CamelCase::convertToCamelCase($uiType). '.html');
195
+			$this->inputStub[$uiType] = File::get($this->stubsDirectory.'Register/'.CamelCase::convertToCamelCase($uiType).'.html');
196 196
 
197 197
 			return $this->inputStub[$uiType];
198 198
 		}
@@ -206,11 +206,11 @@  discard block
 block discarded – undo
206 206
 	 */
207 207
 	protected function getOutputFilename()
208 208
 	{
209
-		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/register/' ;
209
+		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/register/';
210 210
 
211 211
 		Directory::createIfNotExists($folder, 0755, true);
212 212
 
213
-		return $folder .$this->modelData->tableName . '_register.html';
213
+		return $folder.$this->modelData->tableName.'_register.html';
214 214
 	}
215 215
 
216 216
 }
217 217
\ No newline at end of file
Please login to merge, or discard this patch.
src/Scaffolder/Compilers/AngularJs/ListModuleCompiler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
 class ListModuleCompiler extends AbstractCompiler
12 12
 {
13 13
 	protected $cachePrefix 	= 'list_module_';
14
-	protected $stubFilename = 'ListModule.js' ;
14
+	protected $stubFilename = 'ListModule.js';
15 15
 
16 16
 	public function __construct($scaffolderConfig, $modelData = null)
17 17
 	{
18
-		$this->stubsDirectory = __DIR__ . '/../../../../stubs/AngularJs/';
18
+		$this->stubsDirectory = __DIR__.'/../../../../stubs/AngularJs/';
19 19
 		parent::__construct($scaffolderConfig, $modelData);
20 20
 	}
21 21
 
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 	 */
40 40
 	protected function getOutputFilename()
41 41
 	{
42
-		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/list/' ;
42
+		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->pages).$this->modelData->tableName.'/list/';
43 43
 
44 44
 		Directory::createIfNotExists($folder, 0755, true);
45 45
 
46
-		return $folder .$this->modelData->tableName . '_list.module.js';
46
+		return $folder.$this->modelData->tableName.'_list.module.js';
47 47
 	}
48 48
 
49 49
 }
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
src/Scaffolder/Compilers/AngularJs/IndexModuleCompiler.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,18 +10,18 @@  discard block
 block discarded – undo
10 10
 
11 11
 class IndexModuleCompiler extends AbstractCompiler
12 12
 {
13
-	protected $stubFilename = 'IndexModule.js' ;
13
+	protected $stubFilename = 'IndexModule.js';
14 14
 
15
-	protected $stubResourceFilename = 'IndexModuleModel.js' ;
16
-	protected $stubResource  ;
15
+	protected $stubResourceFilename = 'IndexModuleModel.js';
16
+	protected $stubResource;
17 17
 
18 18
 
19 19
 	public function __construct($scaffolderConfig, $modelData = null)
20 20
 	{
21
-		$this->stubsDirectory = __DIR__ . '/../../../../stubs/AngularJs/';
21
+		$this->stubsDirectory = __DIR__.'/../../../../stubs/AngularJs/';
22 22
 		parent::__construct($scaffolderConfig, null);
23 23
 		
24
-		$this->stubResource = File::get($this->stubsDirectory . $this->stubResourceFilename );
24
+		$this->stubResource = File::get($this->stubsDirectory.$this->stubResourceFilename);
25 25
 	}
26 26
 
27 27
 	/**
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 *
30 30
 	 * @return string
31 31
 	 */
32
-	public function replaceAndStore(){}
32
+	public function replaceAndStore() {}
33 33
 
34 34
 	/**
35 35
 	 * Compiles a resource.
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	{
70 70
 		$folder = PathParser::parse($this->scaffolderConfig->generator->paths->index);
71 71
 
72
-		return $folder  . 'index.module.js';
72
+		return $folder.'index.module.js';
73 73
 	}
74 74
 
75 75
 
Please login to merge, or discard this patch.