Completed
Push — master ( 38f242...4e7a4e )
by
unknown
27:51 queued 55s
created
Behavior/AttachFileBehavior.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     /**
147 147
      * Алиас класса
148 148
      *
149
-     * @param $script
149
+     * @param string $script
150 150
      */
151 151
     protected function getClassAlias(&$script)
152 152
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      * Перевод из венгерского стиля в CamelCase
207 207
      *
208 208
      * @param $name
209
-     * @return mixed
209
+     * @return string
210 210
      */
211 211
     protected function CamelCase($name)
212 212
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,20 +27,20 @@  discard block
 block discarded – undo
27 27
     public function modifyTable()
28 28
     {
29 29
         $table = $this->getTable();
30
-        $file_columns = explode(',',$this->getParameter('file_columns'));
30
+        $file_columns = explode(',', $this->getParameter('file_columns'));
31 31
         foreach ($file_columns as $file_column) {
32 32
             $file_column = trim($file_column);
33 33
             if ($file_column) {
34
-                $this->file_columns[]= $file_column;
34
+                $this->file_columns[] = $file_column;
35 35
             }
36 36
         }
37 37
 
38 38
         if ($this->getParameter('i18n')) {
39
-            $file_columns = explode(',',$this->getParameter('i18n'));
39
+            $file_columns = explode(',', $this->getParameter('i18n'));
40 40
             foreach ($file_columns as $file_column) {
41 41
                 $file_column = trim($file_column);
42 42
                 if ($file_column) {
43
-                    $this->i18n_file_columns[]= $file_column;
43
+                    $this->i18n_file_columns[] = $file_column;
44 44
                 }
45 45
             }
46 46
         }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $table_name = $this->getTable()->getName();
58 58
         $attributes = '
59
-protected $class_alias = "' . $table_name . '"; //название класса в венгерском стиле
59
+protected $class_alias = "' . $table_name.'"; //название класса в венгерском стиле
60 60
 protected $files = array();
61 61
 protected $file_objects = array();';
62 62
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             $attributes .= '
65 65
 protected $file_fields = array(';
66 66
             foreach ($this->file_columns as $file_column) {
67
-                $attributes .= '"' . $file_column . '",';
67
+                $attributes .= '"'.$file_column.'",';
68 68
             }
69 69
 
70 70
             $attributes .= ');
Please login to merge, or discard this patch.
Model/AttachFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      *
78 78
      * @return mixed
79 79
      */
80
-    public function getProjectPath(){
80
+    public function getProjectPath() {
81 81
         return $_SERVER["DOCUMENT_ROOT"];
82 82
     }
83 83
 
Please login to merge, or discard this patch.