';
diff --git a/app/Form/ExportIssues.php b/app/Form/ExportIssues.php
index 82aee41f8..630dd3f41 100644
--- a/app/Form/ExportIssues.php
+++ b/app/Form/ExportIssues.php
@@ -27,9 +27,9 @@ public function actions()
{
return [
'export-issue' => [
- 'name' => 'export-issue',
+ 'name' => 'export-issue',
'label' => 'export',
- 'type' => 'info_submit',
+ 'type' => 'info_submit',
],
];
}
@@ -53,12 +53,12 @@ public function fields()
// Add extra fields
$fields['format'] = [
- 'type' => 'select',
+ 'type' => 'select',
'placeholder' => trans('tinyissue.export_format'),
- 'options' => [
- Exporter::TYPE_XLS => trans('tinyissue.xls'),
+ 'options' => [
+ Exporter::TYPE_XLS => trans('tinyissue.xls'),
Exporter::TYPE_XLSX => trans('tinyissue.xlsx'),
- Exporter::TYPE_CSV => trans('tinyissue.csv'),
+ Exporter::TYPE_CSV => trans('tinyissue.csv'),
],
];
diff --git a/app/Form/FilterIssue.php b/app/Form/FilterIssue.php
index 1c08e5aa0..b5d583e09 100644
--- a/app/Form/FilterIssue.php
+++ b/app/Form/FilterIssue.php
@@ -45,9 +45,9 @@ public function actions()
{
return [
'filter' => [
- 'name' => 'filter',
+ 'name' => 'filter',
'label' => 'filter',
- 'type' => 'info_submit',
+ 'type' => 'info_submit',
],
];
}
@@ -75,39 +75,39 @@ public function fields()
$fields = [
'keyword' => [
- 'type' => 'text',
- 'placeholder' => trans('tinyissue.keywords'),
+ 'type' => 'text',
+ 'placeholder' => trans('tinyissue.keywords'),
'onGroupAddClass' => 'toolbar-item first',
],
'tags' => [
- 'type' => 'text',
- 'placeholder' => trans('tinyissue.tags'),
- 'multiple' => true,
- 'class' => 'tagit',
- 'data_tokens' => htmlentities($selectTags, ENT_QUOTES),
+ 'type' => 'text',
+ 'placeholder' => trans('tinyissue.tags'),
+ 'multiple' => true,
+ 'class' => 'tagit',
+ 'data_tokens' => htmlentities($selectTags, ENT_QUOTES),
'onGroupAddClass' => 'toolbar-item',
],
'sort' => [
- 'type' => 'groupField',
+ 'type' => 'groupField',
'onGroupAddClass' => 'toolbar-item',
- 'fields' => [
+ 'fields' => [
'sortby' => [
- 'type' => 'select',
- 'placeholder' => trans('tinyissue.sortby'),
- 'options' => $sort,
+ 'type' => 'select',
+ 'placeholder' => trans('tinyissue.sortby'),
+ 'options' => $sort,
'onGroupClass' => 'control-inline control-sortby',
],
'sortorder' => [
- 'type' => 'select',
- 'options' => ['asc' => trans('tinyissue.sort_asc'), 'desc' => trans('tinyissue.sort_desc')],
+ 'type' => 'select',
+ 'options' => ['asc' => trans('tinyissue.sort_asc'), 'desc' => trans('tinyissue.sort_desc')],
'onGroupClass' => 'control-inline control-sortorder',
],
],
],
'assignto' => [
- 'type' => 'select',
- 'placeholder' => trans('tinyissue.assigned_to'),
- 'options' => $assignTo,
+ 'type' => 'select',
+ 'placeholder' => trans('tinyissue.assigned_to'),
+ 'options' => $assignTo,
'onGroupAddClass' => 'toolbar-item last',
],
];
diff --git a/app/Form/FormAbstract.php b/app/Form/FormAbstract.php
index 5d580a28c..337207153 100644
--- a/app/Form/FormAbstract.php
+++ b/app/Form/FormAbstract.php
@@ -145,13 +145,13 @@ protected function projectUploadFields($name, Project $project, User $user)
{
return [
$name => [
- 'type' => 'FileUpload',
+ 'type' => 'FileUpload',
'data_message_success' => trans('tinyissue.success_upload'),
- 'data_message_failed' => trans('tinyissue.error_uploadfailed'),
- 'multiple' => null,
+ 'data_message_failed' => trans('tinyissue.error_uploadfailed'),
+ 'multiple' => null,
],
$name . '_token' => [
- 'type' => 'hidden',
+ 'type' => 'hidden',
'value' => md5($project->id . time() . $user->id . rand(1, 100)),
],
];
diff --git a/app/Form/Issue.php b/app/Form/Issue.php
index 9ee11ada4..17995a0f0 100644
--- a/app/Form/Issue.php
+++ b/app/Form/Issue.php
@@ -166,7 +166,7 @@ protected function fieldAssignedTo()
*/
protected function fieldUpload()
{
- $user = \Auth::guest()? new Model\User : \Auth::user();
+ $user = \Auth::guest() ? new Model\User() : \Auth::user();
$fields = $this->projectUploadFields('upload', $this->project, $user);
$fields['upload']['label'] = 'attachments';
@@ -250,7 +250,7 @@ protected function extractQuoteValue($part)
}
if ($part === 'm') {
- return (($seconds / 60) % 60);
+ return ($seconds / 60) % 60;
}
if ($part === 's') {
diff --git a/app/Form/Login.php b/app/Form/Login.php
index de069bcec..e60ae8a51 100644
--- a/app/Form/Login.php
+++ b/app/Form/Login.php
@@ -25,28 +25,28 @@ public function fields()
{
$fields = [
'email' => [
- 'type' => 'text',
+ 'type' => 'text',
'label' => 'email',
],
'password' => [
- 'type' => 'password',
+ 'type' => 'password',
'label' => 'password',
],
'group' => [
- 'type' => 'group',
+ 'type' => 'group',
'addClass' => 'form-actions',
- 'label' => '',
+ 'label' => '',
'required' => false,
],
'login' => [
- 'type' => 'primary_submit',
+ 'type' => 'primary_submit',
'value' => 'login',
],
'remember' => [
- 'type' => 'checkbox',
+ 'type' => 'checkbox',
'required' => false,
- 'text' => 'remember_me',
- 'inline' => null,
+ 'text' => 'remember_me',
+ 'inline' => null,
],
'closeGroup' => [
'type' => 'closeGroup',
@@ -63,7 +63,7 @@ public function rules()
{
$rules = [
'password' => 'required',
- 'email' => 'required|email',
+ 'email' => 'required|email',
];
return $rules;
diff --git a/app/Form/Project.php b/app/Form/Project.php
index 2fac1692c..6b6ba05af 100644
--- a/app/Form/Project.php
+++ b/app/Form/Project.php
@@ -29,10 +29,10 @@ public function actions()
return [
'submit' => 'update',
'delete' => [
- 'type' => 'danger_submit',
- 'label' => trans('tinyissue.delete_something', ['name' => $this->getModel()->name]),
- 'class' => 'delete-project',
- 'name' => 'delete-project',
+ 'type' => 'danger_submit',
+ 'label' => trans('tinyissue.delete_something', ['name' => $this->getModel()->name]),
+ 'class' => 'delete-project',
+ 'name' => 'delete-project',
'data-message' => trans('tinyissue.delete_project_confirm'),
],
];
@@ -50,17 +50,17 @@ public function fields()
{
$fields = [
'name' => [
- 'type' => 'text',
+ 'type' => 'text',
'label' => 'name',
],
'private' => [
- 'type' => 'select',
- 'label' => 'visibility',
+ 'type' => 'select',
+ 'label' => 'visibility',
'options' => [ProjectModel::PRIVATE_YES => trans('tinyissue.private'), ProjectModel::PRIVATE_NO => trans('tinyissue.public')],
],
'default_assignee' => [
'type' => 'hidden',
- 'id' => 'default_assignee-id',
+ 'id' => 'default_assignee-id',
],
];
@@ -68,20 +68,20 @@ public function fields()
// On edit project can change status or default assignee
if (!$this->isEditing()) {
$fields['user'] = [
- 'type' => 'selectUser',
- 'label' => 'assign_users',
- 'id' => 'add-user-project',
+ 'type' => 'selectUser',
+ 'label' => 'assign_users',
+ 'id' => 'add-user-project',
'placeholder' => trans('tinyissue.assign_a_user'),
];
} else {
$fields['status'] = [
- 'type' => 'select',
- 'label' => 'status',
+ 'type' => 'select',
+ 'label' => 'status',
'options' => [ProjectModel::STATUS_OPEN => trans('tinyissue.open'), ProjectModel::STATUS_ARCHIVED => trans('tinyissue.archived')],
];
$fields['default_assignee'] = [
- 'type' => 'select',
- 'label' => 'default_assignee',
+ 'type' => 'select',
+ 'label' => 'default_assignee',
'options' => [0 => ''] + $this->getModel()->users()->get()->lists('fullname', 'id')->all(),
];
}
diff --git a/app/Form/Settings.php b/app/Form/Settings.php
index 05cc86e5a..da22fa5ac 100644
--- a/app/Form/Settings.php
+++ b/app/Form/Settings.php
@@ -12,7 +12,6 @@
namespace Tinyissue\Form;
use Tinyissue\Model;
-use Tinyissue\Services\SettingsManager;
/**
* Settings is a class to defines fields & rules for editing system settings
@@ -58,14 +57,15 @@ public function fields()
* Select enable/disable for public projects
*
* @param Model\Setting $setting
+ *
* @return array
*/
protected function fieldEnablePublicProjects(Model\Setting $setting)
{
return [
- 'type' => 'select',
- 'label' => $setting->name,
- 'value' => $setting->value,
+ 'type' => 'select',
+ 'label' => $setting->name,
+ 'value' => $setting->value,
'options' => [Model\Setting::ENABLE => trans('tinyissue.enable'), Model\Setting::DISABLE => trans('tinyissue.disable')],
];
}
diff --git a/app/Form/Tag.php b/app/Form/Tag.php
index b49482460..8702f4371 100644
--- a/app/Form/Tag.php
+++ b/app/Form/Tag.php
@@ -50,16 +50,16 @@ public function fields()
$tag = new Model\Tag();
$fields = [
'name' => [
- 'type' => 'text',
+ 'type' => 'text',
'label' => 'name',
],
'group' => [
- 'type' => 'select',
- 'label' => 'group',
+ 'type' => 'select',
+ 'label' => 'group',
'options' => [0 => ''] + $tag->getGroups()->lists('name', 'id')->all(),
],
'bgcolor' => [
- 'type' => 'color',
+ 'type' => 'color',
'label' => 'bgcolor',
],
];
@@ -73,7 +73,7 @@ public function fields()
public function rules()
{
$rules = [
- 'name' => 'required|max:200',
+ 'name' => 'required|max:200',
'bgcolor' => 'required',
];
diff --git a/app/Form/User.php b/app/Form/User.php
index 9896ec0c9..501d0b730 100644
--- a/app/Form/User.php
+++ b/app/Form/User.php
@@ -42,20 +42,20 @@ public function fields()
{
$fields = [
'firstname' => [
- 'type' => 'text',
+ 'type' => 'text',
'label' => 'first_name',
],
'lastname' => [
- 'type' => 'text',
+ 'type' => 'text',
'label' => 'last_name',
],
'email' => [
- 'type' => 'text',
+ 'type' => 'text',
'label' => 'email',
],
'private' => [
- 'type' => 'select',
- 'label' => 'visibility',
+ 'type' => 'select',
+ 'label' => 'visibility',
'options' => [UserModel::PRIVATE_YES => trans('tinyissue.private'), UserModel::PRIVATE_NO => trans('tinyissue.public')],
],
];
@@ -77,11 +77,11 @@ protected function passwordFields()
'type' => 'legend',
];
$fields['password'] = [
- 'type' => 'password',
+ 'type' => 'password',
'label' => 'new_password',
];
$fields['password_confirmation'] = [
- 'type' => 'password',
+ 'type' => 'password',
'label' => 'confirm',
];
@@ -97,8 +97,8 @@ protected function innerFields()
{
$fields = [
'role_id' => [
- 'type' => 'select',
- 'label' => 'role',
+ 'type' => 'select',
+ 'label' => 'role',
'options' => Role::dropdown(),
],
];
@@ -117,8 +117,8 @@ public function rules()
{
$rules = [
'firstname' => 'required|max:50',
- 'lastname' => 'required|max:50',
- 'email' => 'required|email',
+ 'lastname' => 'required|max:50',
+ 'email' => 'required|email',
];
if ($this->isEditing()) {
diff --git a/app/Form/UserSetting.php b/app/Form/UserSetting.php
index 0ed1a1929..d308e458b 100644
--- a/app/Form/UserSetting.php
+++ b/app/Form/UserSetting.php
@@ -45,8 +45,8 @@ protected function innerFields()
{
$fields = [
'language' => [
- 'type' => 'select',
- 'label' => 'language',
+ 'type' => 'select',
+ 'label' => 'language',
'options' => $this->getModel()->getLanguages(),
],
];
diff --git a/app/Http/Controllers/Administration/TagsController.php b/app/Http/Controllers/Administration/TagsController.php
index f02749e93..62262345d 100644
--- a/app/Http/Controllers/Administration/TagsController.php
+++ b/app/Http/Controllers/Administration/TagsController.php
@@ -34,7 +34,7 @@ class TagsController extends Controller
public function getIndex(Tag $tag)
{
return view('administration.tags.index', [
- 'tags' => $tag->getGroupTags(),
+ 'tags' => $tag->getGroupTags(),
'projects' => $this->auth->user()->projects()->get(),
]);
}
@@ -49,7 +49,7 @@ public function getIndex(Tag $tag)
public function getNew(Form $form)
{
return view('administration.tags.new', [
- 'form' => $form,
+ 'form' => $form,
'projects' => $this->auth->user()->projects()->get(),
]);
}
@@ -80,8 +80,8 @@ public function postNew(Tag $tag, FormRequest\Tag $request)
public function getEdit(Tag $tag, Form $form)
{
return view('administration.tags.edit', [
- 'tag' => $tag,
- 'form' => $form,
+ 'tag' => $tag,
+ 'form' => $form,
'projects' => $this->auth->user()->projects()->get(),
]);
}
@@ -119,8 +119,8 @@ public function getTags(Tag $tag, Request $request, $term = '')
return !($tag->name == 'open' || $tag->name == 'closed');
})->map(function (Tag $tag) {
return [
- 'value' => $tag->id,
- 'label' => $tag->fullname,
+ 'value' => $tag->id,
+ 'label' => $tag->fullname,
'bgcolor' => $tag->bgcolor,
];
})->toArray();
diff --git a/app/Http/Controllers/Administration/UsersController.php b/app/Http/Controllers/Administration/UsersController.php
index 18b7b071f..98fe9626a 100644
--- a/app/Http/Controllers/Administration/UsersController.php
+++ b/app/Http/Controllers/Administration/UsersController.php
@@ -35,7 +35,7 @@ public function getIndex(Role $role)
{
return view('administration.users.index', [
'projects' => $this->auth->user()->projects()->get(),
- 'roles' => $role->rolesWithUsers(),
+ 'roles' => $role->rolesWithUsers(),
]);
}
@@ -49,7 +49,7 @@ public function getIndex(Role $role)
public function getAdd(Form $form)
{
return view('administration.users.add', [
- 'form' => $form,
+ 'form' => $form,
'projects' => $this->auth->user()->projects()->get(),
]);
}
@@ -81,8 +81,8 @@ public function postAdd(User $user, FormRequest\User $request)
public function getEdit(User $user, Form $form)
{
return view('administration.users.edit', [
- 'user' => $user,
- 'form' => $form,
+ 'user' => $user,
+ 'form' => $form,
'projects' => $this->auth->user()->projects()->get(),
]);
}
diff --git a/app/Http/Controllers/AdministrationController.php b/app/Http/Controllers/AdministrationController.php
index f1a7b8873..fb67b8dee 100644
--- a/app/Http/Controllers/AdministrationController.php
+++ b/app/Http/Controllers/AdministrationController.php
@@ -27,22 +27,22 @@ class AdministrationController extends Controller
/**
* Show general application stats
*
- * @param Tag $tag
+ * @param Tag $tag
* @param Project $project
- * @param User $user
+ * @param User $user
*
* @return \Illuminate\View\View
*/
public function getIndex(Tag $tag, Project $project, User $user)
{
return view('administration.index', [
- 'users' => $user->countUsers(),
- 'active_projects' => $project->countOpenProjects(),
+ 'users' => $user->countUsers(),
+ 'active_projects' => $project->countOpenProjects(),
'archived_projects' => $project->countArchivedProjects(),
- 'open_issues' => $project->countOpenIssues(),
- 'closed_issues' => $project->countClosedIssues(),
- 'projects' => $this->auth->user()->projects()->get(),
- 'tags' => $tag->count(),
+ 'open_issues' => $project->countOpenIssues(),
+ 'closed_issues' => $project->countClosedIssues(),
+ 'projects' => $this->auth->user()->projects()->get(),
+ 'tags' => $tag->count(),
]);
}
@@ -56,7 +56,7 @@ public function getIndex(Tag $tag, Project $project, User $user)
public function getSettings(FormSettings $form)
{
return view('administration.settings', [
- 'form' => $form,
+ 'form' => $form,
'projects' => $this->auth->user()->projects()->get(),
]);
}
diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php
index 64869ab68..ede4f99dc 100644
--- a/app/Http/Controllers/Controller.php
+++ b/app/Http/Controllers/Controller.php
@@ -49,7 +49,8 @@ protected function sidebarProjects()
return $this->auth->user()->projects()->get();
}
- $project = new Model\Project;
+ $project = new Model\Project();
+
return $project->publicProjects();
}
}
diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
index 1f999d2d7..e4c73702a 100644
--- a/app/Http/Controllers/HomeController.php
+++ b/app/Http/Controllers/HomeController.php
@@ -26,16 +26,17 @@ class HomeController extends Controller
/**
* Public issues view
*
- * @param User $user
+ * @param User $user
* @param Project $project
+ *
* @return \Illuminate\View\View
*/
public function getIssues(User $user, Project $project)
{
return view('index.issues', [
'activeUsers' => $user->activeUsers(),
- 'projects' => $project->projectsWidthIssues(Project::STATUS_OPEN, Project::PRIVATE_NO)->get(),
- 'sidebar' => 'public',
+ 'projects' => $project->projectsWidthIssues(Project::STATUS_OPEN, Project::PRIVATE_NO)->get(),
+ 'sidebar' => 'public',
]);
}
diff --git a/app/Http/Controllers/Project/IssueController.php b/app/Http/Controllers/Project/IssueController.php
index 9a3b689b2..864a5f966 100644
--- a/app/Http/Controllers/Project/IssueController.php
+++ b/app/Http/Controllers/Project/IssueController.php
@@ -57,12 +57,12 @@ public function getIndex(Project $project, Issue $issue, CommentForm $form)
}
return view('project.issue.index', [
- 'issue' => $issue,
- 'project' => $project,
+ 'issue' => $issue,
+ 'project' => $project,
'commentForm' => $form,
- 'activities' => $activities,
- 'sidebar' => 'project',
- 'projects' => $projects,
+ 'activities' => $activities,
+ 'sidebar' => 'project',
+ 'projects' => $projects,
]);
}
@@ -150,7 +150,7 @@ public function getNew(Project $project, IssueForm $form)
{
return view('project.issue.new', [
'project' => $project,
- 'form' => $form,
+ 'form' => $form,
'sidebar' => 'project',
]);
}
@@ -192,9 +192,9 @@ public function getEdit(Project $project, Issue $issue, IssueForm $form)
}
return view('project.issue.edit', [
- 'issue' => $issue,
+ 'issue' => $issue,
'project' => $project,
- 'form' => $form,
+ 'form' => $form,
'sidebar' => 'project',
]);
}
@@ -263,8 +263,8 @@ public function postUploadAttachment(Project $project, Attachment $attachment, R
$response = [
'upload' => [
[
- 'name' => $attachment->filename,
- 'size' => $attachment->filesize,
+ 'name' => $attachment->filename,
+ 'size' => $attachment->filesize,
'fileId' => $attachment->id,
],
],
@@ -274,9 +274,9 @@ public function postUploadAttachment(Project $project, Attachment $attachment, R
$response = array(
'status' => false,
- 'name' => $file->getClientOriginalName(),
- 'error' => $exception->getMessage(),
- 'trace' => $exception->getTraceAsString(),
+ 'name' => $file->getClientOriginalName(),
+ 'error' => $exception->getMessage(),
+ 'trace' => $exception->getTraceAsString(),
);
}
diff --git a/app/Http/Controllers/ProjectController.php b/app/Http/Controllers/ProjectController.php
index 24081571c..ee8027fc6 100644
--- a/app/Http/Controllers/ProjectController.php
+++ b/app/Http/Controllers/ProjectController.php
@@ -44,11 +44,11 @@ public function getIndex(Project $project)
->get();
return view('project.index', [
- 'tabs' => $this->projectMainViewTabs($project, 'index'),
- 'project' => $project,
- 'active' => 'activity',
+ 'tabs' => $this->projectMainViewTabs($project, 'index'),
+ 'project' => $project,
+ 'active' => 'activity',
'activities' => $activities,
- 'sidebar' => 'project',
+ 'sidebar' => 'project',
]);
}
@@ -68,11 +68,11 @@ public function getIssues(FilterForm $filterForm, Request $request, Project $pro
$issues = $project->listIssues($status, $request->all());
return view('project.index', [
- 'tabs' => $this->projectMainViewTabs($project, 'issues', $issues, $status),
- 'project' => $project,
- 'active' => $active,
- 'issues' => $issues,
- 'sidebar' => 'project',
+ 'tabs' => $this->projectMainViewTabs($project, 'issues', $issues, $status),
+ 'project' => $project,
+ 'active' => $active,
+ 'issues' => $issues,
+ 'sidebar' => 'project',
'filterForm' => $filterForm,
]);
}
@@ -89,10 +89,10 @@ public function getAssigned(Project $project)
$issues = $project->listAssignedIssues($this->auth->user()->id);
return view('project.index', [
- 'tabs' => $this->projectMainViewTabs($project, 'assigned', $issues),
+ 'tabs' => $this->projectMainViewTabs($project, 'assigned', $issues),
'project' => $project,
- 'active' => 'issue_assigned_to_you',
- 'issues' => $issues,
+ 'active' => 'issue_assigned_to_you',
+ 'issues' => $issues,
'sidebar' => 'project',
]);
}
@@ -110,11 +110,11 @@ public function getNotes(Project $project, NoteForm $form)
$notes = $project->notes()->with('createdBy')->get();
return view('project.index', [
- 'tabs' => $this->projectMainViewTabs($project, 'notes', $notes),
- 'project' => $project,
- 'active' => 'notes',
- 'notes' => $notes,
- 'sidebar' => 'project',
+ 'tabs' => $this->projectMainViewTabs($project, 'notes', $notes),
+ 'project' => $project,
+ 'active' => 'notes',
+ 'notes' => $notes,
+ 'sidebar' => 'project',
'noteForm' => $form,
]);
}
@@ -124,16 +124,17 @@ public function getNotes(Project $project, NoteForm $form)
* @param $view
* @param null $data
* @param bool $status
+ *
* @return array
*/
protected function projectMainViewTabs(Project $project, $view, $data = null, $status = false)
{
- $notesCount = $view === 'note'? $data->count() : $project->notes()->count();
+ $notesCount = $view === 'note' ? $data->count() : $project->notes()->count();
$assignedIssuesCount = 0;
if ($view !== 'assigned' && !$this->auth->guest()) {
$assignedIssuesCount = $this->auth->user()->assignedIssuesCount($project->id);
- } else if ($view === 'assigned') {
+ } elseif ($view === 'assigned') {
$assignedIssuesCount = $data->count();
}
@@ -147,34 +148,34 @@ protected function projectMainViewTabs(Project $project, $view, $data = null, $s
}
} else {
$openIssuesCount = $project->openIssuesCount()->count();
- $closedIssuesCount = $project->closedIssuesCount()->count();
+ $closedIssuesCount = $project->closedIssuesCount()->count();
}
$tabs = [];
$tabs[] = [
- 'url' => $project->to(),
+ 'url' => $project->to(),
'page' => 'activity',
];
$tabs[] = [
- 'url' => $project->to('issues'),
- 'page' => 'open_issue',
+ 'url' => $project->to('issues'),
+ 'page' => 'open_issue',
'prefix' => $openIssuesCount,
];
$tabs[] = [
- 'url' => $project->to('issues') . '/0',
- 'page' => 'closed_issue',
+ 'url' => $project->to('issues') . '/0',
+ 'page' => 'closed_issue',
'prefix' => $closedIssuesCount,
];
if (!$this->auth->guest()) {
$tabs[] = [
- 'url' => $project->to('assigned'),
- 'page' => 'issue_assigned_to_you',
+ 'url' => $project->to('assigned'),
+ 'page' => 'issue_assigned_to_you',
'prefix' => $assignedIssuesCount,
];
}
$tabs[] = [
- 'url' => $project->to('notes'),
- 'page' => 'notes',
+ 'url' => $project->to('notes'),
+ 'page' => 'notes',
'prefix' => $notesCount,
];
@@ -192,7 +193,7 @@ protected function projectMainViewTabs(Project $project, $view, $data = null, $s
public function getEdit(Project $project, Form $form)
{
return view('project.edit', [
- 'form' => $form,
+ 'form' => $form,
'project' => $project,
'sidebar' => 'project',
]);
@@ -355,10 +356,10 @@ public function postExportIssues(Project $project, Exporter $exporter, Request $
);
return response()->json([
- 'link' => $link,
+ 'link' => $link,
'title' => $info['title'],
- 'file' => $info['file'],
- 'ext' => $info['ext'],
+ 'file' => $info['file'],
+ 'ext' => $info['ext'],
]);
}
diff --git a/app/Http/Controllers/ProjectsController.php b/app/Http/Controllers/ProjectsController.php
index 27304514e..6d5c878ef 100644
--- a/app/Http/Controllers/ProjectsController.php
+++ b/app/Http/Controllers/ProjectsController.php
@@ -60,7 +60,7 @@ public function getIndex($status = Project::STATUS_OPEN)
$viewData['activeUsers'] = $user->activeUsers();
}
$viewData['content_projects'] = $projects;
- $viewData['active'] = $status === Project::STATUS_OPEN? 'active' : 'archived';
+ $viewData['active'] = $status === Project::STATUS_OPEN ? 'active' : 'archived';
$viewData['active_count'] = $countActive;
$viewData['archived_count'] = $countArchived;
diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php
index a5b537893..84b6d364b 100644
--- a/app/Http/Controllers/UserController.php
+++ b/app/Http/Controllers/UserController.php
@@ -33,7 +33,7 @@ class UserController extends Controller
public function getSettings(Form $form)
{
return view('user.settings', [
- 'form' => $form,
+ 'form' => $form,
'projects' => $this->auth->user()->projects()->get(),
]);
}
diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php
index af6cc0758..464377634 100644
--- a/app/Http/Kernel.php
+++ b/app/Http/Kernel.php
@@ -40,11 +40,11 @@ class Kernel extends HttpKernel
* @var array
*/
protected $routeMiddleware = [
- 'auth' => 'Tinyissue\Http\Middleware\Authenticate',
+ 'auth' => 'Tinyissue\Http\Middleware\Authenticate',
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
- 'guest' => 'Tinyissue\Http\Middleware\RedirectIfAuthenticated',
+ 'guest' => 'Tinyissue\Http\Middleware\RedirectIfAuthenticated',
'permission' => 'Tinyissue\Http\Middleware\Permission',
- 'ajax' => 'Tinyissue\Http\Middleware\VerifyAjaxRequest',
- 'project' => 'Tinyissue\Http\Middleware\Project',
+ 'ajax' => 'Tinyissue\Http\Middleware\VerifyAjaxRequest',
+ 'project' => 'Tinyissue\Http\Middleware\Project',
];
}
diff --git a/app/Http/Middleware/Permission.php b/app/Http/Middleware/Permission.php
index bb7b2a0e9..af04ab2a4 100644
--- a/app/Http/Middleware/Permission.php
+++ b/app/Http/Middleware/Permission.php
@@ -36,7 +36,7 @@ class Permission
* @var array
*/
protected $publicAccess = [
- 'issue-view'
+ 'issue-view',
];
/**
@@ -70,7 +70,7 @@ public function handle(Request $request, Closure $next)
&& in_array($permission, $this->publicAccess)
&& $project instanceof ProjectModel && !$project->isPrivate()) {
// Ignore we are ok to view issues in public project
- } else if (!$this->auth->guest()
+ } elseif (!$this->auth->guest()
&& (!$user->permission($permission) || !$user->permissionInContext($request->route()->parameters()))) {
abort(401);
}
diff --git a/app/Http/Middleware/Project.php b/app/Http/Middleware/Project.php
index 0e94f75a9..90741d52d 100644
--- a/app/Http/Middleware/Project.php
+++ b/app/Http/Middleware/Project.php
@@ -33,7 +33,7 @@ class Project
'Issue',
'IssueFilter',
'Note',
- 'Project'
+ 'Project',
];
/**
diff --git a/app/Model/Setting.php b/app/Model/Setting.php
index b638c28b0..d2486c669 100644
--- a/app/Model/Setting.php
+++ b/app/Model/Setting.php
@@ -11,7 +11,6 @@
namespace Tinyissue\Model;
-use Illuminate\Database\Eloquent;
use Illuminate\Database\Eloquent\Model;
/**
diff --git a/app/Model/Traits/Project/CountTrait.php b/app/Model/Traits/Project/CountTrait.php
index e4cefefb0..f6e94b22a 100644
--- a/app/Model/Traits/Project/CountTrait.php
+++ b/app/Model/Traits/Project/CountTrait.php
@@ -153,6 +153,7 @@ public function projectsWithCountIssues(array $projectIds)
*
* @param int $status
* @param int $private
+ *
* @return mixed
*/
public function projectsWithOpenIssuesCount($status = Project::STATUS_OPEN, $private = Project::PRIVATE_YES)
diff --git a/app/Model/Traits/Project/Issue/Comment/CrudTrait.php b/app/Model/Traits/Project/Issue/Comment/CrudTrait.php
index 97a9b864c..304582ccb 100644
--- a/app/Model/Traits/Project/Issue/Comment/CrudTrait.php
+++ b/app/Model/Traits/Project/Issue/Comment/CrudTrait.php
@@ -55,8 +55,8 @@ public function createComment(array $input)
$fill = [
'created_by' => $this->user->id,
'project_id' => $this->project->id,
- 'issue_id' => $this->issue->id,
- 'comment' => $input['comment'],
+ 'issue_id' => $this->issue->id,
+ 'comment' => $input['comment'],
];
$this->fill($fill);
@@ -64,10 +64,10 @@ public function createComment(array $input)
/* Add to user's activity log */
$this->activity()->save(new User\Activity([
- 'type_id' => Activity::TYPE_COMMENT,
+ 'type_id' => Activity::TYPE_COMMENT,
'parent_id' => $this->project->id,
- 'item_id' => $this->issue->id,
- 'user_id' => $this->user->id,
+ 'item_id' => $this->issue->id,
+ 'user_id' => $this->user->id,
]));
/* Add attachments to issue */
diff --git a/app/Model/Traits/Project/Issue/CrudTagTrait.php b/app/Model/Traits/Project/Issue/CrudTagTrait.php
index 75d001fe8..5bed0e6f0 100644
--- a/app/Model/Traits/Project/Issue/CrudTagTrait.php
+++ b/app/Model/Traits/Project/Issue/CrudTagTrait.php
@@ -81,9 +81,9 @@ public function changeStatus($status, $userId)
/* Add to activity log */
$this->activities()->save(new User\Activity([
- 'type_id' => $activityType,
+ 'type_id' => $activityType,
'parent_id' => $this->project->id,
- 'user_id' => $userId,
+ 'user_id' => $userId,
]));
$this->status = $status;
@@ -151,10 +151,10 @@ public function syncTags(Collection $tags, Collection $currentTags = null)
if (!empty($removedTags) || !empty($addedTags)) {
// Add to activity log for tags if changed
$this->activities()->save(new User\Activity([
- 'type_id' => Activity::TYPE_ISSUE_TAG,
+ 'type_id' => Activity::TYPE_ISSUE_TAG,
'parent_id' => $this->project->id,
- 'user_id' => $this->user->id,
- 'data' => ['added_tags' => $addedTags, 'removed_tags' => $removedTags],
+ 'user_id' => $this->user->id,
+ 'data' => ['added_tags' => $addedTags, 'removed_tags' => $removedTags],
]));
}
diff --git a/app/Model/Traits/Project/Issue/CrudTrait.php b/app/Model/Traits/Project/Issue/CrudTrait.php
index ee1340012..f6ec1440e 100644
--- a/app/Model/Traits/Project/Issue/CrudTrait.php
+++ b/app/Model/Traits/Project/Issue/CrudTrait.php
@@ -80,9 +80,9 @@ public function reassign($assignTo, $user)
$this->save();
return $this->activities()->save(new User\Activity([
- 'type_id' => Activity::TYPE_REASSIGN_ISSUE,
+ 'type_id' => Activity::TYPE_REASSIGN_ISSUE,
'parent_id' => $this->project->id,
- 'user_id' => $userId,
+ 'user_id' => $userId,
'action_id' => $this->assigned_to,
]));
}
@@ -97,19 +97,19 @@ public function reassign($assignTo, $user)
public function updateIssue(array $input)
{
$fill = [
- 'title' => $input['title'],
- 'body' => $input['body'],
+ 'title' => $input['title'],
+ 'body' => $input['body'],
'assigned_to' => $input['assigned_to'],
- 'time_quote' => $input['time_quote'],
- 'updated_by' => $this->updatedBy->id,
+ 'time_quote' => $input['time_quote'],
+ 'updated_by' => $this->updatedBy->id,
];
/* Add to activity log for assignment if changed */
if ($input['assigned_to'] != $this->assigned_to) {
$this->activities()->save(new User\Activity([
- 'type_id' => Activity::TYPE_REASSIGN_ISSUE,
+ 'type_id' => Activity::TYPE_REASSIGN_ISSUE,
'parent_id' => $this->project->id,
- 'user_id' => $this->updatedBy->id,
+ 'user_id' => $this->updatedBy->id,
'action_id' => $this->assigned_to,
]));
}
@@ -137,8 +137,8 @@ public function createIssue(array $input)
$fill = [
'created_by' => $this->user->id,
'project_id' => $this->project->id,
- 'title' => $input['title'],
- 'body' => $input['body'],
+ 'title' => $input['title'],
+ 'body' => $input['body'],
];
if ($this->user->permission('issue-modify')) {
@@ -150,9 +150,9 @@ public function createIssue(array $input)
/* Add to user's activity log */
$this->activities()->save(new User\Activity([
- 'type_id' => Activity::TYPE_CREATE_ISSUE,
+ 'type_id' => Activity::TYPE_CREATE_ISSUE,
'parent_id' => $this->project->id,
- 'user_id' => $this->user->id,
+ 'user_id' => $this->user->id,
]));
/* Add attachments to issue */
diff --git a/app/Model/Traits/Project/Note/CrudTrait.php b/app/Model/Traits/Project/Note/CrudTrait.php
index 0be6e3c22..9dc516c83 100644
--- a/app/Model/Traits/Project/Note/CrudTrait.php
+++ b/app/Model/Traits/Project/Note/CrudTrait.php
@@ -48,9 +48,9 @@ public function createNote(array $input)
// Add to user's activity log
$this->activity()->save(new Model\User\Activity([
- 'type_id' => Model\Activity::TYPE_NOTE,
+ 'type_id' => Model\Activity::TYPE_NOTE,
'parent_id' => $this->project->id,
- 'user_id' => $this->createdBy->id,
+ 'user_id' => $this->createdBy->id,
]));
return $this;
diff --git a/app/Model/Traits/Project/QueryTrait.php b/app/Model/Traits/Project/QueryTrait.php
index 2bdff3d0b..2321476b6 100644
--- a/app/Model/Traits/Project/QueryTrait.php
+++ b/app/Model/Traits/Project/QueryTrait.php
@@ -155,13 +155,13 @@ public function projectsWidthIssues($status = Project::STATUS_OPEN, $private = P
}
$query->with([
- 'issues' => function (Relations\Relation $query) use ($status) {
+ 'issues' => function (Relations\Relation $query) use ($status) {
$query->with('updatedBy');
if ($status === Project::STATUS_OPEN) {
$query->where('status', '=', Project\Issue::STATUS_OPEN);
}
},
- 'issues.user' => function () {
+ 'issues.user' => function () {
},
'issues.countComments' => function () {
},
@@ -169,5 +169,4 @@ public function projectsWidthIssues($status = Project::STATUS_OPEN, $private = P
return $query;
}
-
}
diff --git a/app/Model/Traits/Tag/DataMappingTrait.php b/app/Model/Traits/Tag/DataMappingTrait.php
index cca0150c3..098f6896e 100644
--- a/app/Model/Traits/Tag/DataMappingTrait.php
+++ b/app/Model/Traits/Tag/DataMappingTrait.php
@@ -46,8 +46,8 @@ public function tokenFieldCallback(Tag $tag)
public function toArrayCallback(Tag $tag)
{
return [
- 'id' => $tag->id,
- 'name' => $tag->fullname,
+ 'id' => $tag->id,
+ 'name' => $tag->fullname,
'bgcolor' => $tag->bgcolor,
];
}
diff --git a/app/Model/Traits/User/CountTrait.php b/app/Model/Traits/User/CountTrait.php
index b04417275..9870ec710 100644
--- a/app/Model/Traits/User/CountTrait.php
+++ b/app/Model/Traits/User/CountTrait.php
@@ -66,6 +66,7 @@ public function projectsWithCountOpenIssues($status = Project::STATUS_OPEN)
{
if ($this->permission('project-all')) {
$project = new Project();
+
return $project->projectsWithOpenIssuesCount($status, Project::PRIVATE_ALL);
}
diff --git a/app/Model/Traits/User/CrudTrait.php b/app/Model/Traits/User/CrudTrait.php
index 88333a0ac..f4a915c2b 100644
--- a/app/Model/Traits/User/CrudTrait.php
+++ b/app/Model/Traits/User/CrudTrait.php
@@ -44,19 +44,19 @@ trait CrudTrait
public function createUser(array $info)
{
$insert = [
- 'email' => $info['email'],
+ 'email' => $info['email'],
'firstname' => $info['firstname'],
- 'lastname' => $info['lastname'],
- 'role_id' => $info['role_id'],
- 'private' => (boolean)$info['private'],
- 'password' => Hash::make($password = Str::random(6)),
+ 'lastname' => $info['lastname'],
+ 'role_id' => $info['role_id'],
+ 'private' => (boolean) $info['private'],
+ 'password' => Hash::make($password = Str::random(6)),
];
$this->fill($insert)->save();
/* Send Activation email */
$viewData = [
- 'email' => $info['email'],
+ 'email' => $info['email'],
'password' => $password,
];
Mail::send('email.new_user', $viewData, function (MailMessage $message) {
@@ -74,7 +74,7 @@ public function createUser(array $info)
public function delete()
{
$this->update([
- 'email' => '',
+ 'email' => '',
'deleted' => User::DELETED_USERS,
]);
Project\User::where('user_id', '=', $this->id)->delete();
diff --git a/app/Model/Traits/User/QueryTrait.php b/app/Model/Traits/User/QueryTrait.php
index a46a9bd7e..56caabcce 100644
--- a/app/Model/Traits/User/QueryTrait.php
+++ b/app/Model/Traits/User/QueryTrait.php
@@ -77,7 +77,7 @@ public function projectsWidthIssues($status = Project::STATUS_OPEN)
$query->where('status', '=', Project\Issue::STATUS_OPEN);
}
},
- 'issues.user' => function () {},
+ 'issues.user' => function () {},
'issues.countComments' => function () {},
]);
}
diff --git a/app/Providers/ConfigServiceProvider.php b/app/Providers/ConfigServiceProvider.php
index 31000eee2..ca66c14a6 100644
--- a/app/Providers/ConfigServiceProvider.php
+++ b/app/Providers/ConfigServiceProvider.php
@@ -31,8 +31,8 @@ public function register()
{
config([
'tinyissue.release_date' => '23-11-2015',
- 'tinyissue.version' => '2.3.0',
- 'tinyissue.uploads_dir' => env('APP_UPLOAD_DIR', 'uploads'),
+ 'tinyissue.version' => '2.3.0',
+ 'tinyissue.uploads_dir' => env('APP_UPLOAD_DIR', 'uploads'),
]);
}
}
diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php
index bf3fd0674..6c2c36b85 100644
--- a/app/Providers/RouteServiceProvider.php
+++ b/app/Providers/RouteServiceProvider.php
@@ -164,6 +164,7 @@ public function map(Router $router)
* All of the routes that can be made public
*
* @param Router $router
+ *
* @return void
*/
protected function addPublicRoutes(Router $router)
@@ -183,6 +184,7 @@ protected function addPublicRoutes(Router $router)
* Routes related to projects controller that can be made public or private
*
* @param Router $router
+ *
* @return void
*/
protected function addPublicProjectsRoutes(Router $router)
@@ -195,6 +197,7 @@ protected function addPublicProjectsRoutes(Router $router)
* Routes related to project (issue, comment, notes, etc..) that can be made public or private
*
* @param Router $router
+ *
* @return void
*/
protected function addPublicProjectRoutes(Router $router)
diff --git a/app/Services/SettingsManager.php b/app/Services/SettingsManager.php
index f86d8a957..34573056e 100644
--- a/app/Services/SettingsManager.php
+++ b/app/Services/SettingsManager.php
@@ -11,7 +11,6 @@
namespace Tinyissue\Services;
-use Illuminate\Database\Eloquent;
use Illuminate\Support\Collection;
use Tinyissue\Model\Setting;
@@ -36,7 +35,7 @@ public function __construct($items = [])
/**
* Load all settings
*
- * @return \Illuminate\Database\Eloquent\Collection|boolean
+ * @return \Illuminate\Database\Eloquent\Collection|bool
*/
protected function load()
{
@@ -60,6 +59,7 @@ protected function load()
*
* @param $name
* @param mixed|null $default
+ *
* @return mixed
*/
public function get($name, $default = null)
@@ -82,14 +82,15 @@ public function get($name, $default = null)
*/
public function isPublicProjectsEnabled()
{
- return (boolean)$this->get('enable_public_projects') === true;
+ return (boolean) $this->get('enable_public_projects') === true;
}
/**
* Save a collection of settings
*
* @param $values
- * @return boolean
+ *
+ * @return bool
*/
public function save($values)
{
diff --git a/config/app.php b/config/app.php
index 1aadba2ac..981c3d0fc 100644
--- a/config/app.php
+++ b/config/app.php
@@ -13,7 +13,7 @@
|
*/
- 'debug' => env('APP_DEBUG'),
+ 'debug' => env('APP_DEBUG'),
/*
|--------------------------------------------------------------------------
| Application URL
@@ -24,7 +24,7 @@
| your application so that it is used when running Artisan tasks.
|
*/
- 'url' => env('APP_URL', 'http://localhost'),
+ 'url' => env('APP_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Application Timezone
@@ -35,7 +35,7 @@
| ahead and set this to a sensible default for you out of the box.
|
*/
- 'timezone' => env('APP_TIMEZONE', 'UTC'),
+ 'timezone' => env('APP_TIMEZONE', 'UTC'),
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
@@ -46,7 +46,7 @@
| to any of the locales which will be supported by the application.
|
*/
- 'locale' => 'en',
+ 'locale' => 'en',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
@@ -68,8 +68,8 @@
| will not be safe. Please do this before deploying an application!
|
*/
- 'key' => env('APP_KEY', 'SomeRandomString'),
- 'cipher' => MCRYPT_RIJNDAEL_128,
+ 'key' => env('APP_KEY', 'SomeRandomString'),
+ 'cipher' => MCRYPT_RIJNDAEL_128,
/*
|--------------------------------------------------------------------------
| Logging Configuration
@@ -82,7 +82,7 @@
| Available Settings: "single", "daily", "syslog", "errorlog"
|
*/
- 'log' => 'daily',
+ 'log' => 'daily',
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
@@ -93,7 +93,7 @@
| this array to grant expanded functionality to your applications.
|
*/
- 'providers' => [
+ 'providers' => [
/*
* Laravel Framework Service Providers...
@@ -147,45 +147,45 @@
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
- 'aliases' => [
+ 'aliases' => [
- 'App' => 'Illuminate\Support\Facades\App',
- 'Artisan' => 'Illuminate\Support\Facades\Artisan',
- 'Auth' => 'Illuminate\Support\Facades\Auth',
- 'Blade' => 'Illuminate\Support\Facades\Blade',
- 'Bus' => 'Illuminate\Support\Facades\Bus',
- 'Cache' => 'Illuminate\Support\Facades\Cache',
- 'Config' => 'Illuminate\Support\Facades\Config',
- 'Cookie' => 'Illuminate\Support\Facades\Cookie',
- 'Crypt' => 'Illuminate\Support\Facades\Crypt',
- 'DB' => 'Illuminate\Support\Facades\DB',
- 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
- 'Event' => 'Illuminate\Support\Facades\Event',
- 'File' => 'Illuminate\Support\Facades\File',
- 'Hash' => 'Illuminate\Support\Facades\Hash',
- 'Input' => 'Illuminate\Support\Facades\Input',
+ 'App' => 'Illuminate\Support\Facades\App',
+ 'Artisan' => 'Illuminate\Support\Facades\Artisan',
+ 'Auth' => 'Illuminate\Support\Facades\Auth',
+ 'Blade' => 'Illuminate\Support\Facades\Blade',
+ 'Bus' => 'Illuminate\Support\Facades\Bus',
+ 'Cache' => 'Illuminate\Support\Facades\Cache',
+ 'Config' => 'Illuminate\Support\Facades\Config',
+ 'Cookie' => 'Illuminate\Support\Facades\Cookie',
+ 'Crypt' => 'Illuminate\Support\Facades\Crypt',
+ 'DB' => 'Illuminate\Support\Facades\DB',
+ 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
+ 'Event' => 'Illuminate\Support\Facades\Event',
+ 'File' => 'Illuminate\Support\Facades\File',
+ 'Hash' => 'Illuminate\Support\Facades\Hash',
+ 'Input' => 'Illuminate\Support\Facades\Input',
'Inspiring' => 'Illuminate\Foundation\Inspiring',
- 'Lang' => 'Illuminate\Support\Facades\Lang',
- 'Log' => 'Illuminate\Support\Facades\Log',
- 'Mail' => 'Illuminate\Support\Facades\Mail',
- 'Password' => 'Illuminate\Support\Facades\Password',
- 'Queue' => 'Illuminate\Support\Facades\Queue',
- 'Redirect' => 'Illuminate\Support\Facades\Redirect',
- 'Redis' => 'Illuminate\Support\Facades\Redis',
- 'Request' => 'Illuminate\Support\Facades\Request',
- 'Response' => 'Illuminate\Support\Facades\Response',
- 'Route' => 'Illuminate\Support\Facades\Route',
- 'Schema' => 'Illuminate\Support\Facades\Schema',
- 'Session' => 'Illuminate\Support\Facades\Session',
- 'Storage' => 'Illuminate\Support\Facades\Storage',
- 'URL' => 'Illuminate\Support\Facades\URL',
+ 'Lang' => 'Illuminate\Support\Facades\Lang',
+ 'Log' => 'Illuminate\Support\Facades\Log',
+ 'Mail' => 'Illuminate\Support\Facades\Mail',
+ 'Password' => 'Illuminate\Support\Facades\Password',
+ 'Queue' => 'Illuminate\Support\Facades\Queue',
+ 'Redirect' => 'Illuminate\Support\Facades\Redirect',
+ 'Redis' => 'Illuminate\Support\Facades\Redis',
+ 'Request' => 'Illuminate\Support\Facades\Request',
+ 'Response' => 'Illuminate\Support\Facades\Response',
+ 'Route' => 'Illuminate\Support\Facades\Route',
+ 'Schema' => 'Illuminate\Support\Facades\Schema',
+ 'Session' => 'Illuminate\Support\Facades\Session',
+ 'Storage' => 'Illuminate\Support\Facades\Storage',
+ 'URL' => 'Illuminate\Support\Facades\URL',
'Validator' => 'Illuminate\Support\Facades\Validator',
- 'View' => 'Illuminate\Support\Facades\View',
- 'Debugbar' => 'Barryvdh\Debugbar\Facade',
- 'Form' => 'Illuminate\Html\FormFacade',
- 'Html' => 'Illuminate\Html\HtmlFacade',
- 'Former' => 'Former\Facades\Former',
- 'Markdown' => 'GrahamCampbell\Markdown\Facades\Markdown',
- 'Excel' => 'Maatwebsite\Excel\Facades\Excel',
+ 'View' => 'Illuminate\Support\Facades\View',
+ 'Debugbar' => 'Barryvdh\Debugbar\Facade',
+ 'Form' => 'Illuminate\Html\FormFacade',
+ 'Html' => 'Illuminate\Html\HtmlFacade',
+ 'Former' => 'Former\Facades\Former',
+ 'Markdown' => 'GrahamCampbell\Markdown\Facades\Markdown',
+ 'Excel' => 'Maatwebsite\Excel\Facades\Excel',
],
];
diff --git a/config/cache.php b/config/cache.php
index b5fff5f37..c85afe299 100644
--- a/config/cache.php
+++ b/config/cache.php
@@ -25,35 +25,35 @@
|
*/
- 'stores' => [
+ 'stores' => [
- 'apc' => [
+ 'apc' => [
'driver' => 'apc',
],
- 'array' => [
+ 'array' => [
'driver' => 'array',
],
- 'database' => [
- 'driver' => 'database',
- 'table' => 'cache',
+ 'database' => [
+ 'driver' => 'database',
+ 'table' => 'cache',
'connection' => null,
],
- 'file' => [
+ 'file' => [
'driver' => 'file',
- 'path' => storage_path().'/framework/cache',
+ 'path' => storage_path().'/framework/cache',
],
'memcached' => [
- 'driver' => 'memcached',
+ 'driver' => 'memcached',
'servers' => [
[
- 'host' => '127.0.0.1',
- 'port' => 11211,
+ 'host' => '127.0.0.1',
+ 'port' => 11211,
'weight' => 100,
],
],
],
- 'redis' => [
- 'driver' => 'redis',
+ 'redis' => [
+ 'driver' => 'redis',
'connection' => 'default',
],
@@ -69,6 +69,6 @@
|
*/
- 'prefix' => 'laravel',
+ 'prefix' => 'laravel',
];
diff --git a/config/database.php b/config/database.php
index 703837567..afdaf8884 100644
--- a/config/database.php
+++ b/config/database.php
@@ -47,41 +47,41 @@
'connections' => [
'sqlite' => [
- 'driver' => 'sqlite',
+ 'driver' => 'sqlite',
'database' => env('DB_DATABASE', storage_path().'/database.sqlite'),
- 'prefix' => env('DB_PREFIX', ''),
+ 'prefix' => env('DB_PREFIX', ''),
],
'mysql' => [
- 'driver' => 'mysql',
- 'host' => env('DB_HOST', 'localhost'),
- 'database' => env('DB_DATABASE', 'forge'),
- 'username' => env('DB_USERNAME', 'forge'),
- 'password' => env('DB_PASSWORD', ''),
- 'charset' => 'utf8',
+ 'driver' => 'mysql',
+ 'host' => env('DB_HOST', 'localhost'),
+ 'database' => env('DB_DATABASE', 'forge'),
+ 'username' => env('DB_USERNAME', 'forge'),
+ 'password' => env('DB_PASSWORD', ''),
+ 'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
- 'prefix' => env('DB_PREFIX', ''),
- 'strict' => false,
+ 'prefix' => env('DB_PREFIX', ''),
+ 'strict' => false,
],
'pgsql' => [
- 'driver' => 'pgsql',
- 'host' => env('DB_HOST', 'localhost'),
+ 'driver' => 'pgsql',
+ 'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
- 'charset' => 'utf8',
- 'prefix' => env('DB_PREFIX', ''),
- 'schema' => 'public',
+ 'charset' => 'utf8',
+ 'prefix' => env('DB_PREFIX', ''),
+ 'schema' => 'public',
],
'sqlsrv' => [
- 'driver' => 'sqlsrv',
- 'host' => env('DB_HOST', 'localhost'),
+ 'driver' => 'sqlsrv',
+ 'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
- 'prefix' => env('DB_PREFIX', ''),
+ 'prefix' => env('DB_PREFIX', ''),
],
],
@@ -115,8 +115,8 @@
'cluster' => false,
'default' => [
- 'host' => '127.0.0.1',
- 'port' => 6379,
+ 'host' => '127.0.0.1',
+ 'port' => 6379,
'database' => 0,
],
diff --git a/config/debugbar.php b/config/debugbar.php
index 3a243a14f..05383f249 100644
--- a/config/debugbar.php
+++ b/config/debugbar.php
@@ -70,25 +70,25 @@
*/
'collectors' => array(
- 'phpinfo' => true, // Php version
- 'messages' => true, // Messages
- 'time' => true, // Time Datalogger
- 'memory' => true, // Memory usage
- 'exceptions' => true, // Exception displayer
- 'log' => true, // Logs from Monolog (merged in messages if enabled)
- 'db' => true, // Show database (PDO) queries and bindings
- 'views' => true, // Views with their data
- 'route' => true, // Current route information
- 'laravel' => true, // Laravel version and environment
- 'events' => true, // All events fired
+ 'phpinfo' => true, // Php version
+ 'messages' => true, // Messages
+ 'time' => true, // Time Datalogger
+ 'memory' => true, // Memory usage
+ 'exceptions' => true, // Exception displayer
+ 'log' => true, // Logs from Monolog (merged in messages if enabled)
+ 'db' => true, // Show database (PDO) queries and bindings
+ 'views' => true, // Views with their data
+ 'route' => true, // Current route information
+ 'laravel' => true, // Laravel version and environment
+ 'events' => true, // All events fired
'default_request' => true, // Regular or special Symfony request logger
'symfony_request' => true, // Only one can be enabled..
- 'mail' => true, // Catch mail messages
- 'logs' => true, // Add the latest log messages
- 'files' => true, // Show the included files
- 'config' => true, // Display config settings
- 'auth' => true, // Display Laravel authentication status
- 'session' => true, // Display session data in a separate tab
+ 'mail' => true, // Catch mail messages
+ 'logs' => true, // Add the latest log messages
+ 'files' => true, // Show the included files
+ 'config' => true, // Display config settings
+ 'auth' => true, // Display Laravel authentication status
+ 'session' => true, // Display session data in a separate tab
),
/*
@@ -105,14 +105,14 @@
'show_name' => false, // Also show the users name/email in the debugbar
),
'db' => array(
- 'with_params' => true, // Render SQL with the parameters substituted
- 'timeline' => false, // Add the queries to the timeline
- 'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files.
+ 'with_params' => true, // Render SQL with the parameters substituted
+ 'timeline' => false, // Add the queries to the timeline
+ 'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files.
'explain' => array(// EXPERIMENTAL: Show EXPLAIN output on queries
'enabled' => false,
'types' => array('SELECT'), // array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+
),
- 'hints' => true, // Show hints for common mistakes
+ 'hints' => true, // Show hints for common mistakes
),
'mail' => array(
'full_log' => false,
diff --git a/config/excel.php b/config/excel.php
index 05dc6fdc6..a6791039a 100644
--- a/config/excel.php
+++ b/config/excel.php
@@ -2,14 +2,14 @@
return array(
- 'cache' => array(
+ 'cache' => array(
/*
|--------------------------------------------------------------------------
| Enable/Disable cell caching
|--------------------------------------------------------------------------
*/
- 'enable' => true,
+ 'enable' => true,
/*
|--------------------------------------------------------------------------
@@ -22,7 +22,7 @@
| memory|gzip|serialized|igbinary|discISAM|apc|memcache|temp|wincache|sqlite|sqlite3
|
*/
- 'driver' => 'memory',
+ 'driver' => 'memory',
/*
|--------------------------------------------------------------------------
@@ -32,7 +32,7 @@
'settings' => array(
'memoryCacheSize' => '32MB',
- 'cacheTime' => 600,
+ 'cacheTime' => 600,
),
@@ -54,19 +54,19 @@
|--------------------------------------------------------------------------
*/
- 'dir' => storage_path('cache'),
+ 'dir' => storage_path('cache'),
),
'properties' => array(
- 'creator' => 'Maatwebsite',
+ 'creator' => 'Maatwebsite',
'lastModifiedBy' => 'Maatwebsite',
- 'title' => 'Spreadsheet',
- 'description' => 'Default spreadsheet export',
- 'subject' => 'Spreadsheet export',
- 'keywords' => 'maatwebsite, excel, export',
- 'category' => 'Excel',
- 'manager' => 'Maatwebsite',
- 'company' => 'Maatwebsite',
+ 'title' => 'Spreadsheet',
+ 'description' => 'Default spreadsheet export',
+ 'subject' => 'Spreadsheet export',
+ 'keywords' => 'maatwebsite, excel, export',
+ 'category' => 'Excel',
+ 'manager' => 'Maatwebsite',
+ 'company' => 'Maatwebsite',
),
/*
@@ -74,7 +74,7 @@
| Sheets settings
|--------------------------------------------------------------------------
*/
- 'sheets' => array(
+ 'sheets' => array(
/*
|--------------------------------------------------------------------------
@@ -82,18 +82,18 @@
|--------------------------------------------------------------------------
*/
'pageSetup' => array(
- 'orientation' => 'portrait',
- 'paperSize' => '9',
- 'scale' => '100',
- 'fitToPage' => false,
- 'fitToHeight' => true,
- 'fitToWidth' => true,
+ 'orientation' => 'portrait',
+ 'paperSize' => '9',
+ 'scale' => '100',
+ 'fitToPage' => false,
+ 'fitToHeight' => true,
+ 'fitToWidth' => true,
'columnsToRepeatAtLeft' => array('', ''),
- 'rowsToRepeatAtTop' => array(0, 0),
- 'horizontalCentered' => false,
- 'verticalCentered' => false,
- 'printArea' => null,
- 'firstPageNumber' => null,
+ 'rowsToRepeatAtTop' => array(0, 0),
+ 'horizontalCentered' => false,
+ 'verticalCentered' => false,
+ 'printArea' => null,
+ 'firstPageNumber' => null,
),
),
@@ -106,9 +106,9 @@
|
*/
- 'creator' => 'Maatwebsite',
+ 'creator' => 'Maatwebsite',
- 'csv' => array(
+ 'csv' => array(
/*
|--------------------------------------------------------------------------
| Delimiter
@@ -118,7 +118,7 @@
|
*/
- 'delimiter' => ',',
+ 'delimiter' => ',',
/*
|--------------------------------------------------------------------------
@@ -126,7 +126,7 @@
|--------------------------------------------------------------------------
*/
- 'enclosure' => '"',
+ 'enclosure' => '"',
/*
|--------------------------------------------------------------------------
@@ -137,7 +137,7 @@
'line_ending' => "\r\n",
),
- 'export' => array(
+ 'export' => array(
/*
|--------------------------------------------------------------------------
@@ -148,7 +148,7 @@
| an array of columns ( array('A', 'B') )
|
*/
- 'autosize' => true,
+ 'autosize' => true,
/*
|--------------------------------------------------------------------------
@@ -171,7 +171,7 @@
| having the appropriate fonts installed.
|
*/
- 'autosize-method' => PHPExcel_Shared_Font::AUTOSIZE_METHOD_APPROX,
+ 'autosize-method' => PHPExcel_Shared_Font::AUTOSIZE_METHOD_APPROX,
/*
|--------------------------------------------------------------------------
@@ -189,28 +189,28 @@
| Auto set alignment on merged cells
|--------------------------------------------------------------------------
*/
- 'merged_cell_alignment' => 'left',
+ 'merged_cell_alignment' => 'left',
/*
|--------------------------------------------------------------------------
| Pre-calculate formulas during export
|--------------------------------------------------------------------------
*/
- 'calculate' => false,
+ 'calculate' => false,
/*
|--------------------------------------------------------------------------
| Include Charts during export
|--------------------------------------------------------------------------
*/
- 'includeCharts' => false,
+ 'includeCharts' => false,
/*
|--------------------------------------------------------------------------
| Default sheet settings
|--------------------------------------------------------------------------
*/
- 'sheets' => array(
+ 'sheets' => array(
/*
|--------------------------------------------------------------------------
@@ -224,21 +224,21 @@
| Default order: array(top, right, bottom, left)
|
*/
- 'page_margin' => false,
+ 'page_margin' => false,
/*
|--------------------------------------------------------------------------
| Value in source array that stands for blank cell
|--------------------------------------------------------------------------
*/
- 'nullValue' => null,
+ 'nullValue' => null,
/*
|--------------------------------------------------------------------------
| Insert array starting from this cell address as the top left coordinate
|--------------------------------------------------------------------------
*/
- 'startCell' => 'A1',
+ 'startCell' => 'A1',
/*
|--------------------------------------------------------------------------
@@ -254,7 +254,7 @@
|--------------------------------------------------------------------------
*/
- 'store' => array(
+ 'store' => array(
/*
|--------------------------------------------------------------------------
@@ -264,7 +264,7 @@
| The path we want to save excel file to
|
*/
- 'path' => storage_path('exports'),
+ 'path' => storage_path('exports'),
/*
|--------------------------------------------------------------------------
@@ -283,7 +283,7 @@
| PDF Settings
|--------------------------------------------------------------------------
*/
- 'pdf' => array(
+ 'pdf' => array(
/*
|--------------------------------------------------------------------------
@@ -291,7 +291,7 @@
|--------------------------------------------------------------------------
| Supported: DomPDF, tcPDF, mPDF
*/
- 'driver' => 'DomPDF',
+ 'driver' => 'DomPDF',
/*
|--------------------------------------------------------------------------
@@ -314,7 +314,7 @@
| tcPDF settings
|--------------------------------------------------------------------------
*/
- 'tcPDF' => array(
+ 'tcPDF' => array(
'path' => base_path('vendor/tecnick.com/tcpdf/'),
),
@@ -323,14 +323,14 @@
| mPDF settings
|--------------------------------------------------------------------------
*/
- 'mPDF' => array(
+ 'mPDF' => array(
'path' => base_path('vendor/mpdf/mpdf/'),
),
),
),
),
- 'filters' => array(
+ 'filters' => array(
/*
|--------------------------------------------------------------------------
| Register read filters
@@ -347,10 +347,10 @@
|--------------------------------------------------------------------------
*/
- 'enabled' => array(),
+ 'enabled' => array(),
),
- 'import' => array(
+ 'import' => array(
/*
|--------------------------------------------------------------------------
@@ -363,7 +363,7 @@
|
*/
- 'heading' => 'slugged',
+ 'heading' => 'slugged',
/*
|--------------------------------------------------------------------------
@@ -375,7 +375,7 @@
|
*/
- 'startRow' => 1,
+ 'startRow' => 1,
/*
|--------------------------------------------------------------------------
@@ -387,7 +387,7 @@
|
*/
- 'separator' => '_',
+ 'separator' => '_',
/*
|--------------------------------------------------------------------------
@@ -395,7 +395,7 @@
|--------------------------------------------------------------------------
*/
- 'includeCharts' => false,
+ 'includeCharts' => false,
/*
|--------------------------------------------------------------------------
@@ -407,7 +407,7 @@
|
*/
- 'to_ascii' => true,
+ 'to_ascii' => true,
/*
|--------------------------------------------------------------------------
@@ -415,9 +415,9 @@
|--------------------------------------------------------------------------
*/
- 'encoding' => array(
+ 'encoding' => array(
- 'input' => 'UTF-8',
+ 'input' => 'UTF-8',
'output' => 'UTF-8',
),
@@ -431,7 +431,7 @@
|
*/
- 'calculate' => true,
+ 'calculate' => true,
/*
|--------------------------------------------------------------------------
@@ -442,7 +442,7 @@
|
*/
- 'ignoreEmpty' => false,
+ 'ignoreEmpty' => false,
/*
|--------------------------------------------------------------------------
@@ -466,7 +466,7 @@
|
*/
- 'dates' => array(
+ 'dates' => array(
/*
|--------------------------------------------------------------------------
@@ -483,7 +483,7 @@
| If set to false, a carbon object will return
|
*/
- 'format' => false,
+ 'format' => false,
/*
|--------------------------------------------------------------------------
@@ -498,7 +498,7 @@
| Import sheets by config
|--------------------------------------------------------------------------
*/
- 'sheets' => array(
+ 'sheets' => array(
/*
|--------------------------------------------------------------------------
@@ -518,7 +518,7 @@
),
),
- 'views' => array(
+ 'views' => array(
/*
|--------------------------------------------------------------------------
@@ -536,7 +536,7 @@
| Table headings
|--------------------------------------------------------------------------
*/
- 'th' => array(
+ 'th' => array(
'font' => array(
'bold' => true,
'size' => 12,
@@ -560,7 +560,7 @@
| Bold tags
|--------------------------------------------------------------------------
*/
- 'b' => array(
+ 'b' => array(
'font' => array(
'bold' => true,
'size' => 12,
@@ -572,10 +572,10 @@
| Italic tags
|--------------------------------------------------------------------------
*/
- 'i' => array(
+ 'i' => array(
'font' => array(
'italic' => true,
- 'size' => 12,
+ 'size' => 12,
),
),
@@ -584,7 +584,7 @@
| Heading 1
|--------------------------------------------------------------------------
*/
- 'h1' => array(
+ 'h1' => array(
'font' => array(
'bold' => true,
'size' => 24,
@@ -596,7 +596,7 @@
| Heading 2
|--------------------------------------------------------------------------
*/
- 'h2' => array(
+ 'h2' => array(
'font' => array(
'bold' => true,
'size' => 18,
@@ -608,7 +608,7 @@
| Heading 2
|--------------------------------------------------------------------------
*/
- 'h3' => array(
+ 'h3' => array(
'font' => array(
'bold' => true,
'size' => 13.5,
@@ -620,7 +620,7 @@
| Heading 4
|--------------------------------------------------------------------------
*/
- 'h4' => array(
+ 'h4' => array(
'font' => array(
'bold' => true,
'size' => 12,
@@ -632,7 +632,7 @@
| Heading 5
|--------------------------------------------------------------------------
*/
- 'h5' => array(
+ 'h5' => array(
'font' => array(
'bold' => true,
'size' => 10,
@@ -644,7 +644,7 @@
| Heading 6
|--------------------------------------------------------------------------
*/
- 'h6' => array(
+ 'h6' => array(
'font' => array(
'bold' => true,
'size' => 7.5,
@@ -656,10 +656,10 @@
| Hyperlinks
|--------------------------------------------------------------------------
*/
- 'a' => array(
+ 'a' => array(
'font' => array(
'underline' => true,
- 'color' => array('argb' => 'FF0000FF'),
+ 'color' => array('argb' => 'FF0000FF'),
),
),
@@ -668,7 +668,7 @@
| Horizontal rules
|--------------------------------------------------------------------------
*/
- 'hr' => array(
+ 'hr' => array(
'borders' => array(
'bottom' => array(
'style' => 'thin',
diff --git a/config/filesystems.php b/config/filesystems.php
index c636d36c3..778fb2002 100644
--- a/config/filesystems.php
+++ b/config/filesystems.php
@@ -45,24 +45,24 @@
'local' => [
'driver' => 'local',
- 'root' => storage_path().'/app',
+ 'root' => storage_path().'/app',
],
's3' => [
'driver' => 's3',
- 'key' => 'your-key',
+ 'key' => 'your-key',
'secret' => 'your-secret',
'region' => 'your-region',
'bucket' => 'your-bucket',
],
'rackspace' => [
- 'driver' => 'rackspace',
- 'username' => 'your-username',
- 'key' => 'your-key',
+ 'driver' => 'rackspace',
+ 'username' => 'your-username',
+ 'key' => 'your-key',
'container' => 'your-container',
- 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
- 'region' => 'IAD',
+ 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
+ 'region' => 'IAD',
],
],
diff --git a/config/former.php b/config/former.php
index a39da3d65..f0d81bfb7 100644
--- a/config/former.php
+++ b/config/former.php
@@ -6,58 +6,58 @@
////////////////////////////////////////////////////////////////////
// Whether labels should be automatically computed from name
- 'automatic_label' => true,
+ 'automatic_label' => true,
// The default form type
- 'default_form_type' => 'horizontal',
+ 'default_form_type' => 'horizontal',
// The framework to be used by Former
- 'framework' => 'TwitterBootstrap3',
+ 'framework' => 'TwitterBootstrap3',
// Validation
////////////////////////////////////////////////////////////////////
// Whether Former should fetch errors from Session
- 'fetch_errors' => true,
+ 'fetch_errors' => true,
// Whether Former should try to apply Validator rules as attributes
- 'live_validation' => true,
+ 'live_validation' => true,
// Whether Former should automatically fetch error messages and
// display them next to the matching fields
- 'error_messages' => true,
+ 'error_messages' => true,
// Checkables
////////////////////////////////////////////////////////////////////
// Whether checkboxes should always be present in the POST data,
// no matter if you checked them or not
- 'push_checkboxes' => false,
+ 'push_checkboxes' => false,
// The value a checkbox will have in the POST array if unchecked
- 'unchecked_value' => 0,
+ 'unchecked_value' => 0,
// Required fields
////////////////////////////////////////////////////////////////////
// The class to be added to required fields
- 'required_class' => 'required',
+ 'required_class' => 'required',
// A facultative text to append to the labels of required fields
- 'required_text' => '*',
+ 'required_text' => '*',
// Translations
////////////////////////////////////////////////////////////////////
// Where Former should look for translations
- 'translate_from' => 'validation.attributes',
+ 'translate_from' => 'validation.attributes',
// Whether text that comes out of the translated
// should be capitalized (ex: email => Email) automatically
'capitalize_translations' => true,
// An array of attributes to automatically translate
- 'translatable' => array(
+ 'translatable' => array(
'help',
'inlineHelp',
'blockHelp',
diff --git a/config/mail.php b/config/mail.php
index 5bf7f77aa..098e99b27 100644
--- a/config/mail.php
+++ b/config/mail.php
@@ -15,7 +15,7 @@
|
*/
- 'driver' => 'smtp',
+ 'driver' => 'smtp',
/*
|--------------------------------------------------------------------------
| SMTP Host Address
@@ -27,7 +27,7 @@
|
*/
- 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
+ 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
/*
|--------------------------------------------------------------------------
| SMTP Host Port
@@ -39,7 +39,7 @@
|
*/
- 'port' => env('MAIL_PORT', 587),
+ 'port' => env('MAIL_PORT', 587),
/*
|--------------------------------------------------------------------------
| Global "From" Address
@@ -51,7 +51,7 @@
|
*/
- 'from' => ['address' => env('MAIL_ADDRESS', ''), 'name' => env('MAIL_NAME', '')],
+ 'from' => ['address' => env('MAIL_ADDRESS', ''), 'name' => env('MAIL_NAME', '')],
/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
@@ -75,7 +75,7 @@
|
*/
- 'username' => env('MAIL_USERNAME', null),
+ 'username' => env('MAIL_USERNAME', null),
/*
|--------------------------------------------------------------------------
| SMTP Server Password
@@ -87,7 +87,7 @@
|
*/
- 'password' => env('MAIL_PASSWORD', null),
+ 'password' => env('MAIL_PASSWORD', null),
/*
|--------------------------------------------------------------------------
| Sendmail System Path
@@ -99,7 +99,7 @@
|
*/
- 'sendmail' => '/usr/sbin/sendmail -bs',
+ 'sendmail' => '/usr/sbin/sendmail -bs',
/*
|--------------------------------------------------------------------------
| Mail "Pretend"
@@ -111,6 +111,6 @@
|
*/
- 'pretend' => false,
+ 'pretend' => false,
];
diff --git a/config/queue.php b/config/queue.php
index 3b8f5d36b..8dc8da3b0 100644
--- a/config/queue.php
+++ b/config/queue.php
@@ -44,31 +44,31 @@
'beanstalkd' => [
'driver' => 'beanstalkd',
- 'host' => 'localhost',
- 'queue' => 'default',
- 'ttr' => 60,
+ 'host' => 'localhost',
+ 'queue' => 'default',
+ 'ttr' => 60,
],
'sqs' => [
'driver' => 'sqs',
- 'key' => 'your-public-key',
+ 'key' => 'your-public-key',
'secret' => 'your-secret-key',
- 'queue' => 'your-queue-url',
+ 'queue' => 'your-queue-url',
'region' => 'us-east-1',
],
'iron' => [
- 'driver' => 'iron',
- 'host' => 'mq-aws-us-east-1.iron.io',
- 'token' => 'your-token',
+ 'driver' => 'iron',
+ 'host' => 'mq-aws-us-east-1.iron.io',
+ 'token' => 'your-token',
'project' => 'your-project-id',
- 'queue' => 'your-queue-name',
+ 'queue' => 'your-queue-name',
'encrypt' => true,
],
'redis' => [
'driver' => 'redis',
- 'queue' => 'default',
+ 'queue' => 'default',
'expire' => 60,
],
diff --git a/config/services.php b/config/services.php
index 5a2795a17..f51cb38bd 100644
--- a/config/services.php
+++ b/config/services.php
@@ -30,7 +30,7 @@
],
'stripe' => [
- 'model' => 'User',
+ 'model' => 'User',
'secret' => '',
],
diff --git a/database/migrations/2015_02_23_001316_create_database.php b/database/migrations/2015_02_23_001316_create_database.php
index af122885c..a2140637f 100644
--- a/database/migrations/2015_02_23_001316_create_database.php
+++ b/database/migrations/2015_02_23_001316_create_database.php
@@ -153,44 +153,44 @@ public function up()
// Insert Permisions Data
$permissions = [
[
- 'permission' => 'issue-view',
+ 'permission' => 'issue-view',
'description' => 'View issues in project assigned to',
- 'auto_has' => null,
+ 'auto_has' => null,
],
[
- 'permission' => 'issue-create',
+ 'permission' => 'issue-create',
'description' => 'Create issues in projects assigned to',
- 'auto_has' => null,
+ 'auto_has' => null,
],
[
- 'permission' => 'issue-comment',
+ 'permission' => 'issue-comment',
'description' => 'Comment in issues in projects assigned to',
- 'auto_has' => '1',
+ 'auto_has' => '1',
],
[
- 'permission' => 'issue-modify',
+ 'permission' => 'issue-modify',
'description' => 'Modify issues in projects assigned to',
- 'auto_has' => '1',
+ 'auto_has' => '1',
],
[
- 'permission' => 'administration',
+ 'permission' => 'administration',
'description' => 'Administration tools, such as user management and application settings',
- 'auto_has' => null,
+ 'auto_has' => null,
],
[
- 'permission' => 'project-create',
+ 'permission' => 'project-create',
'description' => 'Create a new project',
- 'auto_has' => null,
+ 'auto_has' => null,
],
[
- 'permission' => 'project-modify',
+ 'permission' => 'project-modify',
'description' => 'Modify a project assigned to',
- 'auto_has' => null,
+ 'auto_has' => null,
],
[
- 'permission' => 'project-all',
+ 'permission' => 'project-all',
'description' => 'View, modify all projects and issues',
- 'auto_has' => '1,2,3,4',
+ 'auto_has' => '1,2,3,4',
],
];
foreach ($permissions as $permission) {
@@ -200,23 +200,23 @@ public function up()
// Insert Roles Data
$roles = [
[
- 'name' => 'User',
- 'role' => 'user',
+ 'name' => 'User',
+ 'role' => 'user',
'description' => 'Only can read the issues in the projects they are assigned to',
],
[
- 'name' => 'Developer',
- 'role' => 'developer',
+ 'name' => 'Developer',
+ 'role' => 'developer',
'description' => 'Can update issues in the projects they are assigned to',
],
[
- 'name' => 'Manager',
- 'role' => 'manager',
+ 'name' => 'Manager',
+ 'role' => 'manager',
'description' => 'Can update issues in all projects, even if they aren\'t assigned',
],
[
- 'name' => 'Administrator',
- 'role' => 'administrator',
+ 'name' => 'Administrator',
+ 'role' => 'administrator',
'description' => 'Can update all issues in all projects, create users and view administration',
],
];
diff --git a/database/migrations/2015_02_26_093316_create_issue_tags.php b/database/migrations/2015_02_26_093316_create_issue_tags.php
index ef3687279..917f00780 100644
--- a/database/migrations/2015_02_26_093316_create_issue_tags.php
+++ b/database/migrations/2015_02_26_093316_create_issue_tags.php
@@ -46,39 +46,39 @@ public function up()
$tags = [
[
- 'name' => 'open',
+ 'name' => 'open',
'parent_id' => 'status',
- 'bgcolor' => '#c43c35',
+ 'bgcolor' => '#c43c35',
],
[
- 'name' => 'testing',
+ 'name' => 'testing',
'parent_id' => 'status',
- 'bgcolor' => '#6c8307',
+ 'bgcolor' => '#6c8307',
],
[
- 'name' => 'closed',
+ 'name' => 'closed',
'parent_id' => 'status',
- 'bgcolor' => '#46a546',
+ 'bgcolor' => '#46a546',
],
[
- 'name' => 'feature',
+ 'name' => 'feature',
'parent_id' => 'type',
- 'bgcolor' => '#62cffc',
+ 'bgcolor' => '#62cffc',
],
[
- 'name' => 'bug',
+ 'name' => 'bug',
'parent_id' => 'type',
- 'bgcolor' => '#f89406',
+ 'bgcolor' => '#f89406',
],
[
- 'name' => 'won\'t fix',
+ 'name' => 'won\'t fix',
'parent_id' => 'resolution',
- 'bgcolor' => '#812323',
+ 'bgcolor' => '#812323',
],
[
- 'name' => 'fixed',
+ 'name' => 'fixed',
'parent_id' => 'resolution',
- 'bgcolor' => '#048383',
+ 'bgcolor' => '#048383',
],
];
foreach ($tags as $tag) {
diff --git a/database/migrations/2016_01_08_141433_add_settings_public_projects.php b/database/migrations/2016_01_08_141433_add_settings_public_projects.php
index 74a909732..714d11bd9 100644
--- a/database/migrations/2016_01_08_141433_add_settings_public_projects.php
+++ b/database/migrations/2016_01_08_141433_add_settings_public_projects.php
@@ -12,7 +12,7 @@ class AddSettingsPublicProjects extends Migration
*/
protected $data = [
'enable_public_projects' => [
- 'name' => 'enable_public_projects',
+ 'name' => 'enable_public_projects',
'value' => false,
],
];
@@ -27,9 +27,9 @@ public function up()
foreach ($this->data as $key => $row) {
$settings = new Setting();
$settings->fill([
- 'name' => $row['name'],
+ 'name' => $row['name'],
'value' => $row['value'],
- 'key' => $key,
+ 'key' => $key,
])->save();
unset($settings);
}
diff --git a/resources/lang/en/pagination.php b/resources/lang/en/pagination.php
index fcab34b25..d48141187 100644
--- a/resources/lang/en/pagination.php
+++ b/resources/lang/en/pagination.php
@@ -14,6 +14,6 @@
*/
'previous' => '« Previous',
- 'next' => 'Next »',
+ 'next' => 'Next »',
];
diff --git a/resources/lang/en/tinyissue.php b/resources/lang/en/tinyissue.php
index 4945857c7..550580561 100644
--- a/resources/lang/en/tinyissue.php
+++ b/resources/lang/en/tinyissue.php
@@ -1,199 +1,199 @@
'Welcome',
- 'anonymous' => 'Anonymous',
- 'signin' => 'Sign In',
- 'active_users' => 'Active Users',
- 'active_users_description' => 'Quick list of active users',
- 'public' => 'Public',
- 'private' => 'Private',
- 'users' => 'Users',
- 'administration' => 'Administration',
- 'logout' => 'Logout',
- 'dashboard' => 'Dashboard',
- 'your_issues' => 'Your Issues',
- 'project' => 'Project',
- 'projects' => 'Projects',
- 'settings' => 'Settings',
- 'active_projects' => 'Active Projects',
- 'active_projects_description' => 'Quick list of your active projects',
- 'public_projects_description' => 'Quick list of active projects',
- 'saving' => 'Saving',
- 'projects_description' => 'List of all your projects',
- 'projects_description_guest' => 'List of all public projects',
- 'new' => 'New',
- 'active' => 'Active',
- 'archived' => 'Archived',
- 'archived_projects' => 'Archived Projects',
- 'open_issue' => 'Open Issue',
- 'open_issues' => 'Open Issues',
- 'closed_issue' => 'Closed Issue',
- 'closed_issues' => 'Closed Issues',
- 'issue_assigned_to_you' => 'Issue Assigned To You',
- 'issues_assigned_to_you' => 'Issues Assigned To You',
- 'you_do_not_have_any_projects' => 'You do not have any projects . ',
- 'create_project' => 'Create a new project!',
- 'create_a_new_project' => 'Create a new project',
- 'create_a_new_project_description' => 'Create a new project and select users to assign to it . You can assign users later as well . ',
- 'name' => 'Name',
- 'remove' => 'Remove',
- 'assign_users' => 'Assign Users',
- 'new_issue' => 'New Issue',
- 'project_overview' => 'Project Overview',
- 'activity' => 'Activity',
- 'edit' => 'Edit',
+ 'welcome' => 'Welcome',
+ 'anonymous' => 'Anonymous',
+ 'signin' => 'Sign In',
+ 'active_users' => 'Active Users',
+ 'active_users_description' => 'Quick list of active users',
+ 'public' => 'Public',
+ 'private' => 'Private',
+ 'users' => 'Users',
+ 'administration' => 'Administration',
+ 'logout' => 'Logout',
+ 'dashboard' => 'Dashboard',
+ 'your_issues' => 'Your Issues',
+ 'project' => 'Project',
+ 'projects' => 'Projects',
+ 'settings' => 'Settings',
+ 'active_projects' => 'Active Projects',
+ 'active_projects_description' => 'Quick list of your active projects',
+ 'public_projects_description' => 'Quick list of active projects',
+ 'saving' => 'Saving',
+ 'projects_description' => 'List of all your projects',
+ 'projects_description_guest' => 'List of all public projects',
+ 'new' => 'New',
+ 'active' => 'Active',
+ 'archived' => 'Archived',
+ 'archived_projects' => 'Archived Projects',
+ 'open_issue' => 'Open Issue',
+ 'open_issues' => 'Open Issues',
+ 'closed_issue' => 'Closed Issue',
+ 'closed_issues' => 'Closed Issues',
+ 'issue_assigned_to_you' => 'Issue Assigned To You',
+ 'issues_assigned_to_you' => 'Issues Assigned To You',
+ 'you_do_not_have_any_projects' => 'You do not have any projects . ',
+ 'create_project' => 'Create a new project!',
+ 'create_a_new_project' => 'Create a new project',
+ 'create_a_new_project_description' => 'Create a new project and select users to assign to it . You can assign users later as well . ',
+ 'name' => 'Name',
+ 'remove' => 'Remove',
+ 'assign_users' => 'Assign Users',
+ 'new_issue' => 'New Issue',
+ 'project_overview' => 'Project Overview',
+ 'activity' => 'Activity',
+ 'edit' => 'Edit',
'assign_users_and_edit_the_project' => 'Assign users and edit the project',
- 'assigned_users' => 'Assigned Users',
- 'assigned_users_description' => 'Users assigned to this project',
- 'assign_a_user' => 'Assign a user',
- 'no_activity' => 'This project does not have any activity!',
- 'no_issues' => 'This project does not have any issues!',
- 'created_by' => 'Created By',
- 'updated_by' => 'Updated By',
- 'update' => 'Update',
- 'update_project_description' => 'Change the name, status or delete this project',
- 'status' => 'Status',
- 'delete' => 'Delete',
- 'delete_project_confirm' => 'Are you sure you want to delete this project ? There is no going back!',
- 'create_a_new_issue' => 'Create A New Issue',
- 'create_a_new_issue_description' => 'Create a new issue for any of your projects . ',
- 'create_a_new_issue_in' => 'Create a new issue in project',
- 'title' => 'Title',
- 'issue' => 'Issue',
- 'assigned_to' => 'Assigned To',
- 'attachments' => 'Attachments',
- 'create_issue' => 'Create Issue',
- 'on_project' => 'On Project',
- 'opened_this_issue' => 'opened this issue',
- 'commented' => 'Commented',
- 'save' => 'Save',
- 'cancel' => 'Cancel',
- 'comment_on_this_issue' => 'Comment on this issue:',
- 'no_one' => 'No one',
- 'close_issue' => 'Close Issue',
- 'close_issue_confirm' => 'Are you sure you want to close this issue ? ',
- 'closed_by' => 'Closed By',
- 'on' => 'on',
- 'reopen' => 'Reopen',
- 'reopen_issue' => 'Reopen Issue',
- 'comment' => 'Comment',
- 'edit_issue' => 'Edit Issue',
- 'edit_issue_in' => 'Edit an issue in project',
- 'update_issue' => 'Update Issue',
- 'your_issues_description' => 'Issues that are assigned to you',
- 'my_settings' => 'My Settings',
- 'my_settings_description' => 'Update your personal settings',
- 'first_name' => 'First Name',
- 'last_name' => 'Last Name',
- 'email' => 'Email',
- 'new_password' => 'New Password',
- 'confirm' => 'Confirm',
- 'administration_description' => 'Global application statistics',
- 'total_users' => 'Total Users',
- 'version' => 'Version',
- 'version_release_date' => 'Version Release Date',
- 'users_description' => 'Add, modify and delete application wide users',
- 'delete_user_confirm' => 'Are you sure you wish to delete this user ? ',
- 'add_new_user' => 'Add New User',
- 'update_user' => 'Update User',
- 'update_user_description' => 'Change the information for user',
- 'role' => 'Role',
- 'add_user' => 'Add User',
- 'password_incorrect' => 'Whoops, your username or password did not match . ',
- 'we_have_some_errors' => 'Whoops, we have some errors below . ',
- 'project_has_been_updated' => 'Project has been updated!',
- 'project_has_been_deleted' => 'The project has been deleted . ',
- 'settings_updated' => 'Settings Updated',
- 'issue_has_been_created' => 'Issue has been created!',
- 'issue_has_been_reopened' => 'This issue has been reopened . You can now work the issue . ',
- 'issue_has_been_closed' => 'This issue has been closed . It is now read - only . ',
- 'issue_has_been_updated' => 'This issue has been updated!',
- 'comment_deleted' => 'Comment Deleted',
- 'your_comment_added' => 'Your comment has been added!',
- 'you_put_no_comment' => 'You did not put in a comment!',
- 'user_deleted' => 'User Deleted',
- 'user_updated' => 'User Updated',
- 'user_added' => 'User Added',
- 'language' => 'Language',
- 'by' => 'by',
- 'to' => 'to',
- 'on_issue' => 'on issue',
- 'label_closed' => 'Closed',
- 'label_comment' => 'Comment',
- 'label_reopened' => 'Reopened',
- 'label_created' => 'Created',
- 'label_reassigned' => 'Reassigned',
- 'was_closed_by' => 'was closed by',
- 'was_reopened_by' => 'was reopened by',
- 'was_created_by' => 'was created by',
- 'was_reassigned_to' => 'was reassigned to',
- 'dashboard_description' => 'An overview of all the activity involving your active projects. ',
- 'public_issues' => 'Issues',
- 'public_issues_description' => 'An overview of all the activity involving the public projects. ',
- 'login' => 'Login',
- 'login_to_your_account' => 'Login to your account',
- 'delete_something' => 'Delete :name',
- 'loggedout' => 'Your are now logged out!',
- 'loading_project_activity' => 'Loading project activities...',
- 'subject_your_account' => 'Your Tiny Issue Account!',
- 'open' => 'Open',
- 'closed' => 'Closed',
- 'confirm_delete_comment' => 'Are sure you want to delete this comment ? ',
- 'confirm_unassign_user' => 'Are you sure you want to remove this user from the project ? ',
- 'change_project' => 'Change Project',
- 'default_assignee' => 'Default Assignee',
- 'time_quote' => 'Quote',
- 'total_quote' => 'Total Quote',
- 'short_hours' => 'hrs',
- 'short_minutes' => 'mins',
- 'short_seconds' => 'secs',
- 'hours' => 'hours',
- 'minutes' => 'minutes',
- 'seconds' => 'seconds',
- 'note' => 'Note',
- 'notes' => 'Notes',
- 'no_notes' => 'This project does not have any notes!',
- 'add_note' => 'Add Note',
- 'you_put_no_note' => 'You did not put in a note!',
- 'your_note_added' => 'Your note has been added!',
- 'noted' => 'Noted',
- 'confirm_delete_note' => 'Are you sure you want to remove this note from the project ? ',
- 'tags' => 'Tags',
- 'tags_list' => 'List of all tags available to be used in issues . ',
- 'add_tag' => 'New Tag',
- 'add_new_tag' => 'Add a new tag',
- 'create_tag' => 'Create Tag',
- 'update_tag_description' => 'Change the information for tag',
- 'update_tag' => 'Update Tag',
- 'tag_updated' => 'Tag has been updated!',
- 'tag_update' => 'tag update',
- 'tag_added' => 'tag:s added',
- 'tag_removed' => 'tag:s removed',
- 'in' => 'in',
- 'filter' => 'Filter',
- 'updated' => 'Updated',
- 'sortby' => 'Sort by',
- 'allusers' => 'All users',
- 'sort_asc' => 'asc',
- 'sort_desc' => 'desc',
- 'keywords' => 'Keywords',
- 'cant_edit_closed_issue' => 'Closed issue cannot be edited . ',
- 'add_files' => 'Add files...',
- 'delete_upload_file' => 'Deleting file...',
- 'error_uploadfailed' => 'Failed to upload . ',
- 'success_upload' => 'Upload success!',
- 'export_issues' => 'Export Issues',
- 'export_issues_description' => 'Export the issues of this project to file',
- 'export_format' => 'Format',
- 'csv' => 'CSV File',
- 'xls' => 'Excel 5',
- 'xlsx' => 'Excel 2007',
- 'download_export' => 'Download Export',
- 'id' => 'ID',
- 'export_xls_title' => 'Issues for project: :name (total: :count)',
- 'settings' => 'Settings',
- 'enable' => 'Enable',
- 'disable' => 'Disable',
- 'manage_settings_description' => 'Update the application global settings.',
+ 'assigned_users' => 'Assigned Users',
+ 'assigned_users_description' => 'Users assigned to this project',
+ 'assign_a_user' => 'Assign a user',
+ 'no_activity' => 'This project does not have any activity!',
+ 'no_issues' => 'This project does not have any issues!',
+ 'created_by' => 'Created By',
+ 'updated_by' => 'Updated By',
+ 'update' => 'Update',
+ 'update_project_description' => 'Change the name, status or delete this project',
+ 'status' => 'Status',
+ 'delete' => 'Delete',
+ 'delete_project_confirm' => 'Are you sure you want to delete this project ? There is no going back!',
+ 'create_a_new_issue' => 'Create A New Issue',
+ 'create_a_new_issue_description' => 'Create a new issue for any of your projects . ',
+ 'create_a_new_issue_in' => 'Create a new issue in project',
+ 'title' => 'Title',
+ 'issue' => 'Issue',
+ 'assigned_to' => 'Assigned To',
+ 'attachments' => 'Attachments',
+ 'create_issue' => 'Create Issue',
+ 'on_project' => 'On Project',
+ 'opened_this_issue' => 'opened this issue',
+ 'commented' => 'Commented',
+ 'save' => 'Save',
+ 'cancel' => 'Cancel',
+ 'comment_on_this_issue' => 'Comment on this issue:',
+ 'no_one' => 'No one',
+ 'close_issue' => 'Close Issue',
+ 'close_issue_confirm' => 'Are you sure you want to close this issue ? ',
+ 'closed_by' => 'Closed By',
+ 'on' => 'on',
+ 'reopen' => 'Reopen',
+ 'reopen_issue' => 'Reopen Issue',
+ 'comment' => 'Comment',
+ 'edit_issue' => 'Edit Issue',
+ 'edit_issue_in' => 'Edit an issue in project',
+ 'update_issue' => 'Update Issue',
+ 'your_issues_description' => 'Issues that are assigned to you',
+ 'my_settings' => 'My Settings',
+ 'my_settings_description' => 'Update your personal settings',
+ 'first_name' => 'First Name',
+ 'last_name' => 'Last Name',
+ 'email' => 'Email',
+ 'new_password' => 'New Password',
+ 'confirm' => 'Confirm',
+ 'administration_description' => 'Global application statistics',
+ 'total_users' => 'Total Users',
+ 'version' => 'Version',
+ 'version_release_date' => 'Version Release Date',
+ 'users_description' => 'Add, modify and delete application wide users',
+ 'delete_user_confirm' => 'Are you sure you wish to delete this user ? ',
+ 'add_new_user' => 'Add New User',
+ 'update_user' => 'Update User',
+ 'update_user_description' => 'Change the information for user',
+ 'role' => 'Role',
+ 'add_user' => 'Add User',
+ 'password_incorrect' => 'Whoops, your username or password did not match . ',
+ 'we_have_some_errors' => 'Whoops, we have some errors below . ',
+ 'project_has_been_updated' => 'Project has been updated!',
+ 'project_has_been_deleted' => 'The project has been deleted . ',
+ 'settings_updated' => 'Settings Updated',
+ 'issue_has_been_created' => 'Issue has been created!',
+ 'issue_has_been_reopened' => 'This issue has been reopened . You can now work the issue . ',
+ 'issue_has_been_closed' => 'This issue has been closed . It is now read - only . ',
+ 'issue_has_been_updated' => 'This issue has been updated!',
+ 'comment_deleted' => 'Comment Deleted',
+ 'your_comment_added' => 'Your comment has been added!',
+ 'you_put_no_comment' => 'You did not put in a comment!',
+ 'user_deleted' => 'User Deleted',
+ 'user_updated' => 'User Updated',
+ 'user_added' => 'User Added',
+ 'language' => 'Language',
+ 'by' => 'by',
+ 'to' => 'to',
+ 'on_issue' => 'on issue',
+ 'label_closed' => 'Closed',
+ 'label_comment' => 'Comment',
+ 'label_reopened' => 'Reopened',
+ 'label_created' => 'Created',
+ 'label_reassigned' => 'Reassigned',
+ 'was_closed_by' => 'was closed by',
+ 'was_reopened_by' => 'was reopened by',
+ 'was_created_by' => 'was created by',
+ 'was_reassigned_to' => 'was reassigned to',
+ 'dashboard_description' => 'An overview of all the activity involving your active projects. ',
+ 'public_issues' => 'Issues',
+ 'public_issues_description' => 'An overview of all the activity involving the public projects. ',
+ 'login' => 'Login',
+ 'login_to_your_account' => 'Login to your account',
+ 'delete_something' => 'Delete :name',
+ 'loggedout' => 'Your are now logged out!',
+ 'loading_project_activity' => 'Loading project activities...',
+ 'subject_your_account' => 'Your Tiny Issue Account!',
+ 'open' => 'Open',
+ 'closed' => 'Closed',
+ 'confirm_delete_comment' => 'Are sure you want to delete this comment ? ',
+ 'confirm_unassign_user' => 'Are you sure you want to remove this user from the project ? ',
+ 'change_project' => 'Change Project',
+ 'default_assignee' => 'Default Assignee',
+ 'time_quote' => 'Quote',
+ 'total_quote' => 'Total Quote',
+ 'short_hours' => 'hrs',
+ 'short_minutes' => 'mins',
+ 'short_seconds' => 'secs',
+ 'hours' => 'hours',
+ 'minutes' => 'minutes',
+ 'seconds' => 'seconds',
+ 'note' => 'Note',
+ 'notes' => 'Notes',
+ 'no_notes' => 'This project does not have any notes!',
+ 'add_note' => 'Add Note',
+ 'you_put_no_note' => 'You did not put in a note!',
+ 'your_note_added' => 'Your note has been added!',
+ 'noted' => 'Noted',
+ 'confirm_delete_note' => 'Are you sure you want to remove this note from the project ? ',
+ 'tags' => 'Tags',
+ 'tags_list' => 'List of all tags available to be used in issues . ',
+ 'add_tag' => 'New Tag',
+ 'add_new_tag' => 'Add a new tag',
+ 'create_tag' => 'Create Tag',
+ 'update_tag_description' => 'Change the information for tag',
+ 'update_tag' => 'Update Tag',
+ 'tag_updated' => 'Tag has been updated!',
+ 'tag_update' => 'tag update',
+ 'tag_added' => 'tag:s added',
+ 'tag_removed' => 'tag:s removed',
+ 'in' => 'in',
+ 'filter' => 'Filter',
+ 'updated' => 'Updated',
+ 'sortby' => 'Sort by',
+ 'allusers' => 'All users',
+ 'sort_asc' => 'asc',
+ 'sort_desc' => 'desc',
+ 'keywords' => 'Keywords',
+ 'cant_edit_closed_issue' => 'Closed issue cannot be edited . ',
+ 'add_files' => 'Add files...',
+ 'delete_upload_file' => 'Deleting file...',
+ 'error_uploadfailed' => 'Failed to upload . ',
+ 'success_upload' => 'Upload success!',
+ 'export_issues' => 'Export Issues',
+ 'export_issues_description' => 'Export the issues of this project to file',
+ 'export_format' => 'Format',
+ 'csv' => 'CSV File',
+ 'xls' => 'Excel 5',
+ 'xlsx' => 'Excel 2007',
+ 'download_export' => 'Download Export',
+ 'id' => 'ID',
+ 'export_xls_title' => 'Issues for project: :name (total: :count)',
+ 'settings' => 'Settings',
+ 'enable' => 'Enable',
+ 'disable' => 'Disable',
+ 'manage_settings_description' => 'Update the application global settings.',
];
diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php
index c6027e5c3..e78c4354e 100644
--- a/resources/lang/en/validation.php
+++ b/resources/lang/en/validation.php
@@ -13,66 +13,66 @@
|
*/
- 'accepted' => 'The :attribute must be accepted.',
- 'active_url' => 'The :attribute is not a valid URL.',
- 'after' => 'The :attribute must be a date after :date.',
- 'alpha' => 'The :attribute may only contain letters.',
- 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
- 'alpha_num' => 'The :attribute may only contain letters and numbers.',
- 'array' => 'The :attribute must be an array.',
- 'before' => 'The :attribute must be a date before :date.',
- 'between' => [
+ 'accepted' => 'The :attribute must be accepted.',
+ 'active_url' => 'The :attribute is not a valid URL.',
+ 'after' => 'The :attribute must be a date after :date.',
+ 'alpha' => 'The :attribute may only contain letters.',
+ 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
+ 'alpha_num' => 'The :attribute may only contain letters and numbers.',
+ 'array' => 'The :attribute must be an array.',
+ 'before' => 'The :attribute must be a date before :date.',
+ 'between' => [
'numeric' => 'The :attribute must be between :min and :max.',
- 'file' => 'The :attribute must be between :min and :max kilobytes.',
- 'string' => 'The :attribute must be between :min and :max characters.',
- 'array' => 'The :attribute must have between :min and :max items.',
+ 'file' => 'The :attribute must be between :min and :max kilobytes.',
+ 'string' => 'The :attribute must be between :min and :max characters.',
+ 'array' => 'The :attribute must have between :min and :max items.',
],
- 'boolean' => 'The :attribute field must be true or false.',
- 'confirmed' => 'The :attribute confirmation does not match.',
- 'date' => 'The :attribute is not a valid date.',
- 'date_format' => 'The :attribute does not match the format :format.',
- 'different' => 'The :attribute and :other must be different.',
- 'digits' => 'The :attribute must be :digits digits.',
- 'digits_between' => 'The :attribute must be between :min and :max digits.',
- 'email' => 'The :attribute must be a valid email address.',
- 'filled' => 'The :attribute field is required.',
- 'exists' => 'The selected :attribute is invalid.',
- 'image' => 'The :attribute must be an image.',
- 'in' => 'The selected :attribute is invalid.',
- 'integer' => 'The :attribute must be an integer.',
- 'ip' => 'The :attribute must be a valid IP address.',
- 'max' => [
+ 'boolean' => 'The :attribute field must be true or false.',
+ 'confirmed' => 'The :attribute confirmation does not match.',
+ 'date' => 'The :attribute is not a valid date.',
+ 'date_format' => 'The :attribute does not match the format :format.',
+ 'different' => 'The :attribute and :other must be different.',
+ 'digits' => 'The :attribute must be :digits digits.',
+ 'digits_between' => 'The :attribute must be between :min and :max digits.',
+ 'email' => 'The :attribute must be a valid email address.',
+ 'filled' => 'The :attribute field is required.',
+ 'exists' => 'The selected :attribute is invalid.',
+ 'image' => 'The :attribute must be an image.',
+ 'in' => 'The selected :attribute is invalid.',
+ 'integer' => 'The :attribute must be an integer.',
+ 'ip' => 'The :attribute must be a valid IP address.',
+ 'max' => [
'numeric' => 'The :attribute may not be greater than :max.',
- 'file' => 'The :attribute may not be greater than :max kilobytes.',
- 'string' => 'The :attribute may not be greater than :max characters.',
- 'array' => 'The :attribute may not have more than :max items.',
+ 'file' => 'The :attribute may not be greater than :max kilobytes.',
+ 'string' => 'The :attribute may not be greater than :max characters.',
+ 'array' => 'The :attribute may not have more than :max items.',
],
- 'mimes' => 'The :attribute must be a file of type: :values.',
- 'min' => [
+ 'mimes' => 'The :attribute must be a file of type: :values.',
+ 'min' => [
'numeric' => 'The :attribute must be at least :min.',
- 'file' => 'The :attribute must be at least :min kilobytes.',
- 'string' => 'The :attribute must be at least :min characters.',
- 'array' => 'The :attribute must have at least :min items.',
+ 'file' => 'The :attribute must be at least :min kilobytes.',
+ 'string' => 'The :attribute must be at least :min characters.',
+ 'array' => 'The :attribute must have at least :min items.',
],
- 'not_in' => 'The selected :attribute is invalid.',
- 'numeric' => 'The :attribute must be a number.',
- 'regex' => 'The :attribute format is invalid.',
- 'required' => 'The :attribute field is required.',
- 'required_if' => 'The :attribute field is required when :other is :value.',
- 'required_with' => 'The :attribute field is required when :values is present.',
- 'required_with_all' => 'The :attribute field is required when :values is present.',
- 'required_without' => 'The :attribute field is required when :values is not present.',
+ 'not_in' => 'The selected :attribute is invalid.',
+ 'numeric' => 'The :attribute must be a number.',
+ 'regex' => 'The :attribute format is invalid.',
+ 'required' => 'The :attribute field is required.',
+ 'required_if' => 'The :attribute field is required when :other is :value.',
+ 'required_with' => 'The :attribute field is required when :values is present.',
+ 'required_with_all' => 'The :attribute field is required when :values is present.',
+ 'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
- 'same' => 'The :attribute and :other must match.',
- 'size' => [
+ 'same' => 'The :attribute and :other must match.',
+ 'size' => [
'numeric' => 'The :attribute must be :size.',
- 'file' => 'The :attribute must be :size kilobytes.',
- 'string' => 'The :attribute must be :size characters.',
- 'array' => 'The :attribute must contain :size items.',
+ 'file' => 'The :attribute must be :size kilobytes.',
+ 'string' => 'The :attribute must be :size characters.',
+ 'array' => 'The :attribute must contain :size items.',
],
- 'unique' => 'The :attribute has already been taken.',
- 'url' => 'The :attribute format is invalid.',
- 'timezone' => 'The :attribute must be a valid zone.',
+ 'unique' => 'The :attribute has already been taken.',
+ 'url' => 'The :attribute format is invalid.',
+ 'timezone' => 'The :attribute must be a valid zone.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
@@ -83,7 +83,7 @@
| specify a specific custom language line for a given attribute rule.
|
*/
- 'custom' => [
+ 'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
@@ -98,8 +98,8 @@
| of "email". This simply helps us make messages a little cleaner.
|
*/
- 'attributes' => [
+ 'attributes' => [
'only_complete_if_changing_password' => 'Only complete if changing password',
- 'remember_me' => 'Remember me?',
+ 'remember_me' => 'Remember me?',
],
];
diff --git a/tests/_support/FunctionalHelper.php b/tests/_support/FunctionalHelper.php
index c8abc68d5..de28e729a 100644
--- a/tests/_support/FunctionalHelper.php
+++ b/tests/_support/FunctionalHelper.php
@@ -24,12 +24,12 @@ class FunctionalHelper extends \Codeception\Module
public function createUser($index = 0, $role = 1)
{
$user = new Model\User([
- 'email' => 'user' . $index . '@user.com',
+ 'email' => 'user' . $index . '@user.com',
'firstname' => 'User ' . $index,
- 'lastname' => 'One',
- 'password' => Hash::make('123'),
- 'role_id' => $role,
- 'language' => 'en',
+ 'lastname' => 'One',
+ 'password' => Hash::make('123'),
+ 'role_id' => $role,
+ 'language' => 'en',
]);
$user->deleted = Model\User::NOT_DELETED_USERS;
$user->save();
@@ -56,15 +56,15 @@ public function createIssue(
$project = $project ?: $this->createProject($index, [$assign]);
$issueData = [
- 'title' => 'Issue ' . $index,
- 'body' => 'body of issue ' . $index,
- 'time_quote' => [
+ 'title' => 'Issue ' . $index,
+ 'body' => 'body of issue ' . $index,
+ 'time_quote' => [
'h' => 0,
'm' => 0,
's' => 0,
],
'upload_token' => '-',
- 'tag' => '',
+ 'tag' => '',
];
$issueData['assigned_to'] = null !== $assign ? $assign->id : '';
@@ -121,7 +121,7 @@ public function createComment($index = 0, Model\User $user, Model\Project\Issue
$comment->setRelation('issue', $issue);
$comment->setRelation('user', $user);
$comment->createComment([
- 'comment' => 'Comment ' . $index,
+ 'comment' => 'Comment ' . $index,
'upload_token' => '-',
]);
@@ -142,7 +142,7 @@ public function createNote($index = 0, Model\User $user, Model\Project $project
$project = $project ?: $this->createProject($index);
$note = $project->notes()->firstOrCreate([
- 'body' => 'Note ' . $index,
+ 'body' => 'Note ' . $index,
'created_by' => $user->id,
]);
diff --git a/tests/_support/FunctionalTester.php b/tests/_support/FunctionalTester.php
new file mode 100644
index 000000000..1138c15c1
--- /dev/null
+++ b/tests/_support/FunctionalTester.php
@@ -0,0 +1,27 @@
+getScenario()->runStep(new \Codeception\Step\Action('getApplication', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * @param $app
+ *
+ * @see \Codeception\Module\Laravel5::setApplication()
+ */
+ public function setApplication($app)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('setApplication', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Disable middleware for the next requests.
+ *
+ * ``` php
+ * disableMiddleware();
+ * ?>
+ * ```
+ *
+ * @see \Codeception\Module\Laravel5::disableMiddleware()
+ */
+ public function disableMiddleware()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('disableMiddleware', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Disable events for the next requests.
+ *
+ * ``` php
+ * disableEvents();
+ * ?>
+ * ```
+ *
+ * @see \Codeception\Module\Laravel5::disableEvents()
+ */
+ public function disableEvents()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('disableEvents', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Make sure events fired during the test.
+ *
+ * ``` php
+ * seeEventTriggered('App\MyEvent');
+ * $I->seeEventTriggered(new App\Events\MyEvent());
+ * $I->seeEventTriggered('App\MyEvent', 'App\MyOtherEvent');
+ * $I->seeEventTriggered(['App\MyEvent', 'App\MyOtherEvent']);
+ * ?>
+ * ```
+ *
+ * @param $events
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeEventTriggered()
+ */
+ public function canSeeEventTriggered($events)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeEventTriggered', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Make sure events fired during the test.
+ *
+ * ``` php
+ * seeEventTriggered('App\MyEvent');
+ * $I->seeEventTriggered(new App\Events\MyEvent());
+ * $I->seeEventTriggered('App\MyEvent', 'App\MyOtherEvent');
+ * $I->seeEventTriggered(['App\MyEvent', 'App\MyOtherEvent']);
+ * ?>
+ * ```
+ *
+ * @param $events
+ *
+ * @see \Codeception\Module\Laravel5::seeEventTriggered()
+ */
+ public function seeEventTriggered($events)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeEventTriggered', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Make sure events did not fire during the test.
+ *
+ * ``` php
+ * dontSeeEventTriggered('App\MyEvent');
+ * $I->dontSeeEventTriggered(new App\Events\MyEvent());
+ * $I->dontSeeEventTriggered('App\MyEvent', 'App\MyOtherEvent');
+ * $I->dontSeeEventTriggered(['App\MyEvent', 'App\MyOtherEvent']);
+ * ?>
+ * ```
+ *
+ * @param $events
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::dontSeeEventTriggered()
+ */
+ public function cantSeeEventTriggered($events)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeEventTriggered', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Make sure events did not fire during the test.
+ *
+ * ``` php
+ * dontSeeEventTriggered('App\MyEvent');
+ * $I->dontSeeEventTriggered(new App\Events\MyEvent());
+ * $I->dontSeeEventTriggered('App\MyEvent', 'App\MyOtherEvent');
+ * $I->dontSeeEventTriggered(['App\MyEvent', 'App\MyOtherEvent']);
+ * ?>
+ * ```
+ *
+ * @param $events
+ *
+ * @see \Codeception\Module\Laravel5::dontSeeEventTriggered()
+ */
+ public function dontSeeEventTriggered($events)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeEventTriggered', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Opens web page using route name and parameters.
+ *
+ * ``` php
+ * amOnRoute('posts.create');
+ * ?>
+ * ```
+ *
+ * @param $routeName
+ * @param array $params
+ *
+ * @see \Codeception\Module\Laravel5::amOnRoute()
+ */
+ public function amOnRoute($routeName, $params = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnRoute', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that current url matches route
+ *
+ * ``` php
+ * seeCurrentRouteIs('posts.index');
+ * ?>
+ * ```
+ *
+ * @param $routeName
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeCurrentRouteIs()
+ */
+ public function canSeeCurrentRouteIs($routeName)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentRouteIs', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that current url matches route
+ *
+ * ``` php
+ * seeCurrentRouteIs('posts.index');
+ * ?>
+ * ```
+ *
+ * @param $routeName
+ *
+ * @see \Codeception\Module\Laravel5::seeCurrentRouteIs()
+ */
+ public function seeCurrentRouteIs($routeName)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentRouteIs', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Opens web page by action name
+ *
+ * ``` php
+ * amOnAction('PostsController@index');
+ * ?>
+ * ```
+ *
+ * @param $action
+ * @param array $params
+ *
+ * @see \Codeception\Module\Laravel5::amOnAction()
+ */
+ public function amOnAction($action, $params = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnAction', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that current url matches action
+ *
+ * ``` php
+ * seeCurrentActionIs('PostsController@index');
+ * ?>
+ * ```
+ *
+ * @param $action
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeCurrentActionIs()
+ */
+ public function canSeeCurrentActionIs($action)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentActionIs', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that current url matches action
+ *
+ * ``` php
+ * seeCurrentActionIs('PostsController@index');
+ * ?>
+ * ```
+ *
+ * @param $action
+ *
+ * @see \Codeception\Module\Laravel5::seeCurrentActionIs()
+ */
+ public function seeCurrentActionIs($action)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentActionIs', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that a session variable exists.
+ *
+ * ``` php
+ * seeInSession('key');
+ * $I->seeInSession('key', 'value');
+ * ?>
+ * ```
+ *
+ * @param string|array $key
+ * @param mixed|null $value
+ *
+ * @return void
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeInSession()
+ */
+ public function canSeeInSession($key, $value = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInSession', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that a session variable exists.
+ *
+ * ``` php
+ * seeInSession('key');
+ * $I->seeInSession('key', 'value');
+ * ?>
+ * ```
+ *
+ * @param string|array $key
+ * @param mixed|null $value
+ *
+ * @return void
+ *
+ * @see \Codeception\Module\Laravel5::seeInSession()
+ */
+ public function seeInSession($key, $value = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInSession', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that the session has a given list of values.
+ *
+ * ``` php
+ * seeSessionHasValues(['key1', 'key2']);
+ * $I->seeSessionHasValues(['key1' => 'value1', 'key2' => 'value2']);
+ * ?>
+ * ```
+ *
+ * @param array $bindings
+ *
+ * @return void
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeSessionHasValues()
+ */
+ public function canSeeSessionHasValues($bindings)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeSessionHasValues', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that the session has a given list of values.
+ *
+ * ``` php
+ * seeSessionHasValues(['key1', 'key2']);
+ * $I->seeSessionHasValues(['key1' => 'value1', 'key2' => 'value2']);
+ * ?>
+ * ```
+ *
+ * @param array $bindings
+ *
+ * @return void
+ *
+ * @see \Codeception\Module\Laravel5::seeSessionHasValues()
+ */
+ public function seeSessionHasValues($bindings)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeSessionHasValues', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that form errors are bound to the View.
+ *
+ * ``` php
+ * seeFormHasErrors();
+ * ?>
+ * ```
+ *
+ * @return bool
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeFormHasErrors()
+ */
+ public function canSeeFormHasErrors()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeFormHasErrors', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that form errors are bound to the View.
+ *
+ * ``` php
+ * seeFormHasErrors();
+ * ?>
+ * ```
+ *
+ * @return bool
+ *
+ * @see \Codeception\Module\Laravel5::seeFormHasErrors()
+ */
+ public function seeFormHasErrors()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeFormHasErrors', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that there are no form errors bound to the View.
+ *
+ * ``` php
+ * dontSeeFormErrors();
+ * ?>
+ * ```
+ *
+ * @return bool
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::dontSeeFormErrors()
+ */
+ public function cantSeeFormErrors()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeFormErrors', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that there are no form errors bound to the View.
+ *
+ * ``` php
+ * dontSeeFormErrors();
+ * ?>
+ * ```
+ *
+ * @return bool
+ *
+ * @see \Codeception\Module\Laravel5::dontSeeFormErrors()
+ */
+ public function dontSeeFormErrors()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeFormErrors', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that specific form error messages are set in the view.
+ *
+ * This method calls `seeFormErrorMessage` for each entry in the `$bindings` array.
+ *
+ * ``` php
+ * seeFormErrorMessages([
+ * 'username' => 'Invalid Username',
+ * 'password' => null,
+ * ]);
+ * ?>
+ * ```
+ *
+ * @param array $bindings
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeFormErrorMessages()
+ */
+ public function canSeeFormErrorMessages($bindings)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeFormErrorMessages', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that specific form error messages are set in the view.
+ *
+ * This method calls `seeFormErrorMessage` for each entry in the `$bindings` array.
+ *
+ * ``` php
+ * seeFormErrorMessages([
+ * 'username' => 'Invalid Username',
+ * 'password' => null,
+ * ]);
+ * ?>
+ * ```
+ *
+ * @param array $bindings
+ *
+ * @see \Codeception\Module\Laravel5::seeFormErrorMessages()
+ */
+ public function seeFormErrorMessages($bindings)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeFormErrorMessages', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that a specific form error message is set in the view.
+ *
+ * If you want to assert that there is a form error message for a specific key
+ * but don't care about the actual error message you can omit `$expectedErrorMessage`.
+ *
+ * If you do pass `$expectedErrorMessage`, this method checks if the actual error message for a key
+ * contains `$expectedErrorMessage`.
+ *
+ * ``` php
+ * seeFormErrorMessage('username');
+ * $I->seeFormErrorMessage('username', 'Invalid Username');
+ * ?>
+ * ```
+ *
+ * @param string $key
+ * @param string|null $expectedErrorMessage
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeFormErrorMessage()
+ */
+ public function canSeeFormErrorMessage($key, $expectedErrorMessage = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeFormErrorMessage', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Assert that a specific form error message is set in the view.
+ *
+ * If you want to assert that there is a form error message for a specific key
+ * but don't care about the actual error message you can omit `$expectedErrorMessage`.
+ *
+ * If you do pass `$expectedErrorMessage`, this method checks if the actual error message for a key
+ * contains `$expectedErrorMessage`.
+ *
+ * ``` php
+ * seeFormErrorMessage('username');
+ * $I->seeFormErrorMessage('username', 'Invalid Username');
+ * ?>
+ * ```
+ *
+ * @param string $key
+ * @param string|null $expectedErrorMessage
+ *
+ * @see \Codeception\Module\Laravel5::seeFormErrorMessage()
+ */
+ public function seeFormErrorMessage($key, $expectedErrorMessage = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeFormErrorMessage', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Set the currently logged in user for the application.
+ * Takes either an object that implements the User interface or
+ * an array of credentials.
+ *
+ * ``` php
+ * amLoggedAs(['username' => 'jane@example.com', 'password' => 'password']);
+ *
+ * // provide User object
+ * $I->amLoggesAs( new User );
+ *
+ * // can be verified with $I->seeAuthentication();
+ * ?>
+ * ```
+ *
+ * @param \Illuminate\Contracts\Auth\User|array $user
+ * @param string|null $driver 'eloquent', 'database', or custom driver
+ *
+ * @return void
+ *
+ * @see \Codeception\Module\Laravel5::amLoggedAs()
+ */
+ public function amLoggedAs($user, $driver = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Condition('amLoggedAs', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Logout user.
+ *
+ * @see \Codeception\Module\Laravel5::logout()
+ */
+ public function logout()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('logout', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that a user is authenticated
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeAuthentication()
+ */
+ public function canSeeAuthentication()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeAuthentication', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that a user is authenticated
+ *
+ * @see \Codeception\Module\Laravel5::seeAuthentication()
+ */
+ public function seeAuthentication()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeAuthentication', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Check that user is not authenticated
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::dontSeeAuthentication()
+ */
+ public function cantSeeAuthentication()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeAuthentication', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Check that user is not authenticated
+ *
+ * @see \Codeception\Module\Laravel5::dontSeeAuthentication()
+ */
+ public function dontSeeAuthentication()
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeAuthentication', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Return an instance of a class from the IoC Container.
+ * (http://laravel.com/docs/ioc)
+ *
+ * ``` php
+ * grabService('foo');
+ *
+ * // Will return an instance of FooBar, also works for singletons.
+ * ?>
+ * ```
+ *
+ * @param string $class
+ *
+ * @return mixed
+ *
+ * @see \Codeception\Module\Laravel5::grabService()
+ */
+ public function grabService($class)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('grabService', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Inserts record into the database.
+ *
+ * ``` php
+ * haveRecord('users', array('name' => 'Davert'));
+ * ?>
+ * ```
+ *
+ * @param $tableName
+ * @param array $attributes
+ *
+ * @return mixed
+ * @part orm
+ *
+ * @see \Codeception\Module\Laravel5::haveRecord()
+ */
+ public function haveRecord($tableName, $attributes = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('haveRecord', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that record exists in database.
+ *
+ * ``` php
+ * seeRecord('users', array('name' => 'davert'));
+ * ?>
+ * ```
+ *
+ * @param $tableName
+ * @param array $attributes
+ * @part orm
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::seeRecord()
+ */
+ public function canSeeRecord($tableName, $attributes = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeRecord', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that record exists in database.
+ *
+ * ``` php
+ * seeRecord('users', array('name' => 'davert'));
+ * ?>
+ * ```
+ *
+ * @param $tableName
+ * @param array $attributes
+ * @part orm
+ *
+ * @see \Codeception\Module\Laravel5::seeRecord()
+ */
+ public function seeRecord($tableName, $attributes = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeRecord', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that record does not exist in database.
+ *
+ * ``` php
+ * dontSeeRecord('users', array('name' => 'davert'));
+ * ?>
+ * ```
+ *
+ * @param $tableName
+ * @param array $attributes
+ * @part orm
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Module\Laravel5::dontSeeRecord()
+ */
+ public function cantSeeRecord($tableName, $attributes = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeRecord', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that record does not exist in database.
+ *
+ * ``` php
+ * dontSeeRecord('users', array('name' => 'davert'));
+ * ?>
+ * ```
+ *
+ * @param $tableName
+ * @param array $attributes
+ * @part orm
+ *
+ * @see \Codeception\Module\Laravel5::dontSeeRecord()
+ */
+ public function dontSeeRecord($tableName, $attributes = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeRecord', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Retrieves record from database
+ *
+ * ``` php
+ * grabRecord('users', array('name' => 'davert'));
+ * ?>
+ * ```
+ *
+ * @param $tableName
+ * @param array $attributes
+ *
+ * @return mixed
+ * @part orm
+ *
+ * @see \Codeception\Module\Laravel5::grabRecord()
+ */
+ public function grabRecord($tableName, $attributes = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('grabRecord', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ *
+ * @see \Codeception\Module\Laravel5::haveModel()
+ */
+ public function haveModel($model, $attributes = null, $name = null, $times = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('haveModel', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Use Laravel's model factory to create a model.
+ * Can only be used with Laravel 5.1 and later.
+ *
+ * ``` php
+ * createModel('App\User');
+ * $I->createModel('App\User', ['name' => 'John Doe']);
+ * $I->createModel('App\User', [], 'admin');
+ * $I->createModel('App\User', [], 'admin', 3);
+ * ?>
+ * ```
+ *
+ * @see http://laravel.com/docs/5.1/testing#model-factories
+ *
+ * @param string $model
+ * @param array $attributes
+ * @param string $name
+ * @param int $times
+ *
+ * @return mixed
+ *
+ * @see \Codeception\Module\Laravel5::createModel()
+ */
+ public function createModel($model, $attributes = null, $name = null, $times = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('createModel', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Use Laravel's model factory to make a model.
+ * Can only be used with Laravel 5.1 and later.
+ *
+ * ``` php
+ * makeModel('App\User');
+ * $I->makeModel('App\User', ['name' => 'John Doe']);
+ * $I->makeModel('App\User', [], 'admin');
+ * $I->makeModel('App\User', [], 'admin', 3);
+ * ?>
+ * ```
+ *
+ * @see http://laravel.com/docs/5.1/testing#model-factories
+ *
+ * @param string $model
+ * @param array $attributes
+ * @param string $name
+ * @param int $times
+ *
+ * @return mixed
+ *
+ * @see \Codeception\Module\Laravel5::makeModel()
+ */
+ public function makeModel($model, $attributes = null, $name = null, $times = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('makeModel', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Authenticates user for HTTP_AUTH
+ *
+ * @param $username
+ * @param $password
+ *
+ * @see \Codeception\Lib\InnerBrowser::amHttpAuthenticated()
+ */
+ public function amHttpAuthenticated($username, $password)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Condition('amHttpAuthenticated', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Opens the page for the given relative URI.
+ *
+ * ``` php
+ * amOnPage('/');
+ * // opens /register page
+ * $I->amOnPage('/register');
+ * ```
+ *
+ * @param $page
+ *
+ * @see \Codeception\Lib\InnerBrowser::amOnPage()
+ */
+ public function amOnPage($page)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnPage', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Perform a click on a link or a button, given by a locator.
+ * If a fuzzy locator is given, the page will be searched for a button, link, or image matching the locator string.
+ * For buttons, the "value" attribute, "name" attribute, and inner text are searched.
+ * For links, the link text is searched.
+ * For images, the "alt" attribute and inner text of any parent links are searched.
+ *
+ * The second parameter is a context (CSS or XPath locator) to narrow the search.
+ *
+ * Note that if the locator matches a button of type `submit`, the form will be submitted.
+ *
+ * ``` php
+ * click('Logout');
+ * // button of form
+ * $I->click('Submit');
+ * // CSS button
+ * $I->click('#form input[type=submit]');
+ * // XPath
+ * $I->click('//form/*[@type=submit]');
+ * // link in context
+ * $I->click('Logout', '#nav');
+ * // using strict locator
+ * $I->click(['link' => 'Login']);
+ * ?>
+ * ```
+ *
+ * @param $link
+ * @param $context
+ *
+ * @see \Codeception\Lib\InnerBrowser::click()
+ */
+ public function click($link, $context = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Action('click', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that the current page contains the given string (case insensitive).
+ *
+ * You can specify a specific HTML element (via CSS or XPath) as the second
+ * parameter to only search within that element.
+ *
+ * ``` php
+ * see('Logout'); // I can suppose user is logged in
+ * $I->see('Sign Up', 'h1'); // I can suppose it's a signup page
+ * $I->see('Sign Up', '//body/h1'); // with XPath
+ * ```
+ *
+ * Note that the search is done after stripping all HTML tags from the body,
+ * so `$I->see('strong')` will return true for strings like:
+ *
+ * - `
I am Stronger than thou
`
+ * - ``
+ *
+ * But will *not* be true for strings like:
+ *
+ * - `Home`
+ * - `
Home`
+ * - ``
+ *
+ * For checking the raw source code, use `seeInSource()`.
+ *
+ * @param $text
+ * @param null $selector
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Lib\InnerBrowser::see()
+ */
+ public function canSee($text, $selector = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('see', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that the current page contains the given string (case insensitive).
+ *
+ * You can specify a specific HTML element (via CSS or XPath) as the second
+ * parameter to only search within that element.
+ *
+ * ``` php
+ * see('Logout'); // I can suppose user is logged in
+ * $I->see('Sign Up', 'h1'); // I can suppose it's a signup page
+ * $I->see('Sign Up', '//body/h1'); // with XPath
+ * ```
+ *
+ * Note that the search is done after stripping all HTML tags from the body,
+ * so `$I->see('strong')` will return true for strings like:
+ *
+ * - `
I am Stronger than thou
`
+ * - ``
+ *
+ * But will *not* be true for strings like:
+ *
+ * - `Home`
+ * - `
Home`
+ * - ``
+ *
+ * For checking the raw source code, use `seeInSource()`.
+ *
+ * @param $text
+ * @param null $selector
+ *
+ * @see \Codeception\Lib\InnerBrowser::see()
+ */
+ public function see($text, $selector = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\Assertion('see', func_get_args()));
+ }
+
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that the current page doesn't contain the text specified (case insensitive).
+ * Give a locator as the second parameter to match a specific region.
+ *
+ * ```php
+ * dontSee('Login'); // I can suppose user is already logged in
+ * $I->dontSee('Sign Up','h1'); // I can suppose it's not a signup page
+ * $I->dontSee('Sign Up','//body/h1'); // with XPath
+ * ```
+ *
+ * Note that the search is done after stripping all HTML tags from the body,
+ * so `$I->dontSee('strong')` will fail on strings like:
+ *
+ * - `
Home`
+ * - ``
+ *
+ * For checking the raw source code, use `seeInSource()`.
+ *
+ * @param $text
+ * @param null $selector
+ * Conditional Assertion: Test won't be stopped on fail
+ *
+ * @see \Codeception\Lib\InnerBrowser::dontSee()
+ */
+ public function cantSee($text, $selector = null)
+ {
+ return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSee', func_get_args()));
+ }
+ /**
+ * [!] Method is generated. Documentation taken from corresponding module.
+ *
+ * Checks that the current page doesn't contain the text specified (case insensitive).
+ * Give a locator as the second parameter to match a specific region.
+ *
+ * ```php
+ * dontSee('Login'); // I can suppose user is already logged in
+ * $I->dontSee('Sign Up','h1'); // I can suppose it's not a signup page
+ * $I->dontSee('Sign Up','//body/h1'); // with XPath
+ * ```
+ *
+ * Note that the search is done after stripping all HTML tags from the body,
+ * so `$I->dontSee('strong')` will fail on strings like:
+ *
+ * - `