@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Reallyli\AB\Commands; |
| 4 | 4 | |
| 5 | -use League\Csv\Writer; |
|
| 6 | -use SplTempFileObject; |
|
| 7 | -use Reallyli\AB\Models\Goal; |
|
| 8 | 5 | use Illuminate\Console\Command; |
| 9 | -use Reallyli\AB\Models\Experiment; |
|
| 10 | 6 | use Illuminate\Support\Facades\File; |
| 7 | +use League\Csv\Writer; |
|
| 8 | +use Reallyli\AB\Models\Experiment; |
|
| 9 | +use Reallyli\AB\Models\Goal; |
|
| 10 | +use SplTempFileObject; |
|
| 11 | 11 | use Symfony\Component\Console\Input\InputArgument; |
| 12 | 12 | |
| 13 | 13 | class ExportCommand extends Command |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Reallyli\AB\Commands; |
| 4 | 4 | |
| 5 | -use DB; |
|
| 6 | 5 | use Config; |
| 6 | +use DB; |
|
| 7 | 7 | use Illuminate\Console\Command; |
| 8 | 8 | |
| 9 | 9 | class FlushCommand extends Command |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Reallyli\AB\Commands; |
| 4 | 4 | |
| 5 | 5 | use Config; |
| 6 | -use Schema; |
|
| 7 | -use Reallyli\AB\Models\Goal; |
|
| 8 | 6 | use Illuminate\Console\Command; |
| 9 | 7 | use Reallyli\AB\Models\Experiment; |
| 8 | +use Reallyli\AB\Models\Goal; |
|
| 9 | +use Schema; |
|
| 10 | 10 | |
| 11 | 11 | class InstallCommand extends Command |
| 12 | 12 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Reallyli\AB\Commands; |
| 4 | 4 | |
| 5 | -use Reallyli\AB\Models\Goal; |
|
| 6 | 5 | use Illuminate\Console\Command; |
| 7 | 6 | use Reallyli\AB\Models\Experiment; |
| 7 | +use Reallyli\AB\Models\Goal; |
|
| 8 | 8 | use Symfony\Component\Console\Helper\Table; |
| 9 | 9 | |
| 10 | 10 | class ReportCommand extends Command |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Reallyli\AB\Models; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Facades\Config; |
|
| 6 | 5 | use Illuminate\Database\Eloquent\Model as Eloquent; |
| 6 | +use Illuminate\Support\Facades\Config; |
|
| 7 | 7 | |
| 8 | 8 | class Experiment extends Eloquent |
| 9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Reallyli\AB\Models; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Facades\Config; |
|
| 6 | 5 | use Illuminate\Database\Eloquent\Model as Eloquent; |
| 6 | +use Illuminate\Support\Facades\Config; |
|
| 7 | 7 | |
| 8 | 8 | class Goal extends Eloquent |
| 9 | 9 | { |
@@ -140,6 +140,7 @@ discard block |
||
| 140 | 140 | /** |
| 141 | 141 | * Mark a goal as completed for the current experiment. |
| 142 | 142 | * |
| 143 | + * @param string $name |
|
| 143 | 144 | * @return void |
| 144 | 145 | */ |
| 145 | 146 | public function complete($name) |
@@ -233,6 +234,7 @@ discard block |
||
| 233 | 234 | /** |
| 234 | 235 | * Prepare an experiment for this session. |
| 235 | 236 | * |
| 237 | + * @param string $experiment |
|
| 236 | 238 | * @return string |
| 237 | 239 | */ |
| 238 | 240 | protected function nextExperiment($experiment = null) |
@@ -274,7 +276,7 @@ discard block |
||
| 274 | 276 | /** |
| 275 | 277 | * Check if there are active experiments. |
| 276 | 278 | * |
| 277 | - * @return string |
|
| 279 | + * @return boolean |
|
| 278 | 280 | */ |
| 279 | 281 | public function hasExperiments() |
| 280 | 282 | { |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Reallyli\AB; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | -use Reallyli\AB\Models\Goal; |
|
| 7 | -use Reallyli\AB\Models\Experiment; |
|
| 8 | -use Illuminate\Support\Facades\Route; |
|
| 9 | 6 | use Illuminate\Support\Facades\Config; |
| 7 | +use Illuminate\Support\Facades\Route; |
|
| 8 | +use Reallyli\AB\Models\Experiment; |
|
| 9 | +use Reallyli\AB\Models\Goal; |
|
| 10 | 10 | use Reallyli\AB\Session\SessionInterface; |
| 11 | 11 | |
| 12 | 12 | class Tester |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Reallyli\AB; |
| 4 | 4 | |
| 5 | -use Reallyli\AB\Commands\FlushCommand; |
|
| 6 | -use Reallyli\AB\Session\CookieSession; |
|
| 7 | 5 | use Illuminate\Support\ServiceProvider; |
| 8 | 6 | use Reallyli\AB\Commands\ExportCommand; |
| 9 | -use Reallyli\AB\Commands\ReportCommand; |
|
| 7 | +use Reallyli\AB\Commands\FlushCommand; |
|
| 10 | 8 | use Reallyli\AB\Commands\InstallCommand; |
| 9 | +use Reallyli\AB\Commands\ReportCommand; |
|
| 10 | +use Reallyli\AB\Session\CookieSession; |
|
| 11 | 11 | |
| 12 | 12 | class TesterServiceProvider extends ServiceProvider |
| 13 | 13 | { |