| @@ -125,12 +125,18 @@ discard block | ||
| 125 | 125 | return $randomString; | 
| 126 | 126 | } | 
| 127 | 127 | |
| 128 | + /** | |
| 129 | + * @param string $model | |
| 130 | + */ | |
| 128 | 131 |      private function getWorkflow($model){ | 
| 129 | 132 |  			//$data = WorkflowModel::where('content_type', 'like', '%' . $model . '%')->get(); | 
| 130 | 133 |  			$data = WorkflowModel::where('content_type', 'like', '%' . $model . '%'); | 
| 131 | 134 | return $data; | 
| 132 | 135 | } | 
| 133 | 136 | |
| 137 | + /** | |
| 138 | + * @param string $state | |
| 139 | + */ | |
| 134 | 140 |      private function getState($state){ | 
| 135 | 141 | $name = \Transliteration::clean_filename(strtolower($state)); | 
| 136 | 142 |  			//$data = WorkflowState::where('status', 1)->where('name', 'like', '%' . $name . '%')->get(); | 
| @@ -138,6 +144,9 @@ discard block | ||
| 138 | 144 | return $data; | 
| 139 | 145 | } | 
| 140 | 146 | |
| 147 | + /** | |
| 148 | + * @param ApiKeys $api | |
| 149 | + */ | |
| 141 | 150 |      private function saveHistory($api, $workflow, $statesFrom, $statesTo){ | 
| 142 | 151 | $history = New History; | 
| 143 | 152 | $history->content_id = $api->id; |