@@ -3,18 +3,13 @@ |
||
| 3 | 3 | namespace Finder\Console\Commands\Prepare; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Console\Command; |
| 6 | -use Telefonica\Models\Actors\Person; |
|
| 7 | -use Finder\Pipelines\Track\PersonTrack; |
|
| 8 | 6 | use Illuminate\Support\Facades\Storage; |
| 9 | -use Stalker\Models\Imagen; |
|
| 10 | 7 | |
| 11 | 8 | use Rap2hpoutre\FastExcel\FastExcel; |
| 12 | 9 | |
| 13 | 10 | use Finder\Pipelines\Identify\RespectiveModel; |
| 14 | 11 | |
| 15 | 12 | use Muleta\Utils\Extratores\FileExtractor; |
| 16 | -use Muleta\Utils\Extratores\StringExtractor; |
|
| 17 | -use Muleta\Utils\Modificators\StringModificator; |
|
| 18 | 13 | |
| 19 | 14 | class ExcelPrepare extends Command |
| 20 | 15 | { |
@@ -61,6 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Tirardaqui |
| 64 | + * @param string $folder |
|
| 64 | 65 | */ |
| 65 | 66 | public function importFromFolder($folder) |
| 66 | 67 | { |
@@ -74,6 +75,10 @@ discard block |
||
| 74 | 75 | // $collections = (new FastExcel) |
| 75 | 76 | ->import( |
| 76 | 77 | storage_path('app/'.$file), |
| 78 | + |
|
| 79 | + /** |
|
| 80 | + * @param string $line |
|
| 81 | + */ |
|
| 77 | 82 | function ($line) use ($fileName, $assuntosDaPasta) { |
| 78 | 83 | $modelClass = RespectiveModel::run( |
| 79 | 84 | $assuntosDaPasta, |
@@ -47,6 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Tirardaqui |
| 50 | + * @param string $folder |
|
| 50 | 51 | */ |
| 51 | 52 | public function export($folder) |
| 52 | 53 | { |
@@ -3,10 +3,6 @@ |
||
| 3 | 3 | namespace Finder\Console\Commands\Prepare; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Console\Command; |
| 6 | -use Telefonica\Models\Actors\Person; |
|
| 7 | -use Finder\Pipelines\Track\PersonTrack; |
|
| 8 | -use Illuminate\Support\Facades\Storage; |
|
| 9 | -use Stalker\Models\Imagen; |
|
| 10 | 6 | |
| 11 | 7 | class Export extends Command |
| 12 | 8 | { |
@@ -56,6 +56,7 @@ |
||
| 56 | 56 | /** |
| 57 | 57 | * Execute the console command. |
| 58 | 58 | * |
| 59 | + * @param string $folder |
|
| 59 | 60 | * @return mixed |
| 60 | 61 | */ |
| 61 | 62 | public function midiaFinder($folder) |
@@ -3,10 +3,9 @@ |
||
| 3 | 3 | namespace Finder\Console\Commands\Prepare; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Console\Command; |
| 6 | -use Telefonica\Models\Actors\Person; |
|
| 7 | -use Finder\Pipelines\Track\PersonTrack; |
|
| 8 | 6 | use Illuminate\Support\Facades\Storage; |
| 9 | 7 | use Stalker\Models\Imagen; |
| 8 | +use Telefonica\Models\Actors\Person; |
|
| 10 | 9 | |
| 11 | 10 | use Muleta\Utils\Modificators\StringModificator; |
| 12 | 11 | |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Finder\Console\Commands\Sync; |
| 4 | 4 | |
| 5 | +use Finder\Pipelines\Track\PersonTrack; |
|
| 5 | 6 | use Illuminate\Console\Command; |
| 6 | 7 | use Telefonica\Models\Actors\Person; |
| 7 | -use Finder\Pipelines\Track\PersonTrack; |
|
| 8 | 8 | |
| 9 | 9 | class PersonsSync extends Command |
| 10 | 10 | { |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * Get the database connection. |
| 86 | 86 | * |
| 87 | 87 | * @param string $name |
| 88 | - * @return array|string |
|
| 88 | + * @return boolean |
|
| 89 | 89 | */ |
| 90 | 90 | protected function getConnection($name) |
| 91 | 91 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Finder\Console\Commands; |
| 4 | 4 | |
| 5 | -use File; |
|
| 6 | 5 | use Carbon\Carbon; |
| 6 | +use File; |
|
| 7 | 7 | use Illuminate\Console\Command; |
| 8 | 8 | use Symfony\Component\Console\Input\InputOption; |
| 9 | 9 | |
@@ -314,7 +314,7 @@ |
||
| 314 | 314 | * Get argument value from user informed arguments. |
| 315 | 315 | * |
| 316 | 316 | * @param string $name argument name. |
| 317 | - * @return Mixed argument value. |
|
| 317 | + * @return string argument value. |
|
| 318 | 318 | */ |
| 319 | 319 | protected function getArgumentValue($name) |
| 320 | 320 | { |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Finder\Console\External\Analyser; |
| 3 | 3 | |
| 4 | -use League\CLImate\CLImate; |
|
| 5 | 4 | use Finder\Logic\Analyser; |
| 6 | 5 | use Finder\Logic\Output\AbstractOutput; |
| 7 | 6 | use Finder\Logic\Output\Filter\DiffOutputFilter; |
| 7 | +use League\CLImate\CLImate; |
|
| 8 | 8 | use ReflectionMethod; |
| 9 | 9 | use SebastianBergmann\Diff\Parser; |
| 10 | 10 | use SebastianBergmann\Git\Git; |
@@ -1,14 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Finder\Console\External\Explorer; |
| 3 | 3 | |
| 4 | -use League\CLImate\CLImate; |
|
| 5 | 4 | use Finder\Logic\Output\AbstractOutput; |
| 6 | 5 | use Finder\Logic\Output\Filter\DiffOutputFilter; |
| 6 | +use Finder\Spider\SpiderLinuxCommand; |
|
| 7 | +use League\CLImate\CLImate; |
|
| 7 | 8 | use ReflectionMethod; |
| 8 | 9 | use SebastianBergmann\Diff\Parser; |
| 9 | 10 | use SebastianBergmann\Git\Git; |
| 10 | 11 | use UnexpectedValueException; |
| 11 | -use Finder\Spider\SpiderLinuxCommand; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Command line tool that run all script analyzers. |
@@ -314,7 +314,7 @@ |
||
| 314 | 314 | * Get argument value from user informed arguments. |
| 315 | 315 | * |
| 316 | 316 | * @param string $name argument name. |
| 317 | - * @return Mixed argument value. |
|
| 317 | + * @return string argument value. |
|
| 318 | 318 | */ |
| 319 | 319 | protected function getArgumentValue($name) |
| 320 | 320 | { |
@@ -1,19 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Finder\Contracts\Spider; |
| 3 | 3 | |
| 4 | -use Finder\Logic\Output\AbstractOutput; |
|
| 5 | -use Finder\Logic\Output\Filter\OutputFilterInterface; |
|
| 6 | -use Finder\Logic\Output\TriggerableInterface; |
|
| 7 | - |
|
| 8 | 4 | use Symfony\Component\Finder\Finder; |
| 9 | 5 | |
| 10 | -use Finder\Spider\File; |
|
| 11 | 6 | use Finder\Spider\Directory; |
| 12 | -use Finder\Spider\Registrator\FileRegistrator; |
|
| 7 | +use Finder\Spider\File; |
|
| 13 | 8 | use Finder\Spider\Metrics\FileMetric; |
| 9 | +use Finder\Spider\Registrator\FileRegistrator; |
|
| 14 | 10 | |
| 15 | -use Support\Helps\DebugHelper; |
|
| 16 | 11 | use Support\Helps\CodeFileHelper; |
| 12 | +use Support\Helps\DebugHelper; |
|
| 17 | 13 | |
| 18 | 14 | /** |
| 19 | 15 | * Run all script analysers and outputs their result. |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | return $this->parent; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param boolean $parent |
|
| 45 | + */ |
|
| 43 | 46 | public function setParent($parent) |
| 44 | 47 | { |
| 45 | 48 | $this->parent = $parent; |
@@ -1,19 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Finder\Contracts\Spider; |
| 3 | 3 | |
| 4 | -use Finder\Logic\Output\AbstractOutput; |
|
| 5 | -use Finder\Logic\Output\Filter\OutputFilterInterface; |
|
| 6 | -use Finder\Logic\Output\TriggerableInterface; |
|
| 7 | - |
|
| 8 | 4 | use Symfony\Component\Finder\Finder; |
| 9 | 5 | |
| 10 | -use Finder\Spider\File; |
|
| 11 | -use Finder\Spider\Directory; |
|
| 12 | -use Finder\Spider\Registrator\FileRegistrator; |
|
| 13 | -use Finder\Spider\Metrics\FileMetric; |
|
| 14 | - |
|
| 15 | -use Support\Helps\DebugHelper; |
|
| 16 | - |
|
| 17 | 6 | /** |
| 18 | 7 | * Run all script analysers and outputs their result. |
| 19 | 8 | */ |